/* ===== ZARÉEN — ivory, ink and maroon, soft rounded shapes ===== */

:root {
    --ivory: #f8f3ea;
    --paper: #fffdf8;
    --ink: #1c1a18;
    --mute: #6f685f;
    --line: #ddd3c3;
    --maroon: #7a1f2b;
    --red: #c40000;
    --r: 16px;
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.22, .8, .3, 1)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.55
}

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

a {
    color: inherit
}

button {
    font: inherit;
    cursor: pointer
}

:focus-visible {
    outline: 3px solid var(--maroon);
    outline-offset: 3px
}

.wrap {
    width: min(1180px, 92%);
    margin-inline: auto
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.1
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes pop {
    0% {
        transform: scale(1)
    }
    40% {
        transform: scale(1.5)
    }
    100% {
        transform: scale(1)
    }
}


/* header */

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 248, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line)
}

.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: .7rem 0;
    gap: .4rem 1rem
}

.brand {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--maroon);
    text-decoration: none
}

.nav {
    display: flex;
    align-items: center;
    gap: .4rem
}

.nav a {
    text-decoration: none;
    padding: .5rem .9rem;
    border-radius: 99px;
    font-weight: 500;
    transition: background .25s
}

.nav a:hover,
.nav a.on {
    background: var(--line)
}

.cart-btn {
    background: var(--ink);
    color: var(--paper);
    border: 0;
    padding: .6rem 1.1rem;
    border-radius: 99px;
    font-weight: 500;
    transition: transform .2s var(--ease), background .25s
}

.cart-btn:hover {
    background: var(--maroon);
    transform: translateY(-2px)
}

.cart-btn span {
    display: inline-block;
    background: var(--paper);
    color: var(--ink);
    border-radius: 99px;
    padding: 0 .5rem;
    margin-left: .3rem;
    font-size: .85rem
}

.cart-btn span.pop {
    animation: pop .45s var(--ease)
}


/* buttons */

.btn {
    display: inline-block;
    background: var(--paper);
    color: var(--maroon);
    padding: .95rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--paper);
    border-radius: 99px;
    transition: transform .2s var(--ease), box-shadow .25s, background .25s, color .25s
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2)
}

.btn:active {
    transform: scale(.97)
}

.btn.solid {
    background: var(--maroon);
    color: var(--paper);
    border-color: var(--maroon);
    width: 100%;
    text-align: center
}

.ccard .btn.solid {
    width: auto
}

.btn.solid:hover {
    background: #611722;
    border-color: #611722
}

.btn.outline {
    background: transparent;
    color: var(--maroon);
    border-color: var(--maroon);
    width: auto
}

.btn.outline:hover {
    background: var(--maroon);
    color: var(--paper)
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}


/* hero with sliding photos */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--maroon);
    color: var(--paper);
    padding: clamp(4.5rem, 13vw, 9rem) 0;
    text-align: center
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0
}

.hero-slides div {
    position: absolute;
    inset: 0;
    background-image: var(--d);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 6s ease-out
}

.hero-slides .m {
    display: none
}

.hero-slides div.on {
    opacity: 1;
    transform: scale(1)
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1
}

.hero .wrap {
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 92%;
    padding: 2.4rem 3.5rem
}

.hero .wrap::before {
    content: "";
    position: absolute;
    inset: -2.5rem -4.5rem;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 75%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
    pointer-events: none
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    animation: fadeUp .9s var(--ease) both
}

.hero p {
    margin: .8rem 0 1.8rem;
    font-size: 1.15rem;
    color: #f2e3d6;
    animation: fadeUp .9s .15s var(--ease) both
}

.hero .btn {
    animation: fadeUp .9s .3s var(--ease) both
}


/* shop */

.tools {
    padding: 2rem 0 1rem;
    display: grid;
    gap: 1rem
}

#search {
    width: 100%;
    padding: .9rem 1.2rem;
    font: inherit;
    border: 2px solid var(--line);
    background: var(--paper);
    border-radius: 99px;
    transition: border-color .2s, box-shadow .2s
}

#search:focus {
    border-color: var(--maroon);
    outline: none;
    box-shadow: 0 0 0 4px rgba(122, 31, 43, .12)
}

.chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .2rem 0 .4rem
}

.chip {
    white-space: nowrap;
    border: 1.5px solid var(--ink);
    background: transparent;
    padding: .45rem 1.1rem;
    border-radius: 99px;
    transition: background .2s, color .2s, transform .2s var(--ease)
}

.chip:hover {
    transform: translateY(-2px)
}

.chip.on {
    background: var(--ink);
    color: var(--paper)
}

.status {
    padding: 1rem 0;
    color: var(--mute)
}

.status:empty {
    display: none
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
    padding-bottom: 3rem
}

.card {
    display: block;
    background: var(--paper);
    border-radius: var(--r);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    animation: fadeUp .6s var(--ease) both;
    animation-delay: calc(min(var(--i, 0), 10)*55ms);
    transition: transform .3s var(--ease), box-shadow .3s
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(28, 26, 24, .14)
}

.card .ph {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--line);
    overflow: hidden
}

.card .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease)
}

.card:hover .ph img {
    transform: scale(1.06)
}

.card .info {
    padding: .8rem 1rem 1.1rem
}

.card h3 {
    font-size: 1.35rem
}

.price {
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .5rem
}

.price s {
    color: var(--mute);
    font-weight: 400;
    white-space: nowrap
}

.tag {
    position: absolute;
    top: .7rem;
    left: .7rem;
    background: var(--ink);
    color: var(--paper);
    padding: .15rem .8rem;
    font-size: .8rem;
    border-radius: 99px
}


/* product page */

.back {
    display: inline-block;
    margin: 1.5rem 0 0;
    color: var(--mute);
    text-decoration: none;
    transition: color .2s, transform .2s
}

.back:hover {
    color: var(--maroon);
    transform: translateX(-4px)
}

.pwrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 1.5rem 0 3rem;
    align-items: start;
    animation: fadeUp .6s var(--ease) both
}

.gal {
    position: sticky;
    top: 5rem
}

.gal .main {
    aspect-ratio: 3/4;
    background: var(--line);
    border-radius: var(--r);
    overflow: hidden
}

.gal .main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeUp .4s ease both
}

.thumbs {
    display: flex;
    gap: .6rem;
    margin-top: .7rem;
    overflow-x: auto;
    padding-bottom: .3rem
}

.thumbs button {
    flex: none;
    width: 70px;
    height: 88px;
    padding: 0;
    border: 2px solid transparent;
    background: var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s var(--ease), border-color .2s
}

.thumbs button:hover {
    transform: translateY(-3px)
}

.thumbs button.on {
    border-color: var(--maroon)
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.det .cat {
    display: inline-block;
    background: var(--line);
    padding: .15rem .8rem;
    border-radius: 99px;
    font-size: .85rem;
    margin-bottom: .6rem
}

.det h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: .4rem
}

.price.big {
    font-size: 1.4rem
}

.det .desc {
    color: var(--mute);
    margin: 1rem 0;
    white-space: pre-line
}

.det .more {
    display: none
}

.det h4 {
    margin: 1.1rem 0 .5rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em
}

.opts {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.opt {
    min-width: 50px;
    min-height: 46px;
    padding: .4rem 1rem;
    border: 1.5px solid var(--ink);
    background: transparent;
    border-radius: 12px;
    transition: background .2s, color .2s, transform .2s var(--ease)
}

.opt:hover {
    transform: translateY(-2px)
}

.opt.on {
    background: var(--ink);
    color: var(--paper)
}

.qty {
    display: flex;
    align-items: center;
    gap: .8rem
}

.qty button {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--ink);
    background: transparent;
    font-size: 1.3rem;
    border-radius: 50%;
    transition: background .2s, color .2s
}

.qty button:hover {
    background: var(--ink);
    color: var(--paper)
}

.addrow {
    margin-top: 1.4rem
}

.related {
    padding: 1rem 0 4rem;
    border-top: 1px solid var(--line)
}

.related h2 {
    font-size: 2.2rem;
    margin: 2rem 0 1.2rem
}


/* contact page */

.contact {
    padding: 3rem 0 4rem
}

.contact h1 {
    font-size: clamp(2.4rem, 6vw, 4rem)
}

.contact .lead {
    color: var(--mute);
    margin: .6rem 0 2rem
}

.cgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem
}

.ccard {
    background: var(--paper);
    border-radius: var(--r);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    animation: fadeUp .6s var(--ease) both;
    transition: transform .3s var(--ease), box-shadow .3s
}

.ccard:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(28, 26, 24, .12)
}

.ccard:nth-child(2) {
    animation-delay: .1s
}

.ccard:nth-child(3) {
    animation-delay: .2s
}

.ccard h3 {
    font-size: 1.6rem
}

.ccard p {
    color: var(--mute);
    word-break: break-word
}

.ccard .btn {
    margin-top: .8rem;
    align-self: flex-start
}

footer {
    background: var(--ink);
    color: #d9d1c5;
    padding: 2rem 0
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center
}

footer a {
    color: var(--paper)
}


/* cart drawer */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 30;
    animation: fadeIn .25s
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%)
    }
    to {
        transform: none
    }
}

.close {
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1
}

.drawer {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(440px, 100%);
    background: var(--paper);
    overflow: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
    animation: slideIn .35s var(--ease)
}

.d-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 3
}

.d-body {
    padding: 1.2rem
}

.line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: .8rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line)
}

.line img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    background: var(--line);
    border-radius: 10px
}

.line small {
    color: var(--mute);
    display: block
}

.line .qty button {
    width: 34px;
    height: 34px;
    font-size: 1.1rem
}

.line .rm {
    background: none;
    border: 0;
    color: var(--maroon);
    text-decoration: underline;
    font-size: .85rem
}

.sum {
    padding: 1rem 0
}

.sum div {
    display: flex;
    justify-content: space-between;
    padding: .2rem 0
}

.sum .tot {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 2px solid var(--ink);
    margin-top: .4rem;
    padding-top: .6rem
}

.f {
    margin-bottom: .9rem
}

.f label {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .2rem
}

.f input,
.f textarea {
    width: 100%;
    padding: .75rem 1rem;
    font: inherit;
    border: 2px solid var(--line);
    background: #fff;
    min-height: 46px;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s
}

.f input:focus,
.f textarea:focus {
    border-color: var(--maroon);
    outline: none;
    box-shadow: 0 0 0 4px rgba(122, 31, 43, .12)
}

.f .bad,
.f .bad:focus {
    border-color: var(--red);
    background: #fff1f1
}

.err {
    display: block;
    color: var(--red);
    font-size: .85rem;
    font-weight: 600;
    min-height: 1.1em
}

.err:not(:empty)::before {
    content: "\26A0\FE0F  "
}

.note {
    color: var(--mute);
    font-size: .9rem;
    margin: .6rem 0
}

.banner {
    border: 2px solid var(--red);
    background: #fff1f1;
    color: #8a0000;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    border-radius: 12px
}

.ok {
    border: 2px solid var(--maroon);
    padding: 1.4rem;
    border-radius: var(--r)
}

.ok h3 {
    font-size: 1.8rem;
    margin-bottom: .4rem
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 30px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--ink);
    color: var(--paper);
    padding: .8rem 1.5rem;
    border-radius: 99px;
    z-index: 60;
    transition: transform .35s var(--ease), opacity .3s, visibility .3s
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible
}

[hidden] {
    display: none!important
}


/* touch screens: no "stuck" hover effects */

@media(hover:none) {
    .card:hover,
    .ccard:hover,
    .btn:hover,
    .cart-btn:hover,
    .chip:hover,
    .opt:hover,
    .thumbs button:hover {
        transform: none;
        box-shadow: none
    }
    .card:hover .ph img {
        transform: none
    }
    .cart-btn:hover {
        background: var(--ink)
    }
}


/* tablets and phones */

@media(max-width:760px) {
    .pwrap {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding-top: 1rem
    }
    .gal {
        position: static
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem
    }
    .card .info {
        padding: .6rem .75rem .9rem
    }
    .card h3 {
        font-size: 1.1rem
    }
    .brand {
        font-size: 1.45rem
    }
    .nav a {
        padding: .5rem .7rem;
        font-size: .95rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center
    }
    .chip {
        min-height: 40px
    }
    .related h2 {
        font-size: 1.8rem;
        margin: 1.5rem 0 1rem
    }
    .contact {
        padding: 2rem 0 3rem
    }
    .line .qty button {
        width: 38px;
        height: 38px
    }
    .line .rm {
        padding: .4rem 0
    }
    footer .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem
    }
    .drawer {
        width: 100%
    }
    .toast {
        max-width: 90vw;
        text-align: center
    }
}


/* small phones */

@media(max-width:420px) {
    .brand {
        font-size: 1.2rem
    }
    .nav {
        gap: 0
    }
    .nav a {
        padding: .4rem .5rem;
        font-size: .9rem
    }
    .cart-btn {
        padding: .45rem .75rem;
        font-size: .9rem
    }
    .cart-btn span {
        margin-left: .2rem
    }
    .hero {
        padding: 3.5rem 0 4rem
    }
    .card h3 {
        font-size: 1.02rem
    }
    .price {
        font-size: .95rem
    }
    .det .desc {
        font-size: .95rem
    }
    .ccard {
        padding: 1.3rem
    }
}

@media(prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        animation: none!important;
        transition: none!important
    }
    html {
        scroll-behavior: auto
    }
}


/* very small phones (320px wide) */

@media(max-width:340px) {
    .brand {
        font-size: 1.05rem
    }
    .nav a {
        padding: .4rem .35rem;
        font-size: .85rem
    }
    .cart-btn {
        padding: .4rem .6rem;
        font-size: .85rem
    }
    .grid {
        gap: .6rem
    }
}


/* loading placeholders */

.skel {
    aspect-ratio: 3/4.6;
    border-radius: var(--r);
    background: linear-gradient(100deg, #eee6d8 30%, #f7f1e6 50%, #eee6d8 70%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

@media(max-width:760px) {
    .hero .wrap {
        padding: 1.6rem 1.2rem
    }
    .hero .wrap::before {
        inset: -1.5rem -1.5rem
    }
}

/* =====================================================================
   MOBILE REFINEMENTS (phones & small tablets only; desktop is untouched)
   Smaller text, compact box-style product cards, smooth vertical scroll.
   ===================================================================== */

@media(max-width:760px) {

    /* ---- smooth, vertical-only scrolling ---- */
    html {
        overflow-x: hidden;               /* page can never wobble sideways */
        overscroll-behavior-x: none;      /* no sideways swipe/bounce */
        scroll-padding-top: 4.2rem;       /* "Shop now" lands below the sticky header */
        -webkit-tap-highlight-color: transparent
    }
    body {
        font-size: 15px;
        line-height: 1.5;
        max-width: 100%
    }
    .drawer {
        overscroll-behavior: contain;     /* scrolling the cart doesn't scroll the page behind it */
        -webkit-overflow-scrolling: touch
    }
    /* category chips: ONE row that swipes sideways inside its own strip (the page itself never moves sideways) */
    .chips {
        position: relative;               /* lets the script centre the chosen chip */
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: .45rem;
        margin-inline: -4vw;              /* strip runs edge to edge, so the next chip peeks in as a hint */
        padding: .2rem 4vw .5rem;
        scroll-padding-inline: 4vw;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }
    .chips::-webkit-scrollbar {
        display: none
    }
    .chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 36px;
        padding: .3rem .95rem;
        font-size: .88rem
    }

    /* ---- hero photo: phones use the tall mobile picture ---- */
    .hero-slides .d {
        display: none
    }
    .hero-slides .m {
        display: block;
        background-image: var(--m)
    }

    /* ---- header ---- */
    .bar {
        padding: .5rem 0;
        flex-wrap: nowrap
    }
    .brand {
        font-size: 1.3rem
    }
    .nav a {
        font-size: .88rem;
        padding: .4rem .6rem;
        min-height: 36px
    }
    .cart-btn {
        font-size: .88rem;
        padding: .45rem .85rem
    }
    .cart-btn span {
        font-size: .78rem
    }

    /* ---- hero ---- */
    .hero {
        padding: 3.2rem 0 3.6rem
    }
    .hero h1 {
        font-size: clamp(2.1rem, 9vw, 2.8rem)
    }
    .hero p {
        font-size: .95rem;
        margin: .5rem 0 1.2rem
    }
    .btn {
        padding: .7rem 1.5rem;
        font-size: .92rem
    }

    /* ---- search ---- */
    .tools {
        padding: 1.2rem 0 .6rem;
        gap: .7rem
    }
    #search {
        padding: .65rem 1rem;
        font-size: 16px                   /* 16px stops iPhones zooming in when you tap the box */
    }

    /* ---- product cards: compact "box" tiles ---- */
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
        padding-bottom: 2rem
    }
    .card {
        border-radius: 12px
    }
    .card .ph {
        aspect-ratio: 1/1                 /* square box instead of tall 3:4 */
    }
    .card .info {
        padding: .5rem .6rem .65rem
    }
    .card h3 {
        font-size: .95rem;
        line-height: 1.2;
        display: -webkit-box;             /* long names stay on max 2 lines */
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }
    .price {
        font-size: .85rem
    }
    .tag {
        top: .4rem;
        left: .4rem;
        font-size: .68rem;
        padding: .1rem .55rem
    }
    .skel {
        aspect-ratio: 1/1.35              /* loading placeholders match the new card size */
    }
    .status {
        font-size: .9rem;
        padding: .6rem 0
    }

    /* ---- product page ---- */
    .back {
        margin-top: 1rem;
        font-size: .9rem
    }
    .pwrap {
        gap: 1rem;
        padding: .8rem 0 2rem
    }
    .gal .main {
        aspect-ratio: 1/1;
        border-radius: 12px
    }
    .thumbs {
        gap: .45rem
    }
    .thumbs button {
        width: 56px;
        height: 56px;
        border-radius: 9px
    }
    .det h1 {
        font-size: 1.7rem
    }
    .det .cat {
        font-size: .75rem
    }
    .price.big {
        font-size: 1.15rem
    }
    .det .desc {
        font-size: .9rem;
        margin: .7rem 0
    }
    .det .desc.clamp {                    /* shrunk description: 3 lines, so the colour & size options sit higher */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: .2rem
    }
    .det .desc.clamp.open {               /* after tapping Read more: show everything */
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        margin-bottom: .2rem
    }
    .det .more {
        display: inline-block;
        background: none;
        border: 0;
        padding: .35rem 0;
        font: inherit;
        font-size: .88rem;
        font-weight: 600;
        color: var(--maroon);
        text-decoration: underline;
        cursor: pointer;
        min-height: 36px
    }
    .det h4 {
        font-size: .75rem;
        margin: .9rem 0 .4rem
    }
    .opt {
        min-width: 44px;
        min-height: 40px;
        padding: .3rem .8rem;
        font-size: .9rem
    }
    .qty button {
        width: 40px;
        height: 40px
    }
    .addrow {
        margin-top: 1.1rem
    }
    .related {
        padding-bottom: 2.5rem
    }
    .related h2 {
        font-size: 1.45rem;
        margin: 1.3rem 0 .8rem
    }

    /* ---- contact page ---- */
    .contact {
        padding: 1.6rem 0 2.5rem
    }
    .contact h1 {
        font-size: 2rem
    }
    .contact .lead {
        font-size: .92rem;
        margin: .4rem 0 1.3rem
    }
    .cgrid {
        gap: .8rem
    }
    .ccard {
        padding: 1.1rem
    }
    .ccard h3 {
        font-size: 1.25rem
    }
    .ccard p {
        font-size: .92rem
    }

    /* ---- cart drawer & checkout ---- */
    .d-head {
        padding: .7rem 1rem
    }
    .d-head h2 {
        font-size: 1.35rem
    }
    .d-body {
        padding: 1rem
    }
    .line {
        grid-template-columns: 56px 1fr auto;
        gap: .6rem;
        font-size: .9rem
    }
    .line img {
        width: 56px;
        height: 70px
    }
    .line .qty button {
        width: 32px;
        height: 32px;
        font-size: 1rem
    }
    .sum .tot {
        font-size: 1.05rem
    }
    .note {
        font-size: .82rem
    }
    .f label {
        font-size: .82rem
    }
    .f input,
    .f textarea {
        font-size: 16px;                  /* prevents iPhone auto-zoom while typing the order */
        padding: .6rem .85rem;
        min-height: 42px
    }
    .ok h3 {
        font-size: 1.5rem
    }

    /* ---- footer & toast ---- */
    footer {
        padding: 1.4rem 0;
        font-size: .88rem
    }
    .toast {
        font-size: .88rem;
        padding: .65rem 1.2rem
    }
}

/* very small phones */
@media(max-width:340px) {
    .card h3 {
        font-size: .88rem
    }
    .hero h1 {
        font-size: 1.9rem
    }
}


/* =====================================================================
   ZARÉEN additions: wordmark, WhatsApp button, Add to cart, zoom viewer,
   size guide, sort & filters, checkout page, policies page
   ===================================================================== */

/* ---- wordmark: minimal luxury lettering ---- */
.brand {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase
}

.hero h1 {
    font-weight: 600;
    letter-spacing: .14em;
    margin-right: -.14em;
    text-transform: uppercase
}

footer .fb {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--paper)
}

footer .fc {
    color: #9d9588;
    font-size: .88rem
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.linkbtn {
    background: none;
    border: 0;
    padding: .3rem 0;
    font: inherit;
    font-size: .9rem;
    color: var(--maroon);
    text-decoration: underline;
    cursor: pointer
}

.note a,
.polnote a {
    color: var(--maroon)
}


/* ---- floating WhatsApp button (every page) ---- */
.wa-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    transition: transform .25s var(--ease), box-shadow .25s
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32)
}

.wa-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor
}

.page-checkout .wa-float {
    display: none
}


/* ---- sort + filters ---- */
.sortbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem
}

.sortbar select {
    font: inherit;
    padding: .5rem 2.3rem .5rem 1.1rem;
    border: 1.5px solid var(--ink);
    border-radius: 99px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231c1a18' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .95rem center / .65rem;
    -webkit-appearance: none;
    appearance: none;
    color: var(--ink);
    cursor: pointer
}

.sortbar .count {
    margin-left: auto;
    color: var(--mute);
    font-size: .9rem
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .8rem 1.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1rem 1.2rem
}

.filters label {
    display: grid;
    gap: .25rem;
    font-size: .85rem;
    font-weight: 500
}

.filters input[type=number] {
    width: 8rem;
    padding: .55rem .8rem;
    font: inherit;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff
}

.filters input[type=number]:focus {
    border-color: var(--maroon);
    outline: none;
    box-shadow: 0 0 0 4px rgba(122, 31, 43, .12)
}

.filters .chk {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    font-size: .95rem
}

.filters .chk input {
    width: 18px;
    height: 18px;
    accent-color: var(--maroon)
}


/* ---- product page: tap-to-zoom photo, size guide link, Add to cart ---- */
.gal .main {
    position: relative;
    cursor: zoom-in
}

.gal .main::after {
    content: "Tap to zoom";
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    background: rgba(28, 26, 24, .72);
    color: var(--paper);
    font-size: .78rem;
    padding: .2rem .7rem;
    border-radius: 99px;
    pointer-events: none
}

.ghead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem
}

.btn.add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .95rem;
    padding: 1rem 1.6rem
}

.btn.add .ic {
    display: inline-flex
}

.btn.add svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.btn.add.done,
.btn.add.done:hover {
    background: #2f6b3f;
    border-color: #2f6b3f
}

.polnote {
    font-size: .85rem;
    color: var(--mute);
    margin-top: .8rem
}

.sticky {
    display: none
}


/* ---- popup window (size guide) ---- */
.mdl-back {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, .55);
    display: grid;
    place-items: center;
    padding: 1rem;
    animation: fadeIn .2s
}

.mdl {
    background: var(--paper);
    border-radius: var(--r);
    width: min(560px, 100%);
    max-height: 88vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: fadeUp .3s var(--ease)
}

.mdl-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--paper)
}

.mdl-head h3 {
    font-size: 1.6rem
}

.mdl-x {
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px
}

.mdl-body {
    padding: 1.2rem
}

.tbl {
    overflow-x: auto
}

.tbl table {
    width: 100%;
    border-collapse: collapse;
    text-align: center
}

.tbl th,
.tbl td {
    padding: .7rem .8rem;
    border-bottom: 1px solid var(--line)
}

.tbl thead th {
    background: var(--line);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em
}

.tbl tbody th {
    font-weight: 600
}

.sg-img {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in
}


/* ---- tap-to-zoom photo viewer ---- */
.zoom {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 9, 8, .95);
    animation: fadeIn .2s
}

.zoom .zv {
    position: absolute;
    inset: 0;
    overflow: auto;
    display: flex;
    -webkit-overflow-scrolling: touch
}

.zoom .zv img {
    flex: none;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none
}

.zoom .zv.zoomed img,
.zoom .zv img.z {
    width: 220%;
    height: auto;
    max-width: none;
    max-height: none;
    cursor: zoom-out
}

.zoom .zclose,
.zoom .zn {
    position: absolute;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px)
}

.zoom .zclose {
    top: .8rem;
    top: max(.8rem, env(safe-area-inset-top, 0px));
    right: .8rem
}

.zoom .zn {
    top: 50%;
    transform: translateY(-50%)
}

.zoom .zp {
    left: .8rem
}

.zoom .zq {
    right: .8rem
}

.zoom .zc {
    position: absolute;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .16);
    color: #fff;
    padding: .2rem .9rem;
    border-radius: 99px;
    font-size: .85rem
}


/* ---- checkout page ---- */
.checkout {
    padding-bottom: 4rem
}

.checkout h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: .6rem 0 1rem
}

.cogrid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    align-items: start
}

.cofm,
.cosum,
.empty {
    background: var(--paper);
    border-radius: var(--r);
    padding: 1.6rem
}

.cofm h2,
.cosum h2,
.empty h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem
}

.cosum {
    position: sticky;
    top: 5rem
}

.cs-line {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: .8rem;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid var(--line)
}

.cs-line img {
    width: 56px;
    height: 70px;
    object-fit: cover;
    background: var(--line);
    border-radius: 10px
}

.cs-line small {
    display: block;
    color: var(--mute)
}

.empty {
    max-width: 520px
}

.empty .btn {
    margin-top: 1rem
}

.checkout .ok .btn {
    width: auto
}

.checkout .ok .btn.solid {
    display: inline-block
}

.note.help {
    text-align: center;
    margin-top: .9rem
}


/* ---- policies page ---- */
.policy {
    padding: 2.4rem 0 4rem;
    max-width: 860px
}

.policy h1 {
    font-size: clamp(2.4rem, 6vw, 4rem)
}

.policy .lead {
    color: var(--mute);
    margin: .6rem 0 1.2rem
}

.pnav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem
}

.pnav a {
    border: 1.5px solid var(--ink);
    border-radius: 99px;
    padding: .35rem 1rem;
    text-decoration: none;
    font-size: .92rem
}

.pcard {
    background: var(--paper);
    border-radius: var(--r);
    padding: 1.4rem 1.6rem;
    margin: 1rem 0;
    scroll-margin-top: 5rem
}

.pcard h2 {
    font-size: 1.8rem;
    margin-bottom: .5rem
}

.pcard p {
    color: var(--mute);
    margin-top: .5rem
}

.pcard strong {
    color: var(--ink)
}

.pcard a {
    color: var(--maroon)
}


/* ---- phones ---- */
@media(max-width:760px) {
    .brand {
        font-size: 1.15rem;
        letter-spacing: .13em
    }
    .hero h1 {
        letter-spacing: .12em;
        margin-right: -.12em
    }
    footer .fb {
        font-size: 1.1rem
    }
    .wa-float {
        width: 52px;
        height: 52px;
        right: .9rem;
        bottom: .9rem;
        bottom: calc(.9rem + env(safe-area-inset-bottom, 0px))
    }
    .wa-float svg {
        width: 27px;
        height: 27px
    }

    /* sort + filters */
    .sortbar select {
        font-size: 16px;
        padding: .45rem 2.1rem .45rem .95rem;
        min-height: 40px;
        flex: 1;
        min-width: 0
    }
    .sortbar .chip {
        flex: none
    }
    .sortbar .count {
        flex-basis: 100%;
        margin-left: 0;
        font-size: .85rem
    }
    .filters {
        padding: .9rem;
        gap: .7rem 1rem
    }
    .filters label {
        flex: 1 1 40%
    }
    .filters input[type=number] {
        width: 100%;
        font-size: 16px
    }
    .filters .chk {
        flex: 1 1 40%
    }

    /* product page */
    .gal .main::after {
        font-size: .72rem;
        right: .5rem;
        bottom: .5rem
    }
    .btn.add {
        font-size: .9rem;
        padding: .9rem 1.2rem
    }
    .sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 24;
        display: flex;
        align-items: center;
        gap: .8rem;
        padding: .6rem 4vw;
        padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 253, 248, .97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .09);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .3s var(--ease), visibility .3s
    }
    .sticky.show {
        transform: none;
        visibility: visible
    }
    .sticky .sp {
        flex: 1;
        min-width: 0
    }
    .sticky .price {
        font-size: 1rem;
        line-height: 1.25
    }
    .sticky .btn.add {
        width: auto;
        flex: 1.3;
        padding: .75rem .8rem;
        font-size: .82rem;
        letter-spacing: .1em
    }
    body.has-sticky footer {
        padding-bottom: 5.2rem
    }
    body.sticky-on .wa-float {
        bottom: 5.2rem
    }
    body.sticky-on .toast {
        bottom: 5.4rem
    }

    /* popups and viewer */
    .mdl-head h3 {
        font-size: 1.4rem
    }
    .zoom .zn {
        width: 42px;
        height: 42px
    }

    /* checkout */
    .checkout h1 {
        font-size: 2rem
    }
    .cogrid {
        grid-template-columns: 1fr;
        gap: 1rem
    }
    .cosum {
        order: -1;
        position: static
    }
    .cofm,
    .cosum,
    .empty {
        padding: 1.1rem
    }
    .cofm h2,
    .cosum h2,
    .empty h2 {
        font-size: 1.4rem
    }
    .cs-line {
        grid-template-columns: 48px 1fr auto;
        gap: .6rem;
        font-size: .9rem
    }
    .cs-line img {
        width: 48px;
        height: 60px
    }

    /* policies */
    .policy {
        padding: 1.6rem 0 3rem
    }
    .policy h1 {
        font-size: 2.1rem
    }
    .pcard {
        padding: 1.1rem 1.2rem
    }
    .pcard h2 {
        font-size: 1.45rem
    }
    .pnav a {
        font-size: .85rem;
        padding: .3rem .85rem
    }
}

@media(max-width:340px) {
    .brand {
        font-size: 1rem;
        letter-spacing: .1em
    }
}


/* ---- finishing touches ---- */
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column
}

footer {
    margin-top: auto
}

@media(hover:hover) {
    .gal .main::after {
        content: "Click to zoom"
    }
}
