/*
 Theme Name:   Twenty Twenty-Four Child
 Description:  Child theme for Twenty Twenty-Four
 Author:       Mik
 Template:     twentytwentyfour
 Version:      6.9


/* Прибираємо всі фокуси для всіх посилань */
a:focus,
a:active,
a:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}
a:focus::after,
a:focus::before,
a:active::after,
a:active::before {
    content: none !important;
    outline: 0 !important;
    box-shadow: none !important;
}
a::-moz-focus-inner {
    border: 0 !important;
    outline: 0 !important;
}



.wp-block-gallery img {
    border-radius: 6px;
}

/* Button in Header */
.hero-button a {
    padding: 18px 45px !important;
    border: 2px solid #1d3f96;
    border-radius: 4px;  
    color: #1d3f96;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
@media (max-width: 980px) {
    .hero-button a {
        padding: 6px 15px;
        font-size: 16px;
    }
}
.hero-button:hover a {
    background: #1d3f96;
    color: #ffffff;
    cursor: pointer;
}

/* Додавання кількості товара */
/* Обгортка */
.quantity.wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
/* Кнопки + і - */
.wc-block-components-quantity-selector__button {
    background: #f2f2f2;
    border: none;
    width: 38px;
    height: 42px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
    background: #e0e0e0;
}
.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Input with add */
.quantity .qty {
    width: 35px !important;
    height: 56px;
    padding: 0;
    text-align: center;
    font-size: 16px;
}
.quantity .qty:focus {
    background: #f8f8f8;
}
@media (max-width: 480px) {
    .wc-block-components-quantity-selector__button {
        width: 34px;
        height: 38px;
    }
    .quantity .qty {
        height: 38px;
        width: 48px !important;
    }
}
.psmwoo-mc-switcher-container {
    position: relative;
}
/* Випадаючий список — вгору */
.psmwoo-mc-switcher-options {
    position: absolute !important;
    bottom: 100% !important;
    top: auto !important;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
/* Анімація */
.psmwoo-mc-switcher-options {
    transform-origin: bottom center;
    animation: dropdownUp 0.18s ease-out;
}
@keyframes dropdownUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4 товари замість 6 в каруселі (Gutenberg WooCommerce) */
.new-woo-products > li {
    min-width: 24% !important; 
}
@media (max-width: 1024px) {
    .new-woo-products > li {
        min-width: 31.6% !important;
    }
    .wp-block-site-logo {
        width: 150px;
    }
}
@media (max-width: 768px) {
    .new-woo-products > li {
        min-width: 48.3% !important;
    }
    .wp-block-site-logo {
        width: 100px;
    }
}
@media (min-width: 600px) {
    .mobil-menu {
        display: none;
    }
}
.header-menu-desktop ul > li > a {
    position: relative;
    display: inline-block;
    font-size: 18px;
    color: #262525;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 0 4px;        /* місце під лінію */
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.25s ease-out;
}
/* Анімоване підкреслення */
.header-menu-desktop ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #0073aa;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-out;
}
/* Ховер + фокус */
.header-menu-desktop ul > li > a:hover,
.header-menu-desktop ul > li > a:focus {
    color: #0073aa !important;
}
.header-menu-desktop ul > li > a:hover::after,
.header-menu-desktop ul > li > a:focus::after {
    transform: scaleX(1);
}
/* Активний пункт меню завжди підкреслений */
.header-menu-desktop ul > li.current-menu-item > a::after,
.header-menu-desktop ul > li.current_page_item > a::after {
    transform: scaleX(1);
}
@media (max-width: 599px) {
    .header-menu-desktop {
        display: none;
    }
}
@media (max-width: 480px) {
    .new-woo-products > li {
        min-width: 100% !important;
    }
    .header-icon-account {
        display: none;
    }
}
@media (max-width: 380px) {
    .header-icons-groupe {
        gap: 0.5rem;
    }
}

.header-section {
    position: relative;
}

/* search in header */
.mobil-search {
    font-size: 30px !important;
    display: none;
    cursor: pointer;
}
@media (max-width: 970px) {
    .mobil-search {
        display: flex;
        align-items: center;
    }
    .search-desktop {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        z-index: 9999;
        width: 80%;
        max-width: 400px;
    }
    .search-desktop.active {
        display: block;
    }
}


/* Для hero-slider */
.hero-slider {
    position: relative;
    min-height: 0 !important;
}
.hero-slide {
    width: 100%;
    height: 100%;
    margin: 0;
}
.hero-content {
    height: 40vw;
}
@media (max-width: 1085px) {
    .hero-content {
        height: 55vw;
    }
}
@media (max-width: 781px) { 
    .hero-content {
        height: 800px;
    }
}
@media (max-width: 600px) { 
    .hero-content {
        height: 700px;
    }
}
.swiper-pagination {
    left: 0;
    right: 0;
    margin: 0 auto;    
    bottom: 10px !important;
}
.swiper-pagination-bullet {
    height: 15px !important;
    width: 15px !important;
    background-color: rgb(255, 255, 255) !important;
}

.hero-content p {
    padding: 0 !important;
    margin: 0 !important;
}

.hero-logo img {
    width: 236px;
    height: auto;
    /* padding: 20px 0; */
}

@media (max-width: 1085px) {
    .hero-logo img {
        width: 150px;
    }
}
@media (max-width: 781px) {
    .hero-logo {
        display: none;
    }
    .hero-content-two .wp-block-cover__image-background {
        object-position: 15% center !important;
    }
}

/* Для товарів в категорії */
.card-product {
 border: 1px solid #ddd;
 box-shadow: 0 5px 10px rgba(0, 0, 0, .08);
 overflow: hidden;
}
.card-product:hover {
        box-shadow: 0 5px 10px rgba(130, 130, 130, 0.42);
}
.card-product-desk a {
    text-decoration: none;
}
.card-product-button:hover a {
    background-color: red;
}
.card-product img {
    transition: transform 0.4s ease;
    will-change: transform;
}
.card-product:hover img {
    transform: scale(1.1);
}


.footer-groupe .wp-block-columns {
    display: grid !important;
    grid-template-columns: 30% auto 250px !important;
}
.footer-grid-info ul {
	width: 100%;
	display: grid !important;
    	grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
@media (max-width: 1200px) {
    .footer-groupe .wp-block-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 800px) {
    .footer-groupe .wp-block-columns {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 600px) {
    .footer-grid-info ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 560px) {
    .footer-grid-info ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Контейнер сортування ціні і т.д. */
.wc-block-catalog-sorting,
.woocommerce-ordering {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.woocommerce-ordering select.orderby {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: 0.3s ease;
    min-width: 220px;
    /* Стиль стрілки */
    background-image: url("data:image/svg+xml;utf8,<svg width='16' height='16' xmlns='http://www.w3.org/2000/svg'><path d='M4 6l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
/* Ховер */
.woocommerce-ordering select.orderby:hover {
    border-color: #999;
}
/* Фокус */
.woocommerce-ordering select.orderby:focus {
    border-color: #000;
    outline: none;
}
/* Обгортка */
.woocommerce-ordering {
    position: relative;
}
/* Забрати стандартну стрілку */
select.orderby::-ms-expand {
    display: none;
}


/* Контейнер пагінації */
.wp-block-query-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    font-size: 16px;
}
/* Номери сторінок */
.wp-block-query-pagination-numbers .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;

    font-weight: 500;
    color: #333;

    text-decoration: none;
    transition: all 0.25s ease;
}
/* Поточна (активна) сторінка */
.wp-block-query-pagination-numbers .page-numbers.current {
    background: #1d3f96;
    color: #fff;
    border-color: #1d3f96;
}
/* Ховер */
.wp-block-query-pagination-numbers .page-numbers:hover:not(.current) {
    border-color: #888;
    color: #000;
}
/* Кнопка "Наступна сторінка" */
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous
{
    padding: 10px 18px;
    background: #1d3f96;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none !important;
    transition: 0.25s ease;
    border: 1px solid #1d3f96;
}
/* Ховер */
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover
{
    background: #fff;
    color: #000 !important;
}
/* Адаптив */
@media (max-width: 480px) {
    .wp-block-query-pagination-numbers .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .wp-block-query-pagination-next,
    .wp-block-query-pagination-previous
    {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* Сітка товарів */
@media (max-width: 1640px) {
    .wc-block-product-template__responsive {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 1300px) {
    .wc-block-product-template__responsive {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 980px) {
    .sidebar-left {
        display: none;
    }
}
@media (max-width: 580px) {
    .wc-block-product-template__responsive {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Форма над футером */
.form-before-footer form,
.form-before-footer form p {
    display: flex;
    align-items: center;
}
.form-before-footer form {
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
}
.form-before-footer form p {
    margin: 0;
}
.form-before-footer input[type="email"] {
    width: 100%;
    max-width: 300px;
    white-space: nowrap;
    padding: 16px 16px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    outline: none;
    transition: 0.3s;
    background: #fff;
}
.form-before-footer input[type="email"]::placeholder {
    color: #999;
}
.form-before-footer input[type="email"]:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
.form-before-footer input[type="submit"] {
    padding: 12px 30px;
    border: 2px solid #1d3f96;
    color: #1d3f96;
    font-weight: 600;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}
.form-before-footer input[type="submit"]:hover {
    background: #1d3f96;
    color: #ffffff;
}
.form-before-footer .wpcf7-spinner {
    display: none !important;
}
@media (max-width: 950px) {
    .form-before-footer input[type="email"] {
        width: 180px;
    }
}




.image-rounded img {
	border-radius: 5px;
}



/* Контейнер форми в контактах */
.contact-page-form {
    max-width: 700px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: block !important;	
}


.contact-page-form .wpcf7 form {
    margin: 0 auto;    
}

/* Поля */
.contact-page-form .wpcf7-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 16px;
    transition: all .3s ease;
    background: #fafafa;
}

/* Placeholder */
.contact-page-form .wpcf7-form-control::placeholder {
    color: #999;
}

/* Hover & Focus */
.contact-page-form .wpcf7-form-control:focus {
    background: #fff;
    border-color: #1d3f96;
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.15);
    outline: none;
}

/* Текстова область */
.contact-page-form .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Кнопка */
.contact-page-form .wpcf7-submit {
    width: 100%;
    padding: 14px;
    background: #1d3f96;
    color: #fff;
    font-size: 17px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s ease;
    letter-spacing: .5px;
    font-weight: 600;
}

.contact-page-form .wpcf7-submit:hover {
    background: #0e286a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 90, 249, 0.3);
}

.contact-page-form .wpcf7-submit:active {
    transform: translateY(0);
}

/* Повідомлення */
.contact-page-form .wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
}

/* Успіх */
.contact-page-form .wpcf7-mail-sent-ok {
    border: 2px solid #37c66c !important;
    background: rgba(55,198,108,0.1);
}

/* Помилка */
.contact-page-form .wpcf7-validation-errors,
.contact-page-form .wpcf7-mail-sent-ng {
    border: 2px solid #ff6262 !important;
    background: rgba(255,98,98,0.1);
}

/* Спінер */
.contact-page-form .wpcf7-spinner {
    margin-left: 10px;
}


/* Форма над футером */
.form-before-footer .wpcf7-not-valid-tip {
    position: absolute;
}
.form-before-footer .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
display: none;
}


/* Форма сторінки Order Tracking */
/* Контейнер форми */
.woocommerce-form-track-order {
    max-width: 550px;
    margin: 40px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
/* Опис */
.woocommerce-form-track-order > p:first-of-type {
    font-size: 15px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.5;
}
/* Робимо всі поля вертикальними */
.woocommerce-form-track-order .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 0 18px 0 !important;
}
/* Лейбли */
.woocommerce-form-track-order label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
/* Поля */
.woocommerce-form-track-order .input-text {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fafafa;
    font-size: 16px;
    transition: .3s ease;
    box-sizing: border-box;
}
/* Placeholder */
.woocommerce-form-track-order .input-text::placeholder {
    color: #999;
}
/* Focus */
.woocommerce-form-track-order .input-text:focus {
    background: #fff;
    border-color: #6a5af9;
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.18);
    outline: none;
}
/* Кнопка */
.woocommerce-form-track-order button.button {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    background: #1d3f96 !important;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .3s ease;
}
.woocommerce-form-track-order button.button:hover {
    background: #0e286a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 90, 249, 0.3);
}
.woocommerce-form-track-order button.button:active {
    transform: translateY(0);
}
/* Прибираємо clearfix */
.woocommerce-form-track-order .clear {
    display: none;
}

.wc-block-mini-cart__icon {
    width: 38px !important;
    height: 38px !important;
}
