/* Cloth Archive look (loaded last): clothes first — tall photos, quiet frames, deep green + gold. */
:root {
  --ink: #17201d;
  --muted: #6b726f;
  --line: #e7e4dc;
  --radius: 4px;
  --serif: "Playfair Display", Georgia, serif;
}
body { font-size: 16.5px; }

/* ---------- header ---------- */
.topbar { background: var(--primary); color: #f3ead9; font-size: 14px; letter-spacing: .02em; }
.site-header { box-shadow: none; border-bottom: 1px solid var(--line); }
.header-row { min-height: 68px; }
.logo span { font-family: var(--serif); font-size: 25.5px; font-weight: 700; letter-spacing: .04em; color: var(--primary); text-transform: uppercase; }
.logo img { max-height: 44px; }
.header-search input { border-radius: 2px; background: #f6f4ef; border-color: transparent; }
.header-search input:focus { background: #fff; border-color: var(--primary); }
.cart-badge { background: var(--accent); }
.main-menu a { font-weight: 500; letter-spacing: .02em; }
.site-nav { border-top: 1px solid var(--line); }
.site-nav .nav-row { justify-content: center; gap: 4px; }
.site-nav .nav-row > a, .site-nav .nav-drop > a {
  text-transform: uppercase; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--ink);
  border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 14px;
}
.site-nav .nav-row > a:hover, .site-nav .nav-row > a.active, .site-nav .nav-drop > a.active { color: var(--primary); border-bottom-color: var(--accent); background: none; }

/* ---------- section headings ---------- */
.section-head { align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.section-head h2 { padding-left: 0; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; letter-spacing: .01em; }
.section-head h2::before { display: none; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 2px; background: var(--accent); margin-top: 8px; }
.section-head a { text-transform: uppercase; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; }

/* ---------- product cards: the photo is the product ---------- */
.product-grid { gap: 22px 18px; }
.product-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.product-card:hover { transform: none; box-shadow: none; }
.product-thumb { aspect-ratio: 4 / 5; background: #efede7; border-radius: var(--radius); }
.product-thumb img { object-fit: cover; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-info { padding: 12px 2px 0; gap: 4px; }
.product-title { font-size: 16.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.price .price-now { font-size: 18px; color: var(--ink); }
.price .price-save { display: none; }
.sale-badge { background: var(--accent); color: #fff; border-radius: 2px; font-weight: 600; letter-spacing: .02em; }
.card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.card-sizes span { font-family: "Poppins", sans-serif; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; border-radius: 2px; line-height: 20px; }
.card-actions { margin-top: 6px; }
.card-actions .btn { border-radius: 2px; height: 42px; font-weight: 600; }
.btn { border-radius: 3px; }

/* ---------- home ---------- */
.h-slider { border-radius: var(--radius); }
.h-slider-wrap { padding-top: 0; }

/* ---------- product page ---------- */
.pp-grid { background: transparent; border: 0; padding: 0; gap: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pp-main { border: 0; border-radius: var(--radius); background: #efede7; }
.pp-track { aspect-ratio: 4 / 5; }
.pp-thumbs button { flex-basis: 64px; height: 80px; border-radius: 2px; }
.pp-cat { background: none; padding: 0; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; color: var(--accent); }
.pp-info h1 { font-weight: 600; }
.pp-price .now { color: var(--ink); }
.pp-desc { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0 0; }

/* size / colour picker */
.vp { display: grid; gap: 14px; padding: 4px 0; border-radius: 4px; }
.vp.need { animation: vp-shake .35s; }
@keyframes vp-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.vp-label { font-size: 15.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.vp-label b { color: var(--ink); font-weight: 600; }
.vp-chart-link { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; padding: 0; }
.vp-sizes, .vp-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-size {
  min-width: 52px; height: 46px; padding: 0 14px; border: 1.5px solid #cfcac0; background: #fff; border-radius: 3px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.vp-size:hover { border-color: var(--ink); }
.vp-size.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.vp-size.is-out { color: #b5b0a6; background: repeating-linear-gradient(135deg, #fff 0 6px, #f4f2ee 6px 7px); text-decoration: line-through; }
.vp-color { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.vp-color img, .vp-color span { width: 52px; height: 64px; object-fit: cover; border-radius: 3px; border: 2px solid transparent; outline: 1px solid var(--line); display: block; }
.vp-color span { height: 40px; width: 40px; border-radius: 50%; }
.vp-color em { font-style: normal; font-size: 13px; color: var(--muted); }
.vp-color.on img, .vp-color.on span { border-color: var(--primary); outline-color: var(--primary); }
.vp-color.is-out { opacity: .45; }
.vp-msg { font-size: 15px; min-height: 0; }
.vp-msg.bad { color: #b42318; font-weight: 600; }
.vp-msg.low { color: #b45309; font-weight: 600; }
.vp.need .vp-sizes .vp-size:not(.is-out) { border-color: #d92d20; }

/* size chart */
.chart-modal { position: fixed; inset: 0; z-index: 90; background: rgba(15, 20, 18, .55); display: grid; place-items: center; padding: 16px; }
.chart-modal[hidden] { display: none; }
.chart-box { position: relative; background: #fff; border-radius: 6px; padding: 22px; width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.chart-box h3 { font-family: var(--serif); font-size: 23.5px; margin-bottom: 14px; }
.chart-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--muted); }
.chart-table { width: 100%; border-collapse: collapse; font-family: "Poppins", "Hind Siliguri", sans-serif; }
.chart-table th, .chart-table td { border: 1px solid var(--line); padding: 9px 10px; text-align: center; font-size: 15.5px; }
.chart-table th { background: var(--primary); color: #fff; font-weight: 600; }
.chart-table tr:nth-child(even) td { background: #faf8f4; }
.chart-img { margin-top: 12px; width: 100%; }
.chart-note { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

/* quick-buy sheet (cards) */
.quick-sheet { position: fixed; inset: 0; z-index: 85; background: rgba(15, 20, 18, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.quick-sheet[hidden] { display: none; }
.qs-panel { position: relative; background: #fff; width: min(440px, 100%); border-radius: 8px; padding: 20px; animation: qs-in .2s ease; }
@keyframes qs-in { from { transform: translateY(20px); opacity: 0; } }
.qs-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 32px; cursor: pointer; color: var(--muted); }
.qs-top { display: flex; gap: 14px; margin-bottom: 16px; padding-right: 20px; }
.qs-top img { width: 86px; height: 108px; object-fit: cover; border-radius: 3px; background: #efede7; }
.qs-name { font-weight: 600; line-height: 1.4; }
.qs-price { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 20.5px; margin: 4px 0; }
.qs-link { font-size: 14.5px; color: var(--primary); text-decoration: underline; }
.qs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.qs-actions .btn { height: 48px; font-weight: 600; }
@media (max-width: 640px) {
  .quick-sheet { align-items: flex-end; padding: 0; }
  .qs-panel { border-radius: 14px 14px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
body.sheet-open { overflow: hidden; }

/* cart / checkout: size under the name */
.summary-variant { display: inline-block; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 3px; padding: 0 7px; margin: 2px 0 4px; }

/* landing page size chips */
.lp-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.size-chip { position: relative; cursor: pointer; }
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span { display: inline-block; min-width: 40px; text-align: center; padding: 4px 10px; border: 1.5px solid #cfcac0; border-radius: 3px; background: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14.5px; }
.size-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.size-chip.is-out span { color: #b5b0a6; text-decoration: line-through; cursor: not-allowed; }
.lp-item.need-size .size-chip span { border-color: #d92d20; }

/* empty category */
.empty-cat { text-align: center; padding: 60px 16px; }
.empty-cat h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary); }
.footer-brand { font-family: var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.footer-title { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }

@media (max-width: 900px) {
  .pp-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-nav .nav-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .product-grid { gap: 18px 10px; }
  .product-title { font-size: 15.5px; }
  .card-actions .btn { height: 40px; font-size: 14.5px; }
  .vp-size { min-width: 50px; height: 44px; }
}

/* home rows use their own heading markup */
.h-head { align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.h-head h2 { padding-left: 0; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; letter-spacing: .01em; }
.h-head h2::before { display: none; }
.h-head h2::after { content: ""; display: block; width: 46px; height: 2px; background: var(--accent); margin-top: 8px; }
.h-more { text-transform: uppercase; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; color: var(--primary); }
.vp-chart-link.solo { margin-left: 0; align-self: flex-start; }
.vp-detail { font-size: 15px; color: var(--ink); background: var(--primary-soft); border-left: 3px solid var(--accent); border-radius: 3px; padding: 8px 12px; line-height: 1.6; }
.vp-detail b { font-family: "Poppins", sans-serif; margin-right: 6px; }
.vp-detail[hidden] { display: none; }
.vp-hint { font-size: 14.5px; color: #8a5a00; background: #fff8e6; border: 1px dashed #e6c46a; border-radius: 4px; padding: 8px 12px; line-height: 1.6; }
.vp-hint[hidden] { display: none; }
.summary-variant.later { color: #8a5a00; background: #fff4d6; }
.lp-size-hint { display: block; font-size: 13px; color: #8a5a00; margin-top: 6px; line-height: 1.5; }

/* cards in a row: buttons always sit on the same line, whatever is above them */
.product-card { height: 100%; }
.product-info { flex: 1; display: flex; flex-direction: column; }
.product-info .card-actions { margin-top: auto; padding-top: 8px; }

/* product box: white card on the warm page so each product stands out */
.product-card { background: #fff; border: 1px solid #ebe7df; border-radius: 6px; padding: 8px; box-shadow: 0 1px 2px rgba(23, 32, 29, .04); transition: box-shadow .25s, border-color .25s; }
.product-card:hover { box-shadow: 0 10px 26px -12px rgba(23, 32, 29, .22); border-color: #e2ddd3; }
.product-card .product-thumb { border-radius: 4px; }
.product-card .product-info { padding: 10px 4px 2px; }
@media (max-width: 640px) {
  .product-card { padding: 6px; }
  .product-card .product-info { padding: 8px 2px 0; }
}

/* size chart: Bengali heading in the Bengali font, share button beside it */
.chart-box h3 { font-family: "Hind Siliguri", sans-serif; font-weight: 700; font-size: 22px; margin: 0; }
.chart-top { display: flex; align-items: center; gap: 12px; margin: 0 34px 14px 0; flex-wrap: wrap; }
.chart-share { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1.5px solid var(--primary); border-radius: 999px; background: #fff; color: var(--primary); font: 600 14.5px "Hind Siliguri", sans-serif; cursor: pointer; }
.chart-share:hover { background: var(--primary); color: #fff; }
.chart-share.loading { opacity: .6; pointer-events: none; }
.chart-msg { margin: -6px 0 10px; font-size: 14px; color: #067647; font-weight: 600; }
.chart-msg.bad { color: #b42318; }
.chart-msg[hidden] { display: none; }
.chart-table th, .chart-table td { font-family: "Hind Siliguri", "Poppins", sans-serif; }
.chart-table th { background: var(--primary); }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-table th, .chart-table td { white-space: nowrap; }
@media (max-width: 640px) {
  .chart-box { padding: 18px 14px; }
  .chart-table th, .chart-table td { padding: 8px 9px; font-size: 14px; }
}
