/* ============================================================
   HIBA FRAGRANCE — Luxury Perfume Store
   White · Black · Gold #C9A84C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --gold:       #C9A84C;
  --gold-dark:  #9A7A30;
  --gold-light: #FDF5DC;
  --gold-mid:   #E8D080;
  --noir:       #0A0A0A;
  --charcoal:   #1A1A1A;
  --dark:       #2C2C2C;
  --white:      #FFFFFF;
  --off-white:  #FAFAFA;
  --cream:      #FDF9F2;
  --text:       #0A0A0A;
  --muted:      #6A6A6A;
  --muted-lt:   #A0A0A0;
  --line:       #E8E8E8;
  --line-gold:  rgba(201,168,76,.25);
  --shadow:     0 1px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.10);
  --radius:     0px;
  --radius-sm:  3px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', Georgia, serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

/* ====================== TOPBAR ====================== */
.topbar {
  background: var(--noir);
  color: rgba(255,255,255,.70);
  font-size: 11px;
  padding: 9px 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar-link { color: var(--gold); font-weight: 600; letter-spacing: .06em; }

/* ====================== NAV ====================== */
.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 110px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* Search */
.searchbar {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .2s;
}
.searchbar:focus-within { border-color: var(--gold); }
.searchbar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 12px 16px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: .02em;
}
.searchbar input::placeholder { color: var(--muted-lt); }
.searchbar button {
  background: var(--noir);
  color: var(--white);
  border: 0;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  height: 100%;
}
.searchbar button:hover { background: var(--gold); color: var(--noir); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-actions a, .nav-actions button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.nav-actions a:hover, .nav-actions button:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold-dark);
}
.nav-actions form { display: inline; }

/* ====================== FLASH ====================== */
.flash { margin: 10px auto 0; }
.flash div { padding: 12px 16px; margin-bottom: 8px; font-weight: 500; font-size: 13px; border-left: 3px solid; }
.flash .success { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.flash .error { background: #fff1f2; border-color: #f43f5e; color: #be123c; }

/* ====================== BTN ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
/* Primary — black */
.btn.dark, .btn.gold, .btn.orange {
  background: var(--noir);
  color: var(--white);
  border-color: var(--noir);
}
.btn.dark:hover, .btn.gold:hover, .btn.orange:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--noir);
}
/* Ghost — outlined */
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-light); }
/* Ghost white (on dark bg) */
.btn.ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn.ghost-white:hover { border-color: var(--gold); color: var(--gold); }
/* Light */
.btn.light { background: var(--gold-light); color: var(--gold-dark); border-color: var(--line-gold); }
.btn.light:hover { background: var(--gold); color: var(--noir); border-color: var(--gold); }
/* Danger */
.btn.danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.btn.small { padding: 9px 18px; font-size: 10px; }
.btn.online-pay-btn { background: var(--charcoal) !important; color: var(--white) !important; border-color: var(--charcoal) !important; }

/* ====================== INPUTS ====================== */
.input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: var(--white);
  outline: 0;
  font: inherit;
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s;
  border-radius: 0;
  appearance: none;
}
.input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236A6A6A' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ====================== HERO ====================== */
.hero {
  background: var(--noir);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at right center, rgba(201,168,76,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 14px;
}
.hero-eyebrow span { display:block; width:20px; height:1px; background:var(--gold); opacity:.5; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: .01em;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-desc {
  color: rgba(255,255,255,.45);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 300;
  max-width: 380px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 260px;
  border: 1px solid rgba(201,168,76,.15);
  flex-shrink: 0;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(201,168,76,.08);
  transition: background .15s;
}
.hero-pill:last-child { border-bottom: none; }
.hero-pill-icon {
  color: var(--gold);
  flex-shrink: 0;
  opacity: .85;
}
.hero-pill-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}
.hero-pill-text span {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 36px 0; }
  .hero-pills { width: 100%; }
}

/* ====================== CATEGORIES ====================== */
.categories { padding: 24px 0 0; }
.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }
.category-pill {
  flex: 0 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 9px 18px;
  font-weight: 500;
  font-size: 12px;
  color: var(--dark);
  letter-spacing: .04em;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  cursor: pointer;
}
.category-pill:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold-dark);
}

/* ====================== PROMO STRIP ====================== */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 36px 0 4px;
  background: var(--charcoal);
  border: 1px solid rgba(201,168,76,.12);
}
.promo-strip-item {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid rgba(201,168,76,.1);
}
.promo-strip-item:last-child { border-right: 0; }
.promo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.promo-text strong { display: block; font-weight: 600; font-size: 13px; color: rgba(255,255,255,.9); letter-spacing: .02em; margin-bottom: 3px; }
.promo-text span { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.55; }

/* ====================== SECTION HEAD ====================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 52px 0 24px;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 30px; letter-spacing: .01em; font-weight: 500; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* ====================== PRODUCT GRID ====================== */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* ====================== PRODUCT CARD ====================== */
.product-card {
  background: var(--white);
  position: relative;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow-lg); z-index: 1; }

.product-image {
  aspect-ratio: 1/1;
  background: var(--off-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .35s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }

.product-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); margin-bottom: 6px; }
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  min-height: calc(13.5px * 1.4 * 2);
  color: var(--text);
  margin-bottom: 10px;
  font-family: 'Raleway', sans-serif;
  letter-spacing: .01em;
}
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid;
}
.tag-conc { background: var(--gold-light); color: var(--gold-dark); border-color: var(--line-gold); }
.tag-gender-h { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.tag-gender-f { background: #FDF2F8; color: #9D174D; border-color: #FBCFE8; }
.tag-gender-m { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }

.product-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted-lt); font-size: 11px; margin-bottom: 10px; letter-spacing: .02em; }
.star-val { color: var(--gold); font-weight: 600; }

.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price strong { color: var(--noir); font-size: 15px; font-weight: 700; font-family: 'Raleway', sans-serif; letter-spacing: .01em; }
.old-price { color: var(--muted-lt); text-decoration: line-through; font-size: 12px; font-family: 'Raleway', sans-serif; }

.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.card-actions form { display: contents; }

/* Ribbons */
.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--noir);
  color: var(--white);
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 2;
}
.discount-ribbon { background: #B91C1C; }
.stock-ribbon { left: auto; right: 0; background: var(--dark); }

/* ====================== BADGE ====================== */
.badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  border: 1px solid var(--line-gold);
}

/* ====================== GENERIC CARD ====================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

/* ====================== FILTERS ====================== */
.filter-card { margin: 20px 0; }
.filters { display: grid; grid-template-columns: 1fr 160px 140px 155px auto; gap: 8px; }

/* ====================== DETAIL ====================== */
.detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; padding: 48px 0; }
.detail-image {
  background: var(--off-white);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.detail-image img { width: 100%; aspect-ratio: 3/4; object-fit: contain; padding: 32px; }
.gallery-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--noir);
  color: var(--white);
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.detail-info { display: flex; flex-direction: column; gap: 20px; }
.detail-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-dark); }
.detail-info h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: .01em; font-weight: 500; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-meta {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.price.price-detail-row { margin-bottom: 0; }
.detail-price { font-size: 38px !important; font-weight: 700 !important; }
.notice { padding: 14px 18px; background: #f0fdf4; border-left: 3px solid #22c55e; color: #15803d; font-size: 13px; font-weight: 500; }

/* Notes */
.notes-card { background: var(--gold-light); border: 1px solid var(--line-gold); padding: 18px; }
.notes-label { font-size: 10px; text-transform: uppercase; letter-spacing: .10em; color: var(--gold-dark); font-weight: 700; margin-bottom: 12px; }
.notes-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.note-pill { background: var(--white); border: 1px solid var(--line-gold); padding: 5px 13px; font-size: 12px; font-weight: 500; color: var(--dark); letter-spacing: .02em; }

/* Qty */
.qty-box { display: flex; gap: 10px; align-items: center; }
.qty-box input { width: 88px; text-align: center; }
.qty-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s, background .15s;
}
.qty-btn:hover { border-color: var(--gold); background: var(--gold-light); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.product-actions { margin-top: 4px; }

/* ====================== REVIEWS ====================== */
.reviews-section { margin: 0 0 56px; }
.rating-summary-pill { background: var(--gold-light); border: 1px solid var(--line-gold); color: var(--gold-dark); font-weight: 700; padding: 9px 18px; font-size: 13px; white-space: nowrap; letter-spacing: .04em; }
.reviews-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: start; }
.big-rating { font-size: 64px; font-weight: 500; line-height: 1; color: var(--noir); font-family: 'Cormorant Garamond', serif; }
.stars-display { font-size: 20px; margin: 8px 0; color: var(--gold); }
.rating-bars { display: grid; gap: 9px; margin-top: 18px; }
.rating-row { display: grid; grid-template-columns: 30px 1fr 20px; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.rating-row .bar { height: 4px; background: var(--line); }
.rating-row .bar i { display: block; height: 100%; background: var(--gold); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 8px 0 14px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; font-size: 28px; color: var(--gold); filter: grayscale(1); opacity: .3; transition: all .15s; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { filter: none; opacity: 1; }
.review-list { margin-top: 20px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.review-card { background: var(--white); padding: 24px; }
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review-head strong { font-weight: 600; font-size: 14px; }
.review-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted-lt); }
.review-stars { color: var(--gold); font-size: 14px; }
.review-card > p { color: var(--dark); font-size: 14px; line-height: 1.7; }

/* ====================== CART & CHECKOUT ====================== */
.checkout-grid, .cart-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; margin: 32px 0; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 14px; }
.summary-line.total { font-weight: 700; color: var(--text); font-size: 18px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.field-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }

/* Table */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--off-white); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.mini-product { display: flex; align-items: center; gap: 14px; }
.mini-product img { width: 56px; height: 56px; object-fit: contain; background: var(--off-white); padding: 4px; }

.status { display: inline-flex; padding: 4px 12px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #E0F2FE; color: #0369A1; }
.status.paid, .status.delivered { background: #DCFCE7; color: #166534; }
.status.pending, .status.new { background: #FEF3C7; color: #92400E; }
.status.cancelled { background: #FEE2E2; color: #991B1B; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.auth-card { max-width: 460px; margin: 56px auto; }

/* Online payment */
.online-payment-fields { display: none; padding: 20px; border: 1px solid var(--line); background: #F8FAFF; margin-top: 8px; }
.online-payment-fields.is-visible { display: block; }
.online-payment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--dark); gap: 10px; }
.online-payment-head span { background: var(--white); border: 1px solid var(--line); padding: 6px 12px; font-size: 12px; font-weight: 600; }
.secure-note { font-size: 12px; margin-top: 10px; color: var(--muted); }
.compact-grid { gap: 12px; }

/* Empty */
.empty { padding: 64px 24px; text-align: center; color: var(--muted); background: var(--off-white); border: 1px solid var(--line); font-size: 14px; }
.notice { padding: 14px 18px; background: #f0fdf4; border-left: 3px solid #22c55e; color: #15803d; font-size: 13px; font-weight: 500; }

/* ====================== ADMIN ====================== */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 88px); }
.admin-sidebar { background: var(--noir); color: var(--white); padding: 32px 20px; }
.admin-sidebar h2 { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(201,168,76,.18); letter-spacing: .06em; text-transform: uppercase; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: rgba(255,255,255,.60); font-weight: 500; margin: 3px 0; font-size: 13px; letter-spacing: .03em; transition: all .15s; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(201,168,76,.10); color: var(--gold); }
.admin-main { padding: 32px; background: var(--off-white); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
.stat-card { background: var(--white); padding: 24px; }
.stat-card span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.stat-card strong { display: block; margin-top: 12px; font-size: 34px; font-weight: 500; font-family: 'Cormorant Garamond', serif; color: var(--noir); }
.admin-headline { margin-bottom: 22px; }
.admin-search { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-bottom: 16px; }
.rich-mini small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.rich-mini img { width: 56px; height: 56px; object-fit: contain; background: var(--off-white); padding: 4px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modern-table table tr:hover td { background: var(--off-white); }

/* Product editor */
.product-editor { display: grid; gap: 24px; }
.editor-preview { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; padding: 24px; background: var(--white); border: 1px solid var(--line); }
.preview-frame { background: var(--off-white); border: 1px solid var(--line); overflow: hidden; }
.preview-frame img { width: 100%; aspect-ratio: 3/4; object-fit: contain; padding: 16px; }
.upload-box { margin-top: 14px; display: grid; gap: 8px; place-items: center; text-align: center; border: 2px dashed var(--line-gold); background: var(--white); padding: 28px; cursor: pointer; transition: all .16s; }
.upload-box:hover { border-color: var(--gold); background: var(--gold-light); }
.upload-box input { display: none; }
.upload-icon { font-size: 26px; }
.upload-box small { color: var(--muted); font-size: 11px; font-weight: 500; }
.modern-form label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--dark); }
.form-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.switch-line { display: flex !important; align-items: center; gap: 12px; background: var(--off-white); border: 1px solid var(--line); padding: 14px; cursor: pointer; }
.switch-line input { width: 16px; height: 16px; accent-color: var(--gold); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.category-other { margin-top: 8px; display: none; }
.category-other.is-visible { display: block; }
.muted { color: var(--muted); }
.form-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }

/* ====================== DETAIL ENGAGEMENTS ====================== */
.detail-engagements {
  background: var(--charcoal);
  margin: 64px 0 0;
  padding: 48px 0;
  border-top: 1px solid rgba(201,168,76,.15);
}
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.engagement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.engagement-item:first-child { padding-left: 0; }
.engagement-item:last-child { border-right: none; padding-right: 0; }
.engagement-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.engagement-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.engagement-item span {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
}

/* ====================== HOME CATALOGUE / FILTERS ====================== */
.catalogue-section { margin: 52px 0 0; }
.catalogue-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.catalogue-header h2 { font-size: 30px; letter-spacing: .01em; font-weight: 500; margin: 0 0 4px; }
.catalogue-count { margin: 0; color: var(--muted); font-size: 13px; }

.home-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.home-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.home-filter-btn:hover {
  border-color: rgba(195,155,78,.45);
  color: var(--gold);
}
.home-filter-btn.active {
  background: var(--charcoal);
  border-color: var(--line);
  color: #fff;
}

.promo-filter-btn {
  border-color: rgba(195,155,78,.5);
  color: var(--gold);
  background: rgba(195,155,78,.08);
  font-weight: 600;
}
.promo-filter-btn:hover,
.promo-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--noir);
}
.promo-filter-btn svg { flex-shrink: 0; }

.catalogue-item { display: contents; }

.catalogue-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
}
.catalogue-empty svg { opacity: .25; }
.catalogue-empty p { font-size: 15px; margin: 0; }

/* ====================== FOOTER ====================== */
.footer-cta {
  background: var(--charcoal);
  border-top: 1px solid rgba(201,168,76,.15);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: 28px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-cta-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.footer-cta-text span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.footer-cta-btn:hover { background: #1db954; color: #fff; }

.footer { background: var(--noir); margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer p { margin: 12px 0 0; line-height: 1.8; color: rgba(255,255,255,.42); font-size: 13px; font-weight: 300; max-width: 280px; }
.footer h4 { margin: 0 0 18px; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.footer a { display: block; color: rgba(255,255,255,.55); margin: 10px 0; font-size: 13px; transition: color .15s; font-weight: 300; }
.footer a:hover { color: var(--gold); }
.footer-logo { height: 44px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 6px; }
.footer-tagline { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(201,168,76,.6); margin-top: 4px !important; }
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  margin: 10px 0;
  font-weight: 300;
}
.footer-contact-line svg { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.25);
  font-size: 11px;
  letter-spacing: .04em;
}
.footer-bottom strong { color: rgba(201,168,76,.7); font-weight: 500; }

/* WhatsApp */
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; z-index: 100; box-shadow: 0 8px 28px rgba(37,211,102,.36); transition: transform .16s, box-shadow .16s; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 36px rgba(37,211,102,.48); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ====================== MISC ====================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 16px; }
.service-grid div { background: var(--white); padding: 16px; text-align: center; font-weight: 500; font-size: 13px; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 920px) {
  .nav-inner { flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  .searchbar { order: 3; min-width: 100%; max-width: 100%; }
  .hero-grid, .detail-grid, .checkout-grid, .cart-grid, .admin-shell { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-strip { grid-template-columns: 1fr; }
  .promo-strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .promo-strip-item:last-child { border-bottom: 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .editor-preview { grid-template-columns: 1fr; }
  .hero-main { padding: 40px 32px; }
  .admin-sidebar { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-actions { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .engagements-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .engagement-item { border-right: none; padding: 0; }
}
@media (max-width: 920px) {
  .engagements-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .engagement-item { border-right: none; padding: 0; }
}
