/* Clotify catalogue — customer pages */
:root {
  --bg: #FAF7F2; --surface: #fff; --sand: #F2EBE0; --line: #E3D9CA; --ink: #1E1B18; --muted: #6B6259;
  --accent: #86653F; --soft: #E9DDCB; --wa: #25D366; --danger: #B3261E; --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 999px;
  border: 1.5px solid transparent; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn--dark { background: var(--ink); color: #fff; } .btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,247,242,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand__tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.shortlist-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.shortlist-link b { background: var(--ink); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.shortlist-link b[hidden] { display: none; }

/* intro */
.intro { padding: 48px 0 28px; background: radial-gradient(900px 380px at 90% -20%, var(--soft), transparent 60%); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .9rem; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* filters */
.catalogue { padding-bottom: 72px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { text-decoration: none; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; background: var(--surface); }
.chips a span { color: var(--muted); font-size: .8rem; margin-left: 2px; }
.chips a:hover { border-color: var(--muted); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; } .chips a[aria-current] span { color: rgba(255,255,255,.7); }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input, .search select, .addform select, .addform input, .enqform input, .enqform textarea, .sl__edit input {
  height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 400 15px var(--sans); color: var(--ink); }
.search input { width: 200px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--soft); }
.count { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.card { text-decoration: none; display: block; }
.card__img { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: .9rem; aspect-ratio: 3/4; background: var(--sand); border-radius: var(--radius); }
.card__body { padding: 12px 2px 0; }
.card h3 { font: 600 1.05rem/1.3 var(--sans); margin: 0; }
.card__code { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.card__price { margin: 4px 0 0; font-weight: 600; }
.card__price span { font-weight: 400; color: var(--muted); font-size: .88rem; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge--new { background: var(--ink); color: #fff; }
.badge--limited { background: #7A1C16; color: #fff; }
.empty { text-align: center; padding: 70px 20px; }

/* product page */
.pdp { padding-top: 18px; padding-bottom: 72px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.pdp__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: 88px; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 3/4; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 72px; aspect-ratio: 3/4; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sand); }
.gallery__thumbs button[aria-current] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { margin-bottom: .15em; }
.code { color: var(--muted); font-size: .9rem; letter-spacing: .04em; margin-bottom: 14px; }
.pricebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.price { font: 600 2rem/1.1 var(--serif); margin: 0 0 6px; }
.price small { font: 400 .9rem var(--sans); color: var(--muted); }
.tiers { width: 100%; border-collapse: collapse; margin: 8px 0 6px; font-size: .95rem; }
.tiers caption { text-align: left; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; }
.tiers th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tiers td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tiers tr:last-child td { border-bottom: 0; }
.specs { margin: 0 0 18px; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .92rem; } .specs dd { margin: 0; font-weight: 500; }
.label { font-weight: 600; margin-bottom: 8px; }
.colours ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.colours li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

.addform { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.addform h2 { font-size: 1.5rem; }
.addform label, .enqform label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 12px; }
.addform select, .addform input, .enqform input, .enqform textarea { display: block; width: 100%; margin-top: 5px; }
.addform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.addform__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .92rem; }
.addform__links a { color: var(--ink); }
.js-added { font-weight: 600; color: #137333 !important; }
.section { margin-top: 64px; }
.prose { max-width: 46em; color: #3E3832; }
.fabrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fabric { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.fabric img, .fabric__ph { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; background: var(--sand); }
.fabric h3 { font: 600 1rem/1.3 var(--sans); margin-bottom: 2px; }
.fabric p { margin: 0 0 4px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* shortlist */
.shortlist { padding-top: 36px; padding-bottom: 72px; }
.sl { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; margin-top: 22px; }
.sl__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sl__item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-items: start; }
.sl__img { display: block; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--sand); }
.sl__img img { width: 100%; height: 100%; object-fit: cover; }
.sl__name { font-weight: 600; text-decoration: none; }
.sl__body p { margin: 2px 0 8px; }
.sl__edit { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.sl__edit label { font-size: .82rem; color: var(--muted); }
.sl__edit input { display: block; width: 100%; height: 38px; margin-top: 2px; }
.sl__remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.sl__send { position: sticky; top: 88px; }
.sendbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sendbox h2 { font-size: 1.5rem; }
.or { text-align: center; color: var(--muted); margin: 14px 0; }
.enqform textarea { height: auto; padding: 10px 12px; resize: vertical; }
.enqform .is-bad { border-color: var(--danger); }
.alert { background: #FBEAE8; color: #7A1C16; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.thanks { text-align: center; padding: 60px 0; }
.thanks .lead { margin: 0 auto 24px; }
.thanks__icon { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .92rem; }
.foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot__in img { height: 34px; width: auto; margin-bottom: 10px; }
.foot__in p { color: var(--muted); max-width: 28em; }
.foot__links { display: flex; flex-direction: column; gap: 6px; }
.foot__links a { color: var(--muted); text-decoration: none; } .foot__links a:hover { color: var(--ink); text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.qloop { display: inline-flex; align-items: center; gap: 6px; } .qloop strong { color: var(--ink); } .qloop svg { color: var(--accent); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(18,140,75,.35); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 40; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

@media (max-width: 1020px) {
  .grid, .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .pdp__grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .sl { grid-template-columns: 1fr; }
  .sl__send { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top__in { height: 60px; }
  .brand img { height: 32px; }
  .brand__tag { display: none; }
  .intro { padding: 30px 0 18px; }
  .facts li { border-radius: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .chips a { white-space: nowrap; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; min-width: 0; }
  .search select { width: 100%; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .specs div { grid-template-columns: 120px 1fr; }
  .sl__item { grid-template-columns: 70px 1fr; }
  .sl__remove { grid-column: 2; justify-self: start; }
  .foot__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
