/*
 * =========================================
 * APOSTLE TAKIM MINISTRIES - DESIGN SYSTEM
 * Holy, Peaceful, Premium, Trustworthy
 * =========================================
 */

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary Colors */
  --color-primary: #1a237e;
  --color-primary-light: #303f9f;
  --color-primary-dark: #0d1642;
  
  /* Secondary / Gold Accent */
  --color-gold: #c9a227;
  --color-gold-light: #f5d96a;
  --color-gold-dark: #9a7b1a;
  
  /* Sacred Purple */
  --color-purple: #4a148c;
  --color-purple-light: #7c43bd;
  
  /* Backgrounds */
  --color-bg-white: #ffffff;
  --color-bg-ivory: #fdfaf5;
  --color-bg-cream: #f8f5ef;
  
  /* Text */
  --color-text-primary: #2d2d2d;
  --color-text-muted: #6b6b6b;
  --color-text-light: #9e9e9e;
  
  /* Feedback */
  --color-success: #2e7d32;
  --color-error: #c62828;
  --color-warning: #f9a825;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(74, 20, 140, 0.8) 100%);
  --gradient-gold: linear-gradient(90deg, #c9a227 0%, #f5d96a 50%, #c9a227 100%);
  --gradient-primary: linear-gradient(135deg, #1a237e, #303f9f);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 35, 126, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 35, 126, 0.1);
  --shadow-lg: 0 8px 32px rgba(26, 35, 126, 0.12);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.3);
  
  /* Typography */
  --font-scripture: 'Playfair Display', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== BASE RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 100%;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-scripture);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold); }
.text-purple { color: var(--color-purple); }
.text-primary { color: var(--color-primary); }

/* Scripture Typography */
.scripture-text {
  font-family: var(--font-scripture);
  font-style: italic;
  color: var(--color-purple);
}

.scripture-reference {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.875rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 35, 126, 0.35);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--color-bg-ivory);
  transform: translateY(-2px);
}

/* ========== CARDS ========== */
.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

/* Product Card */
.product-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 4;
  overflow: hidden;
  background: var(--color-bg-cream);
}

.product-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: var(--space-lg);
}

.product-card__title {
  font-family: var(--font-scripture);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-dark);
}

.product-card__old-price {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: var(--space-sm);
}

/* ========== SCRIPTURE BLOCK ========== */
.scripture-block {
  font-family: var(--font-scripture);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-purple);
  background: linear-gradient(to right, var(--color-bg-ivory), var(--color-bg-white));
  border-left: 4px solid var(--color-gold);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.scripture-block .reference {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
}

/* ========== HEADER / NAVBAR ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  padding-top: 1.5rem; /* lowered menu position global */
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.site-header.scrolled .header-inner {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
  transition: padding var(--transition-normal);
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: var(--space-xl);
}

.header-nav__link {
  font-family: var(--font-accent); /* Cormorant Garamond */
  font-size: 1.1rem; /* Slightly larger for the serif font */
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.header-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-normal);
}

.header-nav__link:hover {
  color: var(--color-gold);
}

.header-nav__link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-cart {
  position: relative;
  color: var(--color-text-primary);
  text-decoration: none;
}

.header-cart__count {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--color-gold);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Action Buttons */
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background: var(--color-bg-ivory);
  color: var(--color-primary);
}

/* User Dropdown */
.header-user-dropdown {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: background var(--transition-fast);
}

.user-dropdown-item:hover {
  background: var(--color-bg-ivory);
  color: var(--color-primary);
}

.user-dropdown-divider {
  margin: var(--space-sm) 0;
  border: none;
  border-top: 1px solid var(--color-bg-cream);
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-modal.show {
  opacity: 1;
  visibility: visible;
}

.search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 126, 0.8);
  backdrop-filter: blur(5px);
}

.search-modal__content {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
}

.search-modal.show .search-modal__content {
  transform: translateY(0);
}

.search-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-modal__close:hover {
  color: var(--color-primary);
}

.search-modal__title {
  font-family: var(--font-scripture);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.search-modal__form {
  display: flex;
  gap: var(--space-sm);
}

.search-modal__input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-bg-cream);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-modal__input:focus {
  border-color: var(--color-gold);
}

.search-modal__btn {
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.search-modal__btn:hover {
  transform: scale(1.05);
}

.search-modal__hint {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-sidebar.show {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cart-sidebar__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.cart-sidebar.show .cart-sidebar__content {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-bg-cream);
}

.cart-sidebar__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-scripture);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0;
}

.cart-sidebar__close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-sidebar__close:hover {
  color: var(--color-error);
}

.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

/* ========== MINICART STYLING (Inside Sidebar) ========== */
.cart-sidebar .offCanvas__minicart {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-sidebar .minicart__header {
  display: none; /* Hide duplicate header since sidebar has its own */
}

.cart-sidebar .minicart__product {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) 0;
}

.cart-sidebar .minicart__product--items {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--color-bg-ivory);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-bg-cream);
}

.cart-sidebar .minicart__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-cream);
}

.cart-sidebar .minicart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-sidebar .minicart__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-sidebar .minicart__subtitle {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs) 0;
  line-height: 1.3;
}

.cart-sidebar .minicart__subtitle a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-sidebar .minicart__price {
  margin-bottom: var(--space-sm);
}

.cart-sidebar .minicart__current--price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold-dark);
}

.cart-sidebar .minicart__old--price {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: var(--space-xs);
}

.cart-sidebar .minicart__text--footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cart-sidebar .quantity__box {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-bg-cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-white);
}

.cart-sidebar .quantity__box form {
  display: flex;
  align-items: center;
}

.cart-sidebar .quantity__value {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cart-sidebar .quantity__value:hover {
  background: var(--color-bg-cream);
}

.cart-sidebar .quantity__number {
  width: 36px;
  height: 28px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-bg-cream);
  border-right: 1px solid var(--color-bg-cream);
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
}

.cart-sidebar .minicart__product--remove {
  font-size: 0.8125rem;
  color: var(--color-error);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: opacity var(--transition-fast);
}

.cart-sidebar .minicart__product--remove:hover {
  opacity: 0.7;
}

/* Minicart Amount Section */
.cart-sidebar .minicart__amount {
  padding: var(--space-lg);
  background: var(--color-bg-ivory);
  border-top: 1px solid var(--color-bg-cream);
}

.cart-sidebar .minicart__amount_list {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.cart-sidebar .minicart__amount_list:last-child {
  margin-bottom: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-bg-cream);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Minicart Buttons */
.cart-sidebar .minicart__button {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--color-bg-cream);
}

.cart-sidebar .minicart__button--link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.cart-sidebar .minicart__button--link:first-child {
  background: var(--color-bg-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cart-sidebar .minicart__button--link:first-child:hover {
  background: var(--color-primary);
  color: #fff;
}

.cart-sidebar .minicart__button--link:last-child {
  background: var(--gradient-gold);
  color: var(--color-primary);
  border: none;
}

.cart-sidebar .minicart__button--link:last-child:hover {
  filter: brightness(1.05);
}

/* Empty Cart Message */
.cart-sidebar .minicart__product p.text-center {
  padding: var(--space-3xl) var(--space-xl);
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
  color: #fff;
}

.hero-title {
  font-family: var(--font-scripture);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: #fff;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.hero-scripture {
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.125rem;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--color-gold);
  margin-bottom: var(--space-xl);
  display: inline-block;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--space-3xl) var(--space-xl);
}

.section-ivory {
  background: var(--color-bg-ivory);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-scripture);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: var(--space-md) auto 0;
  border-radius: var(--radius-full);
}

/* ========== AUDIO PLAYER ========== */
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-bg-ivory);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.audio-player__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.audio-player__btn:hover {
  transform: scale(1.1);
}

.audio-player__progress {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.audio-player__bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.audio-player__time {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  min-width: 80px;
  text-align: right;
}

/* ========== TESTIMONIAL ========== */
.testimonial-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.testimonial-card__quote {
  font-family: var(--font-scripture);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-card__role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto var(--space-2xl);
}

.footer-title {
  font-family: var(--font-scripture);
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Scroll Reveal (JS controlled) */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-xl);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .header-nav {
    display: none;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .section {
    padding: var(--space-2xl) var(--space-md);
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Global Padding for Fixed Header */
body {
  padding-top: 80px; /* Adjust based on header height */
}

/* Page Specific Overrides */
body.home-page {
  padding-top: 0;
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 66, 0.8); /* Darker overlay */
  backdrop-filter: blur(4px);
}

.mobile-menu__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(135deg, #0d1642 0%, #1a237e 100%); /* Premium Navy Gradient */
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  color: #fff;
  padding: 0 10px; /* Slight horizontal buffer for the whole container */
}

.mobile-menu.show .mobile-menu__content {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-lg); /* More vertical air */
  margin-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1); /* Make logo white if needed, or ensure logo is visible on dark */
}

.mobile-menu__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu__close:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  transform: rotate(90deg);
}

.mobile-menu__nav {
  padding: 0 var(--space-lg) var(--space-2xl); /* More side and bottom padding */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm); /* Tighter gap but better alignment */
  overflow-y: auto;
  align-items: flex-start; /* Ensure left alignment */
}

.mobile-nav__link {
  font-family: var(--font-scripture); /* Playfair Display */
  font-size: 1.0rem; /* Larger, more premium */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 12px 0; /* More vertical space between items */
  border-bottom: none;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  width: 100%; /* Full width for easier tapping */
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--color-gold);
  padding-left: 10px;
}

.mobile-nav__link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 991px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Optimize Header */
  .site-header .header-inner {
    padding: var(--space-md);
  }

  .header-logo img {
    height: 36px; /* Slightly smaller logo */
  }

  .header-actions {
    gap: var(--space-sm);
  }

  .header-action-btn {
    width: 40px;
    height: 40px;
  }

  /* Optimize Cart Sidebar for Mobile */
  .cart-sidebar__content {
    max-width: 85vw; /* Use viewport width instead of fixed pixel width */
  }

  .cart-sidebar__header {
    padding: var(--space-md);
  }

  .cart-sidebar__title {
    font-size: 1.1rem;
  }

  .cart-sidebar__body {
    padding: var(--space-md);
  }
}

/* User Dropdown Fix */
.header-user-dropdown {
  position: relative;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
  border: 1px solid var(--color-bg-cream);
  margin-top: var(--space-sm);
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.user-dropdown-item:hover {
  background: var(--color-bg-ivory);
  color: var(--color-primary);
}

.user-dropdown-divider {
  margin: var(--space-xs) 0;
  border-top: 1px solid var(--color-bg-cream);
}

/* ========== MOBILE RESPONSIVE - PRODUCT CARDS ========== */
@media (max-width: 768px) {
  .product-card__body {
    padding: 0.75rem;
  }
  
  .product-card__title {
    font-size: 13px;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }
  
  .product-card__price {
    font-size: 1rem;
  }
  
  .product-card {
    border-radius: 12px;
  }
  
  .product-card__image {
    aspect-ratio: 1/1;
  }
  
  /* Reduce gap between cards */
  .products-grid,
  .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
}

@media (max-width: 576px) {
  .product-card__body {
    padding: 0.625rem;
  }
  
  .product-card__title {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-card__price {
    font-size: 0.9375rem;
  }
  
  /* Tighter grid on small mobile */
  .products-grid,
  .row.g-4 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  
  /* Add to cart button */
  .product-card .btn-primary,
  .product-card .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  /* Global padding reduction on mobile */
  :root {
    --space-lg: var(--space-sm);
  }
  
  /* Common elements with reduced padding */
  .container,
  .container-fluid,
  section,
  .section-padding {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Force 2 columns for products on mobile - ONLY in product areas */
  .shop__product--wrapper .row > [class*="col-"],
  .products-grid .row > [class*="col-"],
  .product__section--inner .row > [class*="col-"],
  .tab_pane .row > [class*="col-"],
  .row:has(.product__card) > [class*="col-"],
  .row.mb--n30 > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  /* Reset footer columns to full width on mobile */
  .main-footer .row > [class*="col-"],
  .site-features .row > [class*="col-"],
  .bottom-footer .row > [class*="col-"],
  footer .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Collapsible Footer Sections */
  .main-footer .footer-heading {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-bg-cream);
    font-size: 1rem;
  }
  
  .main-footer .footer-heading::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: transform 0.3s;
  }
  
  .main-footer .footer-heading.active::after {
    content: '−';
  }
  
  .main-footer .list-unstyled,
  .main-footer .footer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
  }
  
  .main-footer .footer-heading.active + .list-unstyled,
  .main-footer .footer-heading.active ~ .footer-content,
  .main-footer .list-unstyled.show {
    max-height: 300px;
    padding: 0.75rem 0;
  }
  
  /* Keep brand column always visible */
  .main-footer .col-lg-4.mb-5 .footer-heading {
    cursor: default;
  }
  
  .main-footer .col-lg-4.mb-5 .footer-heading::after {
    display: none;
  }
}

/* Ensure SweetAlert appears above everything, specifically the cart sidebar (z-index: 2000) */
div:where(.swal2-container) {
  z-index: 9999 !important;
}
