/* ================================================================
   6knot4 — Product Page  |  Exact Mango Match
   ================================================================ */

/* Page container */
body.single-product .nova-container.display-flex,
body.single-product .product-content-area,
body.single-product .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;  /* overflow:hidden/auto breaks position:sticky */
}
body.single-product .woocommerce,
body.single-product [id^="product-"] {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
.mango-page-wrapper, .mango-page-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
}

/* ── Product wrapper ── */
.knot4-product {
    width: 100%;
    background: #fff;
    padding: 0;
    margin: 0;
}

/* Hide parent theme wrappers */
.knot4-product .product_infos,
.knot4-product .product-infor-detail,
.knot4-product .grid-x { display: contents !important; }

.knot4-product .product-single-top-area,
.knot4-product .before-product-summary-wrapper,
.knot4-product .nova-custom__price-rating-box,
.knot4-product .woocommerce-product-gallery { display: none !important; }

.knot4-product .summary.entry-summary { all: unset; display: block; }

/* Hide all WC default elements */
.knot4-product .quantity,
.knot4-product .qty,
.knot4-product table.variations,
.knot4-product .woocommerce-variation-price,
.knot4-product .product_meta,
.knot4-product .woocommerce-product-details__short-description,
.knot4-product .woocommerce-product-rating,
.knot4-product .yith-wcwl-add-to-wishlist,
.knot4-product .yith-wcwl-add-button,
.knot4-product .reset_variations,
.knot4-product .single_variation_wrap .woocommerce-variation-add-to-cart,
.knot4-product .single_variation_wrap .button { display: none !important; }

/* Hide WC default add-to-cart form (not our custom form) */
.knot4-product form.cart:not(#knot4-cart-form) { display: none !important; }

/* Hidden selects inside .variations — visually hidden but accessible to WC JS */
.knot4-product .variations {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
}

.knot4-hidden-sel {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
}

/* Hidden real WC submit */
.knot4-real-submit {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ================================================================
   MAIN LAYOUT
   Left: flexible gallery (takes remaining space)
   Right: fixed 360px sticky panel
   ================================================================ */
.knot4-layout {
    display: flex;
    align-items: flex-start;  /* MUST be flex-start for sticky child to work */
    width: 100%;
    overflow: visible;  /* overflow:hidden breaks sticky */
    /*padding-bottom: 40px;*/
}

/* ── LEFT: Gallery ── */
.knot4-gallery {
    flex: 1 1 0;
    min-width: 0;
}

/* 2-column grid — each cell is 50% of gallery width */
.knot4-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.knot4-img-cell {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 3 / 4;
    line-height: 0;
    width: 100%;
}

.knot4-img-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.knot4-img-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.knot4-img-cell:hover img { transform: scale(1.03); }

/* White + cursor — follows mouse on image hover */
.knot4-plus-overlay {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    transition: none;
}

/* Show + on image hover */
.knot4-img-cell:hover .knot4-plus-overlay {
    display: flex;
}

.knot4-plus-icon {
    font-size: 18px;
    font-weight: 300;
    color: #111;
    line-height: 1;
    display: block;
}

/* Hide default cursor on images, + acts as cursor */
.knot4-img-cell {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 3 / 4;
    line-height: 0;
    width: 100%;
    cursor: none;
}

.knot4-img-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    cursor: none;
}

/* ── RIGHT: Sticky info panel ── */
.knot4-info {
    width: 360px;
    flex-shrink: 0;
    align-self: flex-start;  /* CRITICAL for sticky to work */
    position: sticky;
    top: 0;
    /* Height must not exceed viewport for sticky to work */
}

.knot4-info-inner {
    padding: 28px 32px 40px 36px;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.knot4-info-inner::-webkit-scrollbar { display: none; }

/* ── Brand ── */
.knot4-brand {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 6px;
}

/* ── 1. Title ── */
.knot4-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

/* ── 2. Price ── */
.knot4-price { margin-bottom: 18px; }
.knot4-price .price,
.knot4-price .woocommerce-Price-amount {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #111 !important;
}
.knot4-price .price del { color: #aaa !important; font-size: 13px !important; margin-right: 5px; }
.knot4-price .price ins { text-decoration: none !important; color: #c0392b !important; }

/* ── 3. Color swatches ── */
.knot4-color-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.knot4-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.knot4-swatch {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 4px 6px 0 !important;
    display: inline-block !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    transition: none !important;
    position: relative !important;
    box-shadow: none !important;
}

.knot4-swatch:hover::after,
.knot4-swatch.k4-sel::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #111 !important;
}

.knot4-swatch:hover { outline: none !important; border: none !important; }
.knot4-swatch.k4-sel { outline: none !important; border: none !important; }

.knot4-color-label {
    font-size: 12px;
    color: #555;
    letter-spacing: 0.03em;
    margin-left: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 4. Size — list open by default, collapses on select ── */
.knot4-size-wrap { margin-bottom: 14px; }

.knot4-size-dropdown {
    position: relative;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* Trigger — hidden until a size is selected */
.knot4-size-trigger {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: #111;
    letter-spacing: 0.02em;
    text-align: left;
}

/* Show trigger when collapsed */
.knot4-size-dropdown.is-collapsed .knot4-size-trigger {
    display: flex;
}

.knot4-size-val { flex: 1; }

.knot4-chevron {
    width: 16px;
    height: 16px;
    stroke: #111;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.knot4-size-dropdown.is-collapsed.is-open .knot4-chevron { transform: rotate(180deg); }

/* Size list — visible by default */
.knot4-size-list {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    z-index: 10;
}

/* Hide list when collapsed (after selection) */
.knot4-size-dropdown.is-collapsed .knot4-size-list {
    display: none;
}

/* Show list again when re-opened */
.knot4-size-dropdown.is-collapsed.is-open .knot4-size-list {
    display: block;
}

.knot4-size-list li { border-bottom: 1px solid #e0e0e0; list-style: none; }

.knot4-size-opt {
    display: block;
    width: 100%;
    padding: 13px 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 400;
    color: #111;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.knot4-size-opt:hover { background: #f5f5f5 !important; color: #111 !important; }
.knot4-size-opt.k4-sel { background: #f0f0f0 !important; font-weight: 700; }
.knot4-size-opt.k4-unavail {
    color: #ccc !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

/* MEASUREMENTS */
.knot4-measurements {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    cursor: pointer;
    display: block;
}

/* ── 5. ADD + Heart ── */
.knot4-actions {
    display: flex;
    gap: 6px;
    align-items: stretch;
    margin-bottom: 8px;
}

.knot4-add-btn {
    flex: 1 1 auto;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 24px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    transition: background 0.2s !important;
}
.knot4-add-btn:hover { background: #2a2a2a !important; }

.knot4-heart-btn {
    width: 52px;
    flex-shrink: 0;
    background: #111;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    border-radius: 0;
}
.knot4-heart-btn:hover { background: #2a2a2a; }
.knot4-heart-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }
.knot4-heart-btn.active svg { fill: #fff; }

/* SEE LOOK — hidden */
.knot4-see-look {
    display: none !important;
}
.knot4-see-look:hover { border-color: #111; }

/* Free delivery */
.knot4-delivery {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #555;
    margin: 0 0 20px;
    text-transform: uppercase;
}

/* Description */
.knot4-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}
.knot4-desc p { margin: 0 0 8px; }

/* Description — clamp to 2 lines */
.knot4-desc.knot4-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.knot4-desc.knot4-desc-clamp p {
    display: inline;
    margin: 0;
}
.knot4-desc.knot4-desc-clamp p + p::before {
    content: ' ';
}

/* ── Accordions ── */
.knot4-acc { border-top: 1px solid #e0e0e0; }
.knot4-acc:last-of-type { border-bottom: 1px solid #e0e0e0; }

.knot4-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    text-align: left;
}

.knot4-acc-icon { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.knot4-acc-icon::before,
.knot4-acc-icon::after { content: ''; position: absolute; background: #111; transition: transform 0.25s, opacity 0.25s; }
.knot4-acc-icon::before { width: 12px; height: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.knot4-acc-icon::after  { width: 1px; height: 12px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.knot4-acc-btn[aria-expanded="true"] .knot4-acc-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.knot4-acc-body { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.knot4-acc-body.is-open { max-height: 400px; padding-bottom: 16px; }
.knot4-acc-body p, .knot4-acc-body li { font-size: 12px; line-height: 1.7; color: #555; margin: 0 0 4px; }
.knot4-meta-list { list-style: none; padding: 0; margin: 0; }
.knot4-meta-list li strong { color: #111; font-weight: 600; }
.knot4-meta-list a { color: #555; text-decoration: underline; }

/* Stock */
.knot4-product .stock { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.knot4-product .in-stock  { color: #2e7d32; }
.knot4-product .out-of-stock { color: #c62828; }

/* ── Hide YITH wishlist floating/popup buttons everywhere ── */
.yith-wcwl-popup-button,
.yith-wcwl-wishlist-popup,
#yith-wcwl-popup-wrap,
.yith_wcwl_add_to_wishlistbutton,
body > .yith-wcwl-add-to-wishlist,
.knot4-product ~ .yith-wcwl-add-to-wishlist,
[class*="yith-wcwl"]:not(.knot4-heart-btn) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide any fixed/absolute positioned wishlist elements at bottom */
.woocommerce-page .yith-wcwl-add-to-wishlist,
body .yith-wcwl-add-to-wishlist {
    display: none !important;
}

/* ================================================================
   RELATED PRODUCTS — Mango style
   ================================================================ */
.knot4-related {
    margin: 0;
    padding-block-end: 16px;
    padding-inline: 16px;
    border-top: 1px solid #e0e0e0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.knot4-related .related.products > h2,
.knot4-related .up-sells > h2 {
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    margin: 20px 0 20px !important;
    padding: 16px 0 0 !important;
    text-align: left !important;
    position: inherit;
    display: block;
    
}

.knot4-related ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.knot4-related ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Product image — full width, portrait ratio */
.knot4-related ul.products li.product a img,
.knot4-related ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
    display: block !important;
}

/* Product title */
.knot4-related ul.products li.product .woocommerce-loop-product__title,
.knot4-related ul.products li.product h2 {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #111 !important;
    text-transform: none !important;
    margin: 8px 0 4px !important;
    padding: 0 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.4 !important;
}

/* Product price */
.knot4-related ul.products li.product .price {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #111 !important;
    display: block !important;
}

/* Hide add to cart button */
.knot4-related ul.products li.product .button,
.knot4-related ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* Hide YITH wishlist on related cards */
.knot4-related .yith-wcwl-add-to-wishlist,
.knot4-related .yith-wcwl-add-button {
    display: none !important;
}

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

/* Large desktop: gallery takes remaining space, right panel 360px */
@media (min-width: 1200px) {
    .knot4-info { width: 400px; }
}

/* Tablet */
@media (max-width: 1024px) {
    .knot4-info { width: 300px; }
    .knot4-info-inner { padding: 20px 20px 40px 24px; }
}

/* Mobile */
@media (max-width: 768px) {
    .knot4-layout { flex-direction: column; }
    .knot4-gallery { width: 100%; }
    .knot4-info {
        width: 100%;
        position: static;
        align-self: auto;
    }
    .knot4-info-inner {
        max-height: none;
        overflow-y: visible;
        padding: 24px 20px 0;
    }
    .knot4-related { padding: 32px 20px 48px; }
    .knot4-related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Hide PhotoSwipe lightbox (WC default, replaced by fancybox) ── */
.pswp {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

.pswp__scroll-wrap,
.pswp__container,
.pswp__ui,
.pswp__top-bar,
.pswp__button {
    display: none !important;
}

@media (max-width: 1024px) {
    .knot4-related ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .knot4-img-grid { gap: 2px; }
    .knot4-related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================================================================
   OVERRIDE parent theme + WC layout CSS for related products
   These rules must come LAST to win specificity battle
   ================================================================ */

/* Reset float-based layout from parent theme & WC */
body.single-product .knot4-related ul.products,
body.woocommerce.single-product .knot4-related ul.products,
body.woocommerce-page.single-product .knot4-related ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* Reset each product card — override width:calc() from parent */
body.single-product .knot4-related ul.products li.product,
body.woocommerce.single-product .knot4-related ul.products li.product,
body.woocommerce-page.single-product .knot4-related ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Product image full width */
body.single-product .knot4-related ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 100% !important;
}

/* Responsive overrides */
@media (max-width: 1024px) {
    body.single-product .knot4-related ul.products,
    body.woocommerce.single-product .knot4-related ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body.single-product .knot4-related ul.products,
    body.woocommerce.single-product .knot4-related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================================================================
   SIDE DRAWER — slides in from right (Mango style)
   ================================================================ */

/* Drawer links (replace accordions) */
.knot4-drawer-links {
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
}

.knot4-drawer-link {
    display: block;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    text-align: left;
}

.knot4-drawer-link:hover { color: #555; }

/* Overlay */
.knot4-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.knot4-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Drawer panel */
.knot4-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 460px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.knot4-drawer.is-open {
    right: 0;
}

.knot4-drawer-inner {
    padding: 32px 28px 48px;
}

/* Drawer header */
.knot4-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.knot4-drawer-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    margin: 0;
}

.knot4-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knot4-drawer-close:hover { color: #555; }

/* REF number */
.knot4-drawer-ref {
    font-size: 12px;
    color: #555;
    margin: 0 0 20px;
}

/* Drawer tabs */
.knot4-drawer-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0;
}

.knot4-dtab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
    border-radius: 0;
}

.knot4-dtab:hover {
    color: #111;
    background: none !important;
    box-shadow: none !important;
    border-bottom: 2px solid #111;
}

.knot4-dtab:focus {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.knot4-dtab.active {
    color: #111;
    border-bottom-color: #111;
    background: none !important;
    box-shadow: none !important;
}

/* Tab content */
.knot4-dtab-content {
    display: none;
}

.knot4-dtab-content.active {
    display: block;
}

/* Drawer description */
.knot4-drawer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.knot4-drawer-desc p { margin: 0 0 10px; }

.knot4-drawer-meta {
    font-size: 13px;
    color: #444;
    margin-bottom: 16px;
}

.knot4-drawer-meta p { margin: 0 0 6px; }
.knot4-drawer-meta strong { color: #111; }

/* Delivery table */
.knot4-delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.knot4-delivery-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.knot4-delivery-table td {
    padding: 10px 0;
    font-size: 13px;
    color: #444;
    vertical-align: top;
}

.knot4-delivery-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #111;
}

.knot4-dtab-content h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    margin: 24px 0 12px;
}

.knot4-dtab-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 12px;
}

/* ================================================================
   ADDED TO BAG POPUP — Mango style
   ================================================================ */
.knot4-cart-popup {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-width: 90vw;
    background: #fff;
    z-index: 10000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    animation: knot4FadeIn 0.25s ease;
}

.knot4-cart-popup.is-open { display: block; }

@keyframes knot4FadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.knot4-cart-popup-inner { padding: 20px; }

.knot4-cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.knot4-cart-popup-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
}

.knot4-cart-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.knot4-cart-popup-product {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.knot4-cart-popup-img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.knot4-cart-popup-info { flex: 1; }

.knot4-cart-popup-name {
    font-size: 13px;
    font-weight: 400;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.4;
}

.knot4-cart-popup-price {
    font-size: 13px;
    font-weight: 400;
    color: #111;
    margin: 0 0 4px;
}

.knot4-cart-popup-meta {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.knot4-cart-popup-actions {
    display: flex;
    gap: 8px;
}

.knot4-cart-popup-checkout {
    flex: 1;
    display: block;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ccc;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.knot4-cart-popup-checkout:hover { border-color: #111; color: #111; }

.knot4-cart-popup-viewbag {
    flex: 1;
    display: block;
    padding: 14px 16px;
    background: #111;
    border: 1px solid #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.knot4-cart-popup-viewbag:hover { background: #333; color: #fff; }

/* ── Size change notice — hidden ── */
.knot4-size-notice {
    display: none !important;
}

/* ── Size chart table in drawer ── */
.knot4-size-chart {
    width: 100%;
    overflow-x: auto;
}

.knot4-size-chart table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.knot4-size-chart th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
    padding: 10px 8px;
    border-bottom: 2px solid #111;
    text-align: left;
}

.knot4-size-chart td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 13px;
}

.knot4-size-chart tr:hover td {
    background: #f9f9f9;
}

.knot4-no-chart {
    font-size: 13px;
    color: #888;
    padding: 20px 0;
}

/* MEASUREMENTS button style (reuse drawer-link style) */
button.knot4-measurements.knot4-drawer-link {
    border-top: none;
    margin-top: 0;
    padding-top: 12px;
}

/* ================================================================
   MOBILE IMAGE SLIDER
   ================================================================ */
@media (max-width: 768px) {
    .knot4-img-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0 !important;
    }
    .knot4-img-grid::-webkit-scrollbar { display: none !important; }

    .knot4-img-cell {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: start !important;
        aspect-ratio: 3 / 4 !important;
        cursor: default !important;
    }

    /* Hide + cursor on mobile */
    .knot4-plus-overlay { display: none !important; }
    .knot4-img-cell { cursor: default !important; }
    .knot4-img-link { cursor: default !important; }

    /* Dots indicator */
    .knot4-slider-dots {
        display: flex !important;
        justify-content: center;
        gap: 6px;
        padding: 12px 0;
    }

    .knot4-slider-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ccc;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s;
    }

    .knot4-slider-dot.active { background: #111; }
}

/* Hide dots on desktop */
@media (min-width: 769px) {
    .knot4-slider-dots { display: none !important; }
}

/* ── Remove ALL black box/focus/hover effects on product page buttons ── */
.knot4-product button:focus,
.knot4-product button:active,
.knot4-product a:focus,
.knot4-product .knot4-measurements:hover,
.knot4-product .knot4-measurements:focus,
.knot4-product .knot4-drawer-link:hover,
.knot4-product .knot4-drawer-link:focus,
.knot4-product .knot4-size-trigger:focus,
.knot4-product .knot4-swatch:focus,
.knot4-product .knot4-acc-btn:focus,
.knot4-product .knot4-see-look:focus,
.knot4-product .knot4-dtab:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Size options — gray background on hover and select */
.knot4-product .knot4-size-opt:hover {
    background: #f5f5f5 !important;
    outline: none !important;
    box-shadow: none !important;
}
.knot4-product .knot4-size-opt:focus {
    outline: none !important;
    box-shadow: none !important;
    background: #f5f5f5 !important;
}
.knot4-product .knot4-size-opt.k4-sel {
    background: #f0f0f0 !important;
}

/* Measurements hover — white bg, underline allowed */
.knot4-product .knot4-measurements:hover {
    background: #fff !important;
    text-decoration: underline !important;
}

/* Drawer links hover — white bg */
.knot4-product .knot4-drawer-link:hover {
    background: #fff !important;
}

/* Keep ADD/heart button backgrounds */
.knot4-product .knot4-add-btn:hover,
.knot4-product .knot4-add-btn:focus {
    background: #2a2a2a !important;
}

.knot4-product .knot4-heart-btn:hover,
.knot4-product .knot4-heart-btn:focus {
    background: #2a2a2a !important;
}

/* SEE LOOK — white bg on hover */
.knot4-product .knot4-see-look:hover,
.knot4-product .knot4-see-look:focus {
    background: #fff !important;
    border-color: #111 !important;
}

/* ================================================================
   STICKY BOTTOM BAR — shows when scrolled past product info
   ================================================================ */
.knot4-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    z-index: 9990;
    padding: 10px 24px;
    display: none; /* hidden by default, JS shows it */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.knot4-sticky-bar.is-visible {
    display: block;
}

.knot4-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
}

.knot4-sticky-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.knot4-sticky-name {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.knot4-sticky-price {
    font-size: 12px;
    font-weight: 400;
    color: #111;
    white-space: nowrap;
}

.knot4-sticky-color {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.knot4-sticky-swatch {
    width: 12px;
    height: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.knot4-sticky-actions {
    display: flex;
    gap: 4px;
    align-items: stretch;
    flex-shrink: 0;
}

.knot4-sticky-add {
    padding: 12px 32px !important;
    font-size: 11px !important;
}

.knot4-sticky-heart {
    width: 44px !important;
}

.knot4-sticky-heart svg {
    width: 16px !important;
    height: 16px !important;
}

/* Hide on mobile — use full width */
@media (max-width: 768px) {
    .knot4-sticky-name { max-width: 120px; font-size: 11px; }
    .knot4-sticky-price { font-size: 11px; }
    .knot4-sticky-color { display: none; }
    .knot4-sticky-add { padding: 12px 20px !important; }
}
