/* ──────────────────────────────────────────────────────────
   JAR Garments – product-listing (PRO edition)
   only the listing page loads this sheet, the global
   style.css is still used for the bottom-nav etc.
────────────────────────────────────────────────────────── */

/* Brand variables */
:root {
    --brand: #111;
    --accent: #ffa600;
    --border: #e2e2e2;
    --radius: 12px;
    --shadow: 0 3px 8px rgba(0, 0, 0, .06);
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    --max: 1220px;
}

/* Reset/utility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans)
}

img {
    display: block;
    max-width: 100%
}

button {
    font: inherit;
    border: 0;
    cursor: pointer;
    background: transparent
}

/* ─── TOP BAR ─────────────────────────────── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .03);
}

.logo {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.filters {
    margin-left: auto;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap
}

.f-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem .9rem;
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #f8f8f8;
    transition: .2s;
}

.f-btn:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent)
}

/* ─── HERO / FEATURE BANNER ───────────────── */
.hero-wrap {
    position: relative;
    max-width: var(--max);
    margin: 2rem auto 0
}

.hero-wrap img {
    width: 100%;
    aspect-ratio: 3/1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-position: center 29%;
}

.cta {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: .35rem 1.4rem;
    font-size: .7rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    backdrop-filter: blur(6px);
    /* subtle glass */
    transition: .25s;
}

.cta:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff
}

/* ─── PRODUCT GRID ───────────────────────── */
.products {
    --min: 230px;
    /* card min-width               */
    --row: 340px;
    /* 📏 row-height limit           */
    display: grid;
    grid-auto-rows: var(--row);
    /* every track = 340 px          */
    grid-auto-flow: dense;
    /* packs cards efficiently       */
    grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
    gap: 1.25rem;
    /* tighter gap                   */
    max-width: var(--max);
    /* 1120 px from :root            */
    width: 100%;
    margin: 2rem auto 6rem;
    /* bottom clearance for nav      */
    padding-inline: 0;
    overflow: hidden;
    /* prevents bleeding             */
}

@media (max-width:600px) {
    .products {
        --min: 160px
    }
}

/* CARD */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* stay inside the 340 px track  */
    border: 1px solid #e1e1e1;
    background: #fff;
}

.card img {
    aspect-ratio: 3/4;
    /* keeps image short & tidy      */
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.card .info {
    padding: .65rem .8rem;
    font-size: .83rem;
    line-height: 1.35;
    flex: 1;
    /* pushes price block down       */
}

.title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35
}

.price {
    font-size: .9rem;
    font-weight: 700;
    color: #c00
}

.swatches {
    display: flex;
    gap: .35rem;
    margin-top: .1rem
}

.swatches span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* ─── LIFT middle nav-button (same look as homepage) ─── */
.bn-btn.raised {
    transform: translateY(-14px)
}

.bn-btn.raised:hover {
    transform: translateY(-18px) scale(1.05)
}

/* ◼︎ MODAL OVERLAY ------------------------------------------------ */
.pdp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    /* toggled by JS */
    align-items: center;
    justify-content: center;
    z-index: 12000;
}

.pdp-dialog {
    width: min(92vw, 1100px);
    max-height: 92vh;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 420px;
    /* gallery | buy box */
    gap: 2.5rem;
    padding: 2.5rem 2rem;
    overflow: auto;
}

@media(max-width:820px) {
    .pdp-dialog {
        grid-template-columns: 1fr;
    }
}

/* close btn */
.pdp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

/* gallery */
.pdp-gallery img {
    width: 100%;
    display: block
}

.pdp-thumbs {
    display: flex;
    gap: .4rem;
    margin-top: .6rem
}

.pdp-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.pdp-thumbs img.active {
    border-color: #111
}

/* info column */
.pdp-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .4rem
}

.pdp-price {
    margin: .6rem 0 1rem;
    font-size: 1.2rem
}

.pdp-price .old {
    color: #888;
    text-decoration: line-through;
    margin-right: .5rem
}

.pdp-price .new {
    color: #c00;
    font-weight: 700
}

.pdp-swatches {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem
}

.pdp-swatches span {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.pdp-sizes {
    margin-bottom: 1.4rem;
    font-size: .9rem
}

.chips {
    display: flex;
    gap: .35rem;
    margin-top: .4rem
}

.chips button {
    min-width: 40px;
    padding: .35rem .55rem;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    font-size: .8rem
}

.chips button.active {
    background: #111;
    color: #fff;
    border-color: #111
}

.btn-add {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    background: #111;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: .04em
}

/* small scrollbar inside modal */
.pdp-dialog::-webkit-scrollbar {
    width: 6px
}

.pdp-dialog::-webkit-scrollbar-thumb {
    background: #bbb
}

/* ——— QUICK-VIEW MODAL ——— */
.pdp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12000
}

.pdp-dialog {
    width: min(92vw, 1100px);
    max-height: 92vh;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
    overflow: auto;
    position: relative
}

@media(max-width:820px) {
    .pdp-dialog {
        grid-template-columns: 1fr
    }
}

.pdp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer
}

.pdp-gallery img {
    width: 100%;
    display: block
}

.pdp-thumbs {
    display: flex;
    gap: .4rem;
    margin-top: .6rem
}

.pdp-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent
}

.pdp-thumbs img.active {
    border-color: #111
}

.pdp-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .4rem
}

.pdp-price {
    font-size: 1.2rem;
    margin: .6rem 0 1rem
}

.pdp-price .old {
    color: #888;
    text-decoration: line-through;
    margin-right: .5rem
}

.pdp-price .new {
    color: #c00;
    font-weight: 700
}

.pdp-swatches {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem
}

.pdp-swatches span {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    cursor: pointer
}

.pdp-sizes {
    margin-bottom: 1.4rem;
    font-size: .9rem
}

.chips {
    display: flex;
    gap: .35rem;
    margin-top: .4rem
}

.chips button {
    min-width: 40px;
    padding: .35rem .55rem;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    font-size: .8rem
}

.chips button.active {
    background: #111;
    color: #fff;
    border-color: #111
}

.btn-add {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    background: #111;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer
}

.pdp-dialog::-webkit-scrollbar {
    width: 6px
}

.pdp-dialog::-webkit-scrollbar-thumb {
    background: #bbb
}

/* ❶ ─── circular “magnifier” lens ───────────────────────── */
.zoom-lens {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(0, 0, 0, .25);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    pointer-events: none;
    display: none;
    z-index: 20;
    background-repeat: no-repeat;
    background-size: 200% 200%;
}

.listing-motto {
    text-align: center;
    margin: 2rem 0 4rem;
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

/* plisting.css – PRO edition */

/* ─── Variables & Reset ───────────────────────────────────────── */
:root {
    --brand: #111;
    --accent: #ffa600;
    --border: #e2e2e2;
    --radius: 12px;
    --shadow: 0 3px 8px rgba(0, 0, 0, .06);
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    --max: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    border: 0;
    cursor: pointer;
    background: transparent;
}

/* ─── TOP BAR ───────────────────────────────────────────────────── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .03);
}

.logo {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.filters {
    margin-left: auto;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.f-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem .9rem;
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #f8f8f8;
    transition: .2s;
}

.f-btn:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero-wrap {
    position: relative;
    max-width: var(--max);
    margin: 2rem auto 0;
}

.hero-wrap img {
    width: 100%;
    aspect-ratio: 3/1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-position: center 29%;
}

.cta {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: .35rem 1.4rem;
    font-size: .7rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    backdrop-filter: blur(6px);
    transition: .25s;
}

.cta:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

/* ─── PRODUCT GRID ──────────────────────────────────────────────── */
.products {
    --min: 230px;
    --row: 340px;
    display: grid;
    gap: 1.25rem;
    grid-auto-rows: var(--row);
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
    max-width: var(--max);
    width: 100%;
    margin: 2rem auto 6rem;
    overflow: hidden;
    padding-inline: 0;
}

@media (max-width:600px) {
    .products {
        --min: 160px;
    }
}

/* ─── CARD ───────────────────────────────────────────────────────── */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    background: #fff;
}

.card img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

.card .info {
    padding: .65rem .8rem;
    font-size: .83rem;
    line-height: 1.35;
    flex: 1;
}

.title {
    font-size: .9rem;
    font-weight: 600;
}

.price {
    font-size: .9rem;
    font-weight: 700;
    color: #c00;
}

.old {
    font-size: .8rem;
    color: #888;
    text-decoration: line-through;
}

.swatches {
    display: flex;
    gap: .35rem;
    margin-top: .1rem;
}

.swatches span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

/* ─── MODAL & INFO ──────────────────────────────────────────────── */
.pdp-modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
    z-index: 12000;
}

.pdp-dialog {
    position: relative;
    width: min(92vw, 1100px);
    max-height: 92vh;
    background: #fff;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr 420px;
    padding: 2.5rem 2rem;
    overflow: auto;
}

@media(max-width:820px) {
    .pdp-dialog {
        grid-template-columns: 1fr;
    }
}

.pdp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.pdp-gallery img {
    width: 100%;
    display: block;
}

.pdp-thumbs {
    display: flex;
    gap: .4rem;
    margin-top: .6rem;
}

.pdp-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.pdp-thumbs img.active {
    border-color: var(--brand);
}

.pdp-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.pdp-price {
    margin: .6rem 0 1rem;
    font-size: 1.2rem;
}

.pdp-price .old {
    color: #888;
    text-decoration: line-through;
    margin-right: .5rem;
}

.pdp-price .new {
    color: #c00;
    font-weight: 700;
}

.pdp-swatches,
.chips {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem;
}

.pdp-swatches span {
    width: 22px;
    height: 22px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.pdp-sizes {
    margin-bottom: 1.4rem;
    font-size: .9rem;
}

.chips button {
    min-width: 40px;
    padding: .35rem .55rem;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    font-size: .8rem;
}

.chips button.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-add {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* scrollbar */
.pdp-dialog::-webkit-scrollbar {
    width: 6px;
}

.pdp-dialog::-webkit-scrollbar-thumb {
    background: #bbb;
}

.search-slide {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.23rem 1.55rem 7rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    /* behind bottom-nav (z-index: 1001) */
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.search-slide.active {
    transform: translateY(0);
}

.search-panel-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 80%;
    max-width: 1000px;
    padding: 0.80rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 1px solid #ccc;
    outline: none;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    display: block;
    margin: 0 auto;
}

/* Search Button Active Style */
#searchToggleBtn.active {
    background: #111 !important;
}

#searchToggleBtn.active svg {
    display: none;
}

#searchToggleBtn.active::before {
    content: "×";
    color: white;
    font-size: 24px;
    font-weight: bold;
}
.pdp-qty {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1rem 0;
  }
  .pdp-qty .qty-btn {
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background .15s ease;
  }
  .pdp-qty .qty-btn:active {
    background: #e0e0e0;
  }
  #qtyValue {
    min-width: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
  }
  
  /* ─── PDP Quantity Selector ───────────────────────── */
.pdp-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.pdp-quantity .qty-btn {
    background: #f8f8f8;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--brand);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

.pdp-quantity .qty-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

.pdp-quantity .qty-btn:active {
    background: var(--brand);
    color: #fff;
    transform: scale(0.95);
}

#qtyValue {
    width: 60px;
    min-width: 60px;
    padding: 0.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#qtyValue:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(255, 166, 0, 0.4);
}
