/* ATHR store — white minimal, Cairo font, mirrors the Easy Orders look */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root {
  --black:#0d0d0d; --ink:#1a1a1a; --muted:#767676; --line:#e8e6e1;
  --paper:#ffffff; --sand:#f7f5f1; --red:#d92d20; --gold:#b98a2f;
}
html { scroll-behavior:smooth; overflow-anchor:none; }
body {
  font-family:'Cairo',sans-serif; background:var(--paper); color:var(--ink);
  font-size:15px; line-height:1.65;
}
img { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,select,textarea { font-family:inherit; font-size:15px; }

/* announcement bar */
.topbar { background:var(--black); color:#fff; overflow:hidden; padding:7px 0; font-size:12.5px; font-weight:600; }
.topbar-track { display:flex; gap:18px; width:max-content; animation:marq 26s linear infinite; }
.topbar-track .dot { color:#8a8a8a; }
@keyframes marq { from { transform:translateX(0);} to { transform:translateX(50%);} }

/* header */
.header { position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:10px 16px; flex-wrap:wrap; }
.logo img { height:44px; width:auto; }
.burger { display:flex; flex-direction:column; gap:5px; padding:8px; }
.burger span { width:22px; height:2px; background:var(--ink); border-radius:2px; }
.cart-btn { position:relative; padding:8px; }
.cart-btn svg { width:25px; height:25px; }
.cart-count { position:absolute; top:0; inset-inline-start:0; background:var(--black); color:#fff; font-size:11px; font-weight:700; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.cart-count.zero { display:none; }
.nav { display:none; width:100%; padding:6px 4px 4px; flex-direction:column; }
.nav.open { display:flex; }
.nav a { padding:11px 8px; font-weight:700; font-size:14.5px; border-bottom:1px solid var(--line); }
.nav a:last-child { border-bottom:none; }
.nav a.active { color:var(--gold); }
@media (min-width:900px) {
  .burger { display:none; }
  .nav { display:flex; flex-direction:row; justify-content:center; gap:6px; width:auto; padding:0; }
  .nav a { border:none; padding:8px 13px; border-radius:8px; }
  .nav a:hover { background:var(--sand); }
  .header { padding:10px 28px; }
}

/* layout */
.wrap { max-width:1100px; margin:0 auto; padding:0 16px; }

/* hero */
.hero { background:var(--sand); text-align:center; padding:52px 20px 46px; border-bottom:1px solid var(--line); }
.hero img { height:84px; width:auto; margin:0 auto 18px; }
.hero h1 { font-size:26px; font-weight:900; letter-spacing:.2px; }
.hero p { color:var(--muted); margin:8px 0 22px; font-size:15.5px; }
.hero .cta { display:inline-block; background:var(--black); color:#fff; padding:13px 42px; border-radius:10px; font-weight:800; font-size:15.5px; }
.hero .cta:hover { opacity:.88; }

/* section titles */
.sec { padding:34px 0 10px; }
.sec-title { font-size:20px; font-weight:900; margin-bottom:4px; }
.sec-sub { color:var(--muted); font-size:13.5px; margin-bottom:18px; }

/* category tiles */
.cat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media (min-width:700px) { .cat-grid { grid-template-columns:repeat(4,1fr); } }
.cat-tile { position:relative; border-radius:14px; overflow:hidden; aspect-ratio:1/1.05; background:var(--sand); border:1px solid var(--line); }
.cat-tile { background:var(--sand); }
.cat-tile img { width:100%; height:100%; object-fit:contain; }
.cat-tile .cat-name { position:absolute; inset-inline:0; bottom:0; padding:26px 12px 10px; background:linear-gradient(to top, rgba(0,0,0,.72), transparent); color:#fff; font-weight:800; font-size:15px; }
.cat-tile .cat-count { font-size:11.5px; font-weight:600; color:#e4e4e4; }
.cat-tile .tile-neutral { width:100%; height:100%; background:var(--black); display:flex; align-items:center; justify-content:center; }
.cat-tile .tile-neutral img { width:58%; height:auto; filter:invert(1); opacity:.92; }

/* product grid + cards */
.grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px 12px; padding-bottom:8px; }
@media (min-width:700px) { .grid { grid-template-columns:repeat(4,1fr); gap:20px 16px; } }
.card { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; display:flex; flex-direction:column; transition:box-shadow .18s; }
.card:hover { box-shadow:0 6px 22px rgba(0,0,0,.08); }
.card-img { position:relative; aspect-ratio:4/5; background:var(--sand); overflow:hidden; }
.card-img img { width:100%; height:100%; object-fit:contain; transition:transform .3s; }
.card:hover .card-img img { transform:scale(1.04); }
.badge { position:absolute; bottom:10px; inset-inline-end:10px; background:var(--red); color:#fff; font-size:11.5px; font-weight:800; padding:3px 9px; border-radius:20px; }
.free-ship { position:absolute; bottom:10px; inset-inline-start:10px; background:rgba(13,13,13,.85); color:#fff; font-size:10.5px; font-weight:700; padding:3px 9px; border-radius:20px; }
.card-body { padding:11px 12px 13px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-cat { font-size:11px; color:var(--muted); font-weight:600; }
.card-name { font-weight:700; font-size:13.5px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:40px; }
.price-row { display:flex; align-items:baseline; gap:8px; margin-top:auto; }
.price { font-weight:900; font-size:16px; }
.old { color:var(--muted); text-decoration:line-through; font-size:12.5px; font-weight:600; }
.perfume-note { font-size:11px; color:var(--muted); }

/* filter tabs */
.tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 0 14px; scrollbar-width:none; }
.tabs::-webkit-scrollbar { display:none; }
.tab { white-space:nowrap; padding:8px 18px; border-radius:22px; border:1.5px solid var(--line); font-weight:700; font-size:13.5px; background:#fff; }
.tab.active { background:var(--black); color:#fff; border-color:var(--black); }

/* product page */
.pdp { display:grid; gap:22px; padding:18px 0 30px; }
@media (min-width:860px) { .pdp { grid-template-columns:1fr 1fr; gap:40px; } }
.gallery-main { position:relative; border-radius:16px; overflow:hidden; background:var(--sand); border:1px solid var(--line); aspect-ratio:4/5; }
.gallery-main img { width:100%; height:100%; object-fit:contain; }
.gallery-thumbs { display:flex; gap:10px; margin-top:10px; }
.gallery-thumbs img { width:64px; height:64px; border-radius:10px; object-fit:contain; background:var(--sand); border:1.5px solid var(--line); cursor:pointer; }
.gallery-thumbs img.sel { border-color:var(--black); }
.pdp-cat { color:var(--muted); font-size:12.5px; font-weight:700; }
.pdp-name { font-size:21px; font-weight:900; margin:2px 0 10px; }
.pdp-price { display:flex; align-items:baseline; gap:10px; margin-bottom:4px; }
.pdp-price .price { font-size:26px; }
.pdp-price .old { font-size:16px; }
.pdp-price .badge { position:static; font-size:12.5px; padding:4px 11px; }
.vlabel { font-weight:800; font-size:13.5px; margin:14px 0 8px; }
.variant-pills { display:flex; flex-wrap:wrap; gap:8px; }
.vpill { padding:9px 20px; border-radius:10px; border:1.5px solid var(--line); font-weight:700; font-size:13.5px; background:#fff; }
.vpill.sel { border-color:var(--black); background:var(--black); color:#fff; }
.qty-row { display:flex; align-items:center; gap:14px; margin:16px 0; }
.qty { display:flex; align-items:center; border:1.5px solid var(--line); border-radius:10px; overflow:hidden; }
.qty button { width:40px; height:42px; font-size:19px; font-weight:800; }
.qty span { width:44px; text-align:center; font-weight:800; }
.btn { display:block; width:100%; text-align:center; padding:14px; border-radius:12px; font-weight:800; font-size:15.5px; }
.btn-black { background:var(--black); color:#fff; }
.btn-black:hover { opacity:.88; }
.btn-outline { border:1.5px solid var(--black); margin-top:10px; }
.assurance { display:flex; flex-direction:column; gap:7px; margin-top:18px; padding:14px; background:var(--sand); border-radius:12px; font-size:13px; font-weight:600; }
.assurance span::before { content:"✓"; color:var(--gold); font-weight:900; margin-inline-end:8px; }

/* trust strip */
.trust { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:26px 0; }
.trust div { text-align:center; padding:16px 8px; background:var(--sand); border-radius:12px; font-weight:700; font-size:12.5px; }
.trust .t-ic { width:24px; height:24px; margin:0 auto 6px; display:block; color:var(--black); }
.empty .big { font-size:30px; font-weight:900; margin-bottom:10px; }

/* cart */
.cart-line { display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); align-items:center; }
.cart-line img { width:72px; height:72px; border-radius:10px; object-fit:contain; background:var(--sand); border:1px solid var(--line); }
.cart-line .cl-info { flex:1; }
.cart-line .cl-name { font-weight:700; font-size:13.5px; line-height:1.45; }
.cart-line .cl-var { color:var(--muted); font-size:12px; margin:2px 0 6px; }
.cl-qty { display:flex; align-items:center; border:1px solid var(--line); border-radius:8px; width:max-content; }
.cl-qty button { width:30px; height:30px; font-weight:800; }
.cl-qty span { width:32px; text-align:center; font-weight:700; font-size:13.5px; }
.cl-side { text-align:left; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cl-price { font-weight:900; font-size:14.5px; }
.cl-remove { color:var(--red); font-size:12px; font-weight:700; }
.summary { background:var(--sand); border-radius:14px; padding:18px; margin:20px 0; }
.summary .row { display:flex; justify-content:space-between; padding:6px 0; font-weight:600; font-size:14px; }
.summary .row.total { border-top:1px solid var(--line); margin-top:8px; padding-top:12px; font-weight:900; font-size:16.5px; }
.free { color:#12805c; font-weight:800; }
.empty { text-align:center; padding:70px 20px; }
.empty .big { font-size:44px; margin-bottom:12px; }
.empty p { color:var(--muted); margin-bottom:22px; }

/* checkout */
.co { display:grid; gap:24px; padding:18px 0 40px; }
@media (min-width:860px) { .co { grid-template-columns:1.2fr 1fr; align-items:start; } }
.field { margin-bottom:14px; }
.field label { display:block; font-weight:700; font-size:13px; margin-bottom:6px; }
.field input,.field select,.field textarea { width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px; background:#fff; }
.field input:focus,.field select:focus,.field textarea:focus { outline:none; border-color:var(--black); }
.field .err { color:var(--red); font-size:12px; font-weight:700; margin-top:4px; display:none; }
.field.invalid input,.field.invalid select,.field.invalid textarea { border-color:var(--red); }
.field.invalid .err { display:block; }
.co-items { border:1px solid var(--line); border-radius:14px; padding:6px 16px; margin-bottom:14px; }
.note-box { background:#fff8e6; border:1px solid #f0e0b0; border-radius:12px; padding:12px 14px; font-size:12.5px; font-weight:600; color:#6b5a1e; margin-bottom:16px; }

/* success */
.success { text-align:center; padding:60px 20px; max-width:560px; margin:0 auto; }
.success .check { width:74px; height:74px; border-radius:50%; background:#12805c; color:#fff; font-size:36px; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.success h2 { font-size:22px; font-weight:900; margin-bottom:8px; }
.success p { color:var(--muted); margin-bottom:8px; }
.success .ord-no { font-weight:900; color:var(--ink); }
.order-copy { text-align:right; background:var(--sand); border:1px solid var(--line); border-radius:12px; padding:14px; font-size:12.5px; white-space:pre-wrap; margin:18px 0; max-height:260px; overflow:auto; }

/* toast */
.toast { position:fixed; bottom:24px; right:50%; transform:translateX(50%) translateY(80px); background:var(--black); color:#fff; padding:12px 26px; border-radius:30px; font-weight:700; font-size:13.5px; opacity:0; transition:.25s; z-index:99; pointer-events:none; }
.toast.show { opacity:1; transform:translateX(50%) translateY(0); }

/* footer */
.footer { background:var(--black); color:#fff; text-align:center; padding:40px 20px 30px; margin-top:40px; }
.footer-logo { height:56px; width:auto; margin:0 auto 12px; filter:invert(1); }
.footer-tag { color:#b9b9b9; font-size:13px; margin-bottom:16px; }
.footer-links { display:flex; gap:22px; justify-content:center; margin-bottom:18px; font-weight:700; font-size:14px; }
.footer-links a:hover { color:var(--gold); }
.footer-copy { color:#8a8a8a; font-size:12px; }
.footer-powered { color:#c9a86a; font-size:12.5px; font-weight:700; margin-top:6px; letter-spacing:.4px; }
