/* ============================================================
   SHOP STYLES  —  shop-styles.css
   New file only. Zero changes to styles.css.
   ============================================================ */


/* ── Nav label responsive text ──────────────────────────── */
.nav-label-mobile  { display: none; pointer-events: none; }
.nav-label-desktop { display: inline; pointer-events: none; }

@media (max-width: 700px) {
    .nav-label-mobile  { display: inline; }
    .nav-label-desktop { display: none; }
}

/* ── Header nav — stays in one row, buttons stretch edge to edge ── */
@media (max-width: 900px) {
    .header-nav {
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        gap: 8px;
    }
    .header-nav .button {
        flex: 1;
        text-align: center;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ── Category bar layout ─────────────────────────────────── */
.shop-filter-bar {
    background: linear-gradient(180deg, #414141 0%, #666565 100%);
    display: flex;
    align-items: stretch;
    position: relative;
}

/* Darker panel extends from the cart zone to the right edge of the screen.
   Achieved with a pseudo-element anchored to the right so it always fills
   to the viewport edge regardless of screen width. */
.shop-filter-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: calc(50% - 500px + 0px);
    background: rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 0;
}

/* Inner wrapper — constrains both zones to page max-width */
.shop-filter-bar-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 1;            /* sits above the ::after pseudo-element */
}

/* Chips zone — takes remaining width, clips overflow */
.shop-filter-bar .art-filter-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    max-width: none;
    margin: 0;
}

/* Cart zone — darker panel, fixed right */
.shop-cart-zone {
    flex-shrink: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    padding: 0 20px 0 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.shop-cart-icon-btn {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--grey-lt);
    font-size: 14px;
    font-weight: bold;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.shop-cart-icon-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: var(--white);
}
.shop-cart-icon-btn svg { display: block; flex-shrink: 0; }

.shop-cart-icon-label { line-height: 1; }

#shop-cart-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #c8292c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ── Category chip bar ──────────────────────────────────── */
/* Outer bar reuses .art-filter-bar + .art-series-bar from styles.css.
   Only chip internals are defined here. */

/* Separator between chips and cart button — hidden on desktop,
   shown as a full-width line on mobile via media query below */
.shop-bar-separator {
    display: none;
}

#shop-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.shop-cat-btn {
    font-weight: bold;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    background: transparent;
    color: var(--grey-lt);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    cursor: pointer;
    box-shadow: none;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.shop-cat-btn.active  { background: var(--white); color: var(--black); border-color: var(--white); }
.shop-cat-btn:hover   { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }
.shop-cat-btn.active:hover { background: var(--grey-lt); color: var(--black); }

.shop-cat-count {
    font-size: 12px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.4;
}
.shop-cat-btn.active .shop-cat-count     { background: rgba(0,0,0,0.1);   color: var(--black); }
.shop-cat-btn:not(.active) .shop-cat-count { background: rgba(255,255,255,0.12); color: var(--grey-lt); }

/* Static bar — mobile layout below 759px */
@media (max-width: 759px) {
    #shop-cat-chips { width: 100%; flex-direction: column; align-items: stretch; }
    .shop-cat-btn   { width: 100%; justify-content: center; }
    .shop-filter-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-filter-bar .art-series-selection {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px;
    }
    .shop-cart-zone {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 20px 20px;
        justify-content: center;
    }
    .shop-cart-icon-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0px;
    }
    .shop-filter-bar .shop-bar-separator { display: none; }
}


/* ── Product grid ───────────────────────────────────────── */
.shop-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Single column at 800px — matches art card layout in Invest in Art */
@media (max-width: 800px) {
    .shop-grid { grid-template-columns: 1fr; }
}


/* ── Product card ───────────────────────────────────────── */
.shop-card {
    background: var(--white);
    border: 1px solid #e8e8e8;        /* was #c8c8c8 */
    border-radius: var(--radius);
    box-shadow: var(--shadow);        /* new — matches .art_section */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
    cursor: pointer;
}
.shop-card:hover { box-shadow: var(--shadow-hover); }
.shop-card-images {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-card-images img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0px;
    box-sizing: border-box;
}


.shop-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shop-card-category {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--grey);
    margin: 0 0 4px;
}
.shop-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 4px;
    line-height: 1.25;
}
.shop-card-desc {
    font-size: 16px;
    color: var(--grey);
    margin: 0 0 12px;
    line-height: 1.55;
    flex: 1;
}
.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.shop-card-price  { font-size: 26px; font-weight: 700; color: var(--black); }
.shop-card-btn {
    padding: 10px 20px;
    background: var(--black); color: var(--white);
    border: none; border-radius: 6px;
    font-size: 14px; font-weight: 700;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.shop-card-btn:hover    { background: var(--grey-dk); }
.shop-card-btn:disabled { background: #ccc; cursor: default; }

.shop-oos-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #c8292c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}


/* ── Product detail modal ───────────────────────────────── */
.shop-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: shopFadeIn 0.18s ease;
}
@keyframes shopFadeIn { from { opacity:0; } to { opacity:1; } }

.shop-modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 780px; width: 100%;
    max-height: 90vh;
    display: flex; flex-direction: column;
    animation: shopSlideUp 0.22s ease;
    position: relative;
    overflow: hidden;
}
@keyframes shopSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.shop-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 28px; height: 28px;
    border: none; background: transparent;
    padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; opacity: 0.55;
    transition: opacity 0.15s;
}
.shop-modal-close img { width: 18px; height: 18px; display: block; }
.shop-modal-close:hover { opacity: 1; background: transparent; }

/* ── Modal body: two-column on desktop/tablet, one column on mobile ── */
.shop-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Left column: image + thumbs ── */
.shop-modal-left {
    display: flex;
    flex-direction: column;
    padding: 20px 0 20px 20px;   /* 20px top and left, 0 right — flush to info panel */
    overflow: hidden;
    min-height: 0;
}

/* ── Image panel: true 1:1 square ── */
.shop-modal-images {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
    border: 1px solid #e8e8e8;
    background: #ffffff;
}

.shop-modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    box-sizing: border-box;
}

/* ── Thumbs: below the image on desktop/tablet ── */
.shop-modal-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 0 0 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-shrink: 0;
}

.shop-modal-thumb {
    width: 52px; height: 52px;
    object-fit: contain;
    object-position: center;
    background: #f4f4f4;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
    padding: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.shop-modal-thumb.active { border-color: var(--black); }

/* ── Info panel ── */
.shop-modal-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    min-height: 0;
}

/* ── Mobile: single column, full width image ── */
@media (max-width: 520px) {
    .shop-modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    .shop-modal-left {
        padding: 20px 20px 0 20px;   /* 20px all sides on mobile */
        flex-shrink: 0;
    }
    .shop-modal-images {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }
    .shop-modal-thumbs {
        padding: 10px 0 0 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .shop-modal-thumbs::-webkit-scrollbar { display: none; }
    .shop-modal-thumb { width: 60px; height: 60px; }
    .shop-modal-info {
        overflow-y: visible;
        min-height: unset;
        padding: 16px 20px 0;
    }
}
.shop-modal-category {
    font-size: 10px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--grey); margin: 0;
}
.shop-modal-title  { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.2; }
.shop-modal-price  { font-size: 26px; font-weight: 700; color: var(--black); margin: 0; }
.shop-modal-unit   { font-size: 16px; font-weight: 400; color: var(--grey); }
.shop-modal-desc   { font-size: 16px; color: #333; line-height: 1.6; margin: 0; }
.shop-modal-desc ul { padding-left: 18px; margin: 8px 0 0; }
.shop-modal-desc li { margin-bottom: 4px; }

.shop-modal-details {
    border-top: 1px solid #eee; padding-top: 12px;
    display: grid; grid-template-columns: auto 1fr;
    gap: 6px 16px; font-size: 16px;
}
.shop-modal-details dt { font-weight: 600; color: var(--grey); white-space: nowrap; }
.shop-modal-details dd { margin: 0; color: var(--black); }

.shop-modal-shipping {
    background: var(--grey-lt); border-radius: 6px;
    padding: 10px 14px; font-size: 16px;
    color: var(--grey); line-height: 1.5;
}
.shop-modal-shipping strong { color: var(--black); display: block; margin-bottom: 2px; }

/* ── Sticky Add-to-Cart footer ──────────────────────────── */
.shop-modal-footer {
    padding: 14px 24px;
    background: var(--white);
    border-top: 1px solid #eee;
    border-radius: 0 0 var(--radius) var(--radius);
    flex-shrink: 0;
}

/* Qty + Add to Cart row — right aligned */
.shop-modal-buy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0; margin: 0;
}

/* After "Add to Cart" — confirmation row — left aligned */
.shop-modal-added {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.shop-modal-added-msg {
    font-size: 14px; font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
}
.shop-modal-added-msg img {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}
.shop-view-cart-btn {
    padding: 8px 20px;
    background: var(--white); color: var(--black);
    border: none; border-radius: 6px;
    font-size: 13px; font-weight: 700;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer; transition: background 0.15s;
    white-space: nowrap;
}
.shop-view-cart-btn:hover { background: var(--grey-lt); color: var(--black); }

/* Footer turns green when item is added */
.shop-modal-footer--added {
    background: #2a7c3f;
    border-top-color: #2a7c3f;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.shop-modal-footer {
    transition: background 0.2s ease, border-color 0.2s ease;
}


/* ── Shared qty stepper ─────────────────────────────────── */
.shop-qty-wrap {
    display: inline-flex; align-items: center;
    border: 2px solid var(--grey-lt);
    border-radius: 6px;
    overflow: hidden;
    margin: 0; padding: 0; flex-shrink: 0;
    isolation: isolate;
}
.shop-qty-btn {
    width: 41px; height: 41px;
    border: none; margin: 0; padding: 0;
    background: var(--grey-lt);
    font-size: 20px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; color: var(--black);
    transition: background 0.12s;
    flex-shrink: 0;
}
.shop-qty-btn:hover { background: #d8d8d8; color: var(--black); }
.shop-qty-input {
    width: 50px;
    height: 41px;
    text-align: center;
    border: none;
    margin: 0; padding: 0;
    font-size: 16px; font-weight: 600;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    color: var(--black); background: var(--white);
    -moz-appearance: textfield;
    display: block;
}
.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Small variant used inside drawer — also bumped to match */
.shop-qty-wrap--sm .shop-qty-btn  { width: 41px; height: 41px; font-size: 18px; }
.shop-qty-wrap--sm .shop-qty-input { width: 50px; height: 41px; font-size: 16px; }

/* Primary CTA — "Add to Cart" in modal */
.shop-buy-btn {
    padding: 10px 24px;
    background: var(--black); color: var(--white);
    border: none; border-radius: 6px;
    font-size: 14px; font-weight: 700;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer; transition: background 0.15s; letter-spacing: 0.3px;
    white-space: nowrap;
}
.shop-buy-btn:hover    { background: var(--grey-dk); }
.shop-buy-btn:disabled { background: #bbb; cursor: default; }


/* ── Cart drawer overlay ────────────────────────────────── */
#shop-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    transition: opacity 0.3s ease;
    opacity: 0;
}
#shop-drawer-overlay.open { opacity: 1; }

/* ── Cart drawer panel ──────────────────────────────────── */
#shop-cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 100vw;
    background: var(--white);
    z-index: 1101;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
#shop-cart-drawer.open { transform: translateX(0); }

.shop-drawer-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}
.shop-drawer-title {
    font-size: 18px; font-weight: 700;
    color: var(--black); margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.shop-drawer-count {
    font-size: 13px; font-weight: 400;
    color: var(--grey);
}
#shop-drawer-close {
    background: transparent; border: none;
    padding: 4px; cursor: pointer;
    display: flex; align-items: center;
    opacity: 0.5; transition: opacity 0.15s;
}
#shop-drawer-close:hover { opacity: 1; }
#shop-drawer-close img { width: 18px; height: 18px; display: block; }

/* Scrollable content area */
#shop-drawer-body {
    flex: 1; overflow-y: auto;
    padding: 0;
    display: flex; flex-direction: column;
}

/* ── Drawer — empty state ───────────────────────────────── */
.shop-drawer-empty {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 40px 20px;
    text-align: center;
}
.shop-drawer-empty-icon { width: 240px; height: auto; display: block; margin: 0 auto 0px; }
.shop-drawer-empty p    { font-size: 16px; color: var(--grey); margin: 0; }
.shop-drawer-continue {
    margin-top: 8px;
    padding: 10px 24px;
    background: var(--black); color: var(--white);
    border: none; border-radius: 6px;
    font-size: 16px; font-weight: 700;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer; transition: background 0.15s;
}
.shop-drawer-continue:hover { background: var(--grey-dk); }

/* ── Drawer — item list ─────────────────────────────────── */
.shop-drawer-items {
    border-bottom: 1px solid #eeeeee;
}
.shop-drawer-item {
    display: flex; gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.shop-drawer-item:last-child { border-bottom: none; }
.shop-drawer-item-img {
    width: 72px; height: 72px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid #e8e8e8; flex-shrink: 0;
}
.shop-drawer-item-info {
    flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.shop-drawer-item-title {
    font-size: 20px; font-weight: 700;
    color: var(--black); margin: 0; line-height: 1.3;
}
.shop-drawer-item-price {
    font-size: 18px; font-weight: 300;
    color: var(--black); margin: 0;
}
.shop-drawer-item-controls {
    display: flex; align-items: center; gap: 10px;
}
.shop-drawer-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 41px;
    background: var(--grey-lt);
    border: none;
    border-radius: 5px;
    padding: 0 16px;
    margin-left: 0;
    cursor: pointer;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    transition: background 0.12s;
    white-space: nowrap;
}
.shop-drawer-remove:hover {
    background: #d8d8d8;
    color: var(--black);
}
.shop-drawer-remove img {
    width: 10px; height: 10px;
    display: block;
    opacity: 0.6;
    pointer-events: none;
}
.shop-drawer-remove:hover img { opacity: 1; }

/* Prevent SVG icons inside qty buttons from swallowing click events */
.shop-qty-btn img { pointer-events: none; display: block; }

/* ── Free shipping progress note ───────────────────────── */
.shop-drawer-freeship {
    font-size: 16px; text-align: center;
    color: var(--grey); padding: 10px 20px;
    margin: 0; background: #fafafa;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.shop-drawer-freeship--earned {
    background: #2a7c3f;
    border-bottom-color: #2a7c3f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: left;
}

/* ── Totals ─────────────────────────────────────────────── */
.shop-drawer-totals {
    padding: 16px 20px 8px;
    display: flex; flex-direction: column; gap: 8px;
    border-top: 1px solid #eee;
}
.shop-drawer-total-row {
    display: flex; justify-content: space-between;
    font-size: 16px; color: var(--black);
}
.shop-drawer-total-row--total {
    font-size: 18px; font-weight: 700;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
}
.shop-free-tag {
    color: #2a7c3f; font-weight: 700;
}

/* ── PayPal inside drawer ───────────────────────────────── */
#shop-drawer-paypal {
    padding: 16px 20px 4px;
}

/* ── Success state inside drawer ────────────────────────── */
.shop-drawer-success {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 40px 24px;
    text-align: center;
}
.shop-success-icon { display:flex; justify-content:center; margin-bottom:4px; }
.shop-drawer-success h3 { font-size: 20px; font-weight: 700; margin: 0; }
.shop-drawer-success p  { font-size: 14px; color: var(--grey); margin: 0; max-width: 300px; }

/* ── Empty / loading ────────────────────────────────────── */
.shop-empty {
    text-align: center; padding: 60px 20px;
    color: var(--grey); font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .shop-card-body  { padding: 10px 12px 12px; }
    .shop-modal-info    { padding: 20px 16px 0 16px; }
    .shop-modal-footer  { padding: 12px 16px; }
    .shop-modal-title   { font-size: 18px; }
    .shop-modal-price   { font-size: 22px; }
    #shop-cart-drawer   { width: 100vw; }
}

/* ── Sticky shop category bar ───────────────────────────── */
#shop-sticky-bar {
    display: none;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #414141 0%, #666565 100%);
    transition: max-height 0.25s ease;
    position: relative;
}
/* Extends the darker cart zone background to the right viewport edge */
#shop-sticky-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: calc(50% - 500px + 0px);
    background: rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 0;
}
#shop-sticky-bar.is-visible {
    max-height: 60px;
}
#shop-sticky-bar.is-visible.is-open {
    max-height: 360px;
}

/* Grid: content column fills available width, cart zone is fixed right.
   Both rows (inner + panel) share column 1; cart zone spans all rows. */
.shop-sticky-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    position: relative;
    z-index: 1;
}

/* Inner toggle row — column 1 */
.shop-sticky-inner {
    grid-column: 1;
    grid-row: 1;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Panel row — column 1 */
.shop-sticky-panel {
    grid-column: 1;
    grid-row: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 20px;
}
#shop-sticky-bar.is-open .shop-sticky-panel {
    max-height: 300px;
    padding: 4px 20px 12px;
    overflow-y: auto;
}

/* Cart zone — grid column 2, spans both rows, top-aligned */
.shop-sticky-cart-zone {
    grid-column: 2;
    grid-row: 1 / -1;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: flex-start;    /* top-align the cart button */
    padding: 10px 20px 0 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* Toggle button — takes all remaining space, mirrors .art-series-sticky-toggle */
.shop-sticky-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: var(--white);
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    margin: 0;
    flex: 1;
    min-width: 0;
    align-self: center;
}
.shop-sticky-toggle:hover,
.shop-sticky-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.32);
}
.shop-sticky-label  { color: rgba(255,255,255,0.65); font-weight: 500; flex-shrink: 0; }
.shop-sticky-current {
    color: var(--white);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.shop-sticky-chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
    margin-left: auto;
}
.shop-sticky-chev img {
    width: 100%; height: 100%;
    display: block;
    transition: transform 0.2s ease;
    pointer-events: none;
}
.shop-sticky-toggle[aria-expanded="true"] .shop-sticky-chev img {
    transform: rotate(180deg);
}

/* Cart button — inline flex sibling, right-aligned via gap */
.shop-sticky-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--grey-lt);
    font-size: 14px;
    font-weight: bold;
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;        /* never compressed */
}
.shop-sticky-cart-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: var(--white);
}
.shop-sticky-cart-btn svg { display: block; flex-shrink: 0; pointer-events: none; }

/* Expandable panel — mirrors .art-series-sticky-panel */
.shop-sticky-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 20px;
}
#shop-sticky-bar.is-open .shop-sticky-panel {
    max-height: 300px;
    padding: 4px 20px 12px;
    overflow-y: auto;
}

/* Chips inside panel — reuse .shop-cat-btn styles */
.shop-sticky-chips {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Sticky badge */
#shop-sticky-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #c8292c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .shop-sticky-current { max-width: 160px; }
    #shop-sticky-bar.is-visible.is-open { max-height: 70vh; }
    .shop-sticky-toggle { width: auto; justify-content: flex-start; }
    .shop-sticky-chips { flex-direction: column; align-items: stretch; }
    .shop-sticky-chips .shop-cat-btn { width: 100%; justify-content: center; }
}

/* Sticky bar — cart button always stays inline with toggle at all breakpoints */
@media (max-width: 759px) {
    #shop-sticky-bar.is-visible.is-open { max-height: 70vh; }
    .shop-sticky-chips { flex-direction: column; align-items: stretch; }
    .shop-sticky-chips .shop-cat-btn { width: 100%; justify-content: center; }
}






/* ── Back-in-stock waitlist (append to shop-styles.css) ─────────── */
.shop-modal-footer--notify {
    background: var(--grey-lt);
    border-top-color: #e4e4e4;
}

.shop-notify { margin: 0; }

/* Lead line: red status, then the black prompt beside it */
.shop-notify-lead {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0 8px 0;
}
.shop-oos-label {
    color: #c8292c;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.shop-notify-lead-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.shop-notify-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Cancels the global `button { margin-left: 12px }` reset in styles.css,
   which otherwise offsets the button inside this row */
.shop-notify-row .shop-buy-btn { margin: 0; }
.shop-notify-input {
    flex: 1 1 220px;
    min-width: 0;
    /* Clears the global `input { max-width: 38% }` reset in styles.css */
    width: 100%;
    max-width: none;
    height: 41px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: var(--white);
    color: var(--black);
    font-size: 16px;               /* 16px stops iOS Safari zooming on focus */
    font-family: trackim_font, 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.15s;
}
.shop-notify-input:focus {
    outline: none;
    border-color: var(--black);
}
.shop-notify-input::placeholder { color: #9b9b9b; }

.shop-notify-msg {
    margin: 8px 0 0 0;
    font-size: 13px; line-height: 1.4;
    min-height: 1em;
}
.shop-notify-msg.is-error { color: #c8292c; }
.shop-notify-msg.is-ok    { color: #2a7c3f; }

.shop-notify-done {
    margin: 0;
    font-size: 14px; font-weight: 600; line-height: 1.5;
    color: #2a7c3f;
}

/* ── Mobile: everything stacks, full width ──────────────────────── */
@media (max-width: 600px) {
    /* Prompt drops under the red status, tight against the form */
    .shop-notify-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 0;
    }
    .shop-notify-lead-text { line-height: 1.35; }

    /* Column layout makes both children full width with no basis fight */
    .shop-notify-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
    }
    .shop-notify-row .shop-notify-input,
    .shop-notify-row .shop-buy-btn {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: block;
        box-sizing: border-box;
    }
}
