/* ==========================================================================
   HUMAIRA MODEST FASHION - CORE STYLING SYSTEM
   Luxury Dark/Black Theme Design System
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
  /* Color Palette - Default Premium Luxury Dark Mode colors */
  --bg-base: #080809;        /* Pure Luxury Black */
  --bg-surface: #0f0f11;     /* Carbon Black */
  --bg-card: #161619;        /* Warm Dark Charcoal */
  --bg-input: #1f1f24;       /* Lighter Charcoal for Forms */
  
  --accent: #d4a68b;         /* Pale Champagne Gold */
  --accent-rgb: 212, 166, 139;
  --accent-hover: #e5c49f;   /* Bright Champagne Gold */
  --accent-muted: #8e7558;   /* Muted Bronze */
  
  --text-primary: #f5f6f8;   /* Warm Soft Off-White */
  --text-muted: #8c909c;     /* Clean Muted Grey */
  --text-dark: #080809;      /* For overlays/contrast text */

  --border-color: rgba(212, 166, 139, 0.12); /* Subtle Gold border */
  --border-hover: rgba(212, 166, 139, 0.35); /* Focus/Hover Gold border */
  
  /* Layout Dimensions */
  --header-height: 90px;
  --header-height-shrunk: 64px;
  --max-width: 1400px;
  
  /* Typography */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Radius & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-premium: 0 15px 40px rgba(0, 0, 0, 0.6);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;

  /* Viewport UI defaults */
  --bg-gradient: radial-gradient(circle at 50% 0%, #161518 0%, var(--bg-base) 70%);
  --bg-header: rgba(8, 8, 9, 0.8);
  --bg-header-shrunk: rgba(8, 8, 9, 0.95);
  
  /* Automatically adapt native browser controls to theme settings */
  color-scheme: light dark;
}

/* Light Theme Overrides - Crisp Luxury Modest look */
html[data-theme="light"] {
  color-scheme: light;
  --bg-base: #fafafb;        /* Soft Luxury Warm White */
  --bg-surface: #f4f4f6;     /* Clean Off-White */
  --bg-card: #ffffff;        /* Pure Crisp White */
  --bg-input: #f0f0f3;       /* Warm White Form Fields */
  
  --accent: #c09177;         /* High-readability gold for light themes */
  --accent-hover: #a67c65;   /* Warm Bronze on hover */
  --accent-muted: #8e7558;   
  
  --text-primary: #121214;   /* Luxury Charcoal Black */
  --text-muted: #62656d;     /* Deep Legible Grey */
  --text-dark: #ffffff;      /* Contrast text on solid gold buttons is white */

  --border-color: rgba(192, 145, 119, 0.16); /* Warm light gold border */
  --border-hover: rgba(192, 145, 119, 0.45);
  
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);

  --bg-gradient: radial-gradient(circle at 50% 0%, #eae9eb 0%, var(--bg-base) 70%);
  --bg-header: rgba(250, 250, 251, 0.8);
  --bg-header-shrunk: rgba(250, 250, 251, 0.95);
}

/* Dark Theme Overrides - Sleek Carbon look */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #080809;
  --bg-surface: #0f0f11;
  --bg-card: #161619;
  --bg-input: #1f1f24;
  
  --accent: #d4a68b;
  --accent-hover: #e5c49f;
  --accent-muted: #8e7558;
  
  --text-primary: #f5f6f8;
  --text-muted: #8c909c;
  --text-dark: #080809;

  --border-color: rgba(212, 166, 139, 0.12);
  --border-hover: rgba(212, 166, 139, 0.35);
  
  --shadow-premium: 0 15px 40px rgba(0, 0, 0, 0.6);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  --bg-gradient: radial-gradient(circle at 50% 0%, #161518 0%, var(--bg-base) 70%);
  --bg-header: rgba(8, 8, 9, 0.8);
  --bg-header-shrunk: rgba(8, 8, 9, 0.95);
}

/* Reset & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  padding-top: var(--header-height); /* Header offset */
  background: var(--bg-gradient);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden !important;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-base);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-muted);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

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

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

/* Premium Buttons & Interactive Elements */
button, .btn {
  font-family: var(--font-header);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

button:hover::before, .btn:hover::before {
  left: 100%;
}

button:hover, .btn:hover {
  background-color: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(212, 166, 139, 0.4);
  transform: translateY(-2px);
}

button.btn-primary, .btn-primary {
  background-color: var(--accent);
  color: var(--text-dark);
}

button.btn-primary:hover, .btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 20px rgba(229, 196, 159, 0.5);
}

button.btn-text {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-transform: none;
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 0.875rem;
}

button.btn-text:hover {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   HEADER SECTION - FIXED & SHRINKING
   ========================================================================== */

header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

/* Native CSS Scroll-driven shrinking header */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  header.main-header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 120px;
  }
}

@keyframes shrinkHeader {
  to {
    top: 0px;
    height: var(--header-height-shrunk);
    background: var(--bg-header-shrunk);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
}

header.main-header.is-shrunk {
  top: 0px;
  height: var(--header-height-shrunk);
  background: var(--bg-header-shrunk);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ==========================================================================
   HEADER CONTAINER - SYMMETRICAL GRID ALIGNMENT
   ========================================================================== */
.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: var(--transition-smooth);
}

/* Brand Logo (Centered) */
.brand-logo {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-logo svg {
  height: 32px;
  width: auto;
  fill: var(--accent);
  transition: var(--transition-smooth);
}

.brand-logo:hover svg {
  transform: rotate(15deg) scale(1.1);
  fill: var(--accent-hover);
}

/* Navigation Links (Left Aligned) */
nav.nav-menu {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav.nav-menu a {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

nav.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

nav.nav-menu a:hover, nav.nav-menu a.active {
  color: var(--text-primary);
}

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

/* Dropdown Menu (Under Nav Links) */
.dropdown-menu-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-menu-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.dropdown-menu-wrapper:hover .dropdown-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-content a {
  padding: 0.65rem 1.25rem !important;
  text-transform: capitalize !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  font-family: var(--font-body) !important;
  letter-spacing: 0.02em !important;
  text-align: left;
  width: 100%;
}

.dropdown-menu-content a:hover {
  color: var(--accent) !important;
  background-color: rgba(212, 166, 139, 0.05);
}

.dropdown-menu-content a::after {
  display: none !important; /* Disable standard nav line */
}

/* Action Icons (Right Aligned) */
.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  padding: 0.25rem;
}

.action-btn:hover {
  color: var(--accent-hover);
  transform: scale(1.15);
}

.action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: var(--text-dark);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.65rem;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.action-btn .badge.has-items {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.action-btn .badge.pulse-once {
  animation: pulseBadge 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile Menu Hamburger */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

/* ==========================================================================
   EXPANDING DYNAMIC SEARCH OVERLAY BAR (NAPOCUT STYLE)
   ========================================================================== */
/* ==========================================================================
   SLEEK INLINE NAVBAR SEARCH
   ========================================================================== */
.inline-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  width: 180px;
  height: 36px;
  transition: var(--transition-smooth);
}

.inline-search-box:focus-within {
  width: 240px;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
}

.inline-search-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  pointer-events: none;
}

.inline-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.inline-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.inline-search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem;
  transition: var(--transition-fast);
}

.inline-search-clear:hover {
  color: var(--accent);
}

/* Floating Autocomplete Suggestions Dropdown */
.search-suggestions-container {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.search-suggestions-container.is-open {
  display: flex;
}

.search-results-header {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-header);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.search-result-item:hover {
  background: rgba(212, 166, 139, 0.08);
}

.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-ellipsis: ellipsis;
}

.search-result-price {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.search-result-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive adjustments for header */
@media (max-width: 1150px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav.nav-menu {
    display: none; /* Hide desktop nav links */
  }
  
  /* Mobile active drawer nav menu */
  nav.nav-menu.is-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 998;
  }
  
  header.main-header.is-shrunk nav.nav-menu.is-active {
    top: var(--header-height-shrunk);
  }

  .mobile-toggle {
    display: flex !important;
  }
  
  .brand-logo {
    grid-column: unset;
    justify-self: unset;
  }
  
  .header-actions {
    grid-column: unset;
    justify-self: unset;
  }

  .inline-search-box {
    width: 130px;
    padding: 0.35rem 0.5rem;
    height: 32px;
  }
  
  .inline-search-box:focus-within {
    width: 170px;
  }

  .search-suggestions-container {
    width: 280px;
  }
}

/* ==========================================================================
   HERO CAROUSEL SLIDER - STATELY SLIDESHOW WITH MICRO-EFFECTS
   ========================================================================== */

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  background-color: var(--bg-base);
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  z-index: 1;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 8, 9, 0.85) 0%, rgba(8, 8, 9, 0.5) 50%, rgba(8, 8, 9, 0.85) 100%);
  z-index: 2;
}

.slide-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform 7s ease-out;
}

.slide-item.active .slide-image-wrapper img {
  transform: scale(1);
}

.slide-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 8%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.slide-text-box {
  max-width: 600px;
}

.slide-text-box .tagline {
  font-family: var(--font-header);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d4a68b; /* Static bright gold for readability on dark banner */
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: inline-block;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s;
}

.slide-text-box h2 {
  font-family: var(--font-header);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #ffffff; /* Static crisp white for dark banner overlays */
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
}

.slide-text-box p {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.7); /* Static translucent white for description readability */
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s;
}

/* Static Button styling overrides for hero dark overlay context */
.slide-text-box .btn-primary {
  background-color: #d4a68b;
  color: #080809;
  border-color: #d4a68b;
}

.slide-text-box .btn-primary:hover {
  background-color: #e5c49f;
  border-color: #e5c49f;
  color: #080809;
  box-shadow: 0 0 20px rgba(229, 196, 159, 0.5);
}

.slide-text-box .slide-cta {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.8s;
}

.slide-item.active .tagline,
.slide-item.active h2,
.slide-item.active p,
.slide-item.active .slide-cta {
  transform: translateY(0);
  opacity: 1;
}

/* Slider Navigation Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 166, 139, 0.2);
  background: rgba(8, 8, 9, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #ffffff; /* Static crisp white for high contrast on dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-arrow:hover {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(212, 166, 139, 0.3);
}

.slider-arrow.prev {
  left: 2rem;
}

.slider-arrow.next {
  right: 2rem;
}

.slider-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--accent);
  width: 48px;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 8%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--accent);
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { top: -15px; }
  100% { top: 100%; }
}

/* ==========================================================================
   DYNAMIC SHOP PORTFOLIO - GRID, CATEGORY FILTERS, CARDS
   ========================================================================== */

.shop-section {
  max-width: var(--max-width);
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-header .sub-title {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.section-header .gold-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 1.25rem auto 0;
}

/* Catalog Filter Navigation */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover, .filter-tab.active {
  color: var(--accent);
  background: rgba(212, 166, 139, 0.08);
  border-color: rgba(212, 166, 139, 0.2);
  box-shadow: none;
  transform: none;
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select-wrapper label {
  font-family: var(--font-header);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4a68b' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: var(--transition-fast);
}

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

/* Product Card Portfolio Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Responsive Grid columns */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .products-grid { grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
}

/* Premium Card Architecture */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

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

.product-image-container {
  width: 100%;
  aspect-ratio: 1; /* Crisp square */
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

/* Ribbon badge overlays */
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent);
  color: var(--text-dark);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

/* Added-to-cart indicator dot/badge */
.card-cart-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent);
  color: var(--text-dark);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: var(--transition-fast);
}

.card-cart-indicator i {
  font-size: 0.6rem;
}
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.card-badge.sold-out {
  background-color: #333;
  color: #888;
}

/* Glassmorphic hover overlay menu */
.card-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 9, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: var(--transition-fast);
  z-index: 6;
}

.product-card:hover .card-overlay-actions {
  opacity: 1;
}

.overlay-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.overlay-icon-btn:hover {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(212,166,139,0.3);
}

/* Card Information Body */
.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product-title {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-title a:hover {
  color: var(--accent);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.product-price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.product-price.has-discount {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-price .original-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.color-swatch-list {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.swatch-circle:hover, .swatch-circle.active {
  border-color: var(--accent);
  transform: scale(1.2);
}

/* ==========================================================================
   SHOPPING CART DRAWER - HIGH-FIDELITY INTERACTIVE SIDEBAR
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.cart-drawer-container {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (max-width: 480px) {
  .cart-drawer-container {
    max-width: 100%;
    right: -100%;
  }
}

.cart-drawer-overlay.is-open .cart-drawer-container {
  right: 0;
}

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

.cart-header h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-drawer-btn:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* Shipping visual progress indicator bar */
.shipping-progress-box {
  padding: 1.25rem 1.5rem;
  background-color: rgba(212, 166, 139, 0.03);
  border-bottom: 1px solid rgba(212, 166, 139, 0.05);
}

.shipping-progress-text {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.shipping-progress-text span {
  color: var(--accent);
  font-weight: 600;
}

.shipping-bar-bg {
  width: 100%;
  height: 4px;
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shipping-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-muted), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Cart item list */
.cart-items-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-message svg {
  font-size: 3rem;
  color: rgba(212, 166, 139, 0.15);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Quantity Tweak Controls */
.qty-controller {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-base);
}

.qty-control-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.qty-control-btn:hover {
  color: var(--accent);
  background-color: rgba(212, 166, 139, 0.05);
}

.qty-display {
  width: 32px;
  text-align: center;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: #ff6b6b;
  transform: scale(1.1);
}

/* Cart footer / Subtotal summaries */
.cart-footer-box {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.cart-summary-line span {
  white-space: nowrap;
}

.cart-summary-line.grand-total {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.cart-summary-line.grand-total .total-price {
  color: var(--accent);
}

.cart-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cart-checkout-actions button {
  width: 100%;
}

/* ==========================================================================
   MODAL DIALOG DIALECT - QUICK VIEW, SIZE GUIDE, CHECKOUT
   ========================================================================== */

/* Modern <dialog> backdrops */
dialog {
  margin: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-premium);
  max-width: 900px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  outline: none;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

/* Explicit max-widths to resolve empty right-side gaps */
#loginDialog, #profileDialog {
  max-width: 480px;
}

#checkoutDialog, #sizeGuideDialog {
  max-width: 750px;
}

#quickViewDialog {
  max-width: 900px;
}

dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

.dialog-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(8, 8, 9, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  transition: var(--transition-fast);
}

.dialog-close-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* Quick View Panel Layout */
.quickview-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 500px;
}

@media (max-width: 768px) {
  .quickview-layout {
    grid-template-columns: 1fr;
  }
}

/* Media Showcase with thumbnail select */
.quickview-media {
  background-color: var(--bg-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  border-right: 1px solid var(--border-color);
  position: relative;
}

.quickview-main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
}

.quickview-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Quick View Text Details info */
.quickview-info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 650px;
}

.quickview-category {
  font-family: var(--font-header);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.quickview-title {
  font-family: var(--font-header);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.quickview-price {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.quickview-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Color & Size Select Layouts */
.selectors-box {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.select-title {
  font-family: var(--font-header);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.size-guide-trigger {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-guide-trigger:hover {
  color: var(--accent-hover);
}

.color-option-list {
  display: flex;
  gap: 0.75rem;
}

.color-badge-select {
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-badge-select:hover, .color-badge-select.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(212, 166, 139, 0.05);
}

.size-option-list {
  display: flex;
  gap: 0.5rem;
}

.size-pill-btn {
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-base);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-pill-btn:hover, .size-pill-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 166, 139, 0.05);
}

.quickview-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.quickview-actions button {
  flex-grow: 1;
}

/* Size Guide dialog layout */
.size-guide-content {
  padding: 2.5rem;
  max-width: 750px;
  width: 100%;
}

.size-guide-content h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Styled Table for Size Chart */
.size-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.size-chart-table th, .size-chart-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.size-chart-table th {
  background-color: var(--bg-card);
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.size-chart-table tbody tr:hover {
  background-color: rgba(255,255,255,0.02);
}

/* Dynamic Interactive Size Guide Calculator tool */
.size-calculator {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.size-calculator h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.calc-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.calc-input-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.calc-input-box label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-input {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.calc-input:focus {
  border-color: var(--accent);
}

.calc-result {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  display: none;
}

.calc-result span {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   CHECKOUT DRAWER MODAL - LUXURIOUS ORDER PROCESSOR
   ========================================================================== */

.checkout-content {
  padding: 3rem 2.5rem;
  max-width: 750px;
  width: 100%;
}

.checkout-content h3 {
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

/* Checkout Form styling */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-family: var(--font-header);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input, .form-group textarea, .form-group select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(212,166,139,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Successful Checkout Visual Sparkle Animation Overlay */
.success-overlay-container {
  display: none;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(212, 166, 139, 0.08) 0%, var(--bg-surface) 60%);
  background-color: var(--bg-surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem 0;
  text-align: center;
  animation: fadeIn 0.4s ease;
  width: 100%;
}

.success-overlay-container.active {
  display: flex;
}

.success-sparkle-halo {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 166, 139, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.success-checkmark-circle {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(212, 166, 139, 0.25);
  animation: scaleUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay-container h4 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Symmetrical Premium Receipt Card */
.success-order-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.02);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.success-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(212, 166, 139, 0.08);
  padding-bottom: 0.6rem;
}

.success-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card-label {
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-value {
  color: var(--text-primary);
  font-weight: 500;
}

.gold-text {
  color: var(--accent) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: rgba(212, 166, 139, 0.1);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(212, 166, 139, 0.2);
}

.success-thank-you {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 440px;
}

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

@keyframes scaleUp {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   TESTIMONIALS SECTION & SOCIAL MARQUEE
   ========================================================================== */

.testimonials-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
}

.testimonials-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

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

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 5rem;
  color: rgba(212, 166, 139, 0.08);
  font-family: serif;
  line-height: 1;
}

.star-rating {
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial-author {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================================
   FOOTER SECTION - SLEEK & PREMIUM IN CHARCOAL
   ========================================================================== */

footer.main-footer {
  background-color: #050506;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 4rem;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}
@media (max-width: 550px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 24px;
  height: 1px;
  background-color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.85rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-about p {
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: var(--text-dark);
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(212,166,139,0.3);
}

/* Newsletter Input */
.newsletter-form {
  display: flex;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.newsletter-input {
  background-color: var(--bg-base);
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  flex-grow: 1;
  outline: none;
}

.newsletter-btn {
  background-color: var(--accent);
  color: var(--text-dark);
  border: none;
  font-size: 0.8rem;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--accent-hover);
  box-shadow: none;
  transform: none;
}

/* Footer Bottom Brand rights */
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

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

/* Symmetrical Login & Profile Dialogs Layout */
.login-content, .profile-content {
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
}

.login-form .form-group input {
  font-size: 0.9rem;
}

/* Symmetrical saved address cards */
.checkout-address-card, .profile-address-card {
  background: rgba(255, 255, 255, 0.01);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.checkout-address-card:hover, .profile-address-card:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.checkout-address-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(212, 166, 139, 0.15);
  background-color: rgba(212, 166, 139, 0.02);
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.address-card-label {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.address-card-default-badge {
  background-color: rgba(212, 166, 139, 0.15);
  color: var(--accent);
  border: 1px solid rgba(212, 166, 139, 0.3);
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.address-card-recipient {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.address-card-street {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* Card action tools inside Profile dialog list */
.address-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(212, 166, 139, 0.08);
  padding-top: 0.6rem;
}

.address-action-btn {
  background: transparent;
  border: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: var(--transition-fast);
}

.btn-set-default {
  color: var(--accent);
}
.btn-set-default:hover {
  color: var(--accent-hover);
}

.btn-delete-address {
  color: #ff6b6b;
  margin-left: auto;
}
.btn-delete-address:hover {
  color: #ff8787;
}

.checkout-address-card-tick {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--accent);
  font-size: 1rem;
  display: none;
}

.checkout-address-card.active .checkout-address-card-tick {
  display: block;
}

/* ==========================================================================
   HUMAIRA CUSTOMER ACCOUNT CENTER & ORDER TRACKING DASHBOARD
   ========================================================================== */

/* Two-column layout grid */
.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
    margin: 1.5rem auto;
  }
}

/* Sidebar Dashboard Menu */
.account-sidebar {
  background: rgba(255, 255, 255, 0.01);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.account-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-muted) 100%);
  color: var(--bg-base);
  font-family: var(--font-header);
  font-size: 1.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 25px rgba(212,166,139,0.2);
}

.account-name {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.account-badge {
  background-color: rgba(212, 166, 139, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(212, 166, 139, 0.2);
  margin-bottom: 2rem;
}

.sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  text-align: left;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-link i {
  width: 20px;
  font-size: 0.95rem;
  margin-right: 0.75rem;
  opacity: 0.7;
}

.sidebar-link:hover {
  color: var(--accent-hover);
  background-color: rgba(212, 166, 139, 0.03);
}

.sidebar-link.active {
  color: var(--accent);
  background-color: rgba(212, 166, 139, 0.06);
  border: 1px solid rgba(212, 166, 139, 0.15);
}

.sidebar-link.btn-logout {
  color: #ff6b6b;
  margin-top: 1.5rem;
  border-top: 1px dashed rgba(255, 107, 107, 0.15);
  padding-top: 1.25rem;
  border-radius: 0;
}

.sidebar-link.btn-logout:hover {
  color: #ff8787;
  background-color: rgba(255, 107, 107, 0.03);
}

/* Right Dashboard Panes */
.account-panes-container {
  min-height: 500px;
}

.account-pane {
  display: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  animation: fadeIn 0.4s ease;
}

.account-pane.active {
  display: block;
}

.pane-title {
  font-family: var(--font-header);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pane-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Symmetrical Grid for Profile Details Tab */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

/* Dynamic Order History Subtabs */
.order-subtabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  list-style: none;
}

.order-tab-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.order-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.order-tab-btn:hover {
  color: var(--text-primary);
}

.order-tab-btn.active {
  color: var(--accent);
}

.order-tab-btn.active::after {
  transform: scaleX(1);
}

/* Order Item Card UI */
.order-item-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.order-item-card:hover {
  border-color: var(--accent-muted);
}

.order-card-header {
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.order-ref-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.order-ref-number {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

.order-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.status-unpaid {
  background-color: rgba(255, 184, 0, 0.08);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.status-ongoing {
  background-color: rgba(212, 166, 139, 0.08);
  color: var(--accent);
  border: 1px solid rgba(212, 166, 139, 0.2);
}

.status-finished {
  background-color: rgba(46, 204, 113, 0.08);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Order card content rows */
.order-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.order-item-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.order-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

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

.order-item-title {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

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

.order-item-price-qty {
  text-align: right;
}

.order-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Order Footer summaries and actions */
.order-card-footer {
  border-top: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.005);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.order-summary-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.order-address-summary {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.order-total-price-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.order-total-price-group span {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.order-card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Timeline component */
.logistics-timeline-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
  width: 100%;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(212, 166, 139, 0.15);
  margin-left: 0.5rem;
}

.timeline-node {
  position: relative;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  border: 2px solid var(--bg-card);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-node.active::before {
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.timeline-node-time {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
}

.timeline-node-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Countdown Alert Styles */
.unpaid-countdown-bar {
  background-color: rgba(255, 184, 0, 0.05);
  border: 1px dashed rgba(255, 184, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.unpaid-countdown-bar i {
  color: #ffb800;
  font-size: 0.9rem;
}

.unpaid-countdown-bar strong {
  color: #ffb800;
  font-family: var(--font-header);
}

.va-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  color: var(--accent-hover);
}

/* Buy again & Review dialog adjustments */
.rating-stars-input {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  margin: 1rem 0;
}

.rating-stars-input i:hover,
.rating-stars-input i.active {
  color: var(--accent);
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


