/* ================================================================
   WooCommerce Styles - WoodJoy
   Primary: #7EC46A | Hover: #6ab558 | Dark: #1d231b
   Badge sale: #D07A5C
   
   SEO: stilі zavantazhuyutsya lokalno (ne CDN),
   minifikuvaty pered zapuskom (online-tool abo plugin)
   ================================================================ */

/* HIDE SIDEBAR + WIDGETS */
.woocommerce-page .widget-area,
.woocommerce-page #secondary,
.woocommerce-page aside,
.woocommerce-page .sidebar,
.woocommerce .widget_search,
.woocommerce .widget_pages,
.woocommerce .widget_archives,
.woocommerce .widget_categories,
.woocommerce .widget_meta,
.woocommerce .widget_recent_entries,
.woocommerce .widget_recent_comments,
.woocommerce .widget_calendar,
.woocommerce .widget_tag_cloud,
.woocommerce .widget_nav_menu,
.woocommerce .widget_text,
body.single-product .widget,
body.woocommerce .widget,
body.woocommerce-page .widget-area,
body.woocommerce-page #secondary,
aside#secondary,
.widget-area,
#sidebar,
.sidebar,
#primary-sidebar,
#secondary-sidebar,
.sidebar-container,
aside.widget-area,
.widget-area-bottom {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.additional_information_tab {
    display: none !important;
}

.woocommerce-page .content-area,
.woocommerce-page .site-main,
.woocommerce-page main,
body.woocommerce-page #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ================================================================
   PRODUCT GRID
   ================================================================ */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 2rem 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}


/* ================================================================
   PRODUCT CARD
   ================================================================ */

.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    background: #ffffff !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.35s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Reorder elements: image(0) -> title(1) -> price(2) -> desc(3) -> button(4) */
.woocommerce ul.products li.product a:first-of-type {
    order: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    order: 1 !important;
}

.woocommerce ul.products li.product .price {
    order: 2 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__short-description {
    order: 3 !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.added_to_cart {
    order: 4 !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-4px) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product>a img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05) !important;
}

.woocommerce ul.products li.product>a:first-child {
    display: block !important;
    overflow: hidden !important;
    position: relative !important;
}

.woocommerce ul.products li.product .woocommerce-placeholder {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
}

/* Sale badge - BOLD */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    background: #D07A5C !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0.4rem 1rem !important;
    border-radius: 0.5rem !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    right: auto !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    min-width: auto !important;
    box-shadow: 0 2px 8px rgba(208, 122, 92, 0.3) !important;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    padding: 1rem 1rem 0 1rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1d231b !important;
    line-height: 1.35 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__short-description {
    padding: 0.25rem 1rem 0 1rem !important;
    font-size: 0.8125rem !important;
    color: #677562 !important;
}

/* Price */
.woocommerce ul.products li.product .price {
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1d231b !important;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.6 !important;
    font-size: 0.875rem !important;
    color: #999 !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: #7EC46A !important;
    font-weight: 800 !important;
}

/* ALL card buttons - hardcoded color */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product a.button.product_type_variable,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.add_to_cart_button {
    display: block !important;
    width: calc(100% - 2rem) !important;
    margin: auto 1rem 1rem 1rem !important;
    padding: 0.75rem 1.5rem !important;
    background-color: #7EC46A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    margin-top: auto !important;
    box-shadow: 0 0 20px rgba(126, 196, 106, 0.3) !important;
    opacity: 1 !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.added_to_cart:hover,
.woocommerce ul.products li.product a.button.product_type_variable:hover,
.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover {
    background-color: #6ab558 !important;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(126, 196, 106, 0.5) !important;
    border: none !important;
}


/* ================================================================
   GUTENBERG & WOOCOMMERCE BLOCKS FIXES
   Provides the same layout overrides for .wc-block-grid blocks
   ================================================================ */

.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 2rem 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wc-block-grid__products::before,
.wc-block-grid__products::after {
    display: none !important;
}

@media (min-width: 640px) {
    .wc-block-grid__products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .wc-block-grid__products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.wc-block-grid.has-4-columns .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .wc-block-grid.has-4-columns .wc-block-grid__products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.wc-block-grid__product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    background: #ffffff !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.35s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

.wc-block-grid__product:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-4px) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.wc-block-grid__product .wc-block-grid__product-image img,
.wc-block-components-product-image img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img,
.wc-block-grid__product:hover .wc-block-components-product-image img {
    transform: scale(1.05) !important;
}

.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge {
    background: #D07A5C !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0.4rem 1rem !important;
    border-radius: 0.5rem !important;
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    right: auto !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 8px rgba(208, 122, 92, 0.3) !important;
    z-index: 10 !important;
}

.wc-block-grid__product-title,
.wc-block-components-product-title,
.wc-block-grid__product-title a {
    padding: 1rem 1rem 0 1rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1d231b !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.wc-block-grid__product-price,
.wc-block-components-product-price {
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1d231b !important;
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
.wc-block-components-product-button .wp-block-button__link {
    display: block !important;
    width: calc(100% - 2rem) !important;
    margin: auto 1rem 1rem 1rem !important;
    padding: 0.75rem 1.5rem !important;
    background-color: #7EC46A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    box-shadow: 0 0 20px rgba(126, 196, 106, 0.3) !important;
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover,
.wc-block-components-product-button .wp-block-button__link:hover {
    background-color: #6ab558 !important;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(126, 196, 106, 0.5) !important;
}


/* ================================================================
   DARK SECTION (Hity prodazhu)
   ================================================================ */

.bg-\[\#1a1f18\] .woocommerce ul.products li.product,
section[class*="bg-[#1a1f18]"] ul.products li.product,
.bg-\[\#1a1f18\] .wc-block-grid__product,
section[class*="bg-[#1a1f18]"] .wc-block-grid__product {
    background: #232b20 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-\[\#1a1f18\] .woocommerce ul.products li.product:hover,
section[class*="bg-[#1a1f18]"] ul.products li.product:hover,
.bg-\[\#1a1f18\] .wc-block-grid__product:hover,
section[class*="bg-[#1a1f18]"] .wc-block-grid__product:hover {
    border-color: rgba(126, 196, 106, 0.3) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.bg-\[\#1a1f18\] .woocommerce ul.products li.product .woocommerce-loop-product__title,
.bg-\[\#1a1f18\] .woocommerce ul.products li.product h2,
section[class*="bg-[#1a1f18]"] ul.products li.product .woocommerce-loop-product__title,
section[class*="bg-[#1a1f18]"] ul.products li.product h2,
.bg-\[\#1a1f18\] .wc-block-grid__product-title,
section[class*="bg-[#1a1f18]"] .wc-block-grid__product-title,
.bg-\[\#1a1f18\] .wc-block-components-product-title,
section[class*="bg-[#1a1f18]"] .wc-block-components-product-title,
.bg-\[\#1a1f18\] .wc-block-grid__product-title a,
section[class*="bg-[#1a1f18]"] .wc-block-grid__product-title a {
    color: #f5f8f4 !important;
}

.bg-\[\#1a1f18\] .woocommerce ul.products li.product .price,
.bg-\[\#1a1f18\] .woocommerce ul.products li.product .price ins,
section[class*="bg-[#1a1f18]"] ul.products li.product .price,
section[class*="bg-[#1a1f18]"] ul.products li.product .price ins,
.bg-\[\#1a1f18\] .wc-block-grid__product-price,
section[class*="bg-[#1a1f18]"] .wc-block-grid__product-price,
.bg-\[\#1a1f18\] .wc-block-components-product-price,
section[class*="bg-[#1a1f18]"] .wc-block-components-product-price {
    color: #7EC46A !important;
}

.bg-\[\#1a1f18\] .woocommerce ul.products li.product .woocommerce-loop-product__short-description,
section[class*="bg-[#1a1f18]"] ul.products li.product .woocommerce-loop-product__short-description {
    color: #9ab092 !important;
}


/* ================================================================
   SINGLE PRODUCT PAGE
   ================================================================ */

.woocommerce div.product {
    padding: 2rem 1rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

@media (min-width: 768px) {
    .woocommerce div.product {
        padding: 2.5rem 2.5rem !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce div.product {
        padding: 3rem 5rem !important;
    }
}

/* Gallery */
.woocommerce div.product div.images {
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
}

.woocommerce div.product div.images img {
    border-radius: 1.25rem !important;
}

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 80px !important;
    height: 80px !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    transition: border-color 0.2s !important;
    cursor: pointer !important;
}

.woocommerce div.product div.images .flex-control-thumbs li:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: #7EC46A !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Title */
.woocommerce div.product .product_title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #1d231b !important;
    margin-bottom: 0.25rem !important;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
    color: #677562 !important;
    font-size: 0.9375rem !important;
    margin-bottom: 1.5rem !important;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1d231b !important;
    margin-bottom: 1rem !important;
}

.woocommerce div.product p.price del {
    opacity: 0.4 !important;
}

.woocommerce div.product p.price ins {
    text-decoration: none !important;
}

/* Variations */
.woocommerce div.product form.variations_form .variations {
    width: 100% !important;
    border: none !important;
    margin-bottom: 1rem !important;
}

.woocommerce div.product form.variations_form .variations td,
.woocommerce div.product form.variations_form .variations th {
    border: none !important;
    padding: 0.5rem 0 !important;
    vertical-align: middle !important;
}

.woocommerce div.product form.variations_form .variations tr {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
}

.woocommerce div.product form.variations_form .variations th.label {
    width: auto !important;
    padding: 0 !important;
    padding-right: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
}

.woocommerce div.product form.variations_form .variations td.value {
    width: 100% !important;
    padding: 0 !important;
    position: relative !important;
}

/* Make "Ochystyty" (Reset) link invisible globally */
form.variations_form .reset_variations,
.reset_variations {
    display: none !important;
}

.woocommerce div.product form.variations_form .variations td.label label {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #1d231b !important;
    quotes: none !important;
}

/* Select dropdowns */
.woocommerce div.product form.variations_form .variations td.value select,
.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 0.75rem !important;
    background-color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #1d231b !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23677562' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}

.woocommerce div.product form.variations_form .variations td.value select:focus,
.woocommerce div.product form.cart .variations select:focus {
    outline: none !important;
    border-color: #7EC46A !important;
    box-shadow: 0 0 0 3px rgba(126, 196, 106, 0.2) !important;
}

/* Select option highlight - works on Mac Chrome */
.woocommerce div.product form.variations_form .variations td.value select option:checked {
    background: #7EC46A linear-gradient(0deg, #7EC46A 0%, #7EC46A 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.woocommerce div.product form.variations_form .variations td.value select option:hover {
    background: #f0f7ee !important;
    color: #1d231b !important;
}

/* Force select accent color */
.woocommerce div.product form.variations_form .variations td.value select,
.woocommerce div.product form.cart .variations select {
    accent-color: #7EC46A !important;
}

/* Cart form layout: variations > ppom > comment > price+qty > button */
form.cart {
    display: block !important;
    margin-bottom: 1.5rem !important;
}

form.cart .variations,
form.cart table.variations {
    width: 100% !important;
    margin-bottom: 0 !important;
}

form.cart .single_variation_wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Container inside single variation wrap */
form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

/* Remove clearfix pseudo-elements that force flex wrap */
form.cart .woocommerce-variation-add-to-cart::before,
form.cart .woocommerce-variation-add-to-cart::after {
    display: none !important;
    content: none !important;
}

/* Comment field first */
.woodjoy-product-note {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* PPOM wrapper second */
form.cart .ppom-wrapper,
#ppom-price-container,
#ppom-box-1 {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    order: 2 !important;
}

/* Price left + Quantity right in one row — REPLACED by new qty buttons section below */

/* ADD TO CART — base styles (layout handled in new section) */
.woocommerce div.product form.cart button.single_add_to_cart_button {
    background-color: #7EC46A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.8125rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 0 20px rgba(126, 196, 106, 0.3) !important;
    opacity: 1 !important;
    line-height: 1.1 !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart button[type="submit"]:hover {
    background-color: #6ab558 !important;
    box-shadow: 0 0 30px rgba(126, 196, 106, 0.5) !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:active {
    transform: scale(0.98) !important;
}

/* Disabled state */
.woocommerce div.product form.cart button.single_add_to_cart_button:disabled,
.woocommerce div.product form.cart button.single_add_to_cart_button.disabled {
    background-color: #7EC46A !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Stock */
.woocommerce div.product .stock.out-of-stock {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.woocommerce div.product .stock.in-stock {
    color: #4CAF50 !important;
    font-weight: 600 !important;
}

/* Meta */
.woocommerce div.product .product_meta {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    font-size: 0.8125rem !important;
    color: #677562 !important;
}

.woocommerce div.product .product_meta>span {
    display: block !important;
    margin-bottom: 0.35rem !important;
}

.woocommerce div.product .product_meta a {
    color: #1d231b !important;
    text-decoration: none !important;
}

.woocommerce div.product .product_meta a:hover {
    color: #6ab558 !important;
}

/* Comment field styling */
.woodjoy-product-note label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #1d231b !important;
    margin-bottom: 0.5rem !important;
}

.woodjoy-product-note textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    color: #1d231b !important;
    resize: vertical !important;
    min-height: 80px !important;
    transition: border-color 0.2s !important;
}

.woodjoy-product-note textarea:focus {
    outline: none !important;
    border-color: #7EC46A !important;
    box-shadow: 0 0 0 3px rgba(126, 196, 106, 0.2) !important;
}

.woodjoy-product-note textarea::placeholder {
    color: #9ab092 !important;
}


/* ================================================================
   TABS
   ================================================================ */

.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    display: flex !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #677562 !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all 0.2s !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #1d231b !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #1d231b !important;
    border-bottom-color: #7EC46A !important;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1d231b !important;
    margin-bottom: 1rem !important;
}


/* ================================================================
   BREADCRUMB / PAGINATION / ORDERING
   ================================================================ */

.woocommerce .woocommerce-breadcrumb {
    font-size: 0.8125rem !important;
    color: #677562 !important;
    padding: 1rem 1.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #677562 !important;
    text-decoration: none !important;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #1d231b !important;
}

@media (min-width: 768px) {
    .woocommerce .woocommerce-breadcrumb {
        padding: 1rem 2.5rem !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce .woocommerce-breadcrumb {
        padding: 1rem 5rem !important;
    }
}

.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #7EC46A !important;
    color: #fff !important;
    font-weight: 700 !important;
    display: flex !important;
    height: 2.5rem !important;
    width: 2.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
}

.woocommerce-ordering select:focus {
    outline: none !important;
    border-color: #7EC46A !important;
}

.woocommerce-products-header__title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #1d231b !important;
}


/* ================================================================
   GLOBAL BUTTONS
   ================================================================ */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .cart .button,
.woocommerce .checkout-button {
    background-color: #7EC46A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(126, 196, 106, 0.3) !important;
    opacity: 1 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #6ab558 !important;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(126, 196, 106, 0.5) !important;
}


/* ================================================================
   MESSAGES
   ================================================================ */

.woocommerce-message {
    border-top-color: #7EC46A !important;
}

.woocommerce-message::before {
    color: #7EC46A !important;
}

.woocommerce-error {
    border-top-color: #dc2626 !important;
}


/* ================================================================
   RELATED PRODUCTS
   ================================================================ */

.woocommerce div.product .related.products {
    margin-top: 4rem !important;
    padding-top: 3rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.woocommerce div.product .related.products h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #1d231b !important;
    margin-bottom: 1.5rem !important;
}


/* ================================================================
   PPOM CHECKBOX CUSTOMIZATION
   Zaokrugleni chekboksy z animaciyeyu
   ================================================================ */

/* Pribraty zayvi ryadky z tablytsi cin PPOM (vsi krim ostannogo "Razom") */
#ppom-price-container table tr {
    display: none !important;
}

#ppom-price-container table tr:last-child,
#ppom-price-container table tr.ppom-total-row {
    display: table-row !important;
}

/* Napys "Dodatkovi opciyi" v odyn ryadok */
.ppom-field-wrapper .ppom-title,
.ppom-field-wrapper legend,
.ppom-field-wrapper .ppom_label,
.ppom-field-wrapper .ppom-section-title,
.ppom-field-wrapper .form-control-label {
    white-space: nowrap !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    color: #1d231b !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
    width: 100% !important;
}

.ppom-field-wrapper {
    width: 100% !important;
    display: block !important;
    margin-bottom: 1rem !important;
}

/* Fix inline check grouping */
.ppom-field-wrapper .form-group .form-check-inline {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

/* Kozhna opciya v odyn ryadok: checkbox + nazva + cina */
.ppom-field-wrapper .ppom-checkbox-field label,
.ppom-field-wrapper .ppom_checkbox_group label,
.ppom-field-wrapper .form-check-label {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.625rem !important;
    padding: 0.625rem 0.875rem !important;
    margin-bottom: 0.375rem !important;
    border-radius: 0.625rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    font-size: 0.875rem !important;
    color: #1d231b !important;
    line-height: normal !important;
    width: 100% !important;
    white-space: nowrap !important;
}

.ppom-field-wrapper .ppom-checkbox-field label .ppom-input-option-label,
.ppom-field-wrapper .ppom_checkbox_group label .ppom-input-option-label,
.ppom-field-wrapper .form-check-label .ppom-input-option-label {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.ppom-field-wrapper .ppom-checkbox-field label .ppom-option-label-price,
.ppom-field-wrapper .ppom_checkbox_group label .ppom-option-label-price,
.ppom-field-wrapper .form-check-label .ppom-option-label-price {
    white-space: nowrap !important;
}

.ppom-field-wrapper .ppom-checkbox-field label:hover,
.ppom-field-wrapper .ppom_checkbox_group label:hover {
    background-color: #f0f7ee !important;
}

/* Prihovaty standartnyi checkbox */
.ppom-field-wrapper input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 1.375rem !important;
    height: 1.375rem !important;
    min-width: 1.375rem !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.4375rem !important;
    background: #fff !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Hover na checkbox */
.ppom-field-wrapper input[type="checkbox"]:hover {
    border-color: #7EC46A !important;
    box-shadow: 0 0 0 3px rgba(126, 196, 106, 0.15) !important;
}

/* Checked state — zaokruglena galochka z animaciyeyu */
.ppom-field-wrapper input[type="checkbox"]:checked {
    background-color: #7EC46A !important;
    border-color: #7EC46A !important;
    box-shadow: 0 0 0 3px rgba(126, 196, 106, 0.25), 0 2px 8px rgba(126, 196, 106, 0.3) !important;
    animation: wjCheckPop 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Galochka SVG */
.ppom-field-wrapper input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 45% !important;
    left: 50% !important;
    width: 0.375rem !important;
    height: 0.625rem !important;
    border: solid #fff !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: translate(-50%, -55%) rotate(45deg) !important;
    animation: wjCheckTick 0.2s ease-out 0.1s both !important;
}

/* Focus dlya dostupnosti */
.ppom-field-wrapper input[type="checkbox"]:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(126, 196, 106, 0.4) !important;
}

/* Cina v ryadku */
.ppom-field-wrapper .ppom-checkbox-field .ppom_price_label,
.ppom-field-wrapper .ppom_checkbox_group .ppom_price_label {
    margin-left: auto !important;
    font-weight: 600 !important;
    color: #7EC46A !important;
    white-space: nowrap !important;
}

/* PPOM tablycya cin — tilky "Razom" */
.ppom-field-wrapper table.ppom-price-table {
    border: none !important;
    margin-top: 0.75rem !important;
    font-size: 0.9375rem !important;
}

.ppom-field-wrapper table.ppom-price-table tr {
    display: none !important;
    /* Hide Optional Total, Product Price */
}

.ppom-field-wrapper table.ppom-price-table tr.ppom-total {
    display: table-row !important;
}

.ppom-field-wrapper table.ppom-price-table tr.ppom-total th {
    font-size: 0 !important;
}

.ppom-field-wrapper table.ppom-price-table tr.ppom-total th::before {
    content: "Разом" !important;
    font-size: 0.9375rem !important;
    color: #1d231b !important;
}

.ppom-field-wrapper table.ppom-price-table tr.ppom-total td {
    font-weight: 700 !important;
    color: #1d231b !important;
    padding: 0.5rem 0 !important;
    border-top: 1.5px solid rgba(0, 0, 0, 0.08) !important;
}

/* Animaciyi chekboksu */
@keyframes wjCheckPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wjCheckTick {
    0% {
        opacity: 0;
        transform: translate(-50%, -55%) rotate(45deg) scale(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -55%) rotate(45deg) scale(1);
    }
}


/* ================================================================
   QUANTITY BUTTONS (−/+)
   Kilkist zliva, "Dodaty v koshyk" sprava — v odyn ryadok
   ================================================================ */

.woocommerce-variation-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.wj-qty-btn {
    width: 2.75rem !important;
    height: 2.75rem !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
    color: #1d231b !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.wj-qty-minus {
    border-radius: 0.625rem 0 0 0.625rem !important;
    border-right: none !important;
}

.wj-qty-plus {
    border-radius: 0 0.625rem 0.625rem 0 !important;
    border-left: none !important;
}

.wj-qty-btn:hover {
    background: #f0f7ee !important;
    border-color: #7EC46A !important;
    color: #7EC46A !important;
}

.wj-qty-btn:active {
    transform: scale(0.92) !important;
}

.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 3rem !important;
    height: 2.75rem !important;
    padding: 0 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
}

.woocommerce-variation-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-variation-add-to-cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Kilkist + knopka v odnomu ryadku ODER 3 */
.cart-qty-button-row,
.woocommerce-variation-add-to-cart .quantity,
form.cart .quantity {
    /* If the theme doesn't wrap them, we just style them directly alongside the button */
}

/* Add an explicit order for the variations button container components */
.woocommerce-variation-add-to-cart>.quantity,
.woocommerce-variation-add-to-cart>button.single_add_to_cart_button,
.woocommerce-variation-add-to-cart>button[type="submit"] {
    order: 3 !important;
    margin-bottom: 0 !important;
}

/* Force quantity and button to be in one row */
.woocommerce-variation-add-to-cart>.quantity {
    flex: 0 0 auto !important;
    margin-right: 0.75rem !important;
}

.woocommerce-variation-add-to-cart>button.single_add_to_cart_button,
.woocommerce-variation-add-to-cart>button[type="submit"] {
    flex: 1 1 auto !important;
    width: auto !important;
    margin-top: 0 !important;
    height: 2.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1.5rem !important;
    min-width: 0 !important;
}

/* Prybraty variation-price (diapazon cin) */
.woocommerce div.product form.cart .woocommerce-variation-price {
    display: none !important;
}


/* ================================================================
   VIDEO IN GALLERY
   Miniatura z YouTube + ikona play + lightbox
   ================================================================ */

.wj-video-thumb {
    position: relative !important;
    cursor: pointer !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    transition: border-color 0.2s !important;
    width: 80px !important;
    height: 80px !important;
    display: inline-block !important;
}

.wj-video-thumb:hover {
    border-color: #7EC46A !important;
}

.wj-video-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.wj-video-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
}

.wj-video-play svg {
    width: 32px !important;
    height: 32px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.wj-video-thumb:hover .wj-video-play {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Video lightbox overlay */
.wj-video-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: wjFadeIn 0.25s ease !important;
}

.wj-video-wrap {
    position: relative !important;
    width: 90% !important;
    max-width: 800px !important;
    aspect-ratio: 16 / 9 !important;
}

.wj-video-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 1rem !important;
}

.wj-video-close {
    position: absolute !important;
    top: -2.5rem !important;
    right: 0 !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 2rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0.25rem !important;
    transition: opacity 0.2s !important;
}

.wj-video-close:hover {
    opacity: 0.7 !important;
}

@keyframes wjFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ================================================================
   HOVER EFFECTS — STORINTSA TOVARU
   ================================================================ */

/* Gallery image hover */
.woocommerce div.product div.images img {
    transition: transform 0.4s ease !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:hover img {
    transform: scale(1.03) !important;
}

/* Thumbnail hover pulse */
.woocommerce div.product div.images .flex-control-thumbs li {
    transition: border-color 0.2s, transform 0.2s !important;
}

.woocommerce div.product div.images .flex-control-thumbs li:hover {
    transform: scale(1.06) !important;
}

/* Add to cart button hover lift */
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
}

/* Meta links hover */
.woocommerce div.product .product_meta a {
    transition: color 0.2s ease !important;
}

/* Tab underline hover animation */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    position: relative !important;
    transition: color 0.2s, border-bottom-color 0.3s !important;
}


/* ================================================================
   VARIATIONS — VIDCENTRUVATY LABEL ROZMIR
   ================================================================ */

.woocommerce div.product form.variations_form .variations td.label {
    vertical-align: middle !important;
    padding-right: 1.5rem !important;
    width: auto !important;
}

.woocommerce div.product form.variations_form .variations td.label label {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    line-height: normal !important;
}

.woocommerce div.product form.variations_form .variations td.value {
    vertical-align: middle !important;
    padding: 0 !important;
}