/*
  CulturoFit Styles - Modular CSS Architecture
  
  TABLE OF CONTENTS:
  1. CSS Variables & Design System
  2. Base Styles & Typography
  3. Layout & Utilities
  4. Header & Navigation
  5. Hero Section & Sliders
  6. Product Grids & Cards
  7. Brand Components
  8. Footer Styles
  9. Forms & Buttons
  10. Mobile & Responsive
  11. Animations & Effects
  12. Theme Customization Hooks
  
  CUSTOMIZATION GUIDE:
  - Modify CSS variables in section 1 for global changes
  - Each section is clearly marked for easy editing
  - Add custom styles in assets/custom.css (auto-loaded if exists)
  - Use theme customizer for color and typography changes
*/

/* ===== 1. CSS VARIABLES & DESIGN SYSTEM ===== */

:root {
  --background: #FCFAFD;
  --foreground: #2C0040;
  --card: #FFFFFF;
  --primary: #580099;
  --primary-foreground: #FDFBFE;
  --secondary: #E8D6F5;
  --accent: #6E44FF;
  --accent-foreground: #FDFBFE;
  --border: #D9C3E9;
  --muted-foreground: #705A80;

  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(44, 0, 64, 0.06);
  --shadow-md: 0 6px 16px rgba(44, 0, 64, 0.12);
  --shadow-lg: 0 14px 32px rgba(44, 0, 64, 0.18);
}

/* ===== 2. BASE STYLES & TYPOGRAPHY ===== */

/* Accessibility helpers */
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { position: static; width: auto; height: auto; padding: .5rem 1rem; background: var(--secondary); border-radius: var(--radius); }

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  overflow-x: hidden; /* prevent sideways scroll on mobile */
}

/* Lock scroll when mobile drawer is open */
body.no-scroll { overflow: hidden; touch-action: none; overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'PT Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Typography Hierarchy - Easily Customizable */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  margin: 0 0 0.5rem 0;
}

h1 { 
  font-size: clamp(2rem, 4vw, 3.25rem); 
  line-height: 1.1; 
}

h2 { 
  font-size: clamp(1.5rem, 3vw, 2.25rem); 
}

h3 { 
  font-size: clamp(1.125rem, 2.2vw, 1.5rem); 
}

p { 
  margin: 0 0 0.75rem; 
  color: var(--muted-foreground); 
}

/* ===== 3. LAYOUT & UTILITIES ===== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}
.section.muted { background: #F6F1FA; }

.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-header .link { color: var(--accent); text-decoration: none; }
.section-header .link:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #4C0085; }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--primary-foreground); }

.link { color: var(--accent); text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; }

.badge { background: var(--accent); color: var(--accent-foreground); border-radius: 999px; padding: 0 0.35rem; font-size: 0.7rem; line-height: 1.3; box-shadow: var(--shadow-sm); }
.badge.inline { margin-left: 0.25rem; }

.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-sm); 
  overflow: hidden; 
}

/* ===== 4. HEADER & NAVIGATION ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 253, 0.84); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--foreground); text-decoration: none; font-weight: 800; letter-spacing: 0.5px; }
.logo .logo-icon { color: var(--primary); display: flex; align-items: center; }
.logo .logo-text { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.35rem; 
  display: flex;
  align-items: baseline;
  line-height: 1;
}
.logo .logo-cul { 
  font-weight: 900; 
  color: var(--foreground);
  letter-spacing: -0.5px;
}
.logo .logo-turo { 
  font-weight: 400; 
  color: var(--foreground);
  letter-spacing: 1px;
}

.main-nav { justify-self: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.main-nav a { color: var(--foreground); text-decoration: none; font-weight: 700; }

.has-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: 0; font: inherit; color: inherit; cursor: pointer; font-weight: 700; transition: color 0.2s ease; }
.dropdown-trigger:hover { color: var(--primary); }
.dropdown-trigger svg { transition: transform 0.3s ease; }
.has-dropdown:hover .dropdown-trigger svg, .has-dropdown:focus-within .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown { 
  position: absolute; 
  top: calc(100% + 0.75rem); 
  left: 50%; 
  transform: translateX(-50%);
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-lg); 
  padding: 0.75rem; 
  display: none; 
  min-width: 280px;
  z-index: 100;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.has-dropdown:hover .dropdown { display: grid; gap: 0.25rem; }

.dropdown li { list-style: none; }

.dropdown a { 
  display: flex; 
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem; 
  border-radius: 0.4rem; 
  color: var(--foreground); 
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.dropdown a:hover::before {
  transform: scaleY(1);
}

.dropdown a:hover { 
  background: var(--secondary); 
  color: var(--primary);
  padding-left: 1.25rem;
}

.dropdown a::after {
  content: '→';
  margin-left: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.dropdown a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Brand Icons in Dropdown */
.dropdown .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.actions { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: end; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--foreground); width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-with-badge { position: relative; display: inline-grid; place-items: center; }
.icon-with-badge .badge { position: absolute; top: -6px; right: -6px; }

.hamburger { display: none; }

/* Overlay and drawer */
.overlay { position: fixed; inset: 0; background: rgba(44, 0, 64, 0.35); opacity: 0; pointer-events: none; transition: 0.25s ease; }
.overlay.active { opacity: 1; pointer-events: auto; }

.mobile-drawer { position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); background: var(--card); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .3s ease; z-index: 60; display: flex; flex-direction: column; }
.mobile-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.drawer-nav { display: flex; flex-direction: column; padding: 0.5rem 1rem 1rem; gap: 0.25rem; }
.drawer-nav a { color: inherit; text-decoration: none; padding: 0.5rem 0.25rem; border-radius: 0.35rem; }
.drawer-nav a:hover { background: var(--secondary); }
.drawer-sub { display: grid; padding-left: 0.5rem; }

/* ===== 5. HERO SECTION & SLIDERS ===== */
.hero { position: relative; }
.hero-carousel { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-slide { position: relative; min-height: min(70vh, 720px); display: none; align-items: center; background: #000; color: #fff; }
.hero-slide.active { display: grid; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; filter: saturate(105%); transform: scale(1.02); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 0, 26, 0.55) 0%, rgba(17, 0, 26, 0.25) 60%, rgba(17,0,26,0.55) 100%); }
.hero-content { position: relative; color: #fff; padding: 3.5rem 0; }
.hero-content p { color: #ECE4F4; font-size: 1.1rem; max-width: 56ch; }

.hero-controls { position: absolute; inset: auto 0 1rem 0; display: flex; justify-content: space-between; gap: 1rem; padding: 0 1rem; pointer-events: none; }
.circle-btn { pointer-events: auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(17,0,26,.35); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }

.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0.75rem; display: flex; gap: 0.4rem; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.hero-dots button.active { background: #fff; }

/* ===== 6. PRODUCT GRIDS & CARDS ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Cards */
.product-card { display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.product-media { position: relative; aspect-ratio: 4 / 5; background: #eee; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-badge { position: absolute; top: 8px; left: 8px; }
.wish-btn { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.8); display: grid; place-items: center; cursor: pointer; color: var(--foreground); }
.wish-btn.active { background: var(--accent); color: var(--accent-foreground); border-color: transparent; }
.product-body { padding: 0.75rem; display: grid; gap: 0.25rem; }
.product-title { font-weight: 700; color: var(--foreground); }
.product-brand { color: var(--muted-foreground); font-size: 0.9rem; }
.product-price { font-weight: 800; }
.product-actions { display: flex; gap: 0.5rem; padding: 0.75rem; }

.why-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.25rem; align-content: start; box-shadow: var(--shadow-sm); }
.why-icon { color: var(--primary); }

/* Enhanced Features Section */
.section-features {
  padding: 5rem 0;
  background: linear-gradient(135deg, #F6F1FA 0%, #FCFAFD 100%);
  position: relative;
  overflow: hidden;
}

.section-features::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 0, 153, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.features-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.features-header p {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  display: inline-flex;
  width: fit-content;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, #F0E4F8 100%);
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin: 0;
}

.feature-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-top: 0.5rem;
}

.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.testimonial-card .stars { color: #E5B700; font-size: 1rem; letter-spacing: 1px; }
.testimonial-card .author { font-weight: 700; color: var(--foreground); margin-top: 0.25rem; }

/* Brand carousel with slider */
.brand-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Responsive refinements */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .header-inner { grid-template-columns: auto 1fr auto; height: 56px; }
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }

  /* Hero adjustments */
  .hero-slide { min-height: 45vh; }
  .hero-content { padding: 2rem 0; }

  /* Product grid and cards */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-media { aspect-ratio: 3 / 4; }
  .product-actions { flex-direction: column; gap: 0.5rem; }
  .product-actions .btn { width: 100%; }

  /* Brand carousel better scrolling on mobile */
  .brand-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; display: flex; gap: 0.5rem; }
  .brand-slider-wrapper { padding: 0.5rem 0; }
  .brand-nav-buttons { display: none; }

  /* Drawer adjustments */
  .mobile-drawer { width: min(92vw, 360px); }

  .container { padding: 0 0.75rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-slide { min-height: 40vh; }
  .logo .logo-text { font-size: 1.05rem; }
  .actions { gap: 0.25rem; }
  .product-body { padding: 0.5rem; }
  .product-title { font-size: 1rem; }
  .product-price { font-size: 1rem; }
  .dropdown { min-width: 220px; left: 10%; transform: none; }
}

/* Small enhancement: make main nav wrap gracefully on mid screens */
@media (min-width: 769px) and (max-width: 1100px) {
  .main-nav ul { gap: 0.75rem; }
}

/* Mega-menu improvements */
.has-dropdown .dropdown {
  left: 50%;
  transform: translateX(-50%);
  min-width: 520px;
  display: none; /* shown on hover by existing rules */
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
}
.has-dropdown .dropdown .brand-icon { width: 40px; height: 40px; }
.has-dropdown .dropdown a { padding: 0.5rem; }

/* Product gallery (single product) */
.pd-gallery { display: grid; grid-template-columns: 1fr 360px; gap: 1rem; align-items: start; }
.pd-main img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.pd-thumbs { display: grid; gap: 0.5rem; grid-auto-rows: 64px; }
.pd-thumbs .thumb { display: block; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; padding: 0; background: #fff; }
.pd-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1024px) {
  .pd-gallery { grid-template-columns: 1fr 260px; }
}
@media (max-width: 768px) {
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { grid-auto-flow: column; grid-auto-columns: 80px; overflow-x: auto; display: flex; gap: 0.5rem; }
}

/* Slight spacing and typography tweaks */
.product-title { font-size: 1.05rem; line-height: 1.2; }
.product-price { color: var(--primary); font-size: 1rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* Lightbox styles */
.cf-lightbox { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.8); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.cf-lightbox.active { opacity: 1; pointer-events: auto; }
.cf-lightbox-inner { position: relative; max-width: 95%; max-height: 92%; }
.cf-lightbox-inner img { width: auto; max-width: 100%; max-height: 80vh; display: block; border-radius: 8px; }
.cf-lightbox-inner #cf-lightbox-caption { color: #fff; text-align: center; margin-top: 0.5rem; }
.cf-lightbox .icon-btn { position: absolute; top: -40px; right: 0; background: rgba(255,255,255,0.08); color: #fff; border: none; }

/* Header scrolled state */
.site-header.scrolled { box-shadow: var(--shadow-md); background: rgba(252,250,253,0.96); }

/* Product card hover polish */
.product-card { transition: transform 0.22s ease, box-shadow 0.22s ease; position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media img { transition: transform 0.4s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }

/* Quick view button overlay */
.product-card .quick-view-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,0.92); border-radius: 999px; width: 40px; height: 40px; border: 1px solid var(--border); cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease; }
.product-card:hover .quick-view-btn { opacity: 1; transform: translateY(0); }

/* Quick view modal */
.cf-quickview { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.6); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.cf-quickview.active { opacity: 1; pointer-events: auto; }
.cf-quickview .inner { background: #fff; padding: 1rem; border-radius: 8px; max-width: 900px; width: 95%; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-quickview img { width: 100%; height: auto; border-radius: 6px; }
.cf-quickview .meta h3 { margin-top: 0; }
.cf-quickview .meta .price { color: var(--primary); font-weight: 800; margin-bottom: 0.5rem; }
.cf-quickview .actions { margin-top: 1rem; display:flex; gap:0.5rem; }

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

.brand-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--card);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-nav-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
}

.brand-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

.brand-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.brand-carousel { 
  display: grid; 
  grid-auto-flow: column; 
  grid-auto-columns: minmax(150px, 1fr); 
  gap: 1rem; 
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0;
  transition: transform 0.5s ease;
}

.brand-card { 
  scroll-snap-align: start; 
  display: grid; 
  justify-items: center; 
  gap: 0.75rem; 
  padding: 1.5rem 1rem; 
  border: 2px solid var(--border); 
  border-radius: var(--radius); 
  background: var(--card); 
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.brand-avatar { 
  width: 90px; 
  height: 90px; 
  border-radius: 50%; 
  overflow: hidden; 
  border: 3px solid var(--secondary);
  transition: all 0.3s ease;
}

.brand-card:hover .brand-avatar {
  border-color: var(--primary);
  transform: scale(1.1);
}

.brand-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.brand-card .brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  text-align: center;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #FBF7FE; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; }
.footer-logo { margin-bottom: 0.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-links a { color: var(--foreground); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.socials { display: inline-flex; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 0.75rem 0; font-size: 0.9rem; color: var(--muted-foreground); }

/* CEO Card in Footer */
.ceo-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.ceo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.ceo-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--secondary);
  transition: all 0.3s ease;
}

.ceo-card:hover .ceo-image {
  border-color: var(--primary);
}

.ceo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ceo-info {
  display: grid;
  gap: 0.25rem;
}

.ceo-info h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.ceo-title {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.ceo-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

/* Responsive */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .container { max-width: 1200px; }
}

/* Tablet Landscape (900px - 1023px) */
@media (max-width: 1023px) and (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet Portrait (768px - 899px) */
@media (max-width: 899px) and (min-width: 768px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .hamburger { display: inline-grid; }
  
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .hero-slide { min-height: 60vh; }
  .hero-content h1 { font-size: 2rem; }
}

/* Mobile Landscape (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .hamburger { display: inline-grid; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .hero-slide { min-height: 50vh; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 1rem; }
  
  .actions { gap: 0.35rem; }
  .icon-btn { width: 32px; height: 32px; }
}

/* Mobile Portrait (320px - 599px) */
@media (max-width: 599px) {
  .header-inner { 
    grid-template-columns: auto 1fr auto; 
    height: 56px;
    padding: 0 0.75rem;
  }
  
  .logo .logo-text { font-size: 1.1rem; }
  .logo .logo-icon svg { width: 24px; height: 24px; }
  
  .main-nav { display: none; }
  .hamburger { display: inline-grid; }
  
  .actions { gap: 0.25rem; }
  .icon-btn { 
    width: 32px; 
    height: 32px;
    border: none;
  }
  .icon-btn svg { width: 20px; height: 20px; }
  
  .product-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.75rem;
  }
  
  .product-card { font-size: 0.9rem; }
  .product-body { padding: 0.5rem; }
  .product-actions { 
    padding: 0.5rem; 
    flex-direction: column;
  }
  .product-actions .btn { width: 100%; }
  
  .why-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .hero-slide { min-height: 50vh; }
  .hero-content { padding: 2rem 0; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-content .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
  
  .section { padding: 2rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  
  .brand-carousel { gap: 0.5rem; grid-auto-columns: minmax(100px, 1fr); }
  .brand-card { padding: 0.5rem; }
  .brand-avatar { width: 60px; height: 60px; }
  
  .search-box { padding: 1rem; }
  .search-input { font-size: 1rem; padding: 0.6rem 1rem 0.6rem 2.5rem; }
  .search-results { max-height: 300px; }
  .search-result-item { padding: 0.5rem; }
  .search-result-img { width: 50px; height: 62px; }
  
  .mobile-drawer { width: 85vw; }
}

/* Extra Small Mobile (320px - 374px) */
@media (max-width: 374px) {
  .container { padding: 0 0.75rem; }
  
  .product-grid { 
    grid-template-columns: 1fr; 
    gap: 0.75rem;
  }
  
  .hero-content h1 { font-size: 1.35rem; }
  .hero-content p { font-size: 0.9rem; }
  
  .logo .logo-text { font-size: 1rem; }
  
  .footer-grid { gap: 1rem; }
}

/* Dropdown Responsive */
@media (max-width: 899px) {
  .dropdown {
    left: auto;
    right: 0;
    transform: none;
    min-width: 240px;
  }
  
  @keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Search Modal Responsive */
@media (max-width: 599px) {
  .search-modal { padding: 0.5rem; }
  .search-box { 
    padding: 1rem; 
    max-width: 100%;
  }
  .search-input-wrap { margin-bottom: 0.75rem; }
}

/* Cart & Checkout Responsive */
@media (max-width: 899px) {
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
}

/* Toast Responsive */
@media (max-width: 599px) {
  .toast-container { 
    top: 60px; 
    right: 10px; 
    left: 10px;
  }
  .toast { 
    min-width: auto; 
    max-width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* Hero Controls Responsive */
@media (max-width: 599px) {
  .hero-controls { padding: 0 0.5rem; }
  .circle-btn { 
    width: 36px; 
    height: 36px;
    font-size: 0.9rem;
  }
  .hero-dots { bottom: 0.5rem; }
  .hero-dots button { width: 6px; height: 6px; }
}

/* Newsletter Responsive */
@media (max-width: 599px) {
  .newsletter-section { padding: 2rem 0; }
  .newsletter-section h2 { font-size: 1.5rem; }
  .newsletter-form { 
    flex-direction: column; 
    gap: 0.75rem;
  }
  .newsletter-input { padding: 0.65rem 1rem; }
  .newsletter-btn { padding: 0.65rem 1.25rem; }
}

/* Filter Bar Responsive */
@media (max-width: 599px) {
  .filter-bar { 
    flex-direction: column; 
    align-items: stretch;
    padding: 0.75rem;
  }
  .filter-group { flex-direction: column; align-items: stretch; }
  .filter-group select { width: 100%; }
}

/* Advanced Features */

/* Toast Notifications */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); min-width: 300px; display: flex; align-items: center; gap: 0.75rem; animation: slideIn 0.3s ease; }
.toast.success { border-left: 4px solid #15803D; }
.toast.error { border-left: 4px solid #b00020; }
.toast.info { border-left: 4px solid var(--accent); }
.toast-icon { width: 24px; height: 24px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 0.25rem; }
.toast-message { font-size: 0.9rem; color: var(--muted-foreground); }
.toast-close { background: transparent; border: 0; cursor: pointer; padding: 0; color: var(--muted-foreground); }

@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

/* Loading Spinner */
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--secondary); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader { position: fixed; inset: 0; background: var(--background); display: grid; place-items: center; z-index: 9999; }
.page-loader .spinner { width: 50px; height: 50px; border: 4px solid var(--secondary); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* Smooth Animations */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scale-in { animation: scaleIn 0.3s ease; }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Product Card Hover Effects */
.product-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-media img { transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }

/* Button Hover Effects */
.btn { transition: all 0.3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* Search Modal */
.search-modal { position: fixed; inset: 0; background: rgba(44, 0, 64, 0.8); backdrop-filter: blur(4px); z-index: 100; display: none; place-items: center; padding: 1rem; }
.search-modal.active { display: grid; animation: fadeIn 0.3s ease; }
.search-box { background: var(--card); border-radius: var(--radius); padding: 1.5rem; max-width: 600px; width: 100%; box-shadow: var(--shadow-lg); }
.search-input-wrap { position: relative; margin-bottom: 1rem; }
.search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 3rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1.1rem; }
.search-input:focus { outline: none; border-color: var(--primary); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.search-results { max-height: 400px; overflow-y: auto; }
.search-result-item { padding: 0.75rem; border-bottom: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: center; cursor: pointer; text-decoration: none; color: inherit; }
.search-result-item:hover { background: var(--secondary); }
.search-result-img { width: 60px; height: 75px; object-fit: cover; border-radius: 0.35rem; }
.search-result-info { flex: 1; }
.search-result-name { font-weight: 700; margin-bottom: 0.25rem; }
.search-result-brand { font-size: 0.9rem; color: var(--muted-foreground); }
.search-result-price { font-weight: 700; color: var(--primary); }

/* Newsletter Section */
.newsletter-section { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff; padding: 3rem 0; text-align: center; }
.newsletter-section h2 { color: #fff; margin-bottom: 0.5rem; }
.newsletter-section p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
.newsletter-input { flex: 1; padding: 0.75rem 1rem; border: 0; border-radius: var(--radius); }
.newsletter-btn { padding: 0.75rem 1.5rem; background: #fff; color: var(--primary); border: 0; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.newsletter-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Filter & Sort Bar */
.filter-bar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-weight: 700; font-size: 0.9rem; }
.filter-group select { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem; }

/* Quick View Modal */
.quick-view-modal { position: fixed; inset: 0; background: rgba(44, 0, 64, 0.8); backdrop-filter: blur(4px); z-index: 100; display: none; place-items: center; padding: 1rem; overflow-y: auto; }
.quick-view-modal.active { display: grid; animation: fadeIn 0.3s ease; }
.quick-view-content { background: var(--card); border-radius: var(--radius); max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.quick-view-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.9); border: 0; cursor: pointer; display: grid; place-items: center; }

/* Scroll to Top Button */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; border-radius: 999px; background: var(--primary); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-lg); display: none; place-items: center; z-index: 50; transition: all 0.3s ease; }
.scroll-top.visible { display: grid; animation: fadeIn 0.3s ease; }
.scroll-top:hover { transform: translateY(-4px); background: var(--accent); }

/* Badge Animations */
.badge { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s ease-in-out infinite; }
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card { height: 400px; border-radius: var(--radius); }
.skeleton-text { height: 20px; border-radius: 4px; margin-bottom: 0.5rem; }

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 4rem 0;
  margin: 3rem 0;
}

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

.stat-card {
  text-align: center;
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #2C0040 0%, var(--primary) 100%);
  padding: 5rem 0;
  margin: 3rem 0 0 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(110, 68, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(88, 0, 153, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Stats & CTA */
@media (max-width: 899px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-section { padding: 3rem 0; }
  .cta-banner { padding: 4rem 0; }
  
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-features { padding: 4rem 0; }
}

@media (max-width: 599px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.85rem; }
  
  .stats-section { padding: 2rem 0; margin: 2rem 0; }
  .cta-banner { padding: 3rem 0; margin: 2rem 0 0 0; }
  .cta-content h2 { font-size: 1.75rem; }
  .cta-content p { font-size: 1rem; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
}

@media (max-width: 768px) {
  .newsletter-form { flex-direction: column; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .toast { min-width: auto; max-width: calc(100vw - 40px); }
}

/* Enhanced Mega Menu Styles (like nishatlinen.com) */
.mega-menu .dropdown {
  min-width: 800px;
  max-width: 1000px;
  padding: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.mega-dropdown {
  display: none;
}

.mega-menu:hover .mega-dropdown {
  display: block;
}

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

.mega-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mega-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.mega-menu-item:hover::before {
  transform: scaleX(1);
}

.mega-menu-item:hover {
  background: var(--secondary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-icon-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
  text-transform: uppercase;
}

.mega-menu-item:hover .category-icon {
  border-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.category-name {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  color: var(--foreground);
  line-height: 1.3;
}

.category-count {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.mega-menu-all {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
}

.mega-menu-all .category-name {
  color: #fff;
}

.mega-menu-all .category-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  font-size: 1.75rem;
}

.mega-menu-all:hover {
  background: linear-gradient(135deg, #4C0085, #5A38D7);
  transform: translateY(-4px) scale(1.02);
}

/* Enhanced Footer Styles */
.footer-brand {
  grid-column: span 1;
}

.footer-newsletter {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-newsletter h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.newsletter-form-footer {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form-footer input {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
}

.newsletter-form-footer input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form-footer button {
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
}

.footer-links a {
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-grid {
  grid-template-columns: 1.5fr repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .newsletter-form-footer {
    flex-direction: column;
  }
  
  .newsletter-form-footer button {
    width: 100%;
  }
  
  .mega-menu .dropdown {
    min-width: 320px;
    max-width: 90vw;
    left: auto;
    right: 0;
    transform: none;
  }
  
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .mega-menu-item {
    padding: 1rem 0.75rem;
  }
  
  .category-icon {
    width: 48px;
    height: 48px;
    border-width: 2px;
  }
  
  .category-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Circular Brand Cards (Nishat Style) - Enhanced */
.brand-grid-circular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.brand-card-circular {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.brand-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 4px solid var(--secondary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.brand-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 0%, rgba(88, 0, 153, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brand-card-circular:hover .brand-circle {
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.brand-card-circular:hover .brand-circle::after {
  opacity: 1;
}

.brand-card-circular:hover .brand-circle img {
  transform: scale(1.1);
}

.brand-card-circular .brand-name {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.brand-card-circular:hover .brand-name {
  color: var(--primary);
}

@media (max-width: 768px) {
  .brand-grid-circular {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .brand-circle {
    width: 100px;
    height: 100px;
  }
  
  .brand-card-circular .brand-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .brand-grid-circular {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .brand-circle {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }
  
  .brand-card-circular .brand-name {
    font-size: 0.8rem;
  }
}

/* Remove old circular styles */
.brand-card-circular:hover div {
  /* Handled by .brand-circle class now */
}

.brand-card-circular:hover img {
  /* Handled by .brand-circle img class now */
}

.brand-card-circular:hover h3 {
  /* Handled by .brand-name class now */
}

/* Mobile Header Adjustments (Nishat Style) */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 0.5rem;
  }
  
  .logo .logo-text {
    font-size: 1rem;
  }
  
  .logo .logo-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .actions {
    gap: 0.25rem;
  }
  
  .actions .icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
  }
  
  .actions .icon-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0 0.3rem;
  }
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 1 !important;
    text-align: center;
  }
  
  .footer-newsletter {
    max-width: 100%;
  }
  
  .newsletter-form-footer {
    flex-direction: row;
  }
  
  .socials {
    justify-content: center;
  }
}

/* Nishat Style Categories Mega Menu */
.nishat-categories {
  min-width: 900px;
  max-width: 1000px;
  padding: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 10px 40px rgba(44, 0, 64, 0.15);
}

.nishat-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.menu-column h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.menu-column ul li {
  padding: 0;
}

.menu-column ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 0.35rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
}

.menu-column ul li a::before {
  content: '›';
  position: absolute;
  left: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.menu-column ul li a:hover {
  background: var(--secondary);
  color: var(--primary);
  padding-left: 2rem;
}

.menu-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Circular Brand Slider (Nishat Style) */
.brand-slider-wrapper {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
}

#shop-by-brand .section-header h2 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

#shop-by-brand .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(88, 0, 153, 0.3);
}

.brand-slider-container {
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  padding: 2rem 0;
}

.brand-slider-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(232, 214, 245, 0.3) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.brand-slider-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 0;
}

.brand-slide {
  flex: 0 0 auto;
  width: 180px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.brand-slide .brand-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(88, 0, 153, 0.2),
              0 4px 8px rgba(110, 68, 255, 0.1);
  position: relative;
  transform-style: preserve-3d;
}

.brand-slide .brand-circle::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent), #E91E63);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: rotate 8s linear infinite;
}

.brand-slide .brand-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 50%),
              linear-gradient(135deg, rgba(88, 0, 153, 0.1) 0%, rgba(110, 68, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand-slide .brand-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) contrast(1.05);
  position: relative;
  z-index: 1;
}

.brand-slide:hover .brand-circle {
  transform: scale(1.12) translateY(-8px) rotateY(5deg);
  box-shadow: 0 16px 40px rgba(88, 0, 153, 0.4),
              0 8px 16px rgba(110, 68, 255, 0.3),
              0 0 0 8px rgba(232, 214, 245, 0.3);
}

.brand-slide:hover .brand-circle::before {
  opacity: 1;
}

.brand-slide:hover .brand-circle::after {
  opacity: 1;
}

.brand-slide:hover .brand-circle img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.brand-slide .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brand-slide .brand-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.brand-slide:hover .brand-name {
  color: var(--primary);
  transform: translateY(-2px);
}

.brand-slide:hover .brand-name::after {
  transform: translateX(-50%) scaleX(1);
}

/* Slider Navigation Buttons (Premium Nishat Style) */
.brand-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(88, 0, 153, 0.25),
              0 2px 8px rgba(110, 68, 255, 0.15);
  backdrop-filter: blur(8px);
}

.brand-slider-nav::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.brand-slider-nav:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 24px rgba(88, 0, 153, 0.4),
              0 4px 12px rgba(110, 68, 255, 0.3),
              0 0 0 4px rgba(232, 214, 245, 0.3);
}

.brand-slider-nav:hover::before {
  opacity: 1;
}

.brand-slider-nav:hover {
  color: #fff;
}

.brand-slider-nav svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.brand-slider-nav.prev {
  left: -20px;
}

.brand-slider-nav.next {
  right: -20px;
}

.brand-slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.brand-slider-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  transform: translateY(-50%);
}

/* Auto-scroll Animation */
@keyframes brandSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-slider-track.auto-scroll {
  animation: brandSlide 30s linear infinite;
}

.brand-slider-track.auto-scroll:hover {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .brand-slide {
    width: 140px;
  }
  
  .brand-slide .brand-circle {
    width: 120px;
    height: 120px;
    border-width: 4px;
    box-shadow: 0 6px 20px rgba(88, 0, 153, 0.18),
                0 3px 6px rgba(110, 68, 255, 0.1);
  }
  
  .brand-slider-nav {
    width: 42px;
    height: 42px;
  }
  
  .brand-slider-nav.prev {
    left: -15px;
  }
  
  .brand-slider-nav.next {
    right: -15px;
  }
}

@media (max-width: 768px) {
  .brand-slider-wrapper {
    padding: 1.5rem 0;
  }
  
  .brand-slide {
    width: 120px;
  }
  
  .brand-slide .brand-circle {
    width: 100px;
    height: 100px;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(88, 0, 153, 0.2),
                0 2px 4px rgba(110, 68, 255, 0.1);
  }
  
  .brand-slide:hover .brand-circle {
    transform: scale(1.1) translateY(-6px);
  }
  
  .brand-slide .brand-name {
    font-size: 0.9rem;
  }
  
  .brand-slider-track {
    gap: 1.5rem;
  }
  
  .brand-slider-nav {
    width: 38px;
    height: 38px;
  }
  
  .brand-slider-nav.prev {
    left: -10px;
  }
  
  .brand-slider-nav.next {
    right: -10px;
  }
}

@media (max-width: 480px) {
  .brand-slide {
    width: 100px;
  }
  
  .brand-slide .brand-circle {
    width: 90px;
    height: 90px;
    box-shadow: 0 3px 12px rgba(88, 0, 153, 0.2);
  }
  
  .brand-slide:hover .brand-circle {
    transform: scale(1.08) translateY(-4px);
  }
  
  .brand-slider-track {
    gap: 1rem;
  }
  
  .brand-slider-nav {
    width: 36px;
    height: 36px;
  }
  
  .brand-slider-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .nishat-categories {
    min-width: 700px;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nishat-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nishat-categories {
    min-width: 90vw;
    max-width: 90vw;
    padding: 1.5rem;
    left: 5%;
    transform: none;
  }
  
  .nishat-menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .brand-carousel.modern-slider {
    grid-auto-columns: minmax(240px, 1fr);
    gap: 1rem;
  }
  
  .brand-card.modern-card .brand-name {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  .brand-nav-buttons {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-carousel.modern-slider {
    grid-auto-columns: minmax(200px, 1fr);
  }
  
  .menu-column h4 {
    font-size: 1rem;
  }
  
  .menu-column ul li a {
    font-size: 0.875rem;
    padding: 0.4rem 0.5rem;
  }
}
