/* ==========================================================================
   ✨ متجر عطورات ترند (TRAND PERFUMES) - Luxury Light & Royal Gold Stylesheet
   ========================================================================== */

:root {
  /* Luxury Light Palette: Ivory, Champagne, Pearl, & Obsidian Typography */
  --bg-darkest: #f4f1ea;
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf7;
  --bg-input: #f8f6f0;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  /* Royal Gold & Warm Accents */
  --gold-primary: #b38719;
  --gold-light: #cfa83b;
  --gold-dark: #8c680f;
  --gold-gradient: linear-gradient(135deg, #dfba45 0%, #b38719 50%, #8c680f 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ebd06a 0%, #c59b27 50%, #9e7611 100%);
  --gold-border: rgba(179, 135, 25, 0.28);
  --gold-border-bright: rgba(179, 135, 25, 0.75);
  --gold-glow: 0 0 20px rgba(179, 135, 25, 0.18);
  
  /* High-Contrast Luxury Typography */
  --text-primary: #18171e;
  --text-secondary: #4a4755;
  --text-muted: #7b788a;
  --text-gold: #b38719;
  
  --accent-red: #d63031;
  --accent-green: #27ae60;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebd5a;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 6px 22px rgba(179, 135, 25, 0.22);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(179, 135, 25, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(179, 135, 25, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f0ece1;
}
::-webkit-scrollbar-thumb {
  background: #c5b48b;
  border-radius: var(--radius-full);
  border: 2px solid #f0ece1;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   LAYOUT & CONTAINER
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-glow {
  text-shadow: 0 0 12px rgba(179, 135, 25, 0.25);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.title-ornament span {
  height: 1.5px;
  width: 50px;
  background: var(--gold-gradient);
}

.title-ornament i {
  color: var(--gold-primary);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179, 135, 25, 0.35);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  background: #fffdf8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--gold-dark);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae771 0%, #1ebd5a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

.btn-danger {
  background: rgba(214, 48, 49, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(214, 48, 49, 0.25);
}

.btn-danger:hover {
  background: var(--accent-red);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-gold {
  background: #fcf6e5;
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
}

.badge-discount {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
}

.badge-category {
  background: #f2efe9;
  color: var(--text-secondary);
  border: 1px solid #e5dfd3;
}

/* --------------------------------------------------------------------------
   NAVBAR (HEADER)
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #eae5d9;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-sm);
  background: #0d0d11;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  border-color: var(--gold-primary);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1.25rem;
  background: #f6f3ec;
  border: 1.5px solid #e5dfd3;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.header-search input:focus {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(179, 135, 25, 0.2);
  outline: none;
}

.header-search i {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid #e8e3d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: #fffdf9;
  transform: translateY(-2px);
}

.action-btn.cart-trigger {
  border-color: var(--gold-border);
  background: #fdfaf3;
  color: var(--gold-dark);
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   BANNERS CAROUSEL
   -------------------------------------------------------------------------- */
.banners-section {
  padding: 1.5rem 0 2.5rem;
}

.banner-slider-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gold-border);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

.banner-slides-container {
  display: flex;
  transition: transform var(--transition-slow);
  width: 100%;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 3rem 4rem;
}

.banner-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(1) contrast(1.05);
  transition: transform 6s ease;
}

.banner-slide:hover .banner-slide-bg {
  transform: scale(1.03);
}

.banner-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 13, 17, 0.65) 0%, rgba(13, 13, 17, 0.25) 45%, transparent 85%);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.banner-tag {
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.banner-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.banner-subtitle {
  font-size: 1.15rem;
  color: #f1f0f7;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  font-weight: 600;
}

.banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 4;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--gold-gradient);
  color: #ffffff;
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #d8d3c5;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 28px;
  background: var(--gold-gradient);
}

/* --------------------------------------------------------------------------
   FEATURES TRUST BAR
   -------------------------------------------------------------------------- */
.features-bar {
  padding: 1rem 0 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  background: #ffffff;
  border: 1px solid #ece7dd;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #fdfaf2;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FILTER & CONTROLS SECTION
   -------------------------------------------------------------------------- */
.catalog-controls {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-pills {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-pill {
  padding: 0.6rem 1.4rem;
  background: #ffffff;
  border: 1px solid #e6e0d4;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: #fefdfa;
}

.category-pill.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: var(--gold-primary);
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.filter-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-count {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.results-count span {
  color: var(--gold-dark);
  font-weight: 800;
}

.sort-select {
  padding: 0.6rem 1.2rem;
  background: #ffffff;
  border: 1px solid #e6e0d4;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sort-select:focus {
  border-color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   PERFUMES GRID & CARDS
   -------------------------------------------------------------------------- */
.perfumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.perfume-card {
  background: #ffffff;
  border: 1px solid #ede8de;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.perfume-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: radial-gradient(circle at center, #fdfbf7 0%, #f4f0e6 100%);
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid #f2ede4;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.perfume-card:hover .card-img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.card-actions-quick {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 2;
}

.perfume-card:hover .card-actions-quick {
  opacity: 1;
  transform: translateY(0);
}

.quick-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.quick-btn:hover {
  background: var(--gold-gradient);
  color: #ffffff;
}

.card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.card-category {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.card-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  color: var(--text-primary);
  cursor: pointer;
}

.card-title:hover {
  color: var(--gold-dark);
}

.card-offer {
  font-size: 0.8rem;
  color: #d35400;
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: #f8f6f0;
  border-radius: var(--radius-sm);
  border: 1px solid #ede8de;
}

.metric-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.metric-track {
  height: 5px;
  background: #e4dfd3;
  border-radius: 3px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f2ede4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-price-block {
  display: flex;
  flex-direction: column;
}

.card-old-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-current-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-dark);
  line-height: 1;
}

.card-current-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-add-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   EMPTY & WELCOMING STATES
   -------------------------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gold-border);
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 3.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   MODAL DIALOG (PERFUME DETAILS)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 23, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: scale(0.92);
  transition: all var(--transition-normal);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #f4f0e6;
  border: 1px solid #e2ddd0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--gold-gradient);
  color: #ffffff;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding: 2.5rem;
}

.modal-image-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-img-wrap {
  width: 100%;
  padding-top: 110%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at center, #fdfbf7 0%, #f4f0e6 100%);
  border: 1px solid #eae5da;
}

.modal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-current-price {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--gold-dark);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Olfactory Pyramid Styling */
.pyramid-section {
  background: #fbf9f4;
  border: 1px solid #ebd9b8;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pyramid-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pyramid-layer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee8db;
}

.pyramid-layer:last-child {
  border-bottom: none;
}

.pyramid-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  min-width: 85px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pyramid-content {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Specs Row */
.specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.spec-item {
  background: #fbf9f5;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ede7db;
  text-align: center;
}

.spec-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
}

/* Modal Actions */
.modal-actions-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 2px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1rem;
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.stepper-btn:hover {
  background: #f7f2e4;
}

.stepper-input {
  width: 44px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   SMART CART DRAWER
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 23, 30, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  border-right: 1.5px solid var(--gold-border);
  z-index: 2510;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee8db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfbf7;
}

.cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-title-wrap h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: #fbf9f5;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #ede7dc;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f4efe4;
  border: 1px solid var(--gold-border);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 800;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.cart-delete-btn {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.cart-delete-btn:hover {
  color: var(--accent-red);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee8db;
  background: #faf7f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-notes-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-notes-wrap label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-notes-wrap textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid #e0d9cb;
  font-size: 0.85rem;
  color: var(--text-primary);
  resize: none;
  height: 60px;
}

.cart-notes-wrap textarea:focus {
  border-color: var(--gold-primary);
  outline: none;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-total-price {
  color: var(--gold-dark);
  font-size: 1.45rem;
}

.whatsapp-checkout-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background: #ffffff;
  border-top: 1px solid #eae5d9;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--text-secondary);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  max-width: 440px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold-dark);
  transform: translateX(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #ede8de;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   LOGIN PAGE STYLES
   -------------------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #f6f3eb;
  background-image: 
    radial-gradient(circle at center, rgba(179, 135, 25, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(179, 135, 25, 0.05) 0%, transparent 40%);
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.login-brand-img {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-border);
  box-shadow: var(--shadow-gold);
  object-fit: cover;
  background: #0d0d11;
  display: block;
  transition: transform var(--transition-fast);
}

.login-brand-img:hover {
  transform: scale(1.05);
  border-color: var(--gold-primary);
}

.login-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input,
.form-control {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1.25rem;
  background: #fbf9f4;
  border: 1.5px solid #e2ddd0;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.input-with-icon input:focus,
.form-control:focus {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(179, 135, 25, 0.2);
  outline: none;
}

.input-with-icon i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 1rem;
}

.login-alert {
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
}

.login-alert.show {
  display: block;
}

.login-alert.danger {
  background: #fdeaea;
  border: 1px solid #fad2d2;
  color: #c0392b;
}

.login-alert.success {
  background: #eafaf1;
  border: 1px solid #d4efdf;
  color: #27ae60;
}

.login-footer-links {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-footer-links a {
  color: var(--gold-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   ADMIN DASHBOARD STYLES
   -------------------------------------------------------------------------- */
.admin-navbar {
  background: #ffffff;
  border-bottom: 1.5px solid var(--gold-border);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.admin-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-badge {
  background: #fdf8eb;
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #ece6da;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #fdfaf2;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-dark);
}

.stat-info h3 {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
}

.stat-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1.5px solid #ece6da;
  margin-bottom: 2rem;
}

.admin-tab {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.admin-tab:hover {
  color: var(--gold-dark);
}

.admin-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-primary);
  background: #fdfaf2;
}

.admin-panel-card {
  background: #ffffff;
  border: 1px solid #ece6da;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f2ede4;
}

.panel-card-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Admin Form Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Image Upload Drag & Drop Area */
.image-upload-dropzone {
  border: 2px dashed var(--gold-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fbf9f4;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.image-upload-dropzone:hover,
.image-upload-dropzone.drag-over {
  border-color: var(--gold-primary);
  background: #f7f2e4;
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.upload-preview-container {
  margin-top: 1rem;
  position: relative;
  display: inline-block;
}

.upload-preview-img {
  max-width: 140px;
  max-height: 140px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-border);
  object-fit: cover;
}

.remove-img-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Admin Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}

.admin-table th {
  background: #faf7f0;
  color: var(--gold-dark);
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--gold-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f2ede4;
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #fdfbf7;
}

.table-perfume-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--gold-border);
}

.table-actions {
  display: flex;
  gap: 6px;
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.action-edit {
  background: #fdf8ec;
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
}

.action-edit:hover {
  background: var(--gold-gradient);
  color: #ffffff;
}

.action-delete {
  background: #fdeaea;
  color: var(--accent-red);
  border: 1px solid #fad2d2;
}

.action-delete:hover {
  background: var(--accent-red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.toast {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease-out forwards;
}

.toast.success {
  border-left: 4px solid var(--accent-green);
}

.toast.error {
  border-left: 4px solid var(--accent-red);
}

.toast.info {
  border-left: 4px solid var(--gold-primary);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  
  .banner-slide {
    padding: 2.5rem 1.5rem;
  }
  
  .banner-title {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .cart-drawer {
    max-width: 100%;
  }
}
