/* ============================================================
   FEWBARSH — Luxury Light Theme
   Palette: Sky #F4F8FB · White #FFFFFF · Ink #111 · Gold #B8860B
   ============================================================ */

:root {
  --bg:            #F4F8FB;
  --surface:       #FFFFFF;
  --surface-2:     #EAF1F8;
  --line:          #D8E3ED;
  --line-2:        #BFD0E0;
  --ink:           #111111;
  --ink-2:         #2A3340;
  --ink-dim:       #6B7280;
  --gold:          #B8860B;
  --gold-2:        #8F6A08;
  --gold-soft:     #F5E7BE;
  --sky:           #D9E9F5;
  --sky-2:         #A9C8E0;
  --danger:        #C0392B;
  --success:       #1E8E5A;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px -12px rgba(17,17,17,.12);
  --shadow-2: 0 20px 60px -28px rgba(17,17,17,.25);
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: 0 8px 22px -8px rgba(184,134,11,.5); }
.logo small { display:block; font-family: var(--font-body); font-size: 10px; color: var(--ink-dim); letter-spacing: .3em; text-transform: uppercase; margin-top: 2px; font-weight: 500; }

.search-wrap { flex: 1; position: relative; }
.search-wrap input {
  width: 100%; padding: 12px 18px 12px 46px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); font-family: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.15); }
.search-wrap .search-icon { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); color: var(--ink-dim); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; display: none; max-height: 380px; overflow-y: auto; box-shadow: var(--shadow-2);
}
.search-results.open { display: block; }
.search-results a { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); align-items:center; }
.search-results a:hover { background: var(--sky); }
.search-results img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: transform .15s, border-color .15s, color .15s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--gold); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--surface);
}

/* ---------- Location banner ---------- */
.loc-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 24px; z-index: 55;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-2); max-width: 520px; width: calc(100% - 32px);
  animation: rise .35s ease;
}
.loc-banner.hidden { display: none; }
.loc-banner i.fa-location-dot { color: var(--gold); font-size: 20px; }
.loc-banner strong { font-family: var(--font-display); font-size: 17px; }
.loc-banner p { margin: 2px 0 0; font-size: 12px; color: rgba(255,255,255,.7); }
.loc-banner .btn { padding: 8px 16px; font-size: 13px; }
@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0 } to { transform: translate(-50%, 0); opacity: 1 } }

/* ---------- Category Drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(17,17,17,.35); backdrop-filter: blur(4px); z-index: 50; display: none; }
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(440px, 100%);
  background: var(--surface); border-left: 1px solid var(--line); z-index: 60;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.9,.2,1);
  overflow-y: auto; padding: 28px;
}
.drawer.open { transform: translateX(0); }
.drawer h3 { color: var(--gold-2); margin: 0 0 4px; font-size: 26px; }
.drawer .subtitle { color: var(--ink-dim); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 22px; }
.cat-item {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; color: var(--ink); transition: border-color .2s, transform .15s, background .2s;
  background: var(--surface);
}
.cat-item:hover { border-color: var(--gold); background: #fffdf5; transform: translateX(-3px); color: var(--ink); }
.cat-code { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-soft), var(--sky)); color: var(--gold-2); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .05em; }
.cat-name { font-weight: 600; font-family: var(--font-display); font-size: 18px; }
.cat-tagline { color: var(--ink-dim); font-size: 13px; margin-top: 2px; }
.cat-sub { margin: 0 0 12px 70px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-sub a { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.cat-sub a:hover { border-color: var(--gold); color: var(--gold-2); background: #fffdf5; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--gold); color: var(--gold-2); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.05; margin: 0 0 20px; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 520px; margin: 0 0 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; border: 1px solid transparent; font-family: inherit; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(184,134,11,.55); background: var(--gold-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(184,134,11,.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(169,200,224,.55), transparent 60%),
    linear-gradient(135deg, #fffdf5, var(--sky));
  border: 1px solid var(--line);
  position: relative; overflow: hidden; box-shadow: var(--shadow-2);
}
.hero-visual::after { content: 'F.E.W.B.A.R.S.H'; position: absolute; bottom: 24px; left: 24px; letter-spacing: .5em; color: var(--gold-2); font-family: var(--font-display); font-size: 15px; font-weight: 600; }

/* ---------- Section headers ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; gap: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); margin: 0; }
.section-head p { color: var(--ink-dim); margin: 6px 0 0; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-1);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-2); color: var(--ink); }
.cat-card .cat-code { margin-bottom: 14px; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-1); position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-2); }
.product-thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--sky); display:block; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.wish-heart {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; transition: color .15s, border-color .15s, transform .15s; z-index: 3;
}
.wish-heart:hover { color: var(--gold); border-color: var(--gold); transform: scale(1.05); }
.wish-heart.active { color: var(--danger); border-color: var(--danger); }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tag-gold { background: var(--gold); color: #fff; }
.tag-express { background: var(--ink); color: #fff; }
.tag-service { background: var(--sky); color: var(--ink-2); border: 1px solid var(--line); }
.tag-off { background: var(--danger); color: #fff; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; color: var(--ink); }
.product-vendor { font-size: 12px; color: var(--ink-dim); margin-bottom: 12px; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.product-price .now { font-size: 22px; font-weight: 700; color: var(--gold-2); font-family: var(--font-display); }
.product-price .was { text-decoration: line-through; color: var(--ink-dim); font-size: 13px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.product-actions .btn { padding: 10px 12px; font-size: 13px; justify-content: center; }
.product-actions .btn-full { grid-column: span 2; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 60px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--ink-2); margin: 16px 0 20px; line-height: 1.7; font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: border-color .2s, color .2s; background: var(--surface); }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { color: var(--gold-2); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--ink-2); padding: 5px 0; font-size: 14px; }
.footer-col a:hover { color: var(--gold-2); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-badge { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); background: var(--bg); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 36px; display: flex; justify-content: space-between; color: var(--ink-dim); font-size: 12px; flex-wrap: wrap; gap: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(17,17,17,.4); backdrop-filter: blur(4px); z-index: 70; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 520px; position: relative; box-shadow: var(--shadow-2); }
.modal-close { position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: var(--ink-dim); cursor: pointer; }
.modal h3 { margin: 0 0 6px; color: var(--gold-2); }
.modal p { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; }
.modal input[type=text], .modal input[type=tel] { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-family: inherit; margin-bottom: 10px; }
.modal input:focus { outline: none; border-color: var(--gold); }
.track-result { margin-top: 18px; padding: 16px; background: var(--sky); border-radius: var(--radius-sm); border-left: 3px solid var(--gold); color: var(--ink); }
.track-result strong { color: var(--gold-2); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 480px; margin: 40px auto; box-shadow: var(--shadow-1); }
.form-card h2 { margin: 0 0 6px; }
.form-card p { color: var(--ink-dim); margin: 0 0 20px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-family: inherit; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.12); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f2b8b0; }
.alert-success { background: #e6f5ee; color: var(--success); border: 1px solid #b7e0c9; }

/* ---------- Article ---------- */
.article { max-width: 820px; margin: 60px auto; background: var(--surface); padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); }
.article h1 { color: var(--gold-2); }
.article h3 { color: var(--ink); margin-top: 30px; }
.article p, .article li { color: var(--ink-2); line-height: 1.8; }
.article ul { padding-left: 22px; }

/* ---------- Cart / Table ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table th { color: var(--ink-dim); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--surface-2); }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }

/* ---------- Checkout wizard ---------- */
.wizard-steps { display: flex; justify-content: center; gap: 8px; margin: 20px 0 34px; }
.wizard-steps .step { display:flex; align-items:center; gap: 10px; }
.wizard-steps .dot { width: 30px; height: 30px; border-radius: 50%; display:grid; place-items:center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-dim); font-weight: 700; font-family: var(--font-display); font-size: 14px; }
.wizard-steps .step.done .dot { background: var(--success); color: #fff; border-color: var(--success); }
.wizard-steps .step.active .dot { background: var(--gold); color: #fff; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(184,134,11,.15); }
.wizard-steps .step label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.wizard-steps .step.active label, .wizard-steps .step.done label { color: var(--ink); }
.wizard-steps .bar { width: 40px; height: 2px; background: var(--line); border-radius: 2px; align-self: center; }
.wizard-steps .step.done + .bar { background: var(--success); }

.pay-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s;
  background: var(--surface);
}
.pay-option:hover { border-color: var(--gold); }
.pay-option input[type=radio] { accent-color: var(--gold); transform: scale(1.2); }
.pay-option .pay-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--ink); font-size: 18px; }
.pay-option .pay-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.pay-option .pay-sub { color: var(--ink-dim); font-size: 12px; margin-top: 2px; }
.pay-option:has(input:checked) { border-color: var(--gold); background: #fffdf5; }

.wallet-card {
  padding: 18px; border: 1px dashed var(--gold); border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf5, #fff8e7);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap;
}
.wallet-card .wallet-info strong { color: var(--gold-2); font-family: var(--font-display); font-size: 22px; }
.wallet-card label { display:flex; align-items:center; gap: 8px; font-size: 13px; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-top: 20px; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-wrap { display: none; }
  .wizard-steps .step label { display: none; }
  .wizard-steps .bar { width: 24px; }
}
@media (max-width: 560px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 30px; }
  .site-footer { padding: 40px 0 24px; }
}
