/* ============================================================
   AZAM WEAR — Ultra-Premium Luxury Fashion Styling
   Aesthetic: Light Theme with Cream & Warm Ivory Elegance
   Color Palette:
     - Ivory / Cream Canvas: #FBF9F5
     - Warm Oat / Bisque:   #F3EEE8
     - Soft Sand:           #EAE3D8
     - Pristine Card:       #FFFFFF
     - Warm Border:         #E5DDD1
     - Deep Obsidian:       #181614
     - Rich Body Charcoal:  #332F2B
     - Warm Muted Taupe:    #736B63
     - Champagne Camel Gold: #B89354
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --azam-bg: #FBF9F5;
  --azam-cream: #F3EEE8;
  --azam-cream-dark: #EAE3D8;
  --azam-card: #FFFFFF;
  --azam-border: #E5DDD1;
  --azam-border-hover: #CDBFA8;
  --azam-gold: #B89354;
  --azam-gold-light: #D4AF6A;
  --azam-gold-dark: #8E6D34;
  --azam-text-heading: #181614;
  --azam-text-body: #332F2B;
  --azam-text-muted: #736B63;
  --azam-shadow-soft: 0 4px 20px rgba(138, 120, 95, 0.08);
  --azam-shadow-hover: 0 12px 35px rgba(138, 120, 95, 0.16);
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset & Base Typography */
body {
  font-family: var(--font-body);
  background-color: var(--azam-bg);
  color: var(--azam-text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  color: var(--azam-text-heading);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Luxury Color Utilities */
.text-gold { color: var(--azam-gold) !important; }
.bg-gold { background-color: var(--azam-gold) !important; }
.border-gold { border-color: var(--azam-gold) !important; }

.bg-cream { background-color: var(--azam-cream) !important; }
.bg-cream-canvas { background-color: var(--azam-bg) !important; }
.border-cream { border-color: var(--azam-border) !important; }

/* Buttons */
.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: #181614;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #181614;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(24, 22, 20, 0.12);
}

.btn-luxury:hover {
  background-color: var(--azam-gold);
  border-color: var(--azam-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 147, 84, 0.28);
}

.btn-luxury-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: var(--azam-gold);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--azam-gold);
  border-radius: 2px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(184, 147, 84, 0.2);
}

.btn-luxury-gold:hover {
  background-color: var(--azam-gold-dark);
  border-color: var(--azam-gold-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 147, 84, 0.35);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: transparent;
  color: var(--azam-text-heading);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #181614;
  border-radius: 2px;
  transition: all 0.35s ease;
}

.btn-luxury-outline:hover {
  border-color: var(--azam-gold);
  color: var(--azam-gold);
  background: rgba(184, 147, 84, 0.06);
  transform: translateY(-2px);
}

/* Glassmorphism Navigation */
.header-glass {
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--azam-border);
}

/* ============================================================
   RUNNING SMOOTH PROMOTIONAL MARQUEE BANNER
   ============================================================ */
.promo-marquee-outer,
.promo-marquee-wrapper {
  overflow: hidden !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 50 !important;
  border-bottom: 1px solid rgba(184, 147, 84, 0.25) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  user-select: none !important;
  cursor: pointer !important;
  height: 38px !important;
  line-height: 38px !important;
  width: 100% !important;
}

.promo-marquee-outer:hover .promo-marquee-slider,
.promo-marquee-wrapper:hover .promo-marquee-track,
.promo-marquee-wrapper:hover .promo-marquee-slider {
  animation-play-state: paused !important;
}

.promo-marquee-slider,
.promo-marquee-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  height: 100% !important;
  align-items: center !important;
  will-change: transform !important;
  animation: promoMarqueeSlide 24s linear infinite !important;
}

.promo-marquee-item-row,
.promo-marquee-track {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  height: 100% !important;
}

.speed-normal {
  animation-duration: 24s !important;
}

.speed-slow {
  animation-duration: 36s !important;
}

.speed-fast {
  animation-duration: 15s !important;
}

.promo-marquee-pill,
.promo-marquee-item {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 0 2rem !important;
  white-space: nowrap !important;
  transition: opacity 0.2s ease;
}

.promo-marquee-pill a,
.promo-marquee-item a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  color: inherit !important;
  text-decoration: none !important;
}

.promo-marquee-pill a:hover,
.promo-marquee-item:hover {
  color: #B89354 !important;
  opacity: 0.9;
}

.promo-marquee-star,
.promo-marquee-bullet {
  color: #B89354 !important;
  font-size: 0.65rem !important;
  margin-left: 1rem !important;
  opacity: 0.9 !important;
}

@keyframes promoMarqueeSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes promo-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Announcement Bar Fallback */
.announcement-bar {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  z-index: 50;
}

/* Product Cards */
.product-card {
  background-color: var(--azam-card);
  border: 1px solid var(--azam-border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 10px rgba(138, 120, 95, 0.04);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--azam-border-hover);
  box-shadow: var(--azam-shadow-hover);
}

.product-card .image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--azam-cream);
}

.product-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Floating Quick Actions on Card */
.card-quick-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

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

/* Badges */
.badge-luxe {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

.badge-sale { background: #8C2D2D; color: #FFFFFF; }
.badge-new { background: #181614; color: #F5EFE6; }
.badge-bestseller { background: #FFFFFF; color: #181614; border: 1px solid var(--azam-border); }

/* Wishlist Button */
.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--azam-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #181614;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-wishlist:hover, .btn-wishlist.active {
  background: var(--azam-gold);
  color: #FFFFFF;
  border-color: var(--azam-gold);
  transform: scale(1.1);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 20, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-left: 1px solid var(--azam-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

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

/* Category Grid Card */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--azam-border);
  aspect-ratio: 3 / 4;
  background: var(--azam-cream);
  box-shadow: 0 4px 20px rgba(138, 120, 95, 0.08);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,22,20,0.05) 0%, rgba(24,22,20,0.78) 85%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

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

.azam-toast {
  background: #FFFFFF;
  border-left: 4px solid var(--azam-gold);
  border: 1px solid var(--azam-border);
  border-left-width: 4px;
  padding: 12px 18px;
  border-radius: 4px;
  color: var(--azam-text-heading);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--azam-bg); }
::-webkit-scrollbar-thumb { background: #DCD5C9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--azam-gold); }

/* ============================================================
   MOBILE-FIRST RESPONSIVE PERFECTION SYSTEM (320px - 2560px)
   ============================================================ */

/* Enforce strict horizontal overflow containment */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Safe Area Insets for Modern Edge-to-Edge Displays (iPhone X - 16, Androids) */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Prevent auto-zoom on iOS when tapping input fields */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Minimum Touch Targets (44px x 44px minimum touch target area) */
button,
a.btn-luxury,
a.btn-luxury-gold,
a.btn-luxury-outline,
.btn-wishlist,
.nav-touch-target {
  min-height: 44px;
}

/* Mobile 2-Column Product Grid Adjustments */
@media (max-width: 640px) {
  .product-card .image-wrapper {
    aspect-ratio: 4 / 5;
  }
  
  .product-card .card-quick-actions {
    display: none !important; /* Hide hover-only quick actions on mobile */
  }

  .product-card {
    border-radius: 4px;
  }

  .badge-luxe {
    font-size: 0.55rem;
    padding: 0.2rem 0.45rem;
    top: 8px;
    left: 8px;
  }

  .btn-wishlist {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
    font-size: 0.8rem;
    min-height: 32px;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }

  .azam-toast {
    width: 100%;
    font-size: 0.78rem;
    padding: 10px 14px;
  }
}

/* Sticky Bottom Add to Cart Bar on Mobile */
.mobile-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--azam-border);
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-sticky-atc.visible {
  transform: translateY(0);
}

#floatingWhatsAppBtn {
  transition: bottom 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.2s ease;
}

@media (max-width: 1024px) {
  #floatingWhatsAppBtn.lifted {
    bottom: calc(5.5rem + var(--safe-bottom)) !important;
  }
}

/* Mobile Filter Drawer */
.mobile-filter-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  background: #FFFFFF;
  z-index: 1000;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.mobile-filter-drawer.active {
  transform: translateX(0);
}

.mobile-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 20, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Mobile Product Gallery Swipeable Track */
.product-gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-gallery-scroll::-webkit-scrollbar {
  display: none;
}
.product-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Mobile Expandable Accordions */
.mobile-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--azam-border);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--azam-text-heading);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-btn i {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
  color: var(--azam-gold);
}

.mobile-accordion-btn.open i {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.mobile-accordion-content.open {
  max-height: 1200px;
  transition: max-height 0.45s ease-in;
}

/* Light Palette Overrides for Cart Drawer Items */
.cart-drawer-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--azam-border);
  align-items: center;
  background: #FFFFFF;
}

.cart-drawer-item img {
  width: 4.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--azam-cream);
  border: 1px solid var(--azam-border);
}

/* Admin & Content Responsive Table Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.table-responsive > table {
  min-width: 520px;
  width: 100%;
  border-collapse: collapse;
}

.table-bordered {
  border: 1px solid var(--azam-border);
}

.table-bordered th, 
.table-bordered td {
  border: 1px solid var(--azam-border);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .table-bordered th, 
  .table-bordered td {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
  }
}


