/* bilalgarments.center — quiet, photo-first, one accent, fast on a phone. */
:root {
  --bg: #fbfaf8; --bg-2: #ffffff; --bg-3: #f1efeb; --ink: #1c1917; --ink-2: #57534e; --ink-3: #8a8580;
  --line: #e7e5e0; --accent: #0f766e; --accent-ink: #ffffff; --accent-soft: #e6f4f2; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2; --ok: #166534;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
  --wrap: 1180px; --pad: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131211; --bg-2: #1c1a18; --bg-3: #262320; --ink: #f4f1ec; --ink-2: #c8c2ba; --ink-3: #8f8880; --line: #2f2b27; --accent: #2dd4bf; --accent-ink: #062b28; --accent-soft: #123b37; --warn: #fbbf24; --warn-soft: #3a2a08; --bad: #f87171; --bad-soft: #3b1414; --ok: #4ade80; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--ink-2); } .small { font-size: 13px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--bg-2); padding: 8px; z-index: 99; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.hdr-search { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.hdr-search input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; padding: 0 12px; background: var(--bg-2); color: var(--ink); font-size: 14px; }
.hdr-search button { height: 38px; width: 42px; border: 1px solid var(--line); border-radius: 0 10px 10px 0; background: var(--bg-3); cursor: pointer; font-size: 18px; }
.cart-btn { position: relative; height: 38px; min-width: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); cursor: pointer; font-size: 18px; padding: 0 8px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-3); }
.nav a:hover { color: var(--ink); }
.strip { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; text-align: center; padding: 7px 0; }
main { padding: 22px var(--pad) 40px; min-height: 60vh; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: transform .08s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-outline { background: transparent; }
.btn-block { width: 100%; } .btn-lg { height: 52px; font-size: 16px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 18px 0 30px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.hero p { color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hero-img { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--bg-3); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-img { order: -1; aspect-ratio: 4/3; } }

/* sections and grids */
.sec { margin: 30px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sec-head a { color: var(--accent); font-weight: 700; font-size: 14px; }
.page-head { margin: 4px 0 18px; }
.page-head h1 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--ink-2); margin: 6px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.grid-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .grid-row { grid-template-columns: repeat(2, 1fr); } }
.card { display: block; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .12s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4/5; background: var(--bg-3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-3), var(--line)); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.badge-out { left: auto; right: 10px; background: var(--ink); color: var(--bg); }
.badge-few { left: auto; right: 10px; background: var(--warn-soft); color: var(--warn); }
.card.is-out .card-img img { opacity: .55; filter: grayscale(.4); }
.card-body { padding: 10px 12px 12px; }
.card-name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.card-price { font-weight: 800; margin-top: 6px; font-size: 15px; }
.card[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--ink); padding: 0 10px; font-size: 13.5px; }
.filters .chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.filters .count { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.empty { padding: 50px 20px; text-align: center; color: var(--ink-2); background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h1 { font-size: 22px; margin-bottom: 8px; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.coll { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-3); }
.coll img { width: 100%; height: 100%; object-fit: cover; }
.coll-text { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; display: grid; }
.coll-text strong { font-size: 18px; } .coll-text span { font-size: 13px; opacity: .9; } .coll-text em { font-style: normal; font-size: 12px; opacity: .8; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.cat-parent { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.cat-child { color: var(--ink-2); font-size: 14px; padding: 3px 0; }
.cat-child:hover { color: var(--accent); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 10px; }
.promise div { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.promise strong { font-size: 15px; } .promise span { color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* product */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }
.prod { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
@media (max-width: 820px) { .prod { grid-template-columns: 1fr; gap: 20px; } }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; background: var(--bg-3); aspect-ratio: 4/5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: 0 0 64px; height: 80px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-3); cursor: pointer; }
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.buy-meta { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.buy-price { font-size: 26px; font-weight: 800; margin: 12px 0 6px; }
.soldout { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-weight: 600; margin: 8px 0; }
.opt { margin: 16px 0; }
.opt-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.opt-label span { color: var(--ink-2); font-weight: 500; }
.opt-hint { color: var(--ink-3); font-size: 12.5px; margin-top: 6px; min-height: 1em; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); padding: 3px; background: var(--bg-2); cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch.active { border-color: var(--accent); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 48px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-2); font-weight: 700; cursor: pointer; }
.size.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.size.is-out { color: var(--ink-3); text-decoration: line-through; background: var(--bg-3); cursor: not-allowed; }
.size.is-few::after { content: "few"; display: block; font-size: 9px; font-weight: 600; color: var(--warn); line-height: 1; margin-top: -2px; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 18px 0 10px; }
.qty-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.qty-row input { width: 64px; height: 44px; border: 1px solid var(--line); border-radius: 10px; text-align: center; background: var(--bg-2); color: var(--ink); font-size: 15px; }
.qty-row .btn { flex: 1; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-actions .btn { flex: 1; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.details dt { color: var(--ink-3); } .details dd { margin: 0; }

/* cart drawer */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg-2); z-index: 41; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 17px; }
.x { border: 0; background: none; font-size: 20px; cursor: pointer; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 18px; }
.drawer-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: baseline; }
.row.total { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--bg-3); }
.line-name { font-weight: 700; font-size: 14px; }
.line-meta { color: var(--ink-3); font-size: 12.5px; }
.line-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.line-qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; }
.line-price { font-weight: 800; text-align: right; }
.line-rm { border: 0; background: none; color: var(--ink-3); font-size: 12px; cursor: pointer; display: block; margin-top: 6px; }
.cart-empty { padding: 40px 10px; text-align: center; color: var(--ink-2); }

/* checkout */
.co { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .co { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 14px 16px 16px; margin: 0 0 14px; display: grid; gap: 12px; }
.co-form legend { font-weight: 800; padding: 0 6px; }
.co-form label { display: grid; gap: 5px; font-weight: 600; font-size: 13.5px; }
.co-form input:not([type=radio]):not([type=checkbox]), .co-form select, .co-form textarea { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); color: var(--ink); font: inherit; width: 100%; }
.co-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.co-form small { font-weight: 400; color: var(--ink-3); }
.co-form .is-bad { border-color: var(--bad) !important; }
.co-form .fe { color: var(--bad); font-weight: 500; font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radios { display: flex; gap: 16px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.co-summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 120px; display: grid; gap: 8px; }
.co-summary h2 { font-size: 17px; }
.co-err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-weight: 600; }
details summary { cursor: pointer; font-weight: 600; }

/* thanks / track / visit */
.thanks { max-width: 640px; margin: 20px auto; text-align: center; }
.thanks-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.thanks h1 { font-size: 30px; font-weight: 800; }
.thanks-no { font-size: 17px; margin: 10px 0 18px; } .thanks-no strong { font-family: ui-monospace, Menlo, Consolas, monospace; }
.steps { text-align: left; display: grid; gap: 10px; padding-left: 22px; margin: 18px 0; color: var(--ink-2); }
.thanks-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.order-box { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 10px 0 16px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 760px; }
.track-form label { display: grid; gap: 5px; font-weight: 600; font-size: 13.5px; }
.track-form input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg-2); color: var(--ink); font: inherit; }
@media (max-width: 640px) { .track-form { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 0; margin: 18px 0; max-width: 560px; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 0 0 18px; position: relative; color: var(--ink-3); }
.tl::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg-2); display: grid; place-items: center; font-size: 11px; font-style: normal; }
.tl.done { color: var(--ink); } .tl.done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl.now { color: var(--ink); font-weight: 700; } .tl.now i { border-color: var(--accent); }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }
.visit h2 { font-size: 20px; margin-bottom: 8px; }
.visit-note { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; color: var(--ink-2); }
.search-big { display: flex; gap: 8px; max-width: 640px; margin-top: 12px; }
.search-big input { flex: 1; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--bg-2); color: var(--ink); font: inherit; }

/* footer */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 30px 0 90px; color: var(--ink-2); font-size: 14px; }
.ftr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr; } }
.ftr-brand { font-weight: 800; font-size: 17px; color: var(--ink); }
.ftr p { margin: 6px 0; } .ftr a { color: var(--accent); font-weight: 600; }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); z-index: 20; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 50; box-shadow: var(--shadow); }
