/*
 * Silk & zari storefront theme (patch 08).
 * Plain CSS on purpose: it sits beside the compiled Tailwind bundle and only uses
 * the theme colour variables (--color-brand-*, --color-gold-*) that Admin → Theme & Logo writes,
 * so every store keeps its own colours.
 */
:root {
    --silk-dark: var(--color-brand-900, #4a0f0f);
    --silk-deep: var(--color-brand-800, #641515);
    --silk-mid: var(--color-brand-700, #7f1d1d);
    --silk-light: var(--color-brand-600, #9b2c2c);
    /* second silk shade (Theme & Logo → "second silk shade"); falls back to the main colour */
    --silk-sheen: var(--silk-sheen-color, var(--silk-light));
    --silk-sheen-hi: var(--silk-sheen-glow, rgb(255 255 255 / .14));
    --zari: var(--color-gold-400, #e8c46a);
    --zari-light: var(--color-gold-300, #f0d78c);
    --zari-dark: var(--color-gold-500, #c9a13b);
    --ivory: #fffdf8;
    --ink: #1c1917;
    --display: var(--font-serif, 'Playfair Display', Georgia, serif);
    /* temple (korvai) border unit: outlined triangle + bindu dot + base thread */
    --zari-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='18' viewBox='0 0 28 18'%3E%3Cpath fill-rule='evenodd' d='M1 14 14 3l13 11H1Zm5-1.6h16L14 5.6 6 12.4Z'/%3E%3Ccircle cx='14' cy='1.2' r='1.2'/%3E%3Crect y='15.4' width='28' height='1.2'/%3E%3Ccircle cx='0' cy='9' r='.9'/%3E%3Ccircle cx='28' cy='9' r='.9'/%3E%3C/svg%3E");
    /* butti (small woven flower) motif, staggered like a saree body */
    --buta-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg transform='translate(18 18)'%3E%3Cellipse rx='2.6' ry='6.5' cy='-6'/%3E%3Cellipse rx='2.6' ry='6.5' cy='6'/%3E%3Cellipse rx='6.5' ry='2.6' cx='-6'/%3E%3Cellipse rx='6.5' ry='2.6' cx='6'/%3E%3Ccircle r='2.2' fill-opacity='0'/%3E%3C/g%3E%3Cg transform='translate(54 54) rotate(45)' opacity='.8'%3E%3Cellipse rx='2' ry='5' cy='-4.6'/%3E%3Cellipse rx='2' ry='5' cy='4.6'/%3E%3Cellipse rx='5' ry='2' cx='-4.6'/%3E%3Cellipse rx='5' ry='2' cx='4.6'/%3E%3C/g%3E%3Ccircle cx='54' cy='18' r='1.4'/%3E%3Ccircle cx='18' cy='54' r='1.4'/%3E%3C/svg%3E");
}

/* ---------- textures ---------- */
.silk-bg {
    position: relative;
    isolation: isolate;
    color: var(--ivory);
    background-color: var(--silk-deep);
    background-image:
        repeating-linear-gradient(0deg, rgb(255 255 255 / .028) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgb(0 0 0 / .05) 0 1px, transparent 1px 4px),
        radial-gradient(120% 80% at 15% 10%, rgb(255 255 255 / .14), transparent 55%),
        radial-gradient(60% 55% at 72% 38%, color-mix(in srgb, var(--silk-sheen-hi) 45%, transparent), transparent 70%),
        radial-gradient(90% 70% at 90% 90%, rgb(0 0 0 / .35), transparent 60%),
        linear-gradient(118deg, var(--silk-dark) 0%, var(--silk-mid) 30%, var(--silk-deep) 44%, var(--silk-sheen) 64%, var(--silk-dark) 100%);
}
.silk-bg.silk-buta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--zari);
    opacity: .11;
    -webkit-mask: var(--buta-mask) 0 0 / 72px 72px repeat;
    mask: var(--buta-mask) 0 0 / 72px 72px repeat;
    pointer-events: none;
}
.kora-bg {
    background-color: #fbf6ec;
    background-image:
        repeating-linear-gradient(0deg, rgb(120 90 40 / .035) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgb(120 90 40 / .03) 0 1px, transparent 1px 5px);
}

/* metallic zari band */
.zari-band {
    height: 18px;
    background: linear-gradient(90deg, var(--zari-dark), var(--zari-light) 30%, var(--zari) 50%, var(--zari-light) 70%, var(--zari-dark));
    -webkit-mask: var(--zari-mask) 0 0 / 28px 18px repeat-x;
    mask: var(--zari-mask) 0 0 / 28px 18px repeat-x;
}
.zari-band.is-down { transform: scaleY(-1); }
.zari-rule {
    height: 6px;
    border-top: 1px solid var(--zari);
    border-bottom: 1px solid color-mix(in srgb, var(--zari) 45%, transparent);
}

/* ---------- type ---------- */
.silk-display {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.silk-h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--ink);
    text-wrap: balance;
}
.silk-bg .silk-h2, .silk-bg h1, .silk-bg h2 { color: var(--ivory); }
.silk-lede { max-width: 34rem; font-size: 1rem; line-height: 1.65; color: #57534e; }
.silk-bg .silk-lede { color: rgb(255 253 248 / .78); }
.silk-link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--silk-mid);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--zari-dark) 70%, transparent);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}
.silk-link:hover { text-decoration-color: currentColor; }
.silk-bg .silk-link { color: var(--zari-light); }

/* section rhythm */
.silk-section { margin-top: clamp(3.5rem, 7vw, 6rem); }
.silk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }

/* ---------- buttons ---------- */
.silk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.75rem; border-radius: 999px;
    font-size: .9rem; font-weight: 600; letter-spacing: .01em;
    background: linear-gradient(180deg, var(--zari-light), var(--zari) 55%, var(--zari-dark));
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 6px 18px -8px rgb(0 0 0 / .45);
    transition: transform .2s ease, filter .2s ease;
}
.silk-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.silk-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .85rem 1.6rem; border-radius: 999px;
    border: 1px solid rgb(255 253 248 / .55); color: var(--ivory);
    font-size: .9rem; font-weight: 600; transition: background .2s ease;
}
.silk-btn-ghost:hover { background: rgb(255 253 248 / .12); }
.silk-btn:focus-visible, .silk-btn-ghost:focus-visible, .silk-arrow:focus-visible, .silk-dot:focus-visible { outline: 2px solid var(--zari); outline-offset: 3px; }

/* ---------- header ---------- */
.silk-announce { font-size: .78rem; letter-spacing: .02em; padding: .5rem 1rem; text-align: center; color: var(--zari-light); }
.silk-header { background: rgb(255 253 248 / .94); backdrop-filter: blur(10px); }
.silk-header-rule { height: 3px; background: linear-gradient(90deg, transparent, var(--zari) 20%, var(--zari-dark) 50%, var(--zari) 80%, transparent); opacity: .85; }
.silk-nav-link { position: relative; padding: .5rem .75rem; font-size: .9rem; font-weight: 500; color: #292524; }
.silk-nav-link::after {
    content: ''; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 1px;
    background: var(--zari-dark); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.silk-nav-link:hover::after, .silk-nav-link.is-hl::after { transform: scaleX(1); }
.silk-nav-link.is-hl { color: var(--silk-mid); font-weight: 600; }

/* ---------- hero ---------- */
.silk-hero { position: relative; overflow: hidden; height: clamp(520px, 86vh, 820px); background: var(--silk-dark); }
.silk-hero-slide { position: absolute; inset: 0; transition: opacity 1s ease; }
.silk-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.silk-hero-slide.is-on img { animation: silk-kenburns 9s ease-out both; }
.silk-hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(0deg, color-mix(in srgb, var(--silk-dark) 82%, transparent) 0%, color-mix(in srgb, var(--silk-dark) 30%, transparent) 45%, transparent 70%),
        linear-gradient(90deg, color-mix(in srgb, var(--silk-dark) 60%, transparent), transparent 60%);
}
.silk-hero-copy { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(4rem, 9vh, 6.5rem); color: var(--ivory); }
.silk-hero-title { color: var(--ivory); font-size: clamp(2.6rem, 7.2vw, 6.25rem); max-width: 14ch; }
.silk-hero-sub { margin-top: 1.25rem; max-width: 30rem; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: rgb(255 253 248 / .85); }
.silk-hero-copy .silk-rise { animation: silk-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.silk-hero-copy .silk-rise:nth-child(2) { animation-delay: .12s; }
.silk-hero-copy .silk-rise:nth-child(3) { animation-delay: .24s; }
.silk-hero-zari { position: absolute; inset: auto 0 0 0; }
.silk-hero-nav { position: absolute; right: max(1rem, calc((100vw - 80rem) / 2 + 2rem)); bottom: clamp(4.5rem, 10vh, 7rem); display: flex; align-items: center; gap: .75rem; color: var(--ivory); font-size: .8rem; font-variant-numeric: tabular-nums; }
.silk-dot { position: relative; width: 44px; height: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.silk-dot::after { content: ''; position: absolute; inset: 0; background: var(--zari); transform: scaleX(0); transform-origin: left; }
.silk-dot.is-on::after { animation: silk-progress 6s linear forwards; }

@keyframes silk-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes silk-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes silk-progress { to { transform: scaleX(1); } }

/* promise strip */
.silk-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-block: 1.1rem; font-size: .85rem; }
.silk-promises > div { display: flex; align-items: center; gap: .6rem; color: rgb(255 253 248 / .9); }
.silk-promises svg { color: var(--zari); flex-shrink: 0; }
@media (max-width: 767px) {
    .silk-promises { display: flex; overflow-x: auto; scrollbar-width: none; gap: 1.75rem; white-space: nowrap; font-size: .8rem; }
    .silk-promises::-webkit-scrollbar { display: none; }
}

/* ---------- categories: temple arches ---------- */
.silk-arches { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.silk-arches::-webkit-scrollbar { display: none; }
.silk-arch { scroll-snap-align: start; text-align: center; }
.silk-arch-frame {
    position: relative; display: block; aspect-ratio: 3 / 4.3; overflow: hidden;
    border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--zari) 30%, #fff), color-mix(in srgb, var(--silk-mid) 18%, #fff));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--zari-dark) 50%, transparent), inset 0 0 0 6px rgb(255 253 248 / .9), inset 0 0 0 7px color-mix(in srgb, var(--zari-dark) 60%, transparent);
}
.silk-arch-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.silk-arch:hover .silk-arch-frame img { transform: scale(1.06); }
.silk-arch-frame .silk-arch-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 2.5rem; color: var(--silk-mid); }
.silk-arch-name { display: block; margin-top: .85rem; font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.silk-arch:hover .silk-arch-name { color: var(--silk-mid); }
@media (min-width: 1024px) { .silk-arches { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); overflow: visible; } }

/* ---------- scrolling rails ---------- */
.silk-track { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 1rem; }
.silk-track::-webkit-scrollbar { display: none; }
.silk-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .silk-track { grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem; } }
@media (min-width: 1024px) { .silk-track { grid-auto-columns: calc((100% - 3.75rem) / 4); gap: 1.25rem; } }
.silk-arrows { display: none; gap: .5rem; }
@media (min-width: 768px) { .silk-arrows { display: flex; } }
.silk-arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid #d6d3d1; color: var(--ink); background: #fff; transition: all .2s ease; }
.silk-arrow:hover { border-color: var(--silk-mid); background: var(--silk-mid); color: #fff; }
.silk-bg .silk-arrow { background: transparent; border-color: rgb(255 253 248 / .4); color: var(--ivory); }
.silk-bg .silk-arrow:hover { background: var(--zari); border-color: var(--zari); color: var(--ink); }

/* ---------- product card ---------- */
.silk-card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #f1ece3; }
.silk-card-media::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--zari-dark), var(--zari-light), var(--zari-dark));
    transform: scaleX(0); transition: transform .45s ease;
}
.group:hover .silk-card-media::after { transform: scaleX(1); }
.silk-badge { border-radius: 2px; padding: .2rem .5rem; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.silk-badge-off { background: var(--silk-mid); color: #fff; }
.silk-badge-new { background: var(--ivory); color: var(--ink); }
.silk-badge-live { background: var(--zari); color: var(--ink); }
.silk-card-name { font-size: .9rem; line-height: 1.35; color: #292524; }
.silk-card-price { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* ---------- flash sale ---------- */
.silk-clock { display: flex; align-items: flex-end; gap: .5rem; font-variant-numeric: tabular-nums; }
.silk-clock b { display: block; min-width: 3.1rem; padding: .45rem .5rem; border: 1px solid rgb(255 253 248 / .3); border-radius: 6px; text-align: center; font-family: var(--display); font-size: 1.75rem; font-weight: 500; color: var(--zari-light); background: rgb(0 0 0 / .18); }
.silk-clock small { display: block; margin-top: .3rem; text-align: center; font-size: .7rem; color: rgb(255 253 248 / .7); }
.silk-flash-card { display: block; padding: .5rem; border-radius: 8px; background: var(--ivory); color: var(--ink); }
.silk-meter { height: 4px; border-radius: 99px; background: #e7e5e4; overflow: hidden; }
.silk-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--zari-dark), var(--silk-mid)); }

/* ---------- new arrivals split ---------- */
.silk-split { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .silk-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; align-items: start; } .silk-split-aside { position: sticky; top: 7rem; } }
.silk-split-aside { padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: 10px; overflow: hidden; }
.silk-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 768px) { .silk-split-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; } }

/* ---------- collections lookbook ---------- */
.silk-look { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; }
.silk-look > a:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 1024px) {
    .silk-look { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 1.25rem; }
    .silk-look > a:first-child { grid-column: span 2; grid-row: span 2; }
    .silk-look > a:nth-child(4) { grid-column: span 2; }
}
.silk-look a { position: relative; display: block; overflow: hidden; border-radius: 8px; color: var(--ivory); background: var(--silk-dark); }
.silk-look img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.silk-look a:hover img { transform: scale(1.05); }
.silk-look a::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, color-mix(in srgb, var(--silk-dark) 85%, transparent), transparent 60%); }
.silk-look .silk-look-copy { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.1rem 1.25rem; }
.silk-look .silk-look-copy p:first-child { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.silk-look > a:first-child .silk-look-copy { padding: 1.75rem; }
.silk-look > a:first-child .silk-look-copy p:first-child { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.silk-look .silk-look-copy p + p { margin-top: .35rem; font-size: .85rem; color: rgb(255 253 248 / .78); max-width: 28rem; }
.silk-look a:focus-visible { outline: 2px solid var(--zari); outline-offset: 3px; }

/* ---------- offer band ---------- */
.silk-offer { display: block; text-align: center; padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem; }
.silk-offer .silk-display { font-size: clamp(2rem, 5vw, 3.75rem); }

/* ---------- reviews ---------- */
.silk-quotes { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .silk-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.silk-quote { position: relative; padding: 2rem 1.75rem 1.5rem; border-radius: 8px; background: #fff; border: 1px solid #ebe3d3; }
.silk-quote::before { content: '\201C'; position: absolute; top: -.35rem; left: 1.25rem; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--zari-dark); }
.silk-quote blockquote { font-family: var(--display); font-size: 1.15rem; line-height: 1.5; color: #292524; }

/* ---------- listing header ---------- */
.silk-pagehead { padding-block: clamp(2rem, 5vw, 3.25rem); }
.silk-pagehead nav, .silk-pagehead nav a { color: rgb(255 253 248 / .75); }
.silk-pagehead nav span { color: var(--ivory); }
.silk-pagehead h1 { color: var(--ivory); }

/* ---------- footer (the pallu) ---------- */
.silk-footer { margin-top: clamp(4rem, 8vw, 7rem); }
.silk-footer a { transition: color .2s ease; }
.silk-footer a:hover { color: var(--zari-light); }
.silk-footer h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 500; color: var(--zari-light); margin-bottom: 1rem; }
.silk-footer li { font-size: .9rem; color: rgb(255 253 248 / .78); }
.silk-footer-news { display: grid; gap: 1.5rem; align-items: end; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
@media (min-width: 1024px) { .silk-footer-news { grid-template-columns: 1.1fr 1fr; } }
.silk-footer-news .silk-display { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.silk-footer input[type=email] { background: rgb(255 253 248 / .08); border: 1px solid rgb(255 253 248 / .3); color: var(--ivory); border-radius: 999px; padding: .85rem 1.25rem; width: 100%; font-size: .9rem; }
.silk-footer input[type=email]::placeholder { color: rgb(255 253 248 / .55); }
.silk-footer input[type=email]:focus { outline: 2px solid var(--zari); outline-offset: 1px; }
.silk-footer-cols { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 640px) { .silk-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .silk-footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.silk-footer .silk-pay { display: inline-flex; border: 1px solid rgb(255 253 248 / .3); border-radius: 999px; padding: .2rem .7rem; font-size: 11px; color: rgb(255 253 248 / .8); }
.silk-footer .silk-brandmark { font-family: var(--display); font-size: 1.9rem; color: var(--ivory); line-height: 1.1; }
.silk-footer .silk-brandmark img { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .3)); }
.silk-footer-base { border-top: 1px solid rgb(255 253 248 / .15); padding-block: 1.1rem; font-size: .78rem; color: rgb(255 253 248 / .65); }

@media (prefers-reduced-motion: reduce) {
    .silk-hero-slide.is-on img, .silk-hero-copy .silk-rise, .silk-dot.is-on::after { animation: none; }
    .silk-dot.is-on::after { transform: scaleX(1); }
    .silk-arch-frame img, .silk-look img { transition: none; }
}

/* spacing helpers used by the theme (kept here so the compiled Tailwind file is untouched) */
.silk-pad { padding-block: clamp(3.5rem, 7vw, 5rem); }
@media (min-width: 1024px) { .silk-header-bar { height: 5rem; } }

/* Two decorated bands in a row sit flush, no cream gap between them */
.silk-bg + .kora-bg, .silk-bg + .silk-bg.silk-section, .kora-bg + .silk-bg.silk-section { margin-top: 0; }

/* Phones: keep hero buttons above the bottom tab bar on first view */
@media (max-width: 767px) {
    .silk-hero { height: max(440px, calc(100svh - 12.5rem)); }
    .silk-hero .silk-hero-nav { top: 1.25rem; bottom: auto; }
}

/* ---------- header dropdowns ----------
 * Panel sits on top of everything below the header, has an invisible bridge so the
 * pointer can travel from the link into it, opens on hover, keyboard focus or tap (touch). */
.silk-drop { position: relative; }
.silk-drop-panel {
    position: absolute; left: 0; top: 100%; z-index: 60;
    padding-top: .6rem;                      /* hover bridge: no dead gap under the link */
    visibility: hidden; opacity: 0; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.silk-drop:hover > .silk-drop-panel,
.silk-drop:focus-within > .silk-drop-panel,
.silk-drop.is-open > .silk-drop-panel {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.silk-drop-panel > div { border-top: 2px solid var(--zari); }

/* =====================================================================
 * v1.7 – softer, more premium feel: motion, product page, cards
 * ===================================================================== */
:root { interpolate-size: allow-keywords; --ease-soft: cubic-bezier(.22, .61, .36, 1); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Page arrives softly */
main { animation: silk-page .6s var(--ease-soft); } /* no fill-mode: a lingering animation would trap pop-ups (zoom, size chart) under the header */
@keyframes silk-page { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal: sections drift up once as they enter (script in layout adds .is-in) */
.js-reveal .silk-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
.js-reveal .silk-reveal.is-in { opacity: 1; transform: none; }
/* cards inside a revealed block arrive one after another */
.js-reveal .silk-reveal .silk-track > *, .js-reveal .silk-reveal .silk-split-grid > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.js-reveal .silk-reveal.is-in .silk-track > *, .js-reveal .silk-reveal.is-in .silk-split-grid > * { opacity: 1; transform: none; }
.silk-reveal.is-in .silk-track > :nth-child(2), .silk-reveal.is-in .silk-split-grid > :nth-child(2) { transition-delay: .08s; }
.silk-reveal.is-in .silk-track > :nth-child(3), .silk-reveal.is-in .silk-split-grid > :nth-child(3) { transition-delay: .16s; }
.silk-reveal.is-in .silk-track > :nth-child(4), .silk-reveal.is-in .silk-split-grid > :nth-child(4) { transition-delay: .24s; }
.silk-reveal.is-in .silk-track > :nth-child(n+5), .silk-reveal.is-in .silk-split-grid > :nth-child(n+5) { transition-delay: .32s; }

/* Softer cards */
.silk-card-media { border-radius: 14px; box-shadow: 0 1px 0 rgb(0 0 0 / .02); transition: box-shadow .5s var(--ease-soft), transform .5s var(--ease-soft); }
.group:hover .silk-card-media { box-shadow: 0 18px 40px -22px rgb(28 25 23 / .45); transform: translateY(-3px); }
.silk-card-media img { transition: transform 1.2s var(--ease-soft) !important; }
.group:hover .silk-card-media img { transform: scale(1.05); }
.silk-badge { border-radius: 999px; padding: .25rem .6rem; }
.silk-arch-frame img { transition: transform 1.2s var(--ease-soft); }
.silk-arch:hover .silk-arch-frame img { transform: scale(1.06); }
.silk-look a img { transition: transform 1.4s var(--ease-soft) !important; }
.silk-quote { border-radius: 18px; box-shadow: 0 10px 30px -24px rgb(28 25 23 / .35); }

/* Outline button to pair with .silk-btn */
.silk-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.6rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
    border: 1.5px solid var(--silk-mid); color: var(--silk-mid); background: var(--ivory);
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.silk-btn-outline:hover { background: var(--silk-mid); color: var(--ivory); transform: translateY(-1px); }
.silk-btn:disabled, .silk-btn-outline:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.silk-btn { position: relative; overflow: hidden; }
.silk-btn::after { /* soft sheen sweeps across on hover */
    content: ''; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
    transition: transform .9s var(--ease-soft);
}
.silk-btn:hover::after { transform: translateX(120%); }

/* ---------- product page ---------- */
.pdp-grid { display: grid; gap: 2rem; margin-top: 1.25rem; }
@media (min-width: 1024px) { .pdp-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 3.5rem; } }
@media (min-width: 1024px) { .pdp-gallery { position: sticky; top: 6.5rem; align-self: start; } }

.pdp-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; background: #f1ece3; }
.pdp-swipe img { width: 100%; flex-shrink: 0; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: center; }
.pdp-dots { position: absolute; inset-inline: 0; bottom: .9rem; display: flex; justify-content: center; gap: .4rem; }
.pdp-dots span { height: 6px; width: 6px; border-radius: 999px; background: rgb(255 255 255 / .6); transition: width .35s var(--ease-soft), background .35s; }
.pdp-dots span.is-on { width: 22px; background: #fff; }
.pdp-heart {
    position: absolute; right: .9rem; top: .9rem; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border-radius: 999px; background: rgb(255 253 248 / .9); backdrop-filter: blur(6px); box-shadow: 0 6px 18px -10px rgb(0 0 0 / .4);
    transition: transform .25s var(--ease-soft);
}
.pdp-heart:hover { transform: scale(1.08); }

.pdp-thumbs { display: flex; flex-direction: column; gap: .65rem; width: 4.75rem; max-height: 680px; overflow-y: auto; flex-shrink: 0; }
.pdp-thumbs button { border-radius: 12px; overflow: hidden; outline: 1.5px solid transparent; outline-offset: 2px; opacity: .65; transition: opacity .3s, outline-color .3s; }
.pdp-thumbs button.is-on, .pdp-thumbs button:hover { opacity: 1; outline-color: var(--zari-dark); }
.pdp-thumbs img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }

.pdp-stage { position: relative; flex: 1; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px; background: #f1ece3; cursor: zoom-in; }
.pdp-stage > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
    transform-origin: var(--zx, 50%) var(--zy, 50%);
    transition: opacity .6s var(--ease-soft), transform .5s var(--ease-soft);
}
.pdp-stage > img.is-on { opacity: 1; }
.pdp-stage.is-zoom > img.is-on { transform: scale(1.7); }
.pdp-stage-hint {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 2; padding: .35rem .8rem; border-radius: 999px;
    font-size: .72rem; color: var(--ink); background: rgb(255 253 248 / .85); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s;
}
.pdp-stage:hover .pdp-stage-hint { opacity: 1; }

.pdp-panel { border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--ivory); border: 1px solid #ece4d4; box-shadow: 0 24px 50px -40px rgb(28 25 23 / .4); }
.pdp-kicker { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: #78716c; }
.pdp-kicker a { color: var(--silk-mid); font-weight: 600; }
.pdp-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp-title { margin-top: .5rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; margin-top: 1.1rem; }
.pdp-price-now { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: var(--ink); }
.pdp-offer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .9rem; padding: .55rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--silk-mid); background: color-mix(in srgb, var(--zari) 22%, white); }
.pdp-opt { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid #ece4d4; }
.pdp-swatch {
    width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 3px solid var(--ivory); box-shadow: 0 0 0 1px #d6cfc2;
    transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft);
}
.pdp-swatch:hover { transform: scale(1.06); }
.pdp-swatch.is-on { box-shadow: 0 0 0 2px var(--zari-dark); }
.pdp-chip {
    min-width: 3.25rem; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
    border: 1px solid #d6cfc2; background: #fff; transition: all .25s var(--ease-soft);
}
.pdp-chip:hover { border-color: var(--silk-mid); }
.pdp-chip.is-on { background: var(--silk-mid); border-color: var(--silk-mid); color: var(--ivory); }
.pdp-swatch.is-out, .pdp-chip.is-out { opacity: .4; text-decoration: line-through; }
.pdp-chip.is-error, .pdp-swatch.is-error { border-color: #f87171; animation: pdp-nudge .4s; }
@keyframes pdp-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.pdp-addons { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid #ece4d4; display: grid; gap: .6rem; }
.pdp-qty { display: flex; align-items: center; border-radius: 999px; border: 1px solid #d6cfc2; background: #fff; padding-inline: .25rem; }
.pdp-qty button { padding: .6rem; border-radius: 999px; }
.pdp-qty button:hover { background: #f5f0e6; }
.pdp-wish { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 999px; border: 1px solid #d6cfc2; background: #fff; transition: transform .25s; }
.pdp-wish:hover { transform: scale(1.06); }
.pdp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.1rem; }
.pdp-cta > * { padding-block: 1rem; }
.pdp-actions-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #ece4d4; font-size: .85rem; }

.pdp-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.pdp-promise > div { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; text-align: center; font-size: .72rem; color: #57534e; border-radius: 16px; background: #fff; border: 1px solid #f0e9dc; }
.pdp-promise svg { color: var(--zari-dark); }
.pdp-pin { margin-top: 1rem; padding: 1.1rem; border-radius: 18px; background: #fff; border: 1px solid #f0e9dc; }

.pdp-acc { margin-top: 1.5rem; border-top: 1px solid #e7dfcf; }
.pdp-acc details { border-bottom: 1px solid #e7dfcf; }
.pdp-acc summary {
    display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; cursor: pointer; list-style: none;
    font-family: var(--display); font-size: 1.15rem; color: var(--ink);
}
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: '+'; font-family: inherit; font-size: 1.4rem; line-height: 1; color: var(--zari-dark); transition: transform .35s var(--ease-soft); }
.pdp-acc details[open] summary::after { transform: rotate(45deg); }
.pdp-acc details > div { padding-bottom: 1.2rem; }
.pdp-acc details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-soft), content-visibility .45s allow-discrete; }
.pdp-acc details[open]::details-content { height: auto; }
.pdp-ticks { display: grid; gap: .5rem; font-size: .9rem; color: #44403c; }
@media (min-width: 640px) { .pdp-ticks { grid-template-columns: 1fr 1fr; } }
.pdp-ticks li { position: relative; padding-left: 1.4rem; }
.pdp-ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: .55rem; height: .55rem; border-radius: 2px; transform: rotate(45deg); background: var(--zari); }
.pdp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; font-size: .9rem; }
.pdp-specs dt { font-size: .75rem; color: #78716c; }
.pdp-specs dd { font-weight: 500; color: var(--ink); }

.pdp-look { margin-top: clamp(3.5rem, 7vw, 6rem); padding-block: clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, #fbf6ec, #f6efe2); border-block: 1px solid #ece4d4; }

.pdp-reviews { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .pdp-reviews { grid-template-columns: 300px 1fr; } }
.pdp-score { height: fit-content; padding: 1.75rem; border-radius: 22px; text-align: center; background: var(--ivory); border: 1px solid #ece4d4; }
.pdp-score-num { font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--ink); }
.pdp-bars { margin-top: 1.25rem; display: grid; gap: .45rem; font-size: .75rem; color: #57534e; }
.pdp-bars > div { display: grid; grid-template-columns: 2rem 1fr 1.75rem; align-items: center; gap: .5rem; }
.pdp-bars i { height: 6px; border-radius: 999px; background: #ece4d4; overflow: hidden; }
.pdp-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--zari-dark), var(--zari)); }

.pdp-mbar { display: none; }
@media (max-width: 1023px) { .pdp-mbar {
    position: fixed; inset-inline: 0; bottom: 3.5rem; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem;
    padding: .6rem .75rem; background: rgb(255 253 248 / .95); backdrop-filter: blur(10px); border-top: 1px solid #ece4d4;
} }
.pdp-mbar .silk-btn, .pdp-mbar .silk-btn-outline { padding: .7rem 1rem; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
    main { animation: none; }
    .js-reveal .silk-reveal, .js-reveal .silk-reveal .silk-track > *, .js-reveal .silk-reveal .silk-split-grid > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    .silk-btn::after { display: none; }
    .pdp-stage.is-zoom > img.is-on { transform: none; }
    html { scroll-behavior: auto; }
}
.silk-track { padding-top: .35rem; padding-bottom: 1.25rem; }
.pdp-cta > * { white-space: nowrap; padding-inline: 1rem; }

/* Header with a long menu (Women, Beauty, Jewellery, Accessories …):
 * - desktop search is an icon that opens into a field on click/focus, so it never pushes the menu
 * - small laptops (1024–1279 px) use the side menu instead of a crowded bar */
@media (min-width: 1024px) {
    .silk-search { width: 2.75rem; height: 2.6rem; }
    .silk-search input {
        position: absolute; right: 0; top: 0; z-index: 5; width: 2.75rem !important; height: 2.6rem; padding-right: 0; cursor: pointer;
        transition: width .35s var(--ease-soft, ease), box-shadow .35s;
    }
    .silk-search input::placeholder { color: transparent; }
    .silk-search input:focus { width: 20rem !important; cursor: text; box-shadow: 0 12px 30px -16px rgb(0 0 0 / .35); background: #fff; }
    .silk-search input:focus::placeholder { color: #a8a29e; }
    .silk-search svg { z-index: 6; pointer-events: none; }
    .silk-search > :not(input):not(svg) { z-index: 7; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .silk-mainnav { display: none !important; }
    .silk-burger { display: inline-flex !important; }
    .silk-drawer { display: block; }
}
@media (min-width: 1280px) and (max-width: 1439px) { .silk-nav-link { padding-inline: .45rem; font-size: .86rem; } }

/* ---------- stock states (both looks) ---------- */
.soldout-tag {
    position: absolute; left: .6rem; bottom: .6rem; z-index: 3; padding: .3rem .65rem; border-radius: 999px;
    background: rgb(28 25 23 / .85); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; pointer-events: none;
}
.soldout-tag.is-lg { left: 1rem; top: 1rem; bottom: auto; padding: .45rem .9rem; font-size: .8rem; }
.is-soldout .silk-card-media img { filter: grayscale(.85) opacity(.7); }
.is-soldout .silk-card-price { color: #a8a29e; }
.stock-out {
    display: flex; gap: .75rem; align-items: flex-start; margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px;
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}
.stock-out svg { flex-shrink: 0; margin-top: .1rem; padding: .15rem; border-radius: 999px; background: #dc2626; color: #fff; }
.stock-low { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: .35rem .8rem; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; font-size: .82rem; font-weight: 600; }
.stock-low::before { content: ''; width: .45rem; height: .45rem; border-radius: 999px; background: #f97316; animation: stock-pulse 1.6s ease-in-out infinite; }
@keyframes stock-pulse { 50% { opacity: .35; } }
.stock-out-btn { grid-column: 1 / -1; padding: 1rem; border-radius: 999px; background: #e7e5e4; color: #78716c; font-weight: 700; cursor: not-allowed; }
.pdp-swatch.is-out { position: relative; }
.pdp-swatch.is-out::after, .pdp-chip.is-out::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, transparent 46%, #dc2626 47%, #dc2626 53%, transparent 54%); }
.pdp-chip.is-out { position: relative; text-decoration: none; opacity: .5; }

/* colour shown as a photo of that colour */
.pdp-swatch.is-photo { width: 3.4rem; height: 4.2rem; padding: 0; border-radius: 10px; overflow: hidden; background: #f5f5f4; }
.pdp-swatch.is-photo img { width: 100%; height: 100%; object-fit: cover; }

/* quick view skeleton */
.qv-skel { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .qv-skel { grid-template-columns: 1fr 1fr; } }
.qv-skel i { display: block; border-radius: 14px; background: linear-gradient(90deg, #f3f0eb 25%, #faf8f5 50%, #f3f0eb 75%); background-size: 200% 100%; animation: qv-shimmer 1.1s linear infinite; }
@keyframes qv-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .stock-low::before, .qv-skel i { animation: none; } }
@media (min-width: 1024px) {
    .silk-search > div { left: auto !important; right: 0; width: 20rem; }
    .silk-search svg { left: .85rem; top: .75rem; }
}
.silk-drawer-sub { padding-left: 1.5rem !important; }

/* ---------- reward points ---------- */
.points-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.5rem; border-radius: 18px;
    background: linear-gradient(120deg, var(--color-brand-800, #3b0f12), var(--color-brand-600, #7f1d1d)); color: #fff;
    box-shadow: 0 18px 40px -26px var(--color-brand-800, #3b0f12);
}
.points-card-label { font-size: .8rem; opacity: .8; }
.points-card-num { margin-top: .15rem; font-family: var(--display, serif); font-size: 2.2rem; font-weight: 600; line-height: 1.1; }
.points-card-num small { font-family: inherit; font-size: .9rem; font-weight: 400; opacity: .85; }
.points-card-note { margin-top: .35rem; font-size: .82rem; opacity: .9; }
.points-meter { flex-shrink: 0; width: 84px; height: 84px; border-radius: 999px; display: grid; place-items: center;
    background: conic-gradient(var(--color-gold-400, #e8c46a) var(--p), rgb(255 255 255 / .2) 0); }
.points-meter span { width: 64px; height: 64px; border-radius: 999px; background: var(--color-brand-700, #5b1616); }
.points-earn { padding: .55rem .75rem; border-radius: 10px; font-size: .82rem; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
