/* ==========================================
   KRUMPLD PRODUCT PAGE - WORKING VERSION
   ========================================== */
/* GLOBAL LOCK — thumbnails OFF everywhere by default */
.woocommerce div.product div.images .flex-control-thumbs {
    display: none !important;
}
/* WOOCOMMERCE RESETS */
body.single-product .woocommerce div.product,
body.single-product .woocommerce #content div.product,
body.single-product .woocommerce-page div.product {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    float: none !important;
    box-sizing: border-box !important;
}

body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ==========================================
   IMAGES - LET WOOCOMMERCE HANDLE SWITCHING
   ========================================== */

.woocommerce div.product div.images {
    margin-bottom: 30px !important;
}

/* Don't force display on gallery images - let WooCommerce control */
.woocommerce div.product div.images img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


/* Hide thumbnails on tablet + mobile */
@media (max-width: 1024px) {
    .woocommerce div.product div.images .flex-control-thumbs {
        display: none !important;
    }
}
/* ==========================================
   GALLERY SWIPE + FLEXSLIDER PROTECTION
   Prevents our overflow:visible from
   breaking FlexSlider touch/swipe on mobile
   ========================================== */

/* FlexSlider MUST keep overflow:hidden to clip slides */
.woocommerce-product-gallery .flex-viewport {
    overflow: hidden !important;
}

/* Protect gallery image wrapper from overflow:visible cascade */
.woocommerce-product-gallery,
.woocommerce-product-gallery .flexslider {
    overflow: hidden !important;
    touch-action: pan-y !important;
}

/* Allow vertical page scroll while swiping gallery */
.woocommerce-product-gallery__wrapper {
    touch-action: pan-y !important;
}

/* ==========================================
   PRODUCT INFO
   ========================================== */

.woocommerce div.product .product_title {
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    margin: 0 0 8px 0 !important;
    color: #111 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #555 !important;
    margin: 0 0 12px 0 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 0 20px 0 !important;
}

/* ==========================================
   REMOVE DUPLICATE PRICE (ABOVE QTY)
   ========================================== */

body.single-product form.cart .woocommerce-Price-amount {
    display: none !important;
}
/* VARIATIONS */

/* Group spacing */
.woocommerce div.product form.cart {
    margin-top: 8px !important;
}
.woocommerce div.product form.cart .variations {
    margin-bottom: 16px !important;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    display: block !important;
    width: 100% !important;
    padding: 0 0 8px 0 !important;
}
/* Label (Size / Color) */
.woocommerce div.product form.cart .variations .label {
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    color: #777 !important;
    margin-bottom: 6px !important;
}
/* Dropdown (fallback / Woo default) */
.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
    margin-bottom: 12px !important;
}

/* ADD TO CART */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
    width: 100% !important;
    padding: 16px 24px !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border-radius: 2px !important;
    text-transform: none !important;
    margin: 0 0 20px 0 !important;
}

.woocommerce div.product form.cart .button:hover {
    background: #1a1a1a !important;
}

/* ==========================================
   CTA DISABLED STATE
   ========================================== */

.single_add_to_cart_button.kr-disabled {
    background-color: #999 !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button.wc-variation-selection-needed {
    background: #999 !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* TRUST SIGNALS */
.krumpld-trust-signals {
    margin: 8px 0 0 0 !important;
    padding: 0;
}

.krumpld-trust-signals li {
    list-style: none;
    margin-bottom: 6px;
}

/* Target span instead of li */
.krumpld-trust-signals li span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

/* Inject checkmark safely */
.krumpld-trust-signals li span::before {
    content: '✓';
    color: #111;
    font-size: 12px;
    margin-top: 1px;
}

/* PRODUCT CONTENT */
body.single-product .krumpld-product-content {
    margin-top: 16px !important;
    width: 100% !important;
    padding-top: 0 !important;
    max-width: 720px;
    padding: 0 20px;
}


/* ==========================================
   SECTION DIVIDER LINE
   Uses flex-aware rules so it works whether
   the parent is display:block OR display:flex
   ========================================== */

body.single-product .krumpld-product-story {
    max-width: 720px !important;
    margin: 0 auto 24px auto !important;
    text-align: left !important;
}

body.single-product .story-section {
    margin: 0 0 24px 0 !important;
}

body.single-product .section-header {
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #999 !important;
    margin: 0 0 16px 0 !important;

}

body.single-product .story-section p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 0 12px 0 !important;
}

body.single-product .story-section ul {
    text-align: left !important;
    margin: 0 auto !important;
    list-style: none !important;
    padding: 0 !important;
}

body.single-product .story-section ul li {
    padding: 6px 0 6px 20px !important;
    position: relative !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 2px 0 !important;
}

body.single-product .story-section ul li::before {
    content: '•' !important;
    position: absolute !important;
    left: 0 !important;
    color: #000 !important;
}

body.single-product .story-section p:last-child {
    margin-bottom: 0 !important;
}

body.single-product .krumpld-key-info {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

body.single-product .krumpld-key-info li {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;    
}

body.single-product .krumpld-key-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

body.single-product .krumpld-trust-line {
    font-size: 12px;
    color: rgba(0,0,0,0.6);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

body.single-product .size-guide-trigger {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

body.single-product .accordion-item.highlight {
    background: rgba(0,0,0,0.03);
}
/* ==========================================
   ACCORDION — CONTAINER (FINAL)
   ========================================== */

body.single-product .krumpld-accordion {
    max-width: 720px;
    border-top: 1px solid #e5e5e5; 
    margin-top: 8px;
}

body.single-product .accordion-item {
    border-bottom: 1px solid #e5e5e5 !important;
}

/* ==========================================
   ACCORDION — HEADER (REFINED)
   ========================================== */

body.single-product .accordion-header {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    
    padding: 16px 0 !important;
    min-height: 44px;
    background: none !important;
    border: none !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;

    cursor: pointer !important;
    color: rgba(0,0,0,0.6) !important;

    transition: color 0.2s ease, transform 0.15s ease;
}

/* subtle interaction */
body.single-product .accordion-header:hover {
    color: #111 !important;
    transform: translateX(2px);
}

body.single-product .accordion-header.active {
    color: #111 !important;
    opacity: 1;
}

body.single-product .accordion-arrow {
    font-size: 18px !important;
    opacity: 0.6;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

body.single-product .accordion-header.active .accordion-arrow {
    transform: rotate(90deg) !important;
    opacity: 1;
}

body.single-product .accordion-header span:first-child {
    display: block;
    padding-right: 24px;
}
/* ==========================================
   ACCORDION — CONTENT (PREMIUM MOTION)
   ========================================== */

body.single-product .accordion-content {
    max-height: 0;
    overflow: hidden !important;
    font-size: 14px;
    opacity: 0;
    line-height: 1.5;
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
}

/*body.single-product .accordion-content.active {*/
/*    opacity: 1;*/
/*    padding-bottom: 12px !important;*/
/*}*/

body.single-product .accordion-item.active .accordion-content {
    max-height: 500px; /* or 800px depending on content */
    opacity: 1;
    padding-bottom: 12px !important;
}

body.single-product .accordion-content p {
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

body.single-product .accordion-content ul {
    margin: 8px 0 10px 20px !important;
}

body.single-product .accordion-content ul li {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* SIZE CHART */
.size-chart {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
    font-size: 13px !important;
}

.size-chart th,
.size-chart td {
    padding: 10px 8px !important;
    text-align: left !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.size-chart th {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    color: #666 !important;
}

.size-note {
    font-size: 12px !important;
    color: #999 !important;
    font-style: italic !important;
    margin: 10px 0 0 0 !important;
}



/* ==========================================
   LANDSCAPE MOBILE (480-767px)
   Same flex-wrap fix so .krumpld-divider
   wraps onto its own full-width row
   ========================================== */

@media (min-width: 480px) and (max-width: 767px) {

    .woocommerce div.product,
    body.woocommerce div.product {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        padding: 0 20px !important;
    }

    body.single-product .krumpld-product-columns {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: block !important;
    }

    body.single-product .krumpld-product-content {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

}
/* ==========================================
   DIVIDER — SINGLE SOURCE OF TRUTH
   ========================================== */

body.single-product .krumpld-divider {
    display: block !important;

    width: 100%;
    max-width: 720px;

    height: 1px;
    background-color: rgba(0,0,0,0.12);

    margin: 24px auto 16px auto;

    position: relative;
    z-index: 2;

    flex: none !important;
}

/* ==========================================
   MOBILE — DIVIDER SPACING TWEAK
   ========================================== */

@media (max-width: 767px) {

    body.single-product .krumpld-divider {
        margin: 1px auto 40px auto !important;
    }

}

/* ==========================================
   TABLET (768px - 1199px) - DIVIDER SPACING TWEAK
   ========================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    body.single-product .krumpld-divider {
        margin: 1px auto 60px auto !important;
    }
}
/* ==========================================
   TABLET (768px - 1199px) - SINGLE COLUMN
   ========================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    /* Outer container - single column, comfortable padding */
    .woocommerce div.product,
    .woocommerce #content div.product,
    .woocommerce-page div.product,
    body.woocommerce div.product {
        max-width: 720px !important;
        margin: 30px auto !important;
        padding: 0 30px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    /* krumpld-product-columns wrapper stacks vertically on tablet */
    body.single-product .krumpld-product-columns {
        display: block !important;
        width: 100% !important;
    }

    /* Images - full width */
    .woocommerce div.product div.images {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 32px !important;
    }

    /* ✅ FORCE HIDE */
    .woocommerce div.product div.images .flex-control-thumbs {
        display: none !important;
    }
    /* Summary - full width below images, no sticky */
    .woocommerce div.product div.summary {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    /* Slightly larger title on tablet */
    .woocommerce div.product .product_title {
        font-size: 28px !important;
    }

    .woocommerce div.product p.price {
        font-size: 22px !important;
    }

    /* Tablet: spacing for in-flow divider line */
    body.single-product .krumpld-product-content {
        margin-top: 8px !important;
        padding-top: 0 !important;
    }
}

/* ==========================================
   DESKTOP (1200px+) - TWO COLUMNS
   ========================================== */

@media (min-width: 1025px) {
    
    /* TWO COLUMN LAYOUT */
    .woocommerce div.product,
    .woocommerce #content div.product,
    .woocommerce-page div.product,
    body.woocommerce div.product,
    body.woocommerce-page div.product {
        display: flex !important;
        flex-wrap: wrap !important;
        max-width: 1200px !important;
        margin: 60px auto !important;
        padding: 0 40px !important;
        gap: 60px !important;
        align-items: flex-start !important;
    }
    
    /* LEFT - IMAGES */
    .woocommerce div.product div.images {
        flex: 0 0 calc(50% - 30px) !important;
        width: calc(50% - 30px) !important;
        max-width: calc(50% - 30px) !important;
        margin: 0 !important;
    }
    
    /* RIGHT - INFO (STICKY ONLY INSIDE TWO-COLUMN AREA) */
    body.single-product .krumpld-product-columns > .summary {
        flex: 0 0 calc(50% - 30px) !important;
        width: calc(50% - 30px) !important;
        max-width: calc(50% - 30px) !important;
        margin: 0 !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
        align-self: flex-start !important;
        z-index: 2 !important;
    }
        
    /* CONTENT BELOW */
    body.single-product .krumpld-product-content {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-top: 60px !important;
    }
    
    /* DESKTOP THUMBNAILS ONLY */
    .woocommerce div.product div.images .flex-control-thumbs {
        display: flex !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs li {
        width: 80px !important;
        aspect-ratio: 4 / 5;
        overflow: visible; 
        cursor: pointer;
    }
    
    /*.woocommerce div.product div.images .flex-control-thumbs li img {*/
    /*    width: 100% !important;*/
    /*    height: 100% !important;*/
    /*    object-fit: cover !important;*/
    /*    display: block;*/
    /*    border: 2px solid transparent !important;*/
    /*}*/
    .woocommerce div.product div.images .flex-control-thumbs li img {
        /*width: 100% !important;*/
        /*height: 100% !important;*/
        object-fit: cover !important;
        display: block;
        border: none !important;
        transition: box-shadow 0.2s ease;
        opacity: 1 !important;
    }
    
    /*.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,*/
    /*.woocommerce div.product div.images .flex-control-thumbs li:hover img {*/
    /*    border-color: #000 !important;*/
    /*}*/
    /* Hover */
    /*.woocommerce div.product div.images .flex-control-thumbs li:hover img {*/
        /*border-color: rgba(0,0,0,0.4);*/
    /*    box-shadow: 0 0 0 2px rgba(0,0,0,0.4) inset;*/
    /*}   */
    /* Active */
    /*.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {*/
        /*border-color: #000;*/
        /*transform: scale(1.02);*/
    /*    box-shadow: 0 0 0 2px #000 inset;*/
    /*}    */
    /* LARGER FONTS */
    .woocommerce div.product .product_title {
        font-size: 32px !important;
    }
    
    .woocommerce div.product p.price {
        font-size: 24px !important;
    }
    
    /* CENTERED CONTENT */
    .krumpld-product-story {
        max-width: 800px !important;
        margin: 0 auto 60px auto !important;
    }
    
    .story-section {
        margin: 0 0 60px 0 !important;
    }
    
    .specs-section {
        display: flex !important;
        gap: 60px !important;
        max-width: 800px !important;
        margin: 0 auto 60px auto !important;
    }
    
    .specs-column {
        flex: 1 !important;
        margin: 0 !important;
    }

    /* ==========================================
   FIX — STICKY BOUNDARY FOR VARIABLE PRODUCTS
   ========================================== */

    /* This ensures sticky stops before next row */
    body.single-product .krumpld-product-columns {
        align-items: flex-start !important;
    }
    
    /* Critical: prevent summary from stretching */
    body.single-product .krumpld-product-columns .summary {
        height: fit-content !important;
        max-height: none !important;
    }

 /* ==========================================
   FIX — VARIATION BLOCK OVERFLOW
   ========================================== */

    body.single-product .single_variation_wrap {
        position: relative !important;
        z-index: 1 !important;
    }
    
    body.single-product .woocommerce-variation-add-to-cart {
        position: relative !important;
    }   
    
}

/* Hide thumbnails by default */
.woocommerce div.product div.images .flex-control-thumbs {
    display: none;
}

/* Show only on desktop */
@media (min-width: 1025px) {
    .woocommerce div.product div.images .flex-control-thumbs {
        display: flex;
        gap: 12px;
        margin-top: 16px;
    }

    .woocommerce div.product div.images .flex-control-thumbs li {
        width: 80px;
        overflow: visible;
    }

    /*.woocommerce div.product div.images .flex-control-thumbs li img {*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*    object-fit: cover;*/
    /*    display: block;*/
    /*}*/
    .woocommerce div.product div.images .flex-control-thumbs li img {
        width: 100% !important;
        height: auto !important;        /* 🔴 key fix */
        aspect-ratio: 4 / 5;
        object-fit: cover !important;
        display: block;
        max-height: none !important;
        transition: all 0.2s ease;
    }
}

/* ==========================================
   TRUST SIGNALS - BELOW ADD TO CART
   ========================================== */

/* Make summary a flex column so we can reorder elements */
.woocommerce div.product div.summary {
    display: flex !important;
    flex-direction: column !important;
}

/* Default order for summary children */
.woocommerce div.product div.summary .product_title      { order: 1 !important; }
.woocommerce div.product div.summary .kr-color-tagline { order: 2 !important; }
.woocommerce div.product div.summary p.price,
.woocommerce div.product div.summary span.price          { order: 3 !important; }
.woocommerce div.product div.summary .krumpld-color-selector { order: 4 !important; }
.woocommerce div.product div.summary .krumpld-size-selector  { order: 5 !important; }
.woocommerce div.product div.summary form.cart           { order: 6 !important; }

/* Short description (Made to order, Free shipping etc) moves BELOW add to cart */
.woocommerce div.product div.summary
    .woocommerce-product-details__short-description      { order: 7 !important; }

/* Trust signals (checkmarks) also stay below */
.woocommerce div.product div.summary .krumpld-trust-signals  { order: 8 !important; }

/* ==========================================
   SIZE SELECTOR
========================================== */

.krumpld-size-selector {
    margin-bottom: 28px;
}
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 6px;  /* tighter vertical rhythm */
}

/* ==========================================
   SIZE SELECTOR — BASE (REFINED)
   ========================================== */
/* Hide sizes until fully initialized */
.size-options {
    opacity: 0;
    pointer-events: none;
}

.kr-variation-ready .size-options {
    opacity: 1;
    pointer-events: auto;
}

.size-btn {
    height: 44px;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: #111;

    font-size: 13px;
    letter-spacing: 0.02em;

    cursor: pointer;

    transition: 
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.12s ease;
}

/* ==========================================
   SIZE SELECTOR — FINAL STATE SYSTEM
   ========================================== */

/* BASE */
body.single-product .size-options button.size-btn {
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    color: #111 !important;
}

body.single-product .size-options {
    --size-hover-bg: rgba(0,0,0,0.04);
}

/* HOVER (only when NOT active) */
body.single-product .size-options button.size-btn:not(.active):hover {
    border-color: #4e6b57 !important;
    color: #4e6b57 !important;
    border-width: 1.5px !important;
    /*background-color: rgba(78,107,87,0.05) !important;
    background-color: green !important;  */
    background-color: var(--size-hover-bg) !important;
}


/* ACTIVE */
body.single-product .size-options button.size-btn.active {
    background-color: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}


/* ACTIVE + HOVER (lock state) */
body.single-product .size-options button.size-btn.active:hover {
    background-color: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}


/* REMOVE THEME INTERFERENCE */
body.single-product .size-options button.size-btn:focus,
body.single-product .size-options button.size-btn:active {
    outline: none !important;
    box-shadow: none !important;
}
/* Disabled */
.size-btn.disabled {
    opacity: 0.3;
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.4);
    cursor: not-allowed;
    position: relative;
    
}
/* ==========================================
   SIZE — DISABLED HOVER STATE
   ========================================== */

.size-btn.disabled:hover {
    border-color: rgba(0,0,0,0.08) !important;
    color: rgba(0,0,0,0.4) !important;
    background-color: #f5f5f5 !important;

    transform: none !important;
}

/* subtle strike-through */
.size-btn.disabled::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    height: 1px;
    background: rgba(0,0,0,0.2);
}
/* Hide WooCommerce variation UI completely (keep logic intact) */
.woocommerce div.product form.cart .variations {
    display: none !important;
}

/* ==========================================
   PRODUCT — COLOR SELECTOR (LUXURY SYSTEM)
   ========================================== */

.krumpld-color-selector {
    margin-bottom: 20px;
}
/* Row */
.color-options {
    display: flex;
    margin-top: 16px; /* ✅ THIS is the real spacing fix */
    overflow: visible !important; /* prevents clipping */
}

/* Base swatch */
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;

    border: 1px solid rgba(0,0,0,0.15);
    background-clip: padding-box;
    flex: 0 0 auto !important;
    cursor: pointer;
    position: relative; /* REQUIRED for ::after */

    padding: 0 !important;
    min-width: 0 !important;
    line-height: 0 !important;

    appearance: none;
    -webkit-appearance: none;

    transition: all 120ms ease;
}

/* Hover — subtle lift */
.color-swatch:hover {
    transform: scale(1.06);
    border-color: rgba(0,0,0,0.4);
}

/* Selected — refined luxury state */
.color-swatch.active {
    /*border-color: #111;*/
    transform: scale(1.04); /* subtle size lift */
}

.color-swatch.active::after {
    content: "";
    position: absolute;
    inset: -5px;

    /*border: 1px solid rgba(17,17,17,0.7);*/
    box-shadow: 0 0 0 1px rgba(17,17,17,0.7);
    border-radius: 50%;

    pointer-events: none;
}

/* Disabled */
.color-swatch.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    filter: grayscale(40%);
}
/* ==========================================
   REMOVE MOBILE TAP HIGHLIGHT
   ========================================== */

button,
.size-btn,
.color-swatch {
    -webkit-tap-highlight-color: transparent;
}

button:focus {
    outline: none;
}

/* ==========================================
   FORCE CLEAN ADD TO CART (KADENCE OVERRIDE)
========================================== */

/* Break Kadence layout */
body.single-product form.variations_form.cart {
    display: block !important;
}

/* Reset Woo container */
body.single-product .single_variation_wrap {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Stack elements */
body.single-product .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Quantity */
body.single-product .woocommerce-variation-add-to-cart .quantity {
    width: 80px !important;
    float: none !important;
}

/* Button */
body.single-product .single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    height: auto !important;           /* no fixed height */
    min-height: 52px !important;
    line-height: 1.4 !important;
    overflow: visible !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    letter-spacing: 0.05em !important;
    float: none !important;
}

/* Kill all float conflicts */
body.single-product .woocommerce-variation-add-to-cart * {
    float: none !important;
}

/* Trust signals */
body.single-product .krumpld-trust-signals {
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

/* Prevent clipping */
body.single-product .summary {
    overflow: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================
   STICKY + OVERFLOW FIXES (Desktop Only)
   ========================================== */

@media (min-width: 1025px) {

    body.single-product .krumpld-product-columns {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 60px !important;
        position: relative !important;
        overflow: visible !important;
    }

    body.single-product .krumpld-product-columns .images {
        flex: 0 0 calc(50% - 30px) !important;
        width: calc(50% - 30px) !important;
        max-width: calc(50% - 30px) !important;
    }

    body.single-product .krumpld-product-columns .summary {
        flex: 0 0 calc(50% - 30px) !important;
        width: calc(50% - 30px) !important;
        max-width: calc(50% - 30px) !important;
    
        position: sticky !important;
        top: 100px !important;
    
        align-self: flex-start !important;
    
        /* ✅ KEY FIX */
        height: auto !important;
    }

    /* ❌ REMOVE inner sticky — causes conflicts */
    body.single-product .krumpld-product-columns .summary form.cart {
        position: relative !important;
        top: auto !important;
    }

    /* ✅ FORCE NEXT ROW BREAK (important) */
    body.single-product .krumpld-divider,
    body.single-product .krumpld-custom-product-content-wrap {
        flex: 0 0 100% !important;
        width: 100% !important;
        position: relative;
        z-index: 1;
    }
    /* ==========================================
       FINAL FIX — VARIABLE PRODUCT STABILITY
       ========================================== */
    
    /* Prevent Woo variation block from breaking sticky */
    body.single-product .single_variation_wrap {
        position: relative;
    }
    
    /* Ensure summary does not inherit weird heights */
    body.single-product .summary {
        min-height: unset !important;
    }    
}

/* ==========================================
   PRODUCT — SIMPLE PRODUCT CTA SPACING FIX
   ========================================== */

/* Target ONLY simple product form layout */
.woocommerce div.product form.cart:not(.variations_form) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* ==========================================
   PRODUCT — TRUST BLOCK (GLOBAL)
   ========================================== */

.krumpld-trust {
  margin-top: 14px;
}

.krumpld-trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.krumpld-trust li {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

/* subtle dot instead of default bullets */
.krumpld-trust li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #999;
}

/* ==========================================
   RESET SPACING AROUND DIVIDER
   ========================================== */

/* Trust block (above divider) */
body.single-product .summary ul {
    margin-bottom: 0 !important;
}

/* First section after divider */
body.single-product .krumpld-product-content > *:first-child {
    margin-top: 0 !important;
}
/* ==========================================
   PRODUCT — CUSTOM CONTENT LAYOUT
   ========================================== */

body.single-product .krumpld-product-columns {
    display: flex;
    flex-wrap: wrap !important;
    align-items: flex-start;
}

/* Divider + content wrapper both break onto their own row */
body.single-product .krumpld-divider,
body.single-product .krumpld-custom-product-content-wrap {
    flex: 0 0 100% !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    order: 3 !important; /* forces it after images/summary */
}

/* ==========================================
   FINAL — DIVIDER (CLEAN + CONTROLLED)
   ========================================== */

/* Wrapper below divider */
body.single-product .krumpld-custom-product-content-wrap {
    display: block;
    clear: both;
    margin-top: 0 !important;
}

/* Actual custom content block */
body.single-product .krumpld-product-content {
    max-width: 720px;
    margin: 0 auto !important;
    padding: 0 20px;
}


/* Ensure content sits below everything */
body.single-product .krumpld-product-columns > * {
    flex: 1 1 100% !important;
}

/* ==========================================
   TABLET — CENTERED DIVIDER FIX
   ========================================== */

@media (min-width: 768px) and (max-width:1024px) {

    body.single-product .krumpld-divider {
        display: block !important;

        width: 100%;
        max-width: 720px;        /* 👈 match your content width */
        margin-left: auto;
        margin-right: auto;

        height: 1px;
        background: rgba(0,0,0,0.12);

        margin-top: 20px;
        margin-bottom: 20px;

        clear: both;
    }

}
/* ==========================================
   PRODUCT — VERTICAL RHYTHM SYSTEM
   ========================================== */

body.single-product .summary > * {
    margin-bottom: 20px;
}

/* tighter grouping where needed */
body.single-product .summary .price {
    margin-bottom: 12px;
}

body.single-product .summary .krumpld-color-selector,
body.single-product .summary .krumpld-size-selector {
    margin-bottom: 24px;
}

/* CTA block breathing */
body.single-product .summary form.cart {
    margin-top: 8px;
    margin-bottom: 24px;
}

/* ==========================================
   PRODUCT — TYPOGRAPHY HIERARCHY
   ========================================== */

/* Title */
body.single-product .product_title {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

/* Price */
body.single-product .price {
    font-size: 16px;
    letter-spacing: 0.02em;
}

/* Labels (Color / Size) */
.color-label,
.size-label {
    font-size: 13px;              /* ⬆ slightly increased */
    font-weight: 600;
    letter-spacing: 0.08em;       /* ⬇ less spaced → more refined */
    text-transform: uppercase;
    color: rgba(0,0,0,0.65);

    margin-bottom: 10px;
}

.size-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Selected values */
.krumpld-color-value,
.krumpld-size-value {
    font-size: 14px;              /* slightly stronger */
    letter-spacing: 0.01em;
    color: #111;

    margin-left: 6px;
}

/* ==========================================
   PRODUCT — SELECTOR SPACING
   ========================================== */

.krumpld-color-selector,
.krumpld-size-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* extra breathing between label and controls */
.color-options,
.size-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;   
    margin-bottom: 12px !important;
}


/* ==========================================
   PRODUCT — CUSTOM CONTENT RHYTHM
   ========================================== */

body.single-product .krumpld-product-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

body.single-product .krumpld-product-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ==========================================
   GLOBAL — REMOVE EXTRA FOOTER GAP (PDP ONLY)
   ========================================== */

body.single-product #primary.content-area {
    margin-bottom: 20px !important; /* was 80 */
}

body.single-product main.site-main {
    padding-bottom: 20px !important; /* was 60 */
}

/* ==========================================
   MOBILE/TABLET — DIVIDER ALIGNMENT
   ========================================== */

@media (max-width: 1024px) {

    /* Reduce space after image gallery */
    body.single-product .woocommerce-product-gallery {
        margin-bottom: 16px !important;
    }

    /* Tighten top of content */
    body.single-product .krumpld-product-content {
        margin-top: 0 !important;
    }
}

/* ==========================================
   FINAL — ACCORDION → FOOTER TIGHTEN
   ========================================== */

body.single-product .krumpld-product-content {
    margin-bottom: 12px !important;
}

/* remove extra spacing after last accordion */
body.single-product .krumpld-accordion:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ensure no hidden gap from wrapper */
body.single-product .krumpld-custom-product-content-wrap {
    margin-bottom: 0 !important;
}

/* ==========================================
   FINAL — REMOVE PDP BOTTOM GAP (KADENCE)
   ========================================== */

body.single-product .entry-content-bg.entry-content-wrap {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ==========================================
   FINAL — TRUE GAP REMOVAL (MISSING LAYER)
   ========================================== */

body.single-product div.product {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.single-product main#main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* ==========================================
   REMOVE DEFAULT WOOCOMMERCE SHORT DESCRIPTION
   ========================================== */

body.single-product .woocommerce-product-details__short-description {
    display: none !important;
}

/* ==========================================
   DESKTOP STICKY SUMMARY — CONTAINED
   Prevent overlap into full-width content
   ========================================== */

@media (min-width: 1025px) {

    /* Ensure 2-column layout exists */
    body.single-product .krumpld-product-columns {
        display: flex !important;
        align-items: flex-start !important;
        gap: 40px !important;
        position: relative !important; /* critical for containment */
    }

    /* LEFT: images */
    body.single-product .krumpld-product-columns .images {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    /* RIGHT: summary */
    body.single-product .krumpld-product-columns .summary {
        flex: 0 0 420px !important;
        width: 420px !important;
        position: sticky !important;
        top: 100px !important; /* adjust if header height changes */
        align-self: flex-start !important;
    }

    /* CRITICAL: prevent bleed into next section */
    body.single-product .krumpld-product-columns {
        overflow: visible !important;
    }

    /* Ensure divider sits OUTSIDE sticky context */
    body.single-product .krumpld-divider {
        clear: both !important;
    }
}

/* ==========================================
   PDP RIGHT COLUMN — ACTUAL STRUCTURE SPACING
   ========================================== */

@media (min-width: 1025px) {

    /* Title */
    body.single-product .summary .product_title {
        margin-bottom: 12px;
    }

    /* Price */
    body.single-product .summary .price {
        margin-bottom: 20px;
    }

    /* Short description (trust list above selectors) */
    .woocommerce-product-details__short-description {
        margin-bottom: 24px;
    }

    /* Color selector */
    body.single-product .krumpld-color-selector {
        margin-bottom: 20px;
    }

    /* Size selector */
    body.single-product .krumpld-size-selector {
        margin-bottom: 24px;
    }

    /* Whole form block (qty + CTA) */
    form.variations_form.cart {
        margin-top: 8px;
        margin-bottom: 24px;
    }

    /* Quantity spacing */
    form.cart .quantity {
        margin-bottom: 12px;
    }

    /* CTA */
    body.single-product .single_add_to_cart_button {
        margin-top: 4px;
    }

    /* Trust block BELOW CTA */
    body.single-product .krumpld-trust {
        margin-top: 16px;
    }

}


/* FIX THUMBNAIL IMAGE RATIO */
.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100% !important;
    height: auto !important;        /* 🔴 key fix */
    aspect-ratio: 4 / 5;
    object-fit: cover !important;
    display: block;
    max-height: none !important;
    transition: all 0.2s ease;
}


body.single-product .woocommerce-product-gallery.kr-gallery-loading {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

body.single-product .woocommerce-product-gallery.kr-gallery-ready {
  opacity: 1;
  visibility: visible;
  transition: opacity .15s ease;
}
.woocommerce-product-gallery.kr-gallery-loading,
.woocommerce-product-gallery.kr-gallery-loading * {
  opacity: 0 !important;
  visibility: hidden !important;
}

.woocommerce-product-gallery.kr-gallery-ready,
.woocommerce-product-gallery.kr-gallery-ready * {
  visibility: visible !important;
}

/*.woocommerce-product-gallery .kr-thumb-btn {*/
/*  display: block;*/
/*  padding: 0;*/
/*  border: 0;*/
/*  background: transparent;*/
/*  width: 100%;*/
/*  border-radius: 4px;*/
/*  transition: box-shadow 0.2s ease;*/
/*}*/

 /*Hover */
/*.woocommerce-product-gallery .kr-thumb-btn:hover {*/
    /*box-shadow: 0 0 0 2px rgba(0,0,0,0.4);*/
/*}*/

/*.woocommerce-product-gallery .kr-thumb-btn.is-active {*/
  /*opacity: 1;*/
  /*box-shadow: 0 0 0 2px #000;*/
/*  filter: brightness(1);*/
/*}*/

/*.woocommerce-product-gallery .kr-thumb-btn:not(.is-active) {*/
/*  opacity: 0.8;*/
/*}*/

.single-product .woocommerce-product-gallery .flex-viewport {
  height: auto !important;
  min-height: 530px !important;
  overflow: visible !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  width: 100% !important;
  transform: none !important;
  display: block !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
  display: block !important;
  width: 100% !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

/*  Thumbnais image cropping issue  */
.single-product .flex-control-thumbs li,
.single-product .flex-control-thumbs li button,
.single-product .flex-control-thumbs li .kr-thumb-btn {
  width: 100%;
  height: 100%;
}

/*.single-product .flex-control-thumbs li img,*/
/*.single-product .flex-control-thumbs li .kr-thumb-btn img {*/
/*  width: 100% !important;*/
/*  height: 100% !important;*/
/*  object-fit: contain !important;*/
/*  object-position: center center !important;*/
/*  display: block !important;*/
/*  background: #f3f3f3;*/
/*}*/

.single-product .flex-control-thumbs li {
  height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Thumbnail dots */
body.single-product .kr-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

body.single-product .kr-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
}

body.single-product .kr-dot.active {
    background: #000;
}

/* Hide dots on desktop */
@media (min-width: 1025px) {
    body.single-product .kr-gallery-dots {
        display: none;
    }
}
body.single-product .kr-lightbox-image-wrap {
    overflow: hidden;
}

body.single-product .kr-lightbox-img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* FRAME = fixed layout */
body.single-product .kr-lightbox-frame {
    width: 80vw;
    height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/* IMAGE WRAP = controls zoom clipping */
body.single-product .kr-lightbox-image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGE */
body.single-product .kr-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* ARROWS = fixed relative to FRAME (NOT image) */
body.single-product .kr-lightbox-prev,
body.single-product .kr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;
}

/* LEFT */
body.single-product .kr-lightbox-prev {
    left: 20px;
}

/* RIGHT */
body.single-product .kr-lightbox-next {
    right: 20px;
}

/* Fix Woo gallery height on mobile */
@media (max-width: 767px) {

    .woocommerce-product-gallery .flex-viewport {
        height: auto !important;
    }

    .woocommerce-product-gallery__wrapper {
        height: auto !important;
    }
}

@media (max-width: 767px) {

    .kr-active-image {
        display: block;
        width: 100%;
    }

    .kr-active-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    .kr-gallery-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 8px; /* 🔥 KEY FIX */
    }

}

/* 🔥 KILL Woo forced height on mobile */
@media (max-width: 767px) {

    body.single-product .woocommerce-product-gallery .flex-viewport {
        height: auto !important;
        min-height: 0 !important;
    }

    body.single-product .woocommerce-product-gallery__wrapper {
        height: auto !important;
    }

}

body.single-product .woocommerce-product-gallery {
    max-width: 500px;
    width: 100%;
}

/* Ensure content is ABOVE everything */
body.single-product .krumpld-product-content {
    position: relative;
    z-index: 10;
}

/* Push gallery BELOW */
body.single-product .woocommerce-product-gallery {
    position: relative;
    z-index: 1;
}

/* Kill invisible overlay behavior */
body.single-product .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper {
    pointer-events: auto;
}

/* Prevent sticky cart or other overlays from blocking */
body.single-product .krumpld-sticky-atc {
    z-index: 5;
}

/*body.single-product .woocommerce-product-gallery {*/
/*    pointer-events: none;*/
/*}*/

/* Allow accordion to expand naturally */
body.single-product .krumpld-product-content {
    overflow: visible;
}

/* Kill any clipping from parent containers */
body.single-product .woocommerce-product-gallery,
body.single-product .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper {
    overflow: visible !important;
}

body.single-product .summary.entry-summary {
    display: block !important;
}

body.single-product .kr-color-tagline {
    display: none;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}
body.single-product .kr-color-trivia {
    font-size: 14px !important;
    line-height: 1.6;
}

@media (min-width: 1025px) {

  .single-product .flex-control-thumbs {
    display: flex !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }

  .single-product .flex-control-thumbs li {
    width: 80px !important;
    height: 96px !important;
    flex: 0 0 80px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  .single-product .flex-control-thumbs li .kr-thumb-btn {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(17,17,17,0.12) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: transparent !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    filter: brightness(0.82);
    box-shadow: none !important;
    transform: none !important;
    transition: filter 180ms ease, border-color 180ms ease;
  }

  .single-product .flex-control-thumbs li .kr-thumb-btn img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .single-product .flex-control-thumbs li .kr-thumb-btn:hover {
    filter: brightness(0.93);
    border-color: rgba(17,17,17,0.18) !important;
  }

  .single-product .flex-control-thumbs li .kr-thumb-btn.is-active {
    filter: brightness(1);
    border-color: rgba(17,17,17,0.28) !important;
  }

  .single-product .flex-control-thumbs li .kr-thumb-btn.is-active:hover {
    filter: brightness(1);
    border-color: rgba(17,17,17,0.28) !important;
  }
}

/* ==========================================
   Krumpld Toast (v1)
   ========================================== */

.krumpld-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 9999;
}

/* soften the feel slightly */
.krumpld-toast {
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(6px);
}

.krumpld-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.kr-toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kr-toast-text {
    opacity: 0.9;
}

.kr-toast-cta {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    opacity: 1;
}

.krumpld-toast a,
.krumpld-toast a:hover,
.krumpld-toast a:focus,
.krumpld-toast a:active {
    color: #fff !important;
}

/* ==========================================
   Disable Woo Notices (PDP)
   ========================================== */

.woocommerce-notices-wrapper {
    display: none !important;
}
.single-product .woocommerce-notices-wrapper {
    display: none !important;
}

.woocommerce-product-gallery {
    opacity: 1;
    transition: opacity 120ms ease;
}

.single_add_to_cart_button {
    transition: none !important;
}