/* ── Sublime Quick View ─────────────────────────────────────────────────────── */

body.sqv-no-scroll { overflow: hidden !important; }

/* Hide Woodmart's native cart side panel — replaced by SQV drawer */
.cart-widget-side,
.wd-close-side { display: none !important; }

/* ── Overlay ─────────────────────────────────────────────────────────────────── */
.sqv-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex !important;        /* override [hidden]{display:none} */
    justify-content: flex-end;
    align-items: stretch;
}
.sqv-overlay.sqv-active {
    opacity: 1;
    pointer-events: all;
}

/* ── Drawer (shared) ─────────────────────────────────────────────────────────── */
.sqv-drawer {
    background: #fff;
    width: 100%;
    max-width: 480px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.sqv-drawer.sqv-active { transform: translateX(0); }

/* ── Quick-View Drawer ───────────────────────────────────────────────────────── */
.sqv-drawer-content,
.sqv-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sqv-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    background: #fff;
    z-index: 1;
}
.sqv-drawer-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
}
.sqv-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    display: flex;
    align-items: center;
}
.sqv-drawer-close:hover { opacity: 0.6; }

.sqv-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Two-column top row ───────────────────────────────────────────────────── */
.sqv-top-row {
    display: grid;
    grid-template-columns: 145px 1fr;
    border-bottom: 1px solid #e8e8e8;
}

/* Product image — left column */
.sqv-drawer-image {   
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sqv-drawer-image img {
    width: 100%;
    height: 100%;
    max-height: 100px;
    object-fit: cover;
    display: block;
}

/* Product info — right column */
.sqv-drawer-info {
    padding: 18px 20px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sqv-drawer-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.35;
    color: #1a1a1a;
}
/* Stars + price inline row */
.sqv-meta-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 4px;
}
.sqv-stars { display: flex; align-items: center; }
.sqv-star { font-size: 1.2rem; line-height: 1; }
.sqv-star.full, .sqv-star.half { color: #1a1a1a; }
.sqv-star.empty { color: #d0d0d0; }
.sqv-star-count { font-size: 1.2rem; color: #999; margin-left: 3px; }

.sqv-meta-sep-pipe {
    color: #ccc;
    font-size: 1rem;
    margin: 0 12px;
}

.sqv-price-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}
.sqv-price-main .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

/* ── Variation swatches ──────────────────────────────────────────────────────── */
.sqv-variations-wrap {
    padding: 16px 24px;
    border-top: 1px solid #e8e8e8;
}
.sqv-select-label {
    font-size: 0.68rem;
    color: #777;
    margin: 0 0 12px;
}

/* Shade header row (like Ogee: swatch preview + name + chevron) */
.sqv-shade-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    margin-bottom: 14px;
    cursor: default;
}
.sqv-shade-preview {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sqv-shade-dot {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}
.sqv-shade-name-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sqv-shade-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.sqv-shade-subname { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }
.sqv-shade-chevron { width: 16px; height: 16px; color: #888; flex-shrink: 0; }

.sqv-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.sqv-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    background: #ddd;
    padding: 0;
    font-size: 0;
    transition: border-color 0.15s, outline 0.15s;
    position: relative;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.sqv-swatch.selected {
    border-color: #1a1a1a;
    outline-color: #1a1a1a;
}
.sqv-swatch:hover { outline-color: #999; }

/* Text swatches */
.sqv-text-swatches .sqv-swatch {
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 6px 14px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f5f5f5;
    border: 1px solid #ddd;
    outline: none;
}
.sqv-text-swatches .sqv-swatch.selected { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ── Accordions ──────────────────────────────────────────────────────────────── */
.sqv-accordions-wrap { background: #fff; margin-top: 50px !important; margin-left: 30px; margin-right: 30px; }
.sqv-accordion { border-bottom: 1px solid #e8e8e8; background: #fff; margin: 0 !important; }
.sqv-accordion:first-child { border-top: none !important; }
.sqv-accordion:last-child { border-bottom: none !important; }

.sqv-accordion-trigger {
    width: 100%;
    background: #fff !important;
    border: none;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #1a1a1a;
    text-align: left;
}
.sqv-accordion-trigger:hover { background: #fff !important; }

.sqv-accordion-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #1a1a1a;
    margin-left: 2px;
}
.sqv-accordion-trigger.sqv-open .sqv-accordion-chevron { transform: rotate(180deg); }

.sqv-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sqv-accordion-panel.sqv-open { max-height: 600px; }
.sqv-accordion-panel-inner {
    padding: 0 0px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.sqv-accordion-panel-inner p { margin: 0 0 8px; }
.sqv-accordion-panel-inner p:last-child { margin-bottom: 0; }
.sqv-accordion-panel-inner table { width: 100%; font-size: 0.78rem; }
.sqv-accordion-panel-inner th,
.sqv-accordion-panel-inner td { padding: 4px 0; text-align: left; }

/* ── Sticky footer (ATC button) ─────────────────────────────────────────────── */
.sqv-drawer-footer {
    flex-shrink: 0;
    padding: 0;
    border-top: 1px solid #e8e8e8;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin:0 15px;
}
.sqv-add-to-cart-btn {
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    border: none;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    transition: background 0.2s;
    min-height: 52px;
}
.sqv-add-to-cart-btn:hover:not(:disabled) { background: #333; }
.sqv-add-to-cart-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sqv-add-to-cart-btn.sqv-loading { opacity: 0.7; pointer-events: none; }

.sqv-btn-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    letter-spacing: 0.13em;
    text-align: center;
    white-space: nowrap;
}
.sqv-btn-price {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border-left: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.75rem;
    min-width: 70px;
}

.sqv-view-details-link {
    display: block;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #888;
    padding: 10px 20px 14px;
}
.sqv-view-details-link:hover { color: #1a1a1a; }

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.sqv-spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 60px; }
.sqv-spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: sqv-spin 0.65s linear infinite;
}
@keyframes sqv-spin { to { transform: rotate(360deg); } }

/* ── Archive trigger button ──────────────────────────────────────────────────── */
.sqv-trigger.button,
button.sqv-trigger {
    display: inline-block;
    width: auto;
    background: none !important;
    color: #1a1a1a !important;
    border: none !important;
    border-bottom: 1px solid #1a1a1a !important;
    border-radius: 0 !important;
    padding: 2px 0 !important;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-align: center;
    box-shadow: none !important;
}
.sqv-trigger.button:hover,
button.sqv-trigger:hover {
    background: none !important;
    color: #555 !important;
    border-bottom-color: #555 !important;
}

/* ── Mini Cart Drawer ────────────────────────────────────────────────────────── */
.sqv-cart-drawer { max-width: 480px; }

.sqv-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.sqv-drawer-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #1a1a1a;
}
.sqv-drawer-close-btn:hover { opacity: 0.6; }

.sqv-cart-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Shipping notice */
.sqv-ship-notice {
    padding: 12px 24px;
    font-size: 0.68rem;
    border-bottom: 1px solid #e8e8e8;
    color: #c07a2a;
    line-height: 1.5;
}
.sqv-ship-notice.sqv-free { color: #2c7a3f; font-weight: 600; }
.sqv-check-icon { margin-right: 4px; }

/* Cart items list */
.sqv-cart-items { padding: 0 24px; }
.sqv-empty-msg { padding: 40px 0; text-align: center; color: #aaa; font-size: 0.82rem; }

.sqv-cart-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: start;
}
.sqv-cart-item:last-child { border-bottom: none; }
.sqv-item-img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    background: #f8f7f5;
    display: block;
}
.sqv-item-info { display: flex; flex-direction: column; gap: 3px; }
.sqv-item-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    line-height: 1.3;
}
.sqv-item-var { font-size: 0.62rem; color: #999; letter-spacing: 0.03em; }
.sqv-item-price { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.sqv-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* Qty stepper */
.sqv-qty { display: flex; align-items: center; border: 1px solid #ddd; }
.sqv-qty-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
}
.sqv-qty-btn:hover { background: #f5f5f5; }
.sqv-qty-num { padding: 0 8px; font-size: 0.78rem; min-width: 22px; text-align: center; }

.sqv-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    color: #aaa;
    padding: 0;
}
.sqv-remove-btn:hover { color: #1a1a1a; }

/* Cart footer */
.sqv-cart-footer {
    flex-shrink: 0;
    padding: 14px 24px 22px;
    border-top: 1px solid #e8e8e8;
}
.sqv-checkout-btn {
    display: block;
    width: 100%;
    background: #000 !important;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    padding: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.sqv-checkout-btn:hover { background: #333 !important; color: #fff !important; }

/* ── Pairs Well With panel — always visible when items exist ─────────────────── */
.sqv-pairs-panel {
    position: fixed;
    top: 0;
    right: 480px;
    width: 220px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    display: none;          /* switched to flex by JS when related items exist */
    flex-direction: column;
    z-index: 999998;
}

/* When JS sets display:flex show it always */
.sqv-pairs-panel[style*="display: flex"],
.sqv-pairs-panel[style*="display:flex"] {
    display: flex !important;
}

.sqv-pairs-header {
    padding: 18px 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b5853a;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.sqv-pairs-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    /* Custom scrollbar — visible only on hover */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s;
}
.sqv-pairs-body:hover {
    scrollbar-color: #ccc transparent;
}
.sqv-pairs-body::-webkit-scrollbar { width: 4px; }
.sqv-pairs-body::-webkit-scrollbar-track { background: transparent; }
.sqv-pairs-body::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}
.sqv-pairs-body:hover::-webkit-scrollbar-thumb { background: #ccc; }

.sqv-related-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}
.sqv-related-item:last-child { margin-bottom: 0; }
.sqv-related-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f3f0;
    display: block;
}
.sqv-related-item-name {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    line-height: 1.3;
    color: #1a1a1a;
}
.sqv-related-item-price { font-size: 0.65rem; color: #555; margin: 0; }
.sqv-related-item .sqv-trigger { font-size: 0.6rem; margin-top: 2px; background-color: #000 !important;color:white !important }
