/* Auto-split from woocommerce.css on 2026-07-16 for conditional per-page-type loading. */

/*
--------------------------------------------------------------------------------
SINGLE PRODUCT PAGE PREMIUM REFINEMENTS
--------------------------------------------------------------------------------
*/
:root { --v-woo-build: "20260522-v3"; }

.v-wc-wrapper {
    max-width: 1440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2rem 15px !important;
}

.single-product div.product {
    margin-bottom: 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3rem !important;
}

/* Noua clasa wrapper pentru coloanele principale (galerie + detalii) */
.v-product-main-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    align-items: start !important;
    width: 100% !important;
}

/* Stiluri de latime standard si responsive pentru galerie, prezervand exact comportamentul original */
.woocommerce-product-gallery {
    flex: 0 0 500px !important;
    max-width: 500px !important;
    width: 100% !important;
    position: relative !important;
}

/* Secure square aspect ratio for gallery viewports to eliminate main image loading height jumps (CLS) */
/* IMPORTANT: aplicăm DOAR pe .flex-viewport, NU pe .woocommerce-product-gallery__wrapper
   deoarece __wrapper este <ul>-ul FlexSlider căruia JS-ul îi setează width: N*100% (N = nr imagini).
   Dacă forțăm width:100% pe wrapper, FlexSlider nu mai poate face slide la imaginile 2,3,etc. */
.woocommerce-product-gallery .flex-viewport {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    background-color: #f8fafc !important; /* Premium soft gray skeleton background */
    position: relative !important;
    overflow: hidden !important;
}

/* Fiecare slide trebuie să umple viewport-ul; FlexSlider setează lățimea wrapper-ului la N*100%,
   deci fiecare <li> primește automat 100% / N lățime — imaginea trebuie să umple acel spațiu */
.woocommerce-product-gallery__image {
    height: 100% !important;
}
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

@media (min-width: 992px) {
    .woocommerce-product-gallery {
        position: sticky !important;
        top: 200px !important; /* Spatiu generos de 200px pentru a sta complet sub orice sticky header */
        z-index: 99 !important;
        align-self: start !important;
        height: fit-content !important;
    }
}

@media (max-width: 991px) {
    .v-product-main-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .woocommerce-product-gallery {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    .woocommerce-product-gallery img {
        max-width: 100% !important;
        height: auto !important;
    }
}




.summary.entry-summary {
    flex: 1 !important;
    min-width: 300px !important;
    font-size: 1.0625rem !important;
    line-height: 1.6 !important;
}

/* Star Rating Yellow */
.star-rating {
    color: #ffc107 !important;
    font-size: 0.875rem !important;
}

.star-rating::before {
    color: #e0e0e0 !important;
}

/* Hidden text inside star-rating span inherits yellow (#ffc107 on white = 1.6:1 fail).
   The text is visually clipped by padding+overflow; set it dark for contrast compliance.
   The ::before (filled stars) gets explicit yellow so it's not affected by the text override. */
.star-rating span {
    color: #1e293b !important;
}

.star-rating span::before {
    color: #ffc107 !important;
}

/* Stabilize the WooCommerce rating wrapper to completely eliminate Cumulative Layout Shift (CLS) */
.woocommerce-product-rating {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 24px !important;
    /* NB: NO fixed height & NO overflow:hidden — ele tăiau numărul de recenzii */
    margin: 0.5rem 0 1.5rem 0 !important;
}

/* Override lățimea 100% din contextul cardurilor — în summary-ul produsului, wrapper-ul trebuie să se micșoreze la conținut */
.woocommerce-product-rating .v-rating-wrapper {
    width: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
}

.woocommerce-product-rating .star-rating {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Ascunde link-ul de recenzii al WC — noi afișăm numărul în .v-review-count */
.woocommerce-product-rating .woocommerce-review-link {
    display: none !important;
}

/* Prevent Chrome from flagging the invisible, dynamic Zoom plugin image as LCP candidate on desktop */
.zoomImg {
    display: none !important; /* Completely excludes this high-res overlay from LCP calculations */
    pointer-events: none !important;
}
.woocommerce-product-gallery__image:hover .zoomImg {
    display: block !important;
}

/* Manual Gallery Arrows Styles */
.v-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--v-color-primary);
    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.woocommerce-product-gallery:hover .v-gallery-arrow {
    opacity: 1;
}

.v-gallery-arrow:hover {
    background: var(--v-color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.v-gallery-arrow.v-prev {
    left: 15px;
}

.v-gallery-arrow.v-next {
    right: 15px;
}

/* Zoom Trigger (lupa) — ascuns: înlocuit de lightbox-ul custom care se deschide la click pe imagine */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Thumbnail Navigation */
.v-thumb-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.v-thumb-arrow {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--v-color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.v-thumb-arrow:hover {
    background: var(--v-color-primary);
    color: white;
}

.flex-control-thumbs {
    flex: 1;
}

/* Photoswipe (Lightbox) Navigation */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    margin: 0 10px !important;
}

/* Gallery Navigation Arrows (Flexslider) */
.woocommerce-product-gallery .flex-direction-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-product-gallery .flex-direction-nav a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 101 !important;
    width: 44px !important;
    height: 44px !important;
    background: white !important;
    color: var(--v-color-primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    text-indent: 0 !important;
    /* Reset WC defaults */
}

.woocommerce-product-gallery .flex-direction-nav a::before {
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev {
    left: 15px !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next {
    right: 15px !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
    content: "‹" !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next::before {
    content: "›" !important;
}

.woocommerce-product-gallery .flex-direction-nav a:hover {
    background: var(--v-color-primary) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Photoswipe (Lightbox) Navigation */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    margin: 0 10px !important;
}

/* Gallery Thumbnails Slider */
.flex-control-thumbs {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    padding: 10px 2px !important;
    list-style: none !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.flex-control-thumbs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.flex-control-thumbs::-webkit-scrollbar-thumb {
    background: var(--v-color-primary);
    border-radius: 10px;
}

.flex-control-thumbs li {
    flex: 0 0 80px !important;
    height: 80px !important;
    cursor: pointer;
}

.flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
    border-color: var(--v-color-primary) !important;
    opacity: 1 !important;
    transform: translateY(-2px);
}

/* Swatches UI */
.variations .label {
    display: none !important;
}

.v-attribute-selector-wrapper select {
    display: none !important;
}

.v-swatches-header {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--v-color-black);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}

.v-selected-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--v-color-primary);
    padding: 4px 0;
    margin-top: 4px;
    font-size: 0.9375rem;
}

.v-selected-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid var(--v-color-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    forced-color-adjust: exact;
}

.v-selected-text {
    white-space: nowrap;
}

.v-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.v-swatch {
    cursor: pointer;
    border: 2px solid var(--v-color-border);
    transition: all 0.2s ease;
    background: white;
    border-radius: 4px;
}

.v-swatch:hover {
    border-color: var(--v-color-primary);
}

.v-swatch.selected {
    border-color: var(--v-color-primary);
    box-shadow: 0 0 0 1px var(--v-color-primary);
}

.v-swatch-color {
    width: 38px;
    height: 38px;
    forced-color-adjust: exact;
}

.v-swatch-box {
    padding: 8px 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
}

.v-swatch-box svg {
    width: 16px;
    height: 16px;
    color: var(--v-color-primary);
    opacity: 0.9;
    flex-shrink: 0;
}

/* Add to Cart */
.single-product form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin: 0.5rem 0 !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .single-product form.cart:not(.variations_form) {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    
    .single-product form.cart:not(.variations_form) > *:not(.quantity):not(.single_add_to_cart_button):not(input[type="hidden"]) {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

.single-product .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .single-product .woocommerce-variation-add-to-cart {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    
    .single-product .woocommerce-variation-add-to-cart > *:not(.quantity):not(.single_add_to_cart_button):not(input[type="hidden"]) {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

.added_to_cart {
    display: none !important;
}

.quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--v-color-bg-light);
    border: 1px solid var(--v-color-border);
    border-radius: var(--v-radius-md);
    padding: 2px;
    height: 62px !important;
    min-width: 140px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

@media (max-width: 768px) {
    .quantity {
        flex: 0 0 auto !important;
        min-width: 148px !important;
        width: 148px !important;
        height: 54px !important;
    }
}

.quantity .qty {
    width: 50px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    color: var(--v-color-black) !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.v-qty-btn {
    width: 44px;
    min-height: 44px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--v-color-black);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.v-qty-btn:hover {
    background: rgba(var(--v-color-primary-rgb), 0.05);
    color: var(--v-color-primary);
}

.single_add_to_cart_button {
    background-color: var(--v-color-primary) !important;
    color: white !important;
    height: 62px !important;
    padding: 0 2rem !important;
    border-radius: var(--v-radius-md) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex: 1 !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        height: 54px !important;
        padding: 0 10px !important;
        font-size: 1rem !important;
    }
}

.single_add_to_cart_button:hover {
    background-color: var(--v-color-primary-hover) !important;
    box-shadow: 0 8px 20px rgba(var(--v-color-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.single_add_to_cart_button:active {
    transform: translateY(0);
}

.single_add_to_cart_button::before {
    content: "";
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

/* Keep variation wrap always visible — WooCommerce handles button disabled/enabled via classes */
.single_variation_wrap {
    display: block !important;
}

/* Variation Price Display */
.woocommerce-variation {
    background: #fdfdfd;
    padding: 0.5rem 0.75rem;
    border-radius: var(--v-radius-md);
    margin: 0.5rem 0 !important;
    border: 1px solid var(--v-color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
    width: 100% !important;
    /* Reserve space on this always-visible wrapper (not the inner price box that
       WooCommerce shows/hides) so a pre-selected default variation revealing its
       price right after first paint doesn't shift the page (~0.32 CLS). Adjust
       if the real price box ends up taller/shorter once live. */
    min-height: 96px;
    box-sizing: border-box;
}

/* Remove any inner dashed borders from variation price display */
.woocommerce-variation>div,
.woocommerce-variation .price {
    border: none !important;
    outline: none !important;
}

.woocommerce-variation-price {
    margin-top: 10px;
}

.woocommerce-variation-price .price {
    font-size: 1.75rem !important;
    color: var(--v-color-primary) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.reset_variations {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--v-color-text-muted);
    text-decoration: none;
    padding: 2px 10px;
    border: 1px solid var(--v-color-border);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.reset_variations:hover {
    background: var(--v-color-border);
    color: var(--v-color-black);
}

.woocommerce-variation .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v-color-primary);
}

.woocommerce-variation-price .price::before {
    content: "Prețul pentru produsul selectat este:";
    display: block !important;
    font-size: 0.75rem !important;
    color: var(--v-color-text-muted) !important;
    margin-bottom: 0.25rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.woocommerce-variation-price .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: #f8f9fa;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    border: 1px dashed var(--v-color-primary);
}

.quantity input {
    height: 54px !important;
    border: 1px solid var(--v-color-border) !important;
    border-radius: 4px !important;
    padding: 0 15px !important;
    margin-right: 15px !important;
    width: 80px !important;
}

/* Sticky Sections Nav */
.v-stacked-nav {
    position: sticky;
    top: 180px;
    /* Offset to sit below the new taller header */
    z-index: 99;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid var(--v-color-primary);
    padding: 0.75rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.v-stacked-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.v-stacked-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
}

.v-stacked-nav ul li {
    display: flex;
    align-items: center;
}

.v-stacked-nav ul li:not(:last-child)::after {
    content: "";
    height: 16px;
    width: 1px;
    background-color: var(--v-color-border);
    margin: 0 2rem;
}

.v-stacked-nav a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--v-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    border-radius: 30px; /* Elegant, premium pill-shaped corner radius */
    position: relative;
    transition: all 0.2s ease;
}

.v-stacked-nav a:hover {
    color: var(--v-color-primary);
    background: rgba(0, 96, 223, 0.05);
}

.v-stacked-nav a.active {
    color: white;
    background: var(--v-color-primary);
    box-shadow: 0 2px 8px rgba(0, 96, 223, 0.3);
}

.v-product-section {
    margin-bottom: 4rem;
    scroll-margin-top: 260px;
    line-height: 1.6;
    color: #374151;
}

.v-section-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--v-color-primary);
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* WP Content Formatting for Description */
.v-product-section p {
    margin-bottom: 1.25rem;
}

.v-product-section ul,
.v-product-section ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.v-product-section li {
    margin-bottom: 0.5rem;
}

.v-product-section h2,
.v-product-section h3,
.v-product-section h4 {
    color: var(--v-color-black);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.v-product-section img {
    border-radius: 12px;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

.v-product-section blockquote {
    border-left: 4px solid var(--v-color-primary);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

/* Related Products (Matching Archive) */

/* Related Products (Matching Archive) */
.related.products {
    border-top: 1px solid var(--v-color-border);
    padding-top: 5rem;
    margin-top: 5rem;
}

.related.products h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

/* Unified Product Cards — Archive & Related */
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    border: 1px solid var(--v-color-border) !important;
    border-radius: var(--v-radius-lg) !important;
    padding: 12px 10px 0 10px !important;
    text-align: center !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    overflow: hidden !important;
}

ul.products li.product .v-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    gap: 0.5rem !important;
    text-align: center !important;
    align-items: center !important;
    width: 100% !important;
}

ul.products li.product:hover {
    border-color: var(--v-color-primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

ul.products li.product img {
    margin-bottom: 0.5rem !important;
    flex-shrink: 0;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    background-color: #f8fafc !important; /* Soft gray skeleton placeholder to prevent CLS */
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .product-title {
    margin-bottom: 0.1rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    min-height: 4.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    width: 100%;
    color: var(--v-color-black);
}

.v-title-highlight {
    color: var(--v-color-primary);
}

/* Archive Product Grid */
.woocommerce:not(.single-product) ul.products,
.woocommerce-page:not(.single-product) ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

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

/* Sorting Dropdown Styling */
.woocommerce-ordering {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    background-color: white !important;
    border: 1px solid var(--v-color-border) !important;
    border-radius: 8px !important;
    padding: 10px 40px 10px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--v-color-black) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    min-width: 160px;
    outline: none !important;
}

.woocommerce-ordering select:hover {
    border-color: var(--v-color-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.woocommerce-ordering select:focus {
    border-color: var(--v-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--v-color-primary-rgb), 0.1);
}

/* Align Filter Trigger and Sorting on ONE LINE */
.woocommerce-before-shop-loop {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    /* Force single line */
    gap: 10px !important;
    margin-bottom: 2rem !important;
    background: #f8fafc !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    border: 1px solid var(--v-color-border) !important;
}

.woocommerce-before-shop-loop::before,
.woocommerce-before-shop-loop::after {
    content: none !important;
    display: none !important;
}

.woocommerce-result-count {
    margin: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--v-color-text-muted) !important;
    white-space: nowrap !important;
}

.v-filter-trigger {
    background: white !important;
    color: var(--v-color-black) !important;
    border: 1px solid var(--v-color-border) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.v-filter-trigger:hover {
    border-color: var(--v-color-primary) !important;
    color: var(--v-color-primary) !important;
    background: #f0f7ff !important;
}

.v-filter-trigger svg {
    width: 18px;
    height: 18px;
}

ul.products>*:not(li.product) {
    display: none !important;
}

/* Color Swatches in Product Cards (Archive & Related) */
.v-color-swatches-wrapper {
    min-height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.25rem 0;
}

ul.products li.product .v-color-swatches {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

ul.products li.product .v-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid var(--v-color-border);
    cursor: pointer;
    transition: all 0.2s ease;
    forced-color-adjust: exact;
}

ul.products li.product .v-color-swatch:hover {
    border-color: var(--v-color-primary);
    transform: scale(1.1);
}

ul.products li.product .v-color-more {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid var(--v-color-border);
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

ul.products li.product .v-color-more:hover {
    background: var(--v-color-primary);
    color: white;
    border-color: var(--v-color-primary);
}

/* Rating and Reviews in Product Cards */
.v-rating-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 0.25rem !important;
    min-height: 1.25rem !important;
    width: 100% !important;
}

ul.products li.product .star-rating {
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
    float: none !important;
}

.v-review-count {
    font-size: 0.75rem !important;
    color: var(--v-color-text-muted) !important;
    vertical-align: middle !important;
    display: inline-block !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

ul.products li.product .price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--v-color-primary) !important;
    margin-top: auto !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Ensure WooCommerce price amounts meet contrast on all page types.
   --v-color-primary (#0061f2) gives 4.88:1 on white — passes WCAG AA. */
.woocommerce-Price-amount.amount,
.woocommerce-Price-currencySymbol {
    color: var(--v-color-primary, #0061f2) !important;
}

ul.products li.product .price del {
    color: #b91c1c !important;
    font-size: 0.8125rem !important;
    margin-right: 8px !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
    display: inline-block !important;
}

ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--v-color-primary) !important;
    font-weight: 800 !important;
}

ul.products li.product .price ins .woocommerce-Price-amount {
    text-decoration: none !important;
}

ul.products li.product .price * {
    text-decoration: none !important;
}

ul.products li.product .button {
    margin-top: auto !important;
    background-color: var(--v-color-primary) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: block !important;
}

ul.products li.product .button:hover {
    background-color: var(--v-color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Comments & Reviews Section */
.v-meta-section,
.v-product-section:has(.woocommerce-reviews) {
    background: white;
}

/* Reviews Form */
#review_form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--v-color-border);
    margin: 2rem 0;
}

#review_form h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Comment Form Styling */
#respond textarea {
    border: 1px solid var(--v-color-border) !important;
    border-radius: 4px !important;
    padding: 12px 15px !important;
    font-family: inherit !important;
    min-height: 120px;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
    border: 1px solid var(--v-color-border) !important;
    border-radius: 4px !important;
    padding: 12px 15px !important;
    width: 100% !important;
    height: 44px;
}

#respond .comment-form-rating label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#respond .woocommerce-form__label-for-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#respond .comment-form-rating .stars {
    display: flex;
    gap: 0.5rem;
}

#respond .comment-form-rating .stars a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 1.25rem;
    text-decoration: none;
    border: 2px solid var(--v-color-border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

#respond .comment-form-rating .stars a:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

#respond #submit {
    background-color: var(--v-color-primary) !important;
    color: white !important;
    border: none !important;
    padding: 12px 32px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
}

#respond #submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Comments List */
.woocommerce-Reviews {
    margin-top: 3rem;
}

.woocommerce-Reviews h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Reviews / Comments List */
ol.commentlist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0;
    margin: 2rem 0;
    list-style: none;
}

@media (max-width: 768px) {
    ol.commentlist {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

ol.commentlist li.comment {
    background: white;
    border: 1px solid var(--v-color-border);
    border-radius: var(--v-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

ol.commentlist li.comment:hover {
    border-color: var(--v-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.comment-text {
    background: transparent;
    padding: 0;
    margin: 1rem 0 0 0;
    border: none;
}

.comment-text p {
    color: var(--v-color-text);
    line-height: 1.6;
    margin: 0;
}

.comment-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--v-color-black);
    margin-bottom: 0.5rem;
}

.comment-author cite {
    font-style: normal;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--v-color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.star-rating {
    margin: 0;
}

.verified {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

/* Review Pagination */
.woocommerce-pagination {
    margin-top: 3rem;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex !important;
    border: none !important;
    gap: 8px;
}

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

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: white;
    border: 1px solid var(--v-color-border);
    color: var(--v-color-black);
    font-weight: 600;
    transition: all 0.2s ease;
}

.woocommerce-pagination ul li span.current {
    background: var(--v-color-primary) !important;
    color: white !important;
    border-color: var(--v-color-primary) !important;
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--v-color-primary);
    color: var(--v-color-primary);
    background: rgba(var(--v-color-primary-rgb), 0.05);
}

@media (max-width: 1200px) {

    .related.products ul.products,
    .woocommerce:not(.single-product) ul.products,
    .woocommerce-page:not(.single-product) ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {

    .related.products ul.products,
    .woocommerce:not(.single-product) ul.products,
    .woocommerce-page:not(.single-product) ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {

    .related.products ul.products,
    .woocommerce:not(.single-product) ul.products,
    .woocommerce-page:not(.single-product) ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 8px !important;
        padding: 0 5px !important;
    }
}

/**
 * Product Information Tabs
 */
.woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 3rem !important;
    border-bottom: 1px solid var(--v-color-border) !important;
    padding: 0 !important;
    margin: 4rem 0 2rem 0 !important;
    list-style: none !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
    content: none !important;
}

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 1rem 0 !important;
    font-family: var(--v-font-heading) !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    color: var(--v-color-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--v-color-primary) !important;
}

.woocommerce-tabs ul.tabs li.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: var(--v-color-primary) !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 2rem 0 !important;
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
    color: var(--v-color-text) !important;
}

/* Global Force for Flush Buttons in Product Cards */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
ul.products li.product .button {
    margin: 10px -10px 0 -10px !important;
    width: calc(100% + 20px) !important;
    border-radius: 0 0 12px 12px !important;
    padding: 15px 5px !important;
    display: block !important;
    margin-bottom: 0 !important;
}


/* Force hide any invisible text or elements after the button */
ul.products li.product .button~* {
    display: none !important;
}

/* Hide variation info text that might be injected */
.woocommerce-loop-product__info,
.v-variation-info {
    display: none !important;
}


/* Ensure the button is always at the very bottom of the flex card */
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

ul.products li.product>* {
    order: 2 !important;
}

ul.products li.product .woocommerce-loop-product__link,
ul.products li.product a:first-child {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
}

ul.products li.product .button {
    order: 10 !important;
    margin-bottom: 0 !important;
}


/* Nuclear Fix for Card Bottom Space: Remove all card padding and use child padding */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Add internal padding to content elements only */
ul.products li.product>a:first-child,
ul.products li.product .v-rating-wrapper,
ul.products li.product .v-color-swatches-wrapper,
ul.products li.product .price,
ul.products li.product .v-product-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

ul.products li.product>a:first-child,
ul.products li.product .v-product-content:first-child {
    padding-top: 12px !important;
}

/* Button now fills the bottom perfectly */
ul.products li.product .button {
    margin: 10px 0 0 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    /* Button will be clipped by cards overflow:hidden */
    padding: 15px 5px !important;
}


/* Final Stability Fix for Card Footer Alignment */
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

ul.products li.product .v-product-content {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Move margin-top:auto to the content container to push the button down */
ul.products li.product .v-product-content {
    margin-bottom: 0 !important;
}

ul.products li.product .button {
    margin-top: auto !important;
    /* Ensure it is always at the bottom */
    margin-bottom: -1px !important;
    /* Slight overlap to prevent sub-pixel gaps */
}

/* Remove any potential pseudo-element clearing that adds height */
ul.products li.product::after {
    content: none !important;
    display: none !important;
}


/* BULLETPROOF ABSOLUTE POSITIONING FOR BUTTONS */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    position: relative !important;
    padding-bottom: 65px !important;
    /* Fixed space for the button */
    display: flex !important;
    flex-direction: column !important;
}

ul.products li.product .button {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 0 12px 12px !important;
    z-index: 5 !important;
}

/* Ensure nothing else sits below the button */
ul.products li.product::after {
    display: none !important;
}


/* Final Force: Shop Toolbar Container Flex */
.v-shop-toolbar-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    background: #f8fafc !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    border: 1px solid var(--v-color-border) !important;
    margin-bottom: 2rem !important;
    gap: 15px !important;
}

/* Remove the individual styling from children if they have it */
.v-shop-toolbar-container .woocommerce-before-shop-loop {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.v-shop-toolbar-container .woocommerce-ordering {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .v-shop-toolbar-container {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .v-shop-toolbar-container .woocommerce-result-count {
        display: none !important;
        /* Hide results count on mobile to save space */
    }
}


/* Mobile Specific Compact Toolbar */
@media (max-width: 480px) {
    .v-shop-toolbar-container {
        padding: 6px 10px !important;
        gap: 5px !important;
    }

    .v-filter-trigger {
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
    }

    .v-filter-trigger span {
        display: none !important;
        /* Hide text if needed, but we can try just smaller */
    }

    .woocommerce-ordering select {
        min-width: 130px !important;
        padding: 8px 25px 8px 10px !important;
        font-size: 0.7rem !important;
    }
}


/* Re-order and Vertical Alignment Fix for Toolbar */
.v-shop-toolbar-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Order: 1. Filter, 2. Count, 3. Sort */
.v-filter-trigger {
    order: 1 !important;
}

.woocommerce-result-count {
    order: 2 !important;
    flex-grow: 1 !important;
    text-align: center !important;
}

.woocommerce-ordering {
    order: 3 !important;
}

/* Vertical Alignment Polish */
.v-shop-toolbar-container>* {
    height: 42px !important;
    /* Uniform height for all 3 components */
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.v-filter-trigger svg {
    margin-top: -1px;
    /* Micro-adjustment for icon */
}

@media (max-width: 768px) {
    .woocommerce-result-count {
        display: none !important;
        /* Keep only Filter and Sort on mobile */
    }
}


/* Responsive Toolbar Cleanup */
@media (max-width: 768px) {
    .v-hide-mobile {
        display: none !important;
    }

    .v-filter-trigger {
        padding: 8px 10px !important;
    }

    .woocommerce-ordering select {
        max-width: 140px !important;
        /* Prevent overflow */
        min-width: 0 !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 400px) {
    .v-shop-toolbar-container {
        padding: 6px 8px !important;
        gap: 5px !important;
    }

    .woocommerce-ordering select {
        max-width: 120px !important;
        font-size: 0.65rem !important;
    }

    .v-filter-trigger {
        font-size: 0.65rem !important;
    }
}


/* Final Pixel-Perfect Height Match */
.v-filter-trigger,
.woocommerce-ordering select {
    height: 38px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
}

.v-filter-trigger {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.woocommerce-ordering select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle !important;
}


/* Left-aligned Mobile Toolbar */
@media (max-width: 768px) {
    .v-shop-toolbar-container {
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .v-filter-trigger,
    .woocommerce-ordering {
        flex: 0 0 auto !important;
    }
}

/* 
--------------------------------------------------------------------------------
ESTIMATED DELIVERY STYLING
--------------------------------------------------------------------------------
*/

.v-delivery-estimate-wrapper {
    margin: 1.5rem 0;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.v-delivery-estimate-wrapper:hover {
    border-color: var(--v-color-primary);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 96, 223, 0.08);
    transform: translateY(-1px);
}

.v-delivery-estimate-wrapper::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230060df' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* Plugin class selectors */
.edw-estimated-delivery,
.edw-estimated-delivery *,
.edw_date,
.edw_date * {
    white-space: nowrap !important;
    display: inline !important;
}

.edw-estimated-delivery,
.edw_date {
    margin: 0 !important;
    font-size: 0.92rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    font-family: var(--v-font-body), sans-serif !important;
}

.edw-date {
    color: var(--v-color-primary) !important;
    font-weight: 700 !important;
    padding: 0 4px;
}

/* Mobile Specific Optimizations */
@media (max-width: 768px) {
    .v-delivery-estimate-wrapper {
        display: inline-flex !important;
        margin: 1rem 0;
        padding: 8px 12px;
        border-radius: 10px;
        gap: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .edw-estimated-delivery,
    .edw_date {
        font-size: 0.86rem !important;
        white-space: nowrap !important;
    }

    .v-delivery-estimate-wrapper::before {
        width: 16px;
        height: 16px;
    }
}

/* For cart and checkout integration if the plugin displays there */
.cart-collaterals .edw-estimated-delivery,
.woocommerce-checkout-review-order-table .edw-estimated-delivery {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-top: 5px !important;
    font-size: 0.8125rem !important;
    display: inline-block;
}

/* 
--------------------------------------------------------------------------------
PRODUCT BADGES ROW (DELIVERY + CALCULATOR)
--------------------------------------------------------------------------------
*/

.v-product-badges-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0 2rem 0;
    flex-wrap: wrap;
}

.v-product-badges-row .v-delivery-estimate-wrapper,
.v-product-badges-row .v-calc-trigger-wrapper {
    margin: 0 !important;
}

/* Calculator Trigger Button Styling */
.v-calc-modal-trigger {
    background-color: #333 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.5px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.v-calc-modal-trigger:hover {
    background-color: var(--v-color-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.v-calc-modal-trigger svg {
    margin-right: 0 !important;
    /* Reset inline style margin if needed */
}

/* Mobile Alignment & Centering */
@media (max-width: 768px) {
    .v-product-badges-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .v-calc-trigger-wrapper,
    .v-delivery-estimate-wrapper {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .v-calc-modal-trigger {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}

/* 
--------------------------------------------------------------------------------
MOBILE PRODUCT ACCORDIONS
--------------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    html,
    body {
        overflow-x: clip !important;
        position: relative;
    }

    /* Nav uses position:sticky — stays in normal flow, browser handles sticking, zero CLS.
       --v-header-h is set by JS once at load to the actual header height. */
    .v-stacked-nav {
        display: block !important;
        position: sticky !important;
        top: var(--v-header-h, 70px) !important;
        margin: 0 !important;
        z-index: 9998 !important;
        background: #ffffff !important;
        border-top: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 10px 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .v-stacked-nav::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for Chrome/Safari/Opera */
    }

    .v-stacked-nav ul {
        display: flex !important;
        justify-content: flex-start !important;
        padding: 0 16px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }

    .v-stacked-nav ul li {
        flex: 0 0 auto !important;
    }

    .v-stacked-nav ul li:not(:last-child)::after {
        display: none !important;
    }

    .v-stacked-nav a {
        font-size: 0.825rem !important;
        font-weight: 700 !important;
        color: #475569 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 8px 16px !important;
        border-radius: 30px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        transition: all 0.2s ease !important;
    }

    .v-stacked-nav a.active {
        color: #ffffff !important;
        background: var(--v-color-primary, #1434cb) !important;
        border-color: var(--v-color-primary, #1434cb) !important;
        box-shadow: 0 4px 10px rgba(20, 52, 203, 0.2) !important;
    }

    .v-stacked-info-wrapper {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        clear: both !important;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        box-sizing: border-box !important;
        overflow: visible !important; /* required — position:sticky breaks if any ancestor has overflow:hidden */
    }

    /* Prevent any internal element from pushing width - exclude the sticky nav */
    .v-stacked-sections * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .v-product-section {
        margin-bottom: 16px !important;
        border: 1px solid #cbd5e1 !important; /* Soft, clean gray borders instead of active blue */
        border-radius: 12px !important; /* Soft, elegant rounded corners */
        background: #ffffff !important;
        overflow: visible !important;
        scroll-margin-top: 130px !important; /* Safe offset under sticky header and nav */
        width: 100% !important;
    }

    .v-section-title {
        font-family: var(--v-font-heading) !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        padding: 18px 20px !important;
        background: #f8fafc !important; /* Soft gray default header background */
        border-bottom: 1px solid #cbd5e1 !important; /* Beautiful separator */
        border-radius: 12px 12px 0 0 !important;
        color: var(--v-color-black) !important;
        letter-spacing: -0.2px;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .v-section-title::after {
        display: none !important; /* Hide accordion arrow since it is not collapsible anymore */
    }

    .v-section-content {
        display: block !important; /* Ensure content is always visible */
        padding: 24px 20px !important;
        font-size: 0.9375rem !important;
        line-height: 1.7 !important;
        background: #ffffff !important; /* clean white card content background */
        color: #4b5563 !important;
        width: 100% !important;
        border-radius: 0 0 12px 12px !important;
    }

    .v-section-content img {
        border-radius: 12px;
        margin: 1.25rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        max-width: 100%;
        height: auto;
    }

    .v-section-content p,
    .v-section-content div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100% !important;
    }

    .v-section-content table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablet Nav Polish - only between 769px and 1200px, NOT on mobile */
@media (min-width: 769px) and (max-width: 1200px) {
    .v-stacked-nav {
        top: 140px !important;
        padding: 0.5rem 0 !important;
    }

    .v-stacked-nav ul {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0 1rem !important;
    }

    .v-stacked-nav ul li:not(:last-child)::after {
        display: none !important;
        /* Hide dividers to save space */
    }

    .v-stacked-nav a {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
}


/* Contrast fixes */
span.onsale {
    background-color: #b91c1c !important;
    color: #ffffff !important;
}

/* Disabled add-to-cart (variation not yet selected) — still focusable so contrast applies */
.single_add_to_cart_button.disabled {
    background-color: #374151 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Fix "unsized image element" CLS warning on the 50x50 bundle-offer/cross-sell
   thumbnails: style.css's global `img { height: auto }` reset leaves the
   browser unable to reserve space before load despite the width/height HTML
   attributes being correct. Pin the aspect ratio explicitly. */
.v-bundle-offer-thumb img,
.v-cross-sell-thumb img {
    width: 50px !important;
    height: 50px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
}

/* Safety net for product-description "critical warning" boxes: editors sometimes
   use a light pink background (rgb(255,204,204)) with reddish text, which fails
   contrast. Force a dark, accessible red regardless of what color was typed in
   the editor. Unscoped (no ancestor class) — these boxes turn up in the short
   description too (.woocommerce-product-details__short-description), not just
   the description tab / entry-content, so scoping by ancestor was missing them. */
p[style*="255, 204, 204"],
p[style*="255,204,204"],
p[style*="ffcccc"] {
    color: #7a0000 !important;
}
p[style*="255, 204, 204"] strong,
p[style*="255,204,204"] strong,
p[style*="ffcccc"] strong {
    color: #5c0000 !important;
}
