/* ============================================================
   SUNU — أسواني أصيل  |  Global Stylesheet  v3.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;900&family=Playfair+Display:wght@700;900&display=swap');

/* ── Variables ── */
:root {
  --gold:       #C9A84C;
  --gold-light: #F5E8C0;
  --gold-dark:  #A0722A;
  --deep:       #1A0A00;
  --brown:      #3D1F00;
  --sand:       #F5EDD6;
  --cream:      #FFF8EC;
  --terracotta: #B85C38;
  --nile:       #2C6E73;
  --text:       #1A0A00;
  --muted:      #6B5744;
  --border:     #E8D9B5;
  --card:       #FFFDF7;
  --nav-h:      68px;
  --r:          14px;
  --r-lg:       20px;
  --shadow-sm:  0 2px 8px rgba(26,10,0,.08);
  --shadow:     0 4px 20px rgba(26,10,0,.12);
  --shadow-lg:  0 12px 40px rgba(26,10,0,.18);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:15px; }
body {
  font-family:'Cairo',sans-serif;
  background:var(--cream);
  color:var(--text);
  direction:rtl;
  min-height:100vh;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
button { cursor:pointer; font-family:'Cairo',sans-serif; border:none; }
input,select,textarea { font-family:'Cairo',sans-serif; direction:rtl; }
ul,ol { list-style:none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:var(--sand); }
::-webkit-scrollbar-thumb { background:var(--gold); border-radius:3px; }

/* ── Selection ── */
::selection { background:rgba(201,168,76,.25); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position:fixed; top:0; right:0; left:0; z-index:999;
  height:var(--nav-h);
  background:var(--deep);
  border-bottom:2px solid var(--gold);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 2rem;
  box-shadow:0 2px 24px rgba(0,0,0,.35);
}
.nav-logo { display:flex; flex-direction:column; }
.nav-logo .logo-text {
  font-family:'Playfair Display',serif;
  font-size:26px; font-weight:900;
  color:var(--gold); letter-spacing:4px; line-height:1;
}
.nav-logo .logo-sub {
  font-size:10px; color:rgba(201,168,76,.55);
  letter-spacing:2px; margin-top:2px;
}
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-link {
  color:rgba(255,255,255,.8); font-size:14px; font-weight:600;
  padding:8px 14px; border-radius:10px;
  display:flex; align-items:center; gap:6px;
  transition:background var(--transition), color var(--transition);
  white-space:nowrap;
}
.nav-link:hover { background:rgba(201,168,76,.15); color:var(--gold); }
.nav-link.active { background:rgba(201,168,76,.2); color:var(--gold); }
/* Cart badge */
.cart-icon { position:relative; }
.cart-count {
  position:absolute; top:-6px; right:-6px;
  background:var(--terracotta); color:#fff;
  border-radius:50%; min-width:18px; height:18px; padding:0 3px;
  font-size:10px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--deep);
  animation:pop .2s ease;
}
@keyframes pop { 0%{transform:scale(0)} 80%{transform:scale(1.2)} 100%{transform:scale(1)} }
/* User area */
.nav-user { display:flex; align-items:center; gap:10px; }
.user-avatar {
  width:36px; height:36px; border-radius:50%;
  background:var(--gold); color:var(--deep);
  font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  border:2px solid rgba(201,168,76,.4);
  overflow:hidden; flex-shrink:0;
}
.user-avatar img { width:100%; height:100%; object-fit:cover; }
.user-name { color:#fff; font-size:13px; font-weight:600; }
.btn-login {
  background:var(--gold); color:var(--deep);
  font-weight:700; font-size:13px;
  padding:9px 18px; border-radius:10px;
  display:flex; align-items:center; gap:8px;
  transition:all var(--transition);
}
.btn-login:hover { background:var(--gold-dark); transform:translateY(-1px); }
.btn-logout {
  background:none; border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.65); font-size:12px; font-weight:600;
  padding:6px 12px; border-radius:8px;
  transition:all var(--transition);
}
.btn-logout:hover { border-color:var(--terracotta); color:var(--terracotta); }
/* Hamburger */
.nav-hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; padding:6px; border-radius:8px;
  transition:background var(--transition);
}
.nav-hamburger:hover { background:rgba(201,168,76,.15); }
.nav-hamburger span {
  width:22px; height:2px; background:rgba(255,255,255,.8);
  border-radius:2px; transition:all var(--transition); display:block;
}
/* Mobile menu */
.mobile-menu {
  position:fixed; top:var(--nav-h); right:0; left:0; z-index:998;
  background:var(--deep); border-bottom:1px solid rgba(201,168,76,.3);
  padding:1rem 1.5rem 1.5rem;
  transform:translateY(-110%); opacity:0;
  transition:transform .3s ease, opacity .3s ease;
  pointer-events:none;
}
.mobile-menu.open { transform:translateY(0); opacity:1; pointer-events:all; }
.mobile-menu a, .mobile-menu button.mmlink {
  display:flex; align-items:center; gap:10px;
  padding:12px 0; color:rgba(255,255,255,.8); font-size:15px; font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:none; width:100%; text-align:right;
}
.mobile-menu a:last-child,.mobile-menu button.mmlink:last-child { border-bottom:none; }
.mobile-menu a:hover,.mobile-menu button.mmlink:hover { color:var(--gold); }

/* ── Page Wrapper ── */
.page-body { padding-top:var(--nav-h); min-height:100vh; }
.container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:linear-gradient(135deg,var(--deep) 0%,var(--brown) 55%,#5C3A1A 100%);
  padding:5rem 2rem 4.5rem;
  text-align:center; position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8L72 40L40 72L8 40Z' fill='none' stroke='%23C9A84C' stroke-width='0.4' opacity='0.12'/%3E%3C/svg%3E") repeat;
}
.hero-content { position:relative; z-index:1; max-width:680px; margin:0 auto; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(201,168,76,.18); color:var(--gold);
  border:1px solid rgba(201,168,76,.38);
  padding:6px 20px; border-radius:20px;
  font-size:12px; font-weight:700; letter-spacing:2px;
  margin-bottom:1.5rem;
}
.hero h1 {
  font-family:'Playfair Display',serif;
  font-size:clamp(2.2rem,5.5vw,3.8rem);
  color:#fff; line-height:1.15; margin-bottom:1rem;
}
.hero h1 span { color:var(--gold); }
.hero p { color:rgba(255,255,255,.7); font-size:17px; margin-bottom:2.5rem; }
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
/* ── Shared Buttons ── */
.btn-primary {
  background:var(--gold); color:var(--deep);
  font-weight:700; font-size:15px;
  padding:13px 32px; border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  transition:all var(--transition); white-space:nowrap;
}
.btn-primary:hover { background:#fff; transform:translateY(-2px); box-shadow:0 8px 24px rgba(201,168,76,.35); }
.btn-secondary {
  background:rgba(255,255,255,.1); color:#fff;
  border:1px solid rgba(255,255,255,.25);
  font-weight:600; font-size:15px;
  padding:13px 32px; border-radius:12px;
  display:inline-flex; align-items:center; gap:8px;
  transition:all var(--transition); white-space:nowrap;
}
.btn-secondary:hover { background:rgba(255,255,255,.18); }

/* ── Stats Bar ── */
.stats-bar {
  background:var(--brown);
  border-bottom:1px solid rgba(201,168,76,.28);
  display:flex; justify-content:center;
  flex-wrap:wrap;
}
.stat-item {
  padding:1rem 2rem; text-align:center;
  border-left:1px solid rgba(201,168,76,.2);
  flex:1; min-width:120px;
}
.stat-item:first-child { border-left:none; }
.stat-num { font-size:20px; font-weight:900; color:var(--gold); }
.stat-lbl { font-size:11px; color:rgba(255,255,255,.5); margin-top:2px; }

/* ============================================================
   SHOP TOOLBAR (search + sort)
   ============================================================ */
.shop-toolbar {
  display:flex; align-items:center; gap:10px;
  padding:1rem 0 .5rem; flex-wrap:wrap;
}
.shop-search-wrap {
  flex:1; min-width:200px; position:relative;
}
.shop-search-wrap svg {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  color:var(--muted); pointer-events:none;
}
.shop-search {
  width:100%; border:1px solid var(--border); border-radius:12px;
  padding:10px 38px 10px 14px; font-size:14px; outline:none;
  background:var(--card); transition:border var(--transition);
}
.shop-search:focus { border-color:var(--gold); }
.shop-sort {
  border:1px solid var(--border); border-radius:12px;
  padding:10px 14px; font-size:13px; outline:none;
  background:var(--card); color:var(--text); cursor:pointer;
  transition:border var(--transition);
}
.shop-sort:focus { border-color:var(--gold); }

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.cats-wrap { padding:1.25rem 0 .25rem; }
.cats-scroll {
  display:flex; gap:8px; overflow-x:auto; padding-bottom:6px;
  scrollbar-width:none;
}
.cats-scroll::-webkit-scrollbar { display:none; }
.cat-pill {
  background:var(--card); color:var(--muted);
  border:1.5px solid var(--border);
  font-weight:600; font-size:13px;
  padding:8px 18px; border-radius:24px;
  white-space:nowrap; flex-shrink:0;
  transition:all var(--transition);
}
.cat-pill:hover { border-color:var(--gold); color:var(--gold); background:var(--gold-light); }
.cat-pill.active { background:var(--gold); color:var(--deep); border-color:var(--gold); font-weight:700; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-header {
  display:flex; align-items:center; gap:12px;
  margin:1.5rem 0 1.25rem;
}
.sec-header h2 { font-size:20px; font-weight:700; white-space:nowrap; }
.sec-dot { width:8px; height:8px; background:var(--gold); border-radius:50%; flex-shrink:0; }
.sec-header .line { flex:1; height:1px; background:var(--border); }

/* ============================================================
   PRODUCT GRID + CARDS
   ============================================================ */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:1.25rem; padding-bottom:3rem;
}
/* Skeleton */
.skeleton-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r); overflow:hidden;
}
.skeleton-img { height:185px; background:linear-gradient(90deg,var(--sand) 25%,var(--border) 50%,var(--sand) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; }
.skeleton-line { height:14px; border-radius:6px; margin:1rem 1rem .6rem; background:linear-gradient(90deg,var(--sand) 25%,var(--border) 50%,var(--sand) 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; }
.skeleton-line.sm { height:10px; width:60%; margin-top:0; }
.skeleton-line.btn { height:36px; margin-top:1rem; border-radius:10px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Product card */
.product-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--r); overflow:hidden;
  display:flex; flex-direction:column;
  cursor:pointer;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position:relative;
}
.product-card:hover {
  transform:translateY(-5px);
  box-shadow:var(--shadow-lg);
  border-color:var(--gold);
}
.product-img {
  width:100%; height:185px;
  background:var(--sand);
  display:flex; align-items:center; justify-content:center;
  font-size:68px; position:relative; overflow:hidden;
}
.product-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.product-card:hover .product-img img { transform:scale(1.05); }
.product-badge {
  position:absolute; top:10px; left:10px;
  background:var(--terracotta); color:#fff;
  font-size:10px; font-weight:700;
  padding:4px 10px; border-radius:6px; z-index:1;
}
.product-badge.new-badge { background:var(--nile); }
.out-overlay {
  position:absolute; inset:0;
  background:rgba(26,10,0,.55);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:14px;
}
.product-info { padding:1rem; flex:1; display:flex; flex-direction:column; }
.product-name { font-weight:700; font-size:14px; margin-bottom:4px; line-height:1.4; }
.product-origin { font-size:12px; color:var(--muted); margin-bottom:6px; display:flex; align-items:center; gap:4px; }
.product-rating { font-size:12px; color:var(--muted); margin-bottom:10px; }
.product-rating .stars { color:#E5A100; }
.product-price { font-size:20px; font-weight:900; color:var(--gold); margin-bottom:10px; }
.btn-add {
  width:100%; background:var(--deep); color:#fff;
  font-weight:700; font-size:13px;
  padding:11px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition:all var(--transition); margin-top:auto;
  position:relative; overflow:hidden;
}
.btn-add::after {
  content:''; position:absolute; inset:0;
  background:rgba(255,255,255,.1);
  transform:translateX(-100%);
  transition:transform .3s ease;
}
.btn-add:hover::after { transform:translateX(0); }
.btn-add:hover { background:var(--gold); color:var(--deep); }
.btn-add:disabled { opacity:.5; cursor:not-allowed; }
.btn-add:disabled::after { display:none; }

/* Empty state */
.empty-state {
  grid-column:1/-1; text-align:center; padding:4rem 1rem;
  color:var(--muted);
}
.empty-state .empty-icon { font-size:56px; margin-bottom:1rem; opacity:.7; }
.empty-state h3 { font-size:18px; font-weight:700; margin-bottom:.5rem; color:var(--text); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  display:grid; grid-template-columns:1fr 340px;
  gap:1.5rem; align-items:start; padding:2rem 0;
}
.cart-item {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--r); padding:1.25rem;
  display:flex; gap:1rem; align-items:center;
  margin-bottom:.875rem;
  transition:border-color var(--transition), box-shadow var(--transition);
  animation:slideInRight .25s ease;
}
@keyframes slideInRight { from{opacity:0;transform:translateX(12px)} to{opacity:1;transform:translateX(0)} }
.cart-item:hover { border-color:var(--gold); box-shadow:var(--shadow-sm); }
.cart-item-emoji {
  width:64px; height:64px; flex-shrink:0;
  background:var(--sand); border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:34px; overflow:hidden;
}
.cart-item-emoji img { width:100%; height:100%; object-fit:cover; }
.cart-item-body { flex:1; min-width:0; }
.cart-item-name { font-weight:700; font-size:15px; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-item-price { color:var(--gold); font-weight:700; font-size:14px; }
.qty-row { display:flex; align-items:center; gap:8px; margin-top:8px; }
.qty-btn {
  width:30px; height:30px;
  background:var(--sand); border:1px solid var(--border);
  border-radius:8px; font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  transition:all var(--transition);
}
.qty-btn:hover { background:var(--gold); color:var(--deep); border-color:var(--gold); }
.qty-val { font-weight:700; min-width:26px; text-align:center; font-size:15px; }
.remove-item {
  background:none; color:var(--muted);
  font-size:18px; padding:4px 8px;
  border-radius:8px; transition:all var(--transition);
}
.remove-item:hover { color:var(--terracotta); background:rgba(184,92,56,.1); }
/* Cart Summary */
.cart-summary-box {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:1.5rem;
  position:sticky; top:calc(var(--nav-h) + 1rem);
}
.summary-title { font-size:17px; font-weight:700; margin-bottom:1.25rem; }
.summary-line { display:flex; justify-content:space-between; margin-bottom:.75rem; font-size:14px; }
.summary-total {
  font-size:18px; font-weight:900; color:var(--gold);
  border-top:1px solid var(--border); padding-top:.75rem; margin-top:.25rem;
}
.btn-checkout {
  width:100%; background:var(--terracotta); color:#fff;
  font-weight:700; font-size:15px;
  padding:14px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:all var(--transition); margin-top:1rem;
}
.btn-checkout:hover { background:#9A4A2C; transform:translateY(-1px); box-shadow:0 6px 20px rgba(184,92,56,.3); }
/* Cart empty */
.cart-empty-state { grid-column:1/-1; text-align:center; padding:5rem 1rem; }
.cart-empty-state .empty-icon { font-size:72px; margin-bottom:1rem; opacity:.7; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position:fixed; inset:0; z-index:1000;
  background:rgba(26,10,0,.6); backdrop-filter:blur(5px);
  display:flex; align-items:center; justify-content:center;
  padding:1rem;
  opacity:0; pointer-events:none;
  transition:opacity var(--transition);
}
.modal-backdrop.open { opacity:1; pointer-events:all; }
.modal-box {
  background:var(--card); border-radius:var(--r-lg);
  padding:2rem; width:100%; max-width:500px;
  border-top:4px solid var(--gold);
  max-height:90vh; overflow-y:auto;
  transform:translateY(24px) scale(.97);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-backdrop.open .modal-box { transform:translateY(0) scale(1); }
.modal-title { font-size:18px; font-weight:700; margin-bottom:1.5rem; }
.form-group { margin-bottom:1rem; }
.form-label { font-size:12px; font-weight:700; color:var(--muted); margin-bottom:5px; display:block; }

.pay-methods { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.pm-opt {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  border:1.5px solid var(--border); border-radius:10px; padding:10px 6px;
  cursor:pointer; font-size:11px; font-weight:600; color:var(--muted);
  transition:all var(--transition); text-align:center; background:var(--sand);
}
.pm-opt:hover { border-color:var(--gold); }
.pm-opt input { position:absolute; opacity:0; width:0; height:0; }
.pm-opt:has(input:checked) { border-color:var(--gold); background:rgba(201,168,76,.1); color:var(--text); }
.pm-ico { font-size:20px; }
@media (max-width:420px) { .pay-methods { grid-template-columns:repeat(2,1fr); } }
.form-input,.form-select,.form-textarea {
  width:100%; border:1.5px solid var(--border); border-radius:10px;
  padding:11px 14px; font-size:14px; outline:none;
  background:var(--sand); transition:border var(--transition), box-shadow var(--transition);
}
.form-input:focus,.form-select:focus,.form-textarea:focus {
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,168,76,.15);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.form-actions { display:flex; gap:10px; margin-top:1.5rem; }
.btn-save {
  flex:1; background:var(--gold); color:var(--deep);
  font-weight:700; font-size:14px;
  padding:12px; border-radius:10px; transition:all var(--transition);
}
.btn-save:hover { background:var(--gold-dark); }
.btn-save:disabled { opacity:.6; cursor:not-allowed; }
.btn-cancel {
  background:none; border:1.5px solid var(--border); color:var(--muted);
  font-size:14px; padding:12px 20px; border-radius:10px; transition:all var(--transition);
}
.btn-cancel:hover { border-color:var(--terracotta); color:var(--terracotta); }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--deep) 0%,var(--brown) 100%);
  position:relative; overflow:hidden; padding:1rem;
}
.auth-page::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8L72 40L40 72L8 40Z' fill='none' stroke='%23C9A84C' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E") repeat;
}
.auth-card {
  background:var(--card); border-radius:24px;
  padding:3rem 2.5rem; width:100%; max-width:420px;
  text-align:center;
  box-shadow:var(--shadow-lg);
  border-top:4px solid var(--gold);
  position:relative; z-index:1;
  animation:slideUp .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUp { from{transform:translateY(32px);opacity:0} to{transform:translateY(0);opacity:1} }
.auth-logo { font-family:'Playfair Display',serif; font-size:44px; font-weight:900; color:var(--gold); letter-spacing:4px; margin-bottom:4px; }
.auth-sub { font-size:13px; color:var(--muted); margin-bottom:2rem; }
.auth-title { font-size:19px; font-weight:700; margin-bottom:.5rem; }
.auth-desc { font-size:13px; color:var(--muted); margin-bottom:2rem; line-height:1.7; }
.btn-google {
  width:100%; background:#fff; color:#1A1A1A;
  border:1.5px solid #e0d0b0; font-weight:700; font-size:14px;
  padding:13px 20px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  transition:all var(--transition); margin-bottom:1rem;
}
.btn-google:hover { border-color:var(--gold); background:var(--sand); transform:translateY(-1px); box-shadow:var(--shadow); }
.btn-google:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.or-divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin:1rem 0; }
.or-divider::before,.or-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.btn-guest {
  width:100%; background:var(--sand); color:var(--muted);
  border:1.5px solid var(--border); font-size:13px; font-weight:600;
  padding:12px; border-radius:12px; transition:all var(--transition);
}
.btn-guest:hover { background:var(--border); }
.auth-note { font-size:11px; color:var(--muted); margin-top:1.5rem; line-height:1.8; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background:var(--deep);
  border-top:2px solid rgba(201,168,76,.28);
  color:rgba(255,255,255,.6);
  padding:3rem 2rem 1.5rem;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr;
  gap:2rem; max-width:1200px; margin:0 auto;
  padding-bottom:2rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { font-family:'Playfair Display',serif; font-size:28px; color:var(--gold); letter-spacing:4px; margin-bottom:.5rem; }
.footer-brand p { font-size:13px; line-height:1.8; }
.footer-col h4 { color:var(--gold); font-size:13px; font-weight:700; letter-spacing:1px; margin-bottom:1rem; }
.footer-col a { display:block; font-size:13px; margin-bottom:6px; transition:color var(--transition); }
.footer-col a:hover { color:var(--gold); }

.footer-payments {
  max-width:1200px; margin:0 auto; padding:1.25rem 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
}
.fp-lbl { font-size:12px; font-weight:700; color:rgba(255,255,255,.5); letter-spacing:.5px; white-space:nowrap; }
.fp-icons { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fp-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.75); font-size:11px; font-weight:700;
  padding:6px 12px; border-radius:8px; white-space:nowrap;
  transition:all var(--transition);
}
.fp-badge:hover { border-color:var(--gold); color:var(--gold); background:rgba(201,168,76,.1); }

.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:1.5rem; max-width:1200px; margin:0 auto; font-size:12px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position:fixed; bottom:2rem; left:50%; transform:translateX(-50%);
  z-index:9999; display:flex; flex-direction:column; gap:8px;
  pointer-events:none; align-items:center;
}
.toast-msg {
  background:var(--deep); color:#fff;
  padding:12px 22px; border-radius:12px;
  font-size:14px; font-weight:600;
  border-right:4px solid var(--gold);
  box-shadow:var(--shadow-lg);
  transform:translateY(16px); opacity:0;
  transition:all .35s cubic-bezier(.34,1.56,.64,1);
  white-space:nowrap; max-width:90vw;
}
.toast-msg.show { transform:translateY(0); opacity:1; }
.toast-msg.success { border-color:var(--nile); }
.toast-msg.error   { border-color:var(--terracotta); }

/* ============================================================
   LOADER
   ============================================================ */
.loader-overlay {
  position:fixed; inset:0; z-index:9999;
  background:var(--deep);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  transition:opacity .5s;
}
.loader-logo {
  font-family:'Playfair Display',serif;
  font-size:52px; color:var(--gold); letter-spacing:6px;
  margin-bottom:1.25rem;
  animation:pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.loader-bar-wrap { width:200px; height:3px; background:rgba(201,168,76,.2); border-radius:2px; }
.loader-bar { height:100%; background:var(--gold); border-radius:2px; animation:load 1.6s ease-in-out forwards; }
@keyframes load { from{width:0} to{width:100%} }

/* ============================================================
   ADMIN GUARD
   ============================================================ */
.admin-guard {
  min-height:calc(100vh - var(--nav-h));
  display:flex; align-items:center; justify-content:center;
  background:#F0EBE0; padding:1rem;
}
.admin-guard-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:2.5rem;
  width:100%; max-width:420px; text-align:center;
  box-shadow:var(--shadow-lg); border-top:4px solid var(--gold);
  animation:slideUp .4s ease;
}
.admin-guard-icon { font-size:52px; margin-bottom:1rem; }
.admin-guard-card h2 { font-size:22px; font-weight:700; margin-bottom:.5rem; }
.admin-guard-card p { color:var(--muted); margin-bottom:1.5rem; }
.error-box {
  background:rgba(184,92,56,.1); color:var(--terracotta);
  border:1px solid rgba(184,92,56,.2);
  border-radius:10px; padding:10px 14px; font-size:13px;
  margin-bottom:1rem; display:none;
  animation:shake .4s ease;
}
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:900px) {
  .cart-layout { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .navbar { padding:0 1rem; }
  .nav-links .nav-link span:last-child,.nav-links .nav-link span:first-child { display:none; }
  .nav-hamburger { display:flex; }
  .hero { padding:3rem 1.25rem 2.5rem; }
  .hero h1 { font-size:2rem; }
  .hero p { font-size:15px; }
  .stats-bar .stat-item { padding:.75rem 1.25rem; }
  .products-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:1rem; }
  .product-img { height:150px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-payments { flex-direction:column; align-items:flex-start; padding:1rem 1.25rem; }
  .fp-badge { font-size:10px; padding:5px 10px; }
  .footer-bottom { flex-direction:column; gap:.5rem; text-align:center; padding:1.25rem 1.25rem 0; }
  .form-row { grid-template-columns:1fr; }
  .modal-box { padding:1.5rem; }
}
@media (max-width:420px) {
  .products-grid { grid-template-columns:1fr 1fr; }
  .cart-layout { padding:1rem 0; }
  .footer-brand p { font-size:12px; }
}
