/* ==================================================
   SINGLE PRODUCT PAGE - KARISHMAA CARE FOUNDATION
   ================================================== */

:root {
    --kcf-pink: #2aa6f6;
    --kcf-pink-light: #59c3f9;
    --kcf-pink-lighter: rgba(42, 166, 246, 0.12);
    --kcf-purple: #a6f6b7;
    --kcf-gradient: linear-gradient(135deg, #2aa6f6, #a6f6b7);
    --kcf-font: 'Poppins', sans-serif;
    --kcf-text: #333;
    --kcf-text-light: #777;
    --kcf-gray-100: #f8f7fa;
    --kcf-gray-200: #eeecf1;
    --kcf-gray-300: #ddd;
    --kcf-gray-800: #333;
    --kcf-radius: 16px;
    --kcf-shadow: 0 8px 32px rgba(42, 166, 246, 0.08);
}

/* ============ CONTENT WRAPPER ============ */

/* Override WordPress's constrained layout (default 800px content-size) */
.single-product {
    --wp--style--global--content-size: 1280px;
    --wp--style--global--wide-size: 1280px;
}

.single-product .woocommerce-notices-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.single-product #primary {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.single-product .site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 0;
}

/* ============ BREADCRUMB ============ */

.single-product .woocommerce-breadcrumb {
    font-family: var(--kcf-font);
    font-size: 13px;
    color: var(--kcf-text-light);
    padding: 16px 0 20px;
    margin-bottom: 0;
}

.single-product .woocommerce-breadcrumb a {
    color: var(--kcf-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: var(--kcf-purple);
}

/* ============ PRODUCT LAYOUT (Image + Summary) ============ */

.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    font-family: var(--kcf-font);
    position: relative; /* anchor absolute sale badge safely */
}

/* ============ PRODUCT GALLERY ============ */

.single-product .woocommerce-product-gallery {
    background: transparent;
    border-radius: 0;
    /* Contain internal floats from Woo/Flexslider so content doesn't overlap */
    display: flow-root;
    overflow: visible;
    box-shadow: none;
    border: none;
    position: static;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    /* Critical to prevent CSS Grid blowing out with flexslider */
    float: none !important;
}

/* Sticky gallery only on true desktop */
@media (min-width: 1025px) {
    .single-product .woocommerce-product-gallery {
        position: sticky;
        top: 100px;
    }
}

/* Defensive: ensure inner gallery children stay in normal flow */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    float: none !important;
    position: relative !important;
    display: block;
}

/* Ensure the main image track is its own cleanly rounded floating card */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport {
    border-radius: var(--kcf-radius) !important;
    box-shadow: var(--kcf-shadow);
    background: #fff;
    border: 1px solid rgba(42, 166, 246, 0.06);
    /* Ensures wrapper reserves height + clips to rounded corners */
    overflow: hidden;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper::after,
.single-product .woocommerce-product-gallery .flex-viewport::after {
    content: '';
    display: block;
    clear: both;
}

.single-product .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 24px !important;
    /* Perfect spacer between main image and thumbnails */
}

/* Fallback if no thumbnails (flex-viewport isn't generated) */
.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
    margin-bottom: 24px !important;
}

/* Removed wrapper and image widths as they break Flexslider's inline width calculation */

.single-product .woocommerce-product-gallery .wp-post-image {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: var(--kcf-radius);
}

.single-product .woocommerce-product-gallery:hover .wp-post-image {
    transform: scale(1.03);
}

/* Enhanced Gallery thumbnails */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 16px;
    padding: 6px 4px;
    list-style: none;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 calc(25% - 12px);
    /* ensure consistent thumb sizes */
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.6;
    transform: translateY(0);
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
    opacity: 1;
    border-color: var(--kcf-pink);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(42, 166, 246, 0.25);
}

/* Photoswipe zoom icon */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 20px;
    right: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.3s;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    transform: scale(1.1);
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger span {
    font-size: 20px;
    filter: grayscale(100%) contrast(150%);
}

/* Sale badge */
.single-product .onsale {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--kcf-gradient) !important;
    color: #fff !important;
    font-family: var(--kcf-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 5;
    line-height: 1;
    min-width: auto;
    min-height: auto;
}

/* ============ PRODUCT SUMMARY ============ */

.single-product .summary.entry-summary {
    padding: 10px 0 0;
    width: 100% !important;
    float: none !important;
    position: relative;
    z-index: 1;
}

/* ---------- Title ---------- */

.single-product .product_title.entry-title {
    font-family: var(--kcf-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--kcf-gray-800);
    line-height: 1.3;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 18px;
}

.single-product .product_title.entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--kcf-gradient);
    border-radius: 4px;
}

/* ---------- Rating ---------- */

.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0;
}

.single-product .woocommerce-product-rating .star-rating {
    color: #ffc107;
    font-size: 15px;
}

.single-product .woocommerce-product-rating .woocommerce-review-link {
    font-family: var(--kcf-font);
    font-size: 13px;
    color: var(--kcf-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .woocommerce-product-rating .woocommerce-review-link:hover {
    color: var(--kcf-pink);
}

/* ---------- Price ---------- */

.single-product .summary p.price,
.single-product .summary span.price {
    font-family: var(--kcf-font) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--kcf-pink) !important;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1;
}

.single-product .summary p.price del,
.single-product .summary span.price del {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: var(--kcf-text-light) !important;
    text-decoration: line-through;
    opacity: 0.6;
}

.single-product .summary p.price ins,
.single-product .summary span.price ins {
    text-decoration: none;
    color: var(--kcf-pink) !important;
}

.single-product .woocommerce-Price-currencySymbol {
    font-weight: 700;
}

/* Discount Badge */
.kcf-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kcf-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-left: 6px;
    line-height: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 166, 246, 0.25);
    letter-spacing: 0.5px;
}

/* ---------- Short Description ---------- */

.single-product .woocommerce-product-details__short-description {
    font-family: var(--kcf-font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--kcf-text-light);
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--kcf-gray-100);
    border-radius: 12px;
    border-left: 4px solid var(--kcf-pink);
}

.single-product .woocommerce-product-details__short-description p {
    margin: 0;
}

/* ---------- Quantity + Add to Cart ---------- */

.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.single-product .quantity {
    display: flex;
    align-items: center;
    background: var(--kcf-gray-100);
    border: 2px solid var(--kcf-gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.single-product .quantity:focus-within {
    border-color: var(--kcf-pink-light);
}

.single-product .quantity .qty {
    width: 50px;
    height: 48px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--kcf-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--kcf-gray-800);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

/* Custom +/- buttons */
.single-product .kcf-qty-btn {
    width: 40px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--kcf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.single-product .kcf-qty-btn:hover {
    color: var(--kcf-pink);
    background: var(--kcf-pink-lighter);
}

/* Add-to-Cart Button & Quantity - Hidden for Catalog Mode */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart .button,
.single-product .quantity,
.woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

/* Ensure Variations wrapping logic still displays properly */
.single-product .woocommerce-variation-add-to-cart {
    display: flex !important;
    padding-top: 10px;
    align-items: center;
    justify-content: flex-start;
}

/* ============ PRODUCT META ============ */

.single-product .product_meta {
    font-family: var(--kcf-font);
    font-size: 13px;
    margin-bottom: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--kcf-gray-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-product .product_meta>span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kcf-text-light);
}

.single-product .product_meta .sku_wrapper .sku {
    background: var(--kcf-gray-100);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    color: var(--kcf-gray-800);
    font-family: 'Courier New', monospace;
}

.single-product .product_meta .posted_in a,
.single-product .product_meta .tagged_as a {
    display: inline-block;
    background: var(--kcf-pink-lighter);
    color: var(--kcf-pink);
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
}

.single-product .product_meta .posted_in a:hover,
.single-product .product_meta .tagged_as a:hover {
    background: var(--kcf-gradient);
    color: #fff;
}

/* ============ SOCIAL SHARE ============ */

.kcf-social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid var(--kcf-gray-200);
}

/* ============ QUICK ACTIONS (Copy/Share) ============ */

.kcf-product-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.kcf-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    /* Force neutral borders (override any global pink button styles) */
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.kcf-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    /* Brand-safe hover (no pink) */
    background: rgba(42, 166, 246, 0.06) !important;
}

.kcf-quick-action:focus,
.kcf-quick-action:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(42, 166, 246, 0.18), 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

.kcf-quick-action:active {
    transform: translateY(0);
    box-shadow: none !important;
    background: rgba(42, 166, 246, 0.10) !important;
}

.kcf-quick-action--whatsapp {
    border-color: rgba(226, 232, 240, 0.95) !important;
}

.kcf-quick-action--whatsapp i {
    color: #25D366;
}

.kcf-quick-action--facebook {
    border-color: rgba(226, 232, 240, 0.95) !important;
}

.kcf-quick-action--facebook i {
    color: #1877f2;
}

.kcf-quick-action--share i,
.kcf-quick-action--copy i {
    color: var(--kcf-pink);
}

/* ============ "MORE FROM SELLER" ============ */

.single-product .kcf-more-from-seller {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--kcf-gray-200);
}

.single-product .kcf-more-from-seller__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.single-product .kcf-more-from-seller__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--kcf-gray-800);
}

.single-product .kcf-more-from-seller__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    color: var(--kcf-pink);
}

.single-product .kcf-more-from-seller__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make "More from seller" cards match Related Products design */
.single-product .kcf-more-from-seller ul.products::before,
.single-product .kcf-more-from-seller ul.products::after,
.single-product .kcf-more-from-seller__grid::before,
.single-product .kcf-more-from-seller__grid::after {
    display: none !important;
    content: none !important;
}

.single-product .kcf-more-from-seller ul.products li.product,
.single-product .kcf-more-from-seller__grid li.product {
    background: #fff;
    border-radius: var(--kcf-radius);
    overflow: hidden;
    box-shadow: var(--kcf-shadow);
    border: 1px solid rgba(42, 166, 246, 0.06);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.single-product .kcf-more-from-seller ul.products li.product:hover,
.single-product .kcf-more-from-seller__grid li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(166, 246, 183, 0.15);
}

.single-product .kcf-more-from-seller ul.products li.product a.woocommerce-LoopProduct-link,
.single-product .kcf-more-from-seller__grid li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    overflow: hidden;
    color: inherit;
}

.single-product .kcf-more-from-seller ul.products li.product img,
.single-product .kcf-more-from-seller__grid li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
    display: block;
    margin: 0 !important;
}

.single-product .kcf-more-from-seller ul.products li.product:hover img,
.single-product .kcf-more-from-seller__grid li.product:hover img {
    transform: scale(1.05);
}

.single-product .kcf-more-from-seller ul.products li.product .woocommerce-loop-product__title,
.single-product .kcf-more-from-seller__grid li.product .woocommerce-loop-product__title {
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--kcf-gray-800);
    padding: 14px 16px 6px;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-product .kcf-more-from-seller ul.products li.product .price,
.single-product .kcf-more-from-seller__grid li.product .price {
    font-family: var(--kcf-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--kcf-pink) !important;
    padding: 0 16px 14px;
    display: block;
}

/* Sale badge consistency */
.single-product .kcf-more-from-seller ul.products li.product .onsale,
.single-product .kcf-more-from-seller__grid li.product .onsale {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: var(--kcf-gradient) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px;
    line-height: 1;
    min-height: auto !important;
    min-width: auto !important;
}

/* ============ MOBILE ACCORDION (Tabs) ============ */

.single-product .woocommerce-tabs.kcf-tabs-as-accordion .woocommerce-Tabs-panel {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    margin: 0 0 12px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.single-product .woocommerce-tabs.kcf-tabs-as-accordion .woocommerce-Tabs-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.single-product .kcf-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 0 10px;
}

.single-product .kcf-accordion-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.single-product .kcf-accordion-trigger__icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(42, 166, 246, 0.12);
    position: relative;
    flex-shrink: 0;
}

.single-product .kcf-accordion-trigger__icon::before,
.single-product .kcf-accordion-trigger__icon::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 10px;
    height: 2px;
    background: var(--kcf-pink);
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.single-product .kcf-accordion-trigger__icon::after {
    width: 2px;
    height: 10px;
}

.single-product .kcf-accordion-trigger[aria-expanded="true"] .kcf-accordion-trigger__icon::after {
    display: none;
}

@media (max-width: 768px) {
    .kcf-product-quick-actions {
        gap: 8px;
    }

    .kcf-quick-action {
        flex: 1 1 calc(50% - 8px);
    }

    .single-product .kcf-more-from-seller__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .single-product .kcf-more-from-seller ul.products li.product img,
    .single-product .kcf-more-from-seller__grid li.product img {
        height: 150px !important;
    }

    .single-product .kcf-more-from-seller ul.products li.product .woocommerce-loop-product__title,
    .single-product .kcf-more-from-seller__grid li.product .woocommerce-loop-product__title {
        font-size: 12px;
        padding: 10px 10px 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .single-product .kcf-more-from-seller ul.products li.product .price,
    .single-product .kcf-more-from-seller__grid li.product .price {
        font-size: 13px !important;
        padding: 0 10px 10px;
    }
}
.kcf-social-share__label {
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--kcf-text-light);
    margin-right: 4px;
}

.kcf-social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--kcf-gray-100);
    color: var(--kcf-text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.kcf-social-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kcf-social-share a.kcf-share--whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.kcf-social-share a.kcf-share--facebook:hover {
    background: #1877f2;
    color: #fff;
}

.kcf-social-share a.kcf-share--twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.kcf-social-share a.kcf-share--copy:hover {
    background: var(--kcf-gradient);
    color: #fff;
}

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

.single-product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 40px;
}

/* Premium tab bar (desktop/tablet) */
.single-product .woocommerce-tabs .wc-tabs {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 0 0 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 166, 246, 0.06), rgba(166, 246, 183, 0.10));
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.single-product .woocommerce-tabs .wc-tabs::-webkit-scrollbar { display: none; }

.single-product .woocommerce-tabs .wc-tabs li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.single-product .woocommerce-tabs .wc-tabs li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.single-product .woocommerce-tabs .wc-tabs li a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

.single-product .woocommerce-tabs .wc-tabs li a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 166, 246, 0.18), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.single-product .woocommerce-tabs .wc-tabs li.active a {
    background: var(--kcf-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(42, 166, 246, 0.22);
}

/* Premium panel card */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 26px;
    font-family: var(--kcf-font);
    font-size: 14px;
    line-height: 1.85;
    color: var(--kcf-text);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-family: var(--kcf-font);
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
    margin: 0.8em 0;
}

/* Reviews list + form polish */
.single-product .woocommerce-Reviews .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.single-product .woocommerce-Reviews .commentlist li {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 16px 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.single-product .woocommerce-Reviews .commentlist .comment-text {
    border: none;
    margin: 0;
    padding: 0;
}

.single-product #review_form_wrapper {
    margin-top: 16px;
}

.single-product #review_form {
    background: linear-gradient(135deg, rgba(42, 166, 246, 0.05), rgba(166, 246, 183, 0.10));
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 18px;
}

/* Reviews Tab */
.single-product .woocommerce-Reviews-title {
    font-family: var(--kcf-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--kcf-gray-800);
}

.single-product #review_form .comment-form label {
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--kcf-text);
}

.single-product #review_form .comment-form input[type="text"],
.single-product #review_form .comment-form input[type="email"],
.single-product #review_form .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--kcf-gray-200);
    border-radius: 10px;
    font-family: var(--kcf-font);
    font-size: 14px;
    color: var(--kcf-text);
    transition: border-color 0.2s;
    background: var(--kcf-gray-100);
}

.single-product #review_form .comment-form input:focus,
.single-product #review_form .comment-form textarea:focus {
    border-color: var(--kcf-pink-light);
    outline: none;
    background: #fff;
}

.single-product #review_form .comment-form .form-submit input[type="submit"] {
    background: var(--kcf-gradient);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.single-product #review_form .comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 166, 246, 0.3);
}

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

.single-product section.related.products {
    grid-column: 1 / -1;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--kcf-gray-200);
}

.single-product section.related.products>h2 {
    font-family: var(--kcf-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--kcf-gray-800);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
}

.single-product section.related.products>h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--kcf-gradient);
    border-radius: 4px;
}

/* Force proper grid for related products - override all WooCommerce defaults */
.single-product section.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.single-product section.related.products ul.products::before,
.single-product section.related.products ul.products::after {
    display: none !important;
}

.single-product section.related.products ul.products li.product {
    background: #fff;
    border-radius: var(--kcf-radius);
    overflow: hidden;
    box-shadow: var(--kcf-shadow);
    border: 1px solid rgba(42, 166, 246, 0.06);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product section.related.products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(166, 246, 183, 0.15);
}

.single-product section.related.products ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    overflow: hidden;
}

.single-product section.related.products ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
    display: block;
}

.single-product section.related.products ul.products li.product:hover img {
    transform: scale(1.05);
}

.single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--kcf-gray-800);
    padding: 14px 16px 6px;
    margin: 0;
    min-height: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-product section.related.products ul.products li.product .price {
    font-family: var(--kcf-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--kcf-pink) !important;
    padding: 0 16px 12px;
    display: block;
}

.single-product section.related.products ul.products li.product .button {
    display: block;
    text-align: center;
    margin: auto 16px 16px;
    padding: 10px 20px;
    background: var(--kcf-gradient);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.single-product section.related.products ul.products li.product .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(42, 166, 246, 0.3);
}

/* ============ UP-SELLS ============ */

.single-product .up-sells.upsells.products {
    grid-column: 1 / -1;
    margin-top: 30px;
}

/* ============ WooCommerce Notices ============ */

.single-product .woocommerce-message {
    background: #fff;
    border-top-color: var(--kcf-pink) !important;
    border-radius: 12px;
    padding: 16px 24px;
    font-family: var(--kcf-font);
    box-shadow: var(--kcf-shadow);
    margin-bottom: 20px;
}

.single-product .woocommerce-message a.button {
    background: var(--kcf-gradient);
    color: #fff;
    border-radius: 10px;
    font-family: var(--kcf-font);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 20px;
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1024px) {
    .single-product div.product {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .single-product div.product {
        /* Use strict flow on mobile to prevent any overlap */
        display: block !important;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .single-product .woocommerce-product-gallery {
        position: static;
        margin-bottom: 22px;
        overflow: hidden; /* prevent any stray slide overflow under the title */
        border-radius: var(--kcf-radius);
        /* Extra spacing guarantee */
        padding-bottom: 6px;
        /* Critical: reserve layout space even if flexslider uses absolute positioning */
        min-height: min(90vw, 420px);
        background: #ffffff;
    }

    /*
      OVERLAP FIX (final):
      Do NOT override Woo/Flexslider height with `height:auto !important;` on mobile.
      That can collapse the viewport and cause the summary/title to overlap the image.
      Instead, provide a min-height fallback so the gallery always reserves space
      even if JS fails to calculate heights.
    */
    .single-product .woocommerce-product-gallery .flex-viewport,
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
        min-height: min(90vw, 420px);
    }

    /* Ensure images render normally (no forced 100% height that can distort/layout shift) */
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
    .single-product .woocommerce-product-gallery .wp-post-image {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: cover;
    }

    /* Breadcrumbs can be long; keep them readable on phones */
    .single-product .woocommerce-breadcrumb {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 12px 0 14px;
    }
    .single-product .woocommerce-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    /* Remove the helper text (it was overlapping the title on some layouts) */
    .single-product .woocommerce-product-gallery::after {
        content: none !important;
        display: none !important;
    }

    /* Ensure gallery images don't overlap */
    .single-product .woocommerce-product-gallery .flex-viewport {
        margin-bottom: 12px !important;
    }

    .single-product .summary.entry-summary {
        /* Bulletproof separation from gallery on mobile */
        clear: both !important;
        margin-top: 28px !important;
        padding-top: 6px;
    }

    .single-product .product_title.entry-title {
        font-size: 22px;
        margin-top: 10px;
        margin-bottom: 6px;
        padding-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .single-product .summary p.price,
    .single-product .summary span.price {
        font-size: 24px !important;
        gap: 10px;
        margin-bottom: 16px;
    }

    .single-product .summary p.price del,
    .single-product .summary span.price del {
        font-size: 16px !important;
    }

    .single-product .summary p.price ins,
    .single-product .summary span.price ins {
        font-size: 24px !important;
    }

    .single-product .kcf-discount-badge {
        font-size: 12px;
        padding: 6px 12px;
        transform: none;
        margin-left: 0;
    }

    .single-product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .single_add_to_cart_button {
        min-width: unset;
    }

    .single-product .woocommerce-tabs .wc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 8px;
    }
    .single-product .woocommerce-tabs .wc-tabs::-webkit-scrollbar { display: none; }

    .single-product .woocommerce-tabs .wc-tabs li a {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 999px;
        background: rgba(42, 166, 246, 0.04);
        border: 1px solid rgba(226, 232, 240, 0.9);
        top: 0;
    }

    .single-product .woocommerce-tabs .wc-tabs li.active a {
        background: var(--kcf-gradient);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 10px 24px rgba(42, 166, 246, 0.25);
    }

    .single-product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 20px;
    }

    .kcf-social-share {
        flex-wrap: wrap;
    }

    /* === STICKY ENQUIRE NOW BAR === */
    .seller-product-info-box {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        display: block;
        gap: 12px;
        margin: 0 !important;
        border: none !important;
    }

    /* Compact the sticky bar */
    .seller-product-info-box .seller-info-header,
    .seller-product-info-box .seller-info-social {
        display: none !important;
    }

    .seller-product-info-box .seller-info-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .seller-product-info-box .seller-info-identity {
        gap: 10px;
        min-width: 0;
    }

    .seller-product-info-box .seller-details-text {
        min-width: 0;
    }

    .seller-product-info-box .seller-display-name {
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 42vw;
    }

    .seller-product-info-box .seller-uid-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .seller-product-info-box .seller-view-profile-link {
        display: none !important;
    }

    .seller-product-info-box .seller-info-action {
        width: auto;
        margin: 0;
        flex-shrink: 0;
    }

    .seller-product-info-box .seller-whatsapp-btn {
        width: auto;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
    }

    .seller-info-social {
        margin-top: 10px;
        justify-content: center;
    }

    /* Spacer so content not hidden behind sticky bar */
    body.single-product .site-main::after {
        content: '';
        display: block;
        height: 96px;
    }
}

@media (max-width: 480px) {
    .single-product #primary {
        padding: 0 15px 40px;
    }

    .single-product .product_title.entry-title {
        font-size: 20px;
    }

    .single-product .summary p.price,
    .single-product .summary span.price {
        font-size: 22px !important;
    }

    /* Related products: clean 2-up grid on small phones */
    .single-product section.related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .single-product section.related.products ul.products li.product img {
        height: 150px !important;
    }

    .single-product section.related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
        padding: 10px 10px 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .single-product section.related.products ul.products li.product .price {
        font-size: 13px !important;
        padding: 0 10px 10px;
    }
}

/* ==================================================
   GUEST ENQUIRE NOW: AUTH MODAL (LOGIN / REGISTER)
   ================================================== */

.kcf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kcfModalFadeIn 0.3s ease forwards;
}

@keyframes kcfModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.kcf-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    position: relative;
    font-family: var(--kcf-font);
    animation: kcfModalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--kcf-pink-light) transparent;
}

@keyframes kcfModalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.kcf-modal-content::-webkit-scrollbar {
    width: 4px;
}

.kcf-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.kcf-modal-content::-webkit-scrollbar-thumb {
    background: var(--kcf-pink-light);
    border-radius: 10px;
}

.kcf-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--kcf-gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--kcf-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.kcf-modal-close:hover {
    background: var(--kcf-gray-200);
    color: var(--kcf-text);
    transform: rotate(90deg);
}

.kcf-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.kcf-modal-header h3 {
    font-family: var(--kcf-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--kcf-gray-800);
    margin: 0 0 8px;
}

.kcf-modal-header p {
    font-size: 14px;
    color: var(--kcf-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Tabs */
.kcf-auth-tabs {
    display: flex;
    background: var(--kcf-gray-100);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.kcf-auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-family: var(--kcf-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--kcf-text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.kcf-auth-tab-btn.is-active {
    background: #fff;
    color: var(--kcf-pink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Forms Container */
.kcf-auth-forms-container form {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.kcf-auth-forms-container .form-row {
    margin-bottom: 18px;
    padding: 0;
}

.kcf-auth-forms-container label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--kcf-gray-800);
    margin-bottom: 8px;
}

.kcf-auth-forms-container input[type="text"],
.kcf-auth-forms-container input[type="email"],
.kcf-auth-forms-container input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--kcf-gray-200);
    border-radius: 10px;
    font-family: var(--kcf-font);
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
    outline: none;
}

.kcf-auth-forms-container input:focus {
    border-color: var(--kcf-pink-light);
    box-shadow: 0 0 0 3px rgba(42, 166, 246, 0.1);
}

.kcf-auth-forms-container .kcf-primary-btn {
    width: 100%;
    padding: 14px 24px !important;
    background: var(--kcf-pink) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--kcf-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    margin-top: 10px;
    float: none !important;
}

.kcf-auth-forms-container .kcf-primary-btn:hover {
    background: var(--kcf-pink-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(42, 166, 246, 0.3) !important;
}

.kcf-auth-forms-container .lost_password {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.kcf-auth-forms-container .lost_password a {
    color: var(--kcf-pink);
    text-decoration: none;
    font-weight: 500;
}

.kcf-auth-forms-container .lost_password a:hover {
    text-decoration: underline;
}

.kcf-auth-forms-container form h2 {
    display: none;
}

/* ==================================================
   PREMIUM VARIATIONS FORM — Redesigned
   ================================================== */
.single-product .variations_form {
    margin: 32px 0;
    padding: 0;
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Gradient Accent Strip at top */
.single-product .variations_form::before {
    content: '';
    display: block;
    height: 5px;
    background: var(--kcf-gradient);
    border-radius: 20px 20px 0 0;
}

/* Remove old ::after pseudo-element (handled by JS now) */
.single-product .variations_form::after {
    display: none;
}

/* Hide the default variation price that appears below the dropdowns */
.single-product .woocommerce-variation-price {
    display: none !important;
}

/* Table reset */
.single-product .variations {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    padding: 24px 28px 20px;
    display: block;
}

.single-product .variations tbody {
    display: block;
}

.single-product .variations tr {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 20px;
    border: none;
    flex-direction: column;
}

.single-product .variations tr:last-child {
    margin-bottom: 0;
}

/* Label row */
.single-product .variations th.label {
    width: 100%;
    max-width: none;
    padding: 0 0 10px 0;
    text-align: left;
    background: transparent;
    border: none;
}

.single-product .variations th.label label {
    font-family: var(--kcf-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--kcf-gray-800);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-product .variations th.label label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--kcf-gradient);
    border-radius: 4px;
}

/* Value cell */
.single-product .variations td.value {
    flex: 1;
    width: 100%;
    padding: 0;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* FULLY hide native select when pills are present */
.single-product .variations select {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
}

/* Remove ANY dropdown arrow pseudo-element */
.single-product .variations td.value::after {
    display: none !important;
    content: none !important;
}

/* Reset / Clear button */
.single-product .reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--kcf-font);
    font-size: 12px;
    color: var(--kcf-text-light);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    padding: 5px 14px;
    background: var(--kcf-gray-100);
    border-radius: 8px;
    transition: all 0.2s;
    align-self: flex-start;
}

.single-product .reset_variations::before {
    content: '✕';
    font-size: 10px;
}

.single-product .reset_variations:hover {
    background: #fee2e2;
    color: #dc2626;
    text-decoration: none;
}

/* Hide WooCommerce native "Additional Information" tab since we display attributes beautifully */
.single-product .woocommerce-tabs .wc-tabs li.additional_information_tab,
.single-product .woocommerce-tabs #tab-additional_information {
    display: none !important;
}

/* ==================================================
   EXTREME ELEMENTOR / WOOCOMMERCE ADD-TO-CART HIDER
   ================================================== */
body.single-product .elementor-widget-woocommerce-product-add-to-cart .elementor-button,
body.single-product .elementor-add-to-cart .button,
body.single-product button.single_add_to_cart_button,
body.single-product .single_add_to_cart_button,
body.single-product .quantity,
body.single-product .woocommerce-variation-add-to-cart .button,
body.single-product .woocommerce-variation-add-to-cart .quantity,
body.single-product form.cart .button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Keep the variation dropdowns visible */
body.single-product .woocommerce-variation-add-to-cart,
body.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
}