/* store.americanfashion-al.com — same design tokens as the main American Fashion site */

:root {
  --navy: #10144a;
  --navy-2: #1f2570;
  --red: #b22234;
  --red-deep: #8e1a29;
  --cream: #f6f2eb;
  --sand: #ebe3d6;
  --paper: #ffffff;
  --ink: #10144a;
  --ink-soft: #5a5d78;
  --line: rgba(16, 20, 74, .14);
  --ok: #1d6b33;

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--cream); }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 500; line-height: 1.1; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
html[lang="sq"] [data-l="en"], html[lang="en"] [data-l="sq"] { display: none !important; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 600 .88rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; background: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: var(--red-deep); }
.btn-line { border-color: var(--line); background: var(--paper); }
.btn-line:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: .85rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .76rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar a { text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } .topbar .wrap { justify-content: center; } }
.demo-bar { background: #fff4d6; color: #6b4e00; font-size: .82rem; text-align: center; padding: 8px 16px; }

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand .store-tag { font: 700 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 8px; border-radius: 6px; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { text-decoration: none; font-size: .85rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; gap: 2px; }
.lang button { font: 600 .76rem/1 var(--sans); background: none; border: 0; padding: 8px 5px; opacity: .55; cursor: pointer; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--navy); color: #fff; border: 0; cursor: pointer; font: 600 .82rem/1 var(--sans); }
.cart-btn .n { min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-size: .72rem; padding: 0 5px; }
.menu-toggle { display: none; background: none; border: 1.5px solid currentColor; border-radius: var(--r-pill); padding: 9px 14px; font: 600 .8rem/1 var(--sans); cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 0; padding: 6px 18px; background: #fff; border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(16, 20, 74, .18); display: none; margin: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .header-inner { gap: 10px; min-height: 66px; }
  .brand img { height: 42px; }
  .brand .store-tag { display: none; }
  .cart-btn .lbl { display: none; }
}

/* ---------- catalog ---------- */
.shop-head { padding: 34px 0 18px; }
.shop-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); margin: 0 0 6px; }
.shop-head h1 em { color: var(--red); }
.shop-head p { color: var(--ink-soft); margin: 0; }
.search { position: relative; margin-top: 18px; max-width: 520px; }
.search input { width: 100%; height: 50px; border-radius: var(--r-pill); border: 1px solid #cfc7ba; background: #fff; padding: 0 20px 0 46px; }
.search svg { position: absolute; left: 17px; top: 15px; color: var(--ink-soft); }

.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill);
  padding: 8px 14px; font: 500 .8rem/1 var(--sans); cursor: pointer; text-decoration: none;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .x { font-size: 1rem; line-height: .6; }

.shop { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 18px 0 80px; align-items: start; }
.filters { position: sticky; top: 92px; background: #fff; border-radius: var(--r-lg); padding: 8px 20px 18px; max-height: calc(100vh - 110px); overflow: auto; }
.filters .f-head { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h3 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.fopts { display: flex; flex-direction: column; gap: 7px; }
.fopts label { display: flex; align-items: center; gap: 9px; font-size: .88rem; cursor: pointer; }
.fopts input { width: 17px; height: 17px; accent-color: var(--navy); margin: 0; }
.fopts .cnt { margin-left: auto; color: var(--ink-soft); font-size: .76rem; }
/* long lists (inventory has ~70 brands and sizes) scroll inside their group */
.fopts[data-f="brand"], .fopts[data-f="cat"] { max-height: 236px; overflow: auto; padding-right: 4px; }
.sizes-grid { max-height: 190px; overflow: auto; }
.more-wrap { text-align: center; margin-top: 28px; }
.sizes-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes-grid label { position: relative; }
.sizes-grid input { position: absolute; opacity: 0; inset: 0; }
.sizes-grid span { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.sizes-grid input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.sizes-grid input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 40px; border: 1px solid #cfc7ba; border-radius: 10px; padding: 0 10px; font-size: .85rem; }
.filters .f-actions { display: flex; gap: 10px; padding-top: 14px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.toolbar select { height: 42px; border-radius: var(--r-pill); border: 1px solid #cfc7ba; background: #fff; padding: 0 14px; font-size: .85rem; }
.open-filters { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); overflow: hidden; text-decoration: none; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 16px 34px rgba(16, 20, 74, .12); }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card .ph img { transition: none; } .card:hover .ph img { transform: none; } }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.badge { background: var(--navy); color: #fff; border-radius: var(--r-pill); padding: 4px 10px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge.sale { background: var(--red); }
.badge.out { background: #fff; color: var(--ink); }
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .brand-n { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.card .name { font-size: .95rem; font-weight: 500; line-height: 1.3; }
.card .sz { font-size: .74rem; color: var(--ink-soft); margin-top: 2px; }
.card .price { margin-top: auto; padding-top: 8px; }
.card.is-out .ph img { opacity: .55; }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-weight: 700; font-size: 1.05rem; }
.price .was { color: var(--ink-soft); text-decoration: line-through; font-size: .85rem; }
.price .eur { color: var(--ink-soft); font-size: .8rem; }
.price.on-sale .now { color: var(--red); }

.empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--r-lg); }
.empty h2 { font-size: 1.8rem; }
.loading { padding: 60px 0; text-align: center; color: var(--ink-soft); }

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .open-filters { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); max-height: none; z-index: 70; border-radius: 0;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s;
    box-shadow: -20px 0 40px rgba(16, 20, 74, .2); padding-top: 0;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .filters .f-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 16px 0 10px; z-index: 1; }
  .filters .f-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 10px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .filters, .drawer { transition: none !important; } }
.scrim { position: fixed; inset: 0; background: rgba(16, 20, 74, .45); z-index: 60; }

/* ---------- product page ---------- */
.crumbs { font-size: .8rem; color: var(--ink-soft); padding: 22px 0 14px; }
.crumbs a { color: inherit; }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 60px; align-items: start; }
.gallery .main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 92px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sand); }
.thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { position: sticky; top: 96px; }
.info .brand-n { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.info h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); margin: 6px 0 4px; }
.info .code { color: var(--ink-soft); font-size: .85rem; margin-bottom: 16px; }
.info .price .now { font-size: 1.7rem; font-family: var(--display); font-weight: 600; }
.info .price .eur { font-size: .95rem; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.yes { color: var(--ok); }
.stock.no { color: var(--red); }
.opt-group { margin-top: 20px; }
.opt-group > span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.size-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btns button { min-width: 50px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.size-btns button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.size-btns.need button { border-color: var(--red); }
.colors { font-size: .9rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; }
.qty button { width: 42px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 10px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.buy-row .btn-red { flex: 1; min-width: 200px; }
.or-order { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.or-order p { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.or-order .row { display: flex; gap: 8px; flex-wrap: wrap; }
.or-order .btn { flex: 1; min-width: 140px; min-height: 44px; font-size: .8rem; }
.desc { margin-top: 24px; font-size: .95rem; }
.perks { list-style: none; margin: 22px 0 0; padding: 16px 18px; background: #fff; border-radius: var(--r-md); font-size: .85rem; display: grid; gap: 8px; }
.perks li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 16px; font-size: .88rem; font-weight: 600; box-shadow: 0 12px 30px rgba(16, 20, 74, .3);
  width: max-content; max-width: min(520px, calc(100vw - 32px)); text-align: center; line-height: 1.4;
}
.related { padding: 10px 0 70px; }
.related h2 { font-size: 2rem; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .info { position: static; } }

/* ---------- cart drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); background: #fff; z-index: 80; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 40px rgba(16, 20, 74, .2);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.x-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.line .t { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.line .m { font-size: .76rem; color: var(--ink-soft); }
.line .p { font-weight: 700; font-size: .9rem; text-align: right; white-space: nowrap; }
.line .qty { margin-top: 8px; }
.line .qty button { width: 32px; height: 32px; font-size: 1rem; }
.line .warn { color: var(--red); font-size: .76rem; font-weight: 600; }
.sum { display: flex; justify-content: space-between; font-size: .9rem; }
.sum.total { font-size: 1.1rem; font-weight: 700; }
.sum .eur { color: var(--ink-soft); font-weight: 500; font-size: .8rem; margin-left: 6px; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); padding: 10px 0 80px; align-items: start; }
.panel { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: 1.7rem; }
.panel + .panel { margin-top: 18px; }
.summary { position: sticky; top: 96px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; background: #fbf9f5; border: 1px solid #cfc7ba; border-radius: 12px; padding: 12px 14px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; background: #fff; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fdf3f1; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; }
.radio-cards input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; }
.radio-cards label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.radio-cards label.off { opacity: .5; cursor: not-allowed; }
.radio-cards b { display: block; font-size: .92rem; }
.radio-cards small { color: var(--ink-soft); font-size: .78rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; font-size: .88rem; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.status[data-state="error"] { background: #fbe9e6; color: #9f2a17; }
.status[data-state="busy"] { background: var(--cream); }
.done { text-align: center; padding: 50px 24px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: #e7f4ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; }
.done h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.done .no { font-family: var(--display); font-size: 1.6rem; color: var(--red); }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }

/* ---------- footer ---------- */
.site-footer { background: #fff; padding: 40px 0 24px; font-size: .84rem; color: var(--ink-soft); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer-top img { height: 64px; width: auto; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 16px; }
.footer-bottom a { color: var(--ink); }
