/* ==========================================================================
   CHAUDHARY PERFUMES - LUXURY DUAL THEME STYLES (LIGHT & DARK DYNAMIC)
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms ease, color 300ms ease;
}

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

/* Announcement Top Bar */
.top-bar {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border-color);
  transition: background 300ms ease, color 300ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar strong {
  color: var(--brand-gold);
  font-weight: 700;
}

/* Header Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-mark {
  background: var(--bg-card);
  color: var(--brand-gold);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-body);
  border: 1.5px solid var(--brand-gold);
  box-shadow: 0 0 12px var(--brand-gold-glow);
}

.logo span {
  color: var(--brand-gold);
  font-weight: 600;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 0;
  position: relative;
  transition: color 300ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
  transition: width 300ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Action Icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-primary);
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
  text-decoration: none;
}

.btn-icon:hover {
  background: var(--bg-secondary);
  color: var(--brand-gold);
  border-color: var(--brand-gold);
  box-shadow: 0 0 12px var(--brand-gold-glow);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-gold);
  color: #0F0F0F;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px 0;
  background: var(--gradient-dark);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Section Headings */
.section-padding {
  padding: 90px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-title span {
  color: var(--brand-gold);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 300ms ease;
}

/* Primary Button */
.btn-primary {
  background: var(--brand-gold);
  color: #0F0F0F;
  border: 1px solid var(--brand-gold);
  box-shadow: 0 4px 15px var(--brand-gold-glow);
}

.btn-primary:hover {
  background: var(--brand-gold-hover);
  border-color: var(--brand-gold-hover);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: var(--brand-gold-active);
  border-color: var(--brand-gold-active);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  border: 2px solid var(--brand-gold);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--brand-gold);
  color: #0F0F0F;
  box-shadow: 0 4px 15px var(--brand-gold-glow);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background: var(--brand-gold-glow);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Form Controls & Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 300ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 10px var(--brand-gold-glow);
}

/* Sliding Cart Drawer & Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 300ms ease;
}

.close-btn:hover {
  background: var(--status-error);
  color: #FFFFFF;
  border-color: var(--status-error);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cart-item-price {
  font-weight: 800;
  color: var(--brand-gold);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  width: fit-content;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.qty-btn {
  cursor: pointer;
  user-select: none;
  color: var(--brand-gold);
  font-size: 0.95rem;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Modals & Search Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

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

/* Live Search Modal */
.search-modal {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 640px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  overflow: hidden;
  padding: 24px;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.search-results {
  margin-top: 16px;
  max-height: 340px;
  overflow-y: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--brand-gold);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 300ms ease forwards;
}

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

/* Ultra Clean Footer */
.footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 80px 0 36px 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-brand .logo {
  color: var(--text-primary);
}

.footer-heading {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-gold);
  margin-top: 6px;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 250ms ease, transform 250ms ease;
  display: inline-block;
}

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

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
