/* ===== TOKENS ===== */
:root {
  --cream: #ffffff;
  --bg-light: #FDFBFA;
  --beige: #F5EFEB;
  --stone: #E6DCD3;
  --warm:  #8A7C70;
  --charcoal: #1A1816;
  --dark:  #111111;
  --gold:  #D4AF37;
  --gold-l:#E5C76A;
  --gold-d:#B5952F;
  --white: #FFFFFF;
  --danger: #E63946;
  --success: #2A9D8F;
  --nav-h: 88px;
  --ease:  cubic-bezier(0.25, 1, 0.5, 1);
  --sh:    0 10px 40px rgba(0,0,0,.06);
  --sh-hover: 0 20px 50px rgba(212,175,55,.15);
  --r:     8px;
  --ff-h:  'Cormorant Garamond', serif;
  --ff-b:  'Inter', sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0; -webkit-tap-highlight-color: transparent;}
html{}
body{font-family:var(--ff-b);background:var(--bg-light);color:var(--charcoal);direction:rtl;line-height:1.6;}
a,button{cursor:pointer;outline:none;}
img{max-width:100%;display:block;}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  background: rgba(26, 24, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(26, 24, 22, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --nav-h: 70px;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
  transition: height 0.4s var(--ease);
}

.nav-left { display: flex; align-items: center; gap: 30px; }
.nav-center { display: flex; justify-content: center; align-items: center; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.nav-logo { cursor: pointer; display: flex; align-items: center; }
.nav-logo img {
  height: 50px; width: auto; object-fit: contain;
  transition: transform 0.3s var(--ease);
  filter: brightness(0) invert(1);
}
.nav-logo:hover img { transform: scale(1.05); }

.nav-links-desktop { display: flex; gap: 30px; }
.nav-links-desktop a {
  font-family: var(--ff-b); font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.8); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links-desktop a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: transform 0.3s var(--ease); transform-origin: right;
}
.nav-links-desktop a:hover { color: var(--gold); }
.nav-links-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }

.admin-link-nav {
  font-size: 12px; font-weight: 600; color: var(--gold-l);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(212,175,55,0.3); padding: 6px 14px; border-radius: 20px;
  transition: all 0.2s;
}
.admin-link-nav:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }

.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 6px; padding: 8px; cursor: pointer; z-index: 1001; }
.hamburger span { display: block; height: 2px; background: var(--white); transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 4px; }
.hamburger span:nth-child(1) { width: 24px; align-self: flex-end; }
.hamburger span:nth-child(2) { width: 16px; align-self: flex-end; }
.hamburger span:nth-child(3) { width: 20px; align-self: flex-end; }
.hamburger:hover span { width: 24px; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); width: 24px; }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 24px; }

.cart-btn {
  background: none; border: none; position: relative;
  color: var(--white); display: flex; align-items: center;
  padding: 8px; transition: color 0.2s;
}
.cart-btn:hover { color: var(--gold); }
.badge {
  position: absolute; top: -2px; left: -2px;
  background: var(--gold); color: #fff; font-size: 11px;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-family: var(--ff-b);
  box-shadow: 0 2px 5px rgba(212,175,55,0.4);
  transition: transform 0.2s;
}
.badge.pop { transform: scale(1.3); }

.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(26, 24, 22, 0.98); border-top: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 20px 40px; gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--ff-b); font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,0.8); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s var(--ease);
}
.mobile-nav a:hover { color: var(--gold); transform: translateX(-8px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: url('https://images.unsplash.com/photo-1594035910387-fea47794261f?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  padding-top: var(--nav-h);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,24,22,0.6) 0%, rgba(26,24,22,0.9) 100%);
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 1; text-align: center; color: var(--white);
  padding: 0 24px; animation: fadeUp 1s var(--ease) both;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--ff-b); font-size: 12px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.hero-title {
  font-family: var(--ff-h); font-size: clamp(60px, 10vw, 120px);
  font-weight: 400; letter-spacing: 0.05em; line-height: 1.1; margin-bottom: 24px;
  color: var(--white); text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.hero-sub {
  font-family: var(--ff-h); font-style: italic;
  font-size: clamp(20px, 3vw, 32px); font-weight: 300;
  margin-bottom: 48px; color: rgba(255,255,255,0.8);
}
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-b); font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border: none; cursor: pointer;
  padding: 16px 40px; transition: all 0.3s var(--ease);
  text-decoration: none; border-radius: 4px;
}
.btn-gold {
  background: var(--gold); color: #fff;
  box-shadow: 0 4px 15px rgba(212,175,55,0.25);
}
.btn-gold:hover {
  background: var(--gold-d); transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}
.btn-dark {
  background: var(--charcoal); color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-dark:hover {
  background: var(--dark); transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.btn-outline {
  background: transparent; color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal); color: #fff;
}
.btn-outline-danger {
  background: transparent; color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-outline-danger:hover {
  background: var(--danger); color: #fff;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===== SECTIONS ===== */
.section { padding: 120px 24px; max-width: 1300px; margin: auto; }
.section-eyebrow {
  text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-family: var(--ff-h); font-size: clamp(36px, 5vw, 56px);
  font-weight: 400; text-align: center; margin-bottom: 16px; color: var(--charcoal);
}
.section-sub {
  text-align: center; color: var(--warm); font-size: 16px;
  margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px;
}
.product-card {
  background: var(--white); border-radius: 8px;
  cursor: pointer; transition: all 0.4s var(--ease);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--sh-hover); transform: translateY(-8px);
}
.card-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 3/4; border-radius: 8px;
  background: var(--bg-light);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease);
}
.product-card:hover .card-img-wrap img { transform: scale(1.08); }
.card-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,0.2);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-type-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.9); color: var(--charcoal);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; padding: 6px 12px;
  border-radius: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.card-sale {
  position: absolute; top: 16px; left: 16px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; padding: 6px 12px;
  border-radius: 20px; box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}
.card-body { padding: 24px 10px 10px; text-align: center; }
.card-name { font-family: var(--ff-h); font-size: 26px; font-weight: 500; margin-bottom: 4px; color: var(--charcoal); }
.card-name-en { font-family: var(--ff-b); font-size: 13px; color: var(--warm); margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.card-price { display: flex; justify-content: center; align-items: center; gap: 12px; }
.price-now { font-size: 20px; font-weight: 600; color: var(--gold-d); }
.price-old { font-size: 15px; color: var(--stone); text-decoration: line-through; }
.btn-mobile-add { display: none; width: 100%; margin-top: 15px; padding: 14px; font-size: 14px; border-radius: 4px; }

/* ===== FILTER BAR ===== */
.filter-wrap { padding: 20px 24px; border-bottom: 1px solid var(--beige); background: var(--white); position: sticky; top: 70px; z-index: 100; transition: top 0.4s var(--ease); }
.filter-inner { max-width: 1000px; margin: auto; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  font-family: var(--ff-b); font-size: 13px; font-weight: 500;
  padding: 10px 24px; border: 1px solid var(--beige); background: var(--bg-light);
  color: var(--warm); cursor: pointer; transition: all 0.3s; border-radius: 30px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--charcoal); color: #fff; border-color: var(--charcoal);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== PERFUME DETAIL ===== */
.detail-wrap { max-width: 1200px; margin: 0 auto; padding: 140px 24px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.detail-img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; box-shadow: var(--sh); }
.detail-info { padding-right: 20px; }
.detail-type { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 16px; background: rgba(212,175,55,0.1); padding: 6px 16px; border-radius: 20px; }
.detail-name { font-family: var(--ff-h); font-size: clamp(40px, 4vw, 64px); font-weight: 400; margin-bottom: 8px; line-height: 1.1; color: var(--charcoal); }
.detail-name-en { font-family: var(--ff-b); font-size: 16px; color: var(--warm); margin-bottom: 32px; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-price { font-size: 36px; font-weight: 600; margin-bottom: 8px; color: var(--gold-d); }
.detail-price-old { font-size: 18px; color: var(--stone); text-decoration: line-through; margin-bottom: 32px; }
.detail-desc { font-size: 17px; line-height: 1.9; color: var(--warm); margin-bottom: 40px; }
.notes-title { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--charcoal); margin-bottom: 16px; }
.notes-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.note-chip { background: var(--bg-light); border: 1px solid var(--beige); color: var(--charcoal); font-size: 13px; padding: 8px 20px; border-radius: 30px; font-weight: 500; }
.qty-row { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.qty-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--charcoal); }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--stone); border-radius: 4px; overflow: hidden; }
.qty-ctrl button { width: 48px; height: 48px; background: var(--bg-light); border: none; font-size: 20px; cursor: pointer; color: var(--charcoal); transition: background 0.2s; }
.qty-ctrl button:hover { background: var(--beige); }
.qty-ctrl span { width: 48px; text-align: center; font-size: 18px; font-weight: 500; }
.detail-btns { display: flex; gap: 16px; }
.detail-btns .btn { flex: 1; }

/* ===== FEEDBACK SECTION ===== */
.feedback-section { background: var(--charcoal); padding: 120px 24px; position: relative; }
.feedback-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.2; }
.feedback-inner { max-width: 1300px; margin: auto; position: relative; z-index: 1; }
.feedback-inner .section-title { color: var(--white); }
.feedback-inner .section-sub { color: rgba(255,255,255,0.7); }
.reviews-marquee { overflow: hidden; position: relative; width: 100%; padding: 20px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.reviews-track { display: flex; width: max-content; gap: 30px; animation: scrollMarquee 25s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }
.review-card { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 180px; width: 350px; flex-shrink: 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 12px; position: relative; transition: all 0.3s; backdrop-filter: blur(10px); }
.review-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-5px); border-color: rgba(212,175,55,0.3); }
.review-quote { font-family: var(--ff-h); font-size: 80px; line-height: 1; color: var(--gold); opacity: 0.2; position: absolute; top: 20px; right: 30px; }
.review-stars { display: flex; gap: 4px; margin-bottom: 24px; }
.star { color: var(--gold); font-size: 16px; }
.star.empty { color: rgba(255,255,255,0.2); }
.review-text { font-family: var(--ff-b); font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.9); font-weight: 300; position: relative; z-index: 2; margin: 0; padding: 0 20px; }
.review-author { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.author-name { font-size: 15px; font-weight: 600; color: var(--white); }
.author-date { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== CART PAGE ===== */
.cart-wrap { max-width: 900px; margin: 0 auto; padding: 140px 24px 100px; }
.cart-wrap h1 { font-family: var(--ff-h); font-size: 56px; font-weight: 400; margin-bottom: 48px; color: var(--charcoal); text-align: center; }
.cart-items { display: flex; flex-direction: column; gap: 20px; }
.cart-item { background: var(--white); border: 1px solid var(--beige); display: flex; gap: 24px; padding: 24px; border-radius: 8px; align-items: center; }
.cart-item img { width: 100px; height: 120px; object-fit: cover; border-radius: 4px; }
.cart-item-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ci-type { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; }
.ci-name { font-family: var(--ff-h); font-size: 24px; font-weight: 500; color: var(--charcoal); }
.ci-price { font-size: 18px; font-weight: 600; color: var(--gold-d); margin-top: 4px; }
.ci-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ci-remove { background: none; border: none; font-size: 13px; font-weight: 500; color: var(--danger); cursor: pointer; text-decoration: underline; }
.cart-summary { margin-top: 40px; background: var(--white); border: 1px solid var(--beige); padding: 40px; border-radius: 8px; display: flex; flex-direction: column; gap: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 16px; color: var(--charcoal); }
.summary-total { font-family: var(--ff-h); font-size: 32px; font-weight: 600; padding-top: 24px; border-top: 1px solid var(--stone); color: var(--gold-d); }
.cart-empty { text-align: center; padding: 100px 24px; background: var(--white); border-radius: 12px; }
.cart-empty svg { margin: 0 auto 24px; opacity: 0.2; color: var(--charcoal); }
.cart-empty h2 { font-family: var(--ff-h); font-size: 36px; margin-bottom: 12px; color: var(--charcoal); }
.cart-empty p { color: var(--warm); margin-bottom: 32px; font-size: 16px; }

/* ===== ADMIN DASHBOARD ===== */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 120px 24px 100px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.admin-header h1 { font-family: var(--ff-h); font-size: 48px; color: var(--charcoal); }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--beige); padding-bottom: 16px; }
.admin-tab { background: none; border: none; font-family: var(--ff-b); font-size: 15px; font-weight: 600; color: var(--warm); padding: 8px 16px; cursor: pointer; transition: all 0.2s; border-radius: 4px; }
.admin-tab.active { background: var(--charcoal); color: var(--white); }
.admin-tab:hover:not(.active) { background: var(--beige); }

.admin-card { background: var(--white); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); padding: 30px; margin-bottom: 30px; }
.admin-card h2 { font-family: var(--ff-b); font-size: 20px; margin-bottom: 24px; color: var(--charcoal); }

.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: right; }
.admin-table th { font-size: 13px; font-weight: 700; color: var(--warm); text-transform: uppercase; padding: 18px 12px; border-bottom: 2px solid var(--beige); text-align: center; }
.admin-table td { padding: 16px 12px; border-bottom: 1px solid var(--beige); font-size: 14px; color: var(--charcoal); vertical-align: middle; text-align: center; }
.admin-table img { width: 45px; height: 55px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-table td strong { font-family: var(--ff-b); font-weight: 700; }
.action-btns { display: flex; gap: 6px; justify-content: center; }
.action-btn { background: var(--bg-light); border: 1px solid var(--stone); cursor: pointer; padding: 8px; border-radius: 6px; transition: all 0.2s; font-size: 14px; }
.action-btn:hover { transform: scale(1.1); }
.action-btn.edit { color: var(--success); border-color: rgba(42,157,143,0.2); }
.action-btn.delete { color: var(--danger); border-color: rgba(230,57,70,0.2); }

/* Form Elements */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.form-control { padding: 12px 16px; border: 1px solid var(--stone); border-radius: 6px; font-family: var(--ff-b); font-size: 15px; transition: border-color 0.2s; background: var(--bg-light); }
.form-control:focus { border-color: var(--gold); outline: none; background: var(--white); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }

.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-new { background: rgba(42,157,143,0.1); color: var(--success); }
.status-process { background: rgba(212,175,55,0.1); color: var(--gold-d); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--white); border-radius: 12px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 40px; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.modal-header h2 { font-size: 24px; color: var(--charcoal); }
.close-modal { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--warm); }

/* ===== FOOTER ===== */
footer { background: var(--charcoal); position: relative; overflow: hidden; padding-top: 80px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.footer-links-grid { display: flex; gap: 80px; justify-content: flex-end; }
.footer-col h4 { color: var(--white); font-family: var(--ff-b); font-size: 15px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 16px; font-size: 15px; transition: all 0.3s var(--ease); cursor: pointer; }
.footer-col a:hover { color: var(--gold); transform: translateX(-5px); }
.social-links { margin-top: 30px; display: flex; gap: 16px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.05); color: var(--white); transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.social-links a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212,175,55,0.3); }
.footer-bottom { text-align: center; padding: 24px; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2); }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 14px; }
@media(max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-links-grid { justify-content: flex-start; gap: 50px; flex-wrap: wrap; }
}

/* Login */
.login-wrap { max-width: 400px; margin: 150px auto; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: var(--sh); text-align: center; }
.login-wrap h1 { font-family: var(--ff-h); margin-bottom: 24px; }

/* ===== UTILS & ANIMATIONS ===== */
.toast{position:fixed;bottom:40px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--charcoal);color:#fff;padding:16px 32px;font-size:15px;font-weight:500;opacity:0;transition:all .3s var(--ease);pointer-events:none;z-index:9999;border-radius:30px;box-shadow:0 10px 30px rgba(0,0,0,0.15);}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

.page-loader{display:flex;align-items:center;justify-content:center;min-height:60vh;}
.spinner{width:40px;height:40px;border:3px solid var(--beige);border-top-color:var(--gold);border-radius:50%;animation:spin .8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}

.fade-in { animation: fadeIn 0.6s var(--ease) forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.fade-up { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CONFIRMED PAGE ===== */
.confirmed-container {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 80px;
}
.success-card {
  background: var(--white); border-radius: 24px; padding: 50px 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04); max-width: 500px; width: 100%;
  text-align: center; position: relative; overflow: hidden;
}
.success-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #25D366, #128C7E);
}
.success-icon-wrap {
  width: 80px; height: 80px; background: rgba(37,211,102,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 30px; color: #25D366; animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
@keyframes scaleIn { 
  0% { transform: scale(0); opacity: 0; } 
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.success-title { font-family: var(--ff-h); color: var(--charcoal); font-size: 32px; margin-bottom: 12px; }
.success-sub { color: var(--stone); font-size: 15px; margin-bottom: 30px; line-height: 1.6; }
.order-box {
  background: var(--bg-light); border: 1px dashed var(--stone); border-radius: 12px;
  padding: 20px; margin-bottom: 24px;
}
.order-label { display: block; color: var(--warm); font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.order-number { display: block; font-family: var(--ff-b); font-size: 24px; color: var(--charcoal); letter-spacing: 2px; }
.success-note { font-size: 14px; color: var(--warm); margin-bottom: 40px; }
.success-actions { display: flex; flex-direction: column; gap: 16px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: var(--white); width: 100%; border-radius: 8px; text-decoration: none;
  padding: 18px; font-size: 16px; font-family: var(--ff-b); font-weight: 600; transition: all 0.3s;
}
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37,211,102,0.2); }

/* ===== CHECKOUT ===== */
.co-summary { background: #fdfaf6; padding: 30px; border-radius: 12px; border: 1px solid var(--beige); position: sticky; top: 100px; }
.cs-item { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--beige); }

/* Modals */

/* ===== COMPACT PRODUCT GRID ===== */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

@media(max-width: 1200px) {
  .compact-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media(max-width: 768px) {
  .compact-grid { grid-template-columns: 1fr; gap: 12px; }
}

.product-card-compact {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--beige);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  position: relative;
  height: 100%;
}
.product-card-compact:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-5px);
}
.product-card-compact > img {
  width: 130px;
  min-height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.6s var(--ease);
}
.product-card-compact:hover > img { transform: scale(1.05); }

.compact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
  min-width: 0;
}
.compact-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.compact-name {
  font-family: var(--ff-h);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0;
}

/* Size buttons inside card */
.compact-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.compact-size-btn {
  background: var(--bg-light);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--ff-b);
  color: var(--warm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.compact-size-btn strong { font-weight: 700; color: var(--gold-d); font-size: 11px; transition: color 0.2s; }
.compact-size-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.compact-size-btn.active strong { color: var(--gold-l); }
.compact-size-btn:hover:not(.active) {
  border-color: var(--gold);
  color: var(--charcoal);
  background: var(--white);
}

/* Add to cart button */
.compact-add-btn {
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--ff-b);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  width: 100%;
  text-align: center;
}
.compact-add-btn:hover {
  background: var(--gold-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.compact-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}
.compact-old-price-label {
  position: absolute;
  top: 38px;
  left: 12px;
  color: var(--warm);
  font-size: 11px;
  font-weight: 700;
  text-decoration: line-through;
  background: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* ===== SIZE SELECTOR (Product Detail Page) ===== */
.size-btn {
  padding: 12px 20px !important;
  font-size: 14px !important;
  transition: all 0.25s var(--ease) !important;
}
.size-btn.active {
  background: var(--charcoal) !important;
  color: #fff !important;
  border-color: var(--charcoal) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ===== SEARCH DROPDOWN & BAR ===== */
.search-expandable { width: 0; overflow: hidden; transition: width 0.3s ease; display: flex; align-items: center; margin-left: 0; }
.search-expandable input { border: 1px solid rgba(255,255,255,0.2); background: rgba(26,24,22,0.8); border-radius: 20px; padding: 6px 12px; font-family: var(--ff-b); font-size: 13px; color: var(--white); outline: none; width: 180px; transition: width 0.3s ease; }
.search-expandable.active { width: 180px; margin-left: 10px; }

.search-results-dropdown { scrollbar-width: thin; display: none; position: absolute; top: 110%; left: 0; width: 250px; background: #fff; border: 1px solid var(--beige); border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); max-height: 300px; overflow-y: auto; z-index: 1000; }
.search-results-dropdown::-webkit-scrollbar { width: 4px; }
.search-results-dropdown::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 4px; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-bottom: 1px solid var(--beige); cursor: pointer; transition: background 0.2s; text-decoration: none; color: inherit; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-light); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--beige); }
.search-result-info { flex: 1; text-align: right; }
.search-result-name { font-size: 13px; font-weight: 700; color: var(--charcoal); margin: 0 0 4px 0; }
.search-result-type { font-size: 10px; font-weight: 600; color: var(--gold); margin: 0; text-transform: uppercase; }
.search-no-results { padding: 15px; text-align: center; color: var(--warm); font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px) {
  .detail-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; }
  .detail-img-main { max-width: 600px; margin: 0 auto; }
}
@media(max-width: 768px) {
  .nav-links-desktop { display: none; }
  .admin-link-nav { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 50px; }
  .section { padding: 60px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-btns { flex-direction: column; }
  
  /* Make product cards smaller on mobile (1 column but constrained) */
  .product-grid { grid-template-columns: minmax(280px, 400px); justify-content: center; gap: 30px; }
  .card-img-wrap { aspect-ratio: 4/5; border-radius: 8px; }
  .card-overlay { display: none; } /* Hide hover button on mobile */
  .btn-mobile-add { display: block; } /* Show inline button on mobile */
  
  .card-body { padding: 20px 10px; }
  .card-name { font-size: 24px; }
  .card-name-en { font-size: 12px; margin-bottom: 12px; }
  .price-now { font-size: 18px; }
  .price-old { font-size: 14px; }
  .card-type-badge, .card-sale { font-size: 10px; padding: 5px 10px; top: 12px; }
  .card-sale { left: 12px; }
  .card-type-badge { right: 12px; }

  /* Fix Admin Panel & Reviews */
  .admin-header { flex-direction: column; gap: 15px; text-align: center; }
  .admin-tabs { overflow-x: auto; white-space: nowrap; justify-content: flex-start; padding-bottom: 10px; }
  .admin-tab { flex-shrink: 0; }
  .admin-card .form-group { width: 100%; }
  .admin-card .form-control { width: 100%; }

  .review-card { width: 280px; padding: 25px; min-height: 140px; }
  .review-quote { font-size: 60px; top: 10px; right: 15px; }
  .review-text { font-size: 15px; line-height: 1.6; padding: 0 10px; }
  .reviews-track { animation-duration: 15s; }

  /* Fix Admin Modal */
  .modal-content { padding: 20px; max-width: calc(100% - 30px); margin: 15px auto; }
  .modal-header h2 { font-size: 20px; }
  
  /* Fix Cart & Checkout padding */
  .cart-wrap { padding-top: 100px; padding-left: 15px; padding-right: 15px; }
  .co-summary { padding: 20px; }

  /* Compact cards on mobile — single column, smaller image */
  .compact-grid { grid-template-columns: 1fr; gap: 10px; }
  .product-card-compact > img { width: 90px; min-height: 110px; }
  .compact-body { padding: 12px; gap: 8px; }
  .compact-name { font-size: 17px; }
  .compact-size-btn { font-size: 10px; padding: 4px 8px; }
  .compact-add-btn { padding: 8px 10px; font-size: 11px; }

  /* Expandable Search Mobile */
  .search-expandable.active { width: 130px !important; margin-left: 8px; }
  .search-expandable.active input { width: 130px !important; }
  .search-results-dropdown { width: 220px !important; left: -10px !important; top: 110% !important; right: auto !important; }
}

@media(max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-links-grid { justify-content: flex-start; gap: 50px; flex-wrap: wrap; }
  /* Force Checkout grid to stack */
  #co-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}
