/* ============================================
   HALO BUDS - Design System & Global Styles
   Luxury Handmade Gifting Brand
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&family=Great+Vibes&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Primary Palette - Lavender */
  --lavender-50: #f5f3ff;
  --lavender-100: #ede9fe;
  --lavender-200: #ddd6fe;
  --lavender-300: #c4b5fd;
  --lavender-400: #a78bfa;
  --lavender-500: #8b5cf6;
  --lavender-600: #7c3aed;
  --lavender-700: #6d28d9;
  --lavender-800: #5b21b6;
  --lavender-900: #4c1d95;

  /* Brand Purples */
  --purple-brand: #6B3FA0;
  --purple-deep: #4A2878;
  --purple-mid: #8B5CF6;
  --purple-soft: #C4A8E0;
  --purple-pale: #F0E8FF;

  /* Pink Accents */
  --pink-blush: #FFB7C5;
  --pink-rose: #F472B6;
  --pink-soft: #FDE8F0;
  --pink-petal: #FBBFD3;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FDFBFF;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #E5E5E5;
  --grey-300: #D4D4D4;
  --grey-400: #A3A3A3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #171717;

  /* Semantic */
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --info: #2563EB;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(107,63,160,0.08), 0 1px 2px rgba(107,63,160,0.04);
  --shadow-md: 0 4px 16px rgba(107,63,160,0.12), 0 2px 8px rgba(107,63,160,0.06);
  --shadow-lg: 0 20px 40px rgba(107,63,160,0.15), 0 8px 20px rgba(107,63,160,0.08);
  --shadow-xl: 0 32px 64px rgba(107,63,160,0.2);
  --shadow-glow: 0 0 30px rgba(139,92,246,0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-max: 9999;

  /* Layout */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);
  --header-height: 72px;

  /* Aliases used across storefront pages (kept in sync with admin/css/admin.css
     so admin + storefront share one palette). Several pages referenced these
     before they were ever defined here, which silently broke borders/text
     colors — see project audit notes in README. */
  --text-dark: #1A1A2E;
  --text-medium: #4A4A6A;
  --text-light: #888899;
  --border: #E8E0F5;
  --border-light: #F1EAFB;
  --red: var(--error);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--grey-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.script-text {
  font-family: var(--font-script);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 500;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  color: var(--purple-mid);
  display: block;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 300;
  color: var(--purple-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--grey-500);
  margin-top: var(--space-4);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.7;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-soft));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--purple-soft), transparent);
}

.section-divider-heart {
  color: var(--pink-blush);
  font-size: var(--text-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-brand) 0%, var(--purple-mid) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(107,63,160,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,63,160,0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--purple-brand);
  border: 1.5px solid var(--purple-brand);
}

.btn-outline:hover {
  background: var(--purple-pale);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--purple-brand);
  padding: 0.75rem 1.5rem;
}

.btn-ghost:hover {
  background: var(--purple-pale);
}

.btn-pink {
  background: linear-gradient(135deg, #e91e8c 0%, var(--pink-rose) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(244,114,182,0.35);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244,114,182,0.45);
}

.btn-glass {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-700);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-400);
}

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

.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-1);
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--grey-400);
  margin-top: var(--space-1);
}

.input-group {
  position: relative;
}

.input-group .form-input {
  padding-right: 3rem;
}

.input-group-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,168,224,0.2);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.header-logo-mark {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header-logo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--purple-deep);
  letter-spacing: 0.05em;
}

.header-logo-tagline {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-top: 2px;
}
@media (max-width:768px){

    .header{
        padding:0 12px;
    }

    .header-inner{
        grid-template-columns:auto 1fr auto;
        gap:10px;
    }

    .header-logo-mark{
        width:48px;
        height:48px;
    }

    .header-logo-mark img{
        width:100%;
        height:100%;
        object-fit:contain;
    }

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

.header-nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--grey-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--purple-brand);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.header-nav-link:hover::after,
.header-nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.header-action-btn:hover {
  background: var(--purple-pale);
  color: var(--purple-brand);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--purple-brand);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.wishlist-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: #e53e3e;
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  transition: transform 200ms ease;
}

.header-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  cursor: pointer;
  padding: 4px;
}

.header-mobile-toggle span {
  display: block;
  height: 1.5px;
  background: var(--grey-700);
  transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: none;
}

.mobile-menu.open {
  pointer-events: all;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.open .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--grey-100);
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--grey-100);
}

.mobile-menu-links {
  padding: var(--space-6);
  flex: 1;
}

.mobile-menu-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--grey-800);
  border-bottom: 1px solid var(--grey-100);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu-link:hover {
  color: var(--purple-brand);
}

/* ============================================
   CATEGORY MEGA-MENU (dynamic Main > Sub hierarchy)
   ============================================ */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 420px;
  max-width: 90vw;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(196,168,224,0.15);
  padding: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-col {
  min-width: 150px;
}

.nav-dropdown-heading {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--purple-deep);
  text-decoration: none;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--grey-100);
  white-space: nowrap;
}

.nav-dropdown-heading:hover {
  color: var(--purple-brand);
}

.nav-dropdown-sublinks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-dropdown-sublinks a {
  font-size: var(--text-sm);
  color: var(--grey-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-dropdown-sublinks a:hover {
  color: var(--purple-brand);
}

@media (max-width: 768px) {
  .nav-dropdown-panel {
    display: none;
  }
}

/* Mobile accordion: Main Category expands into Sub Categories */
.mobile-accordion-item {
  border-bottom: 1px solid var(--grey-100);
}

.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  background: none;
  border: none;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--grey-800);
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-trigger:hover {
  color: var(--purple-brand);
}

.mobile-accordion-arrow {
  transition: transform var(--transition-fast);
  color: var(--purple-soft);
}

.mobile-accordion-trigger.open .mobile-accordion-arrow {
  transform: rotate(180deg);
}

.mobile-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  display: flex;
  flex-direction: column;
  padding-left: var(--space-4);
}

.mobile-accordion-panel.open {
  max-height: 600px;
}

.mobile-sublink {
  font-size: var(--text-base);
  padding: var(--space-2) 0 !important;
  border-bottom: none !important;
  color: var(--grey-600) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: var(--cream);
}

.hero-slider {
  position: relative;
  height: 100%;
  min-height: calc(100vh - var(--header-height));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: all;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6000ms ease;
  transform: scale(1.05);
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(74,40,120,0.75) 0%,
    rgba(74,40,120,0.4) 40%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-16) 0;
}

.hero-text {
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--font-script);
  font-size: var(--text-3xl);
  color: var(--pink-blush);
  display: block;
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 600ms ease 200ms;
}

.hero-slide.active .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(30px);
  transition: all 700ms ease 350ms;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: all 600ms ease 500ms;
}

.hero-slide.active .hero-description {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 600ms ease 650ms;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-nav {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.hero-dot.active {
  background: var(--white);
  width: 24px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-4);
  z-index: 10;
  pointer-events: none;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  pointer-events: all;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* ============================================
   PRODUCT CARDS (Pinterest Style)
   ============================================ */
.products-masonry {
  columns: 4;
  column-gap: var(--space-4);
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:24px;
    width:100%;
    align-items:stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  break-inside: avoid;
  margin-bottom: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  width:100%;
    min-width:0;
}

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

.product-card-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--purple-pale);
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
}

.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.06);
}

.product-card-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
}

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

.product-card-action {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  color: var(--grey-600);
  box-shadow: var(--shadow-sm);
}

.product-card-action:hover,
.product-card-action.active {
  background: var(--purple-brand);
  color: var(--white);
}

/* ============================================
   WISHLIST — heart icon states & animations
   Applies to every heart button on the site (product cards, product page,
   search results): outline when not wishlisted, filled red when wishlisted.
   ============================================ */
.wishlist-btn svg {
  transition: transform 350ms cubic-bezier(.34,1.56,.64,1), fill 220ms ease, stroke 220ms ease;
}

.wishlist-btn:hover svg {
  transform: scale(1.12);
}

.wishlist-btn.active svg {
  fill: #e53e3e;
  stroke: #e53e3e;
}

/* Wishlisted state on the circular product-card icon: soft blush background
   instead of the generic purple hover/active, so a filled heart reads as
   "saved" rather than just "hovered". */
.product-card-action.wishlist-btn.active,
.product-card-action.wishlist-btn.active:hover {
  background: #fff0f0;
  color: #e53e3e;
}

/* Wishlisted state on the larger outline icon button (product detail page). */
.btn-outline.wishlist-btn.active {
  background: #fff0f0;
  border-color: #e53e3e;
  color: #e53e3e;
}

@keyframes wishlistPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  60%  { transform: scale(.88); }
  100% { transform: scale(1); }
}

.wishlist-btn.wishlist-pop svg {
  animation: wishlistPop 500ms cubic-bezier(.34,1.56,.64,1);
}

.wishlist-btn.is-loading {
  pointer-events: none;
  opacity: .55;
}

.product-card-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-new {
  background: linear-gradient(135deg, var(--pink-rose), #c026d3);
  color: white;
}

.badge-bestseller {
  background: linear-gradient(135deg, var(--purple-brand), var(--purple-mid));
  color: white;
}

.badge-custom {
  background: rgba(255,255,255,0.9);
  color: var(--purple-brand);
  border: 1px solid var(--purple-soft);
}

.badge-sale {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.product-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: var(--text-xs);
  color: var(--purple-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--grey-800);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.stars {
  display: flex;
  gap: 1px;
}

.star {
  font-size: 12px;
  color: var(--grey-300);
}

.star.filled {
  color: #f59e0b;
}

.rating-count {
  font-size: var(--text-xs);
  color: var(--grey-400);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.price-current {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--purple-deep);
}

.price-compare {
  font-size: var(--text-base);
  color: var(--grey-400);
  text-decoration: line-through;
}

.price-discount {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success);
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-card-footer {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
}

.product-card-footer .btn {
  flex: 1;
  padding: 0.625rem 1rem;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-pale), var(--pink-soft));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-soft);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card-icon{
    width:80px;
    height:80px;
    margin:0 auto 15px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.category-card-icon img{
    width:80px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
}

.category-card:hover .category-card-icon {
  transform: scale(1.2);
}

.category-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--purple-deep);
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: var(--space-1);
}

.category-card-count {
  font-size: var(--text-xs);
  color: var(--grey-400);
  position: relative;
  z-index: 1;
}

/* ============================================
   CUSTOM ORDER SECTION
   ============================================ */
.custom-section {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-brand) 50%, #9333ea 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
}

.custom-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.custom-section .section-eyebrow {
  color: var(--pink-blush);
}

.custom-section .section-title {
  color: var(--white);
}

.custom-section .section-subtitle {
  color: rgba(255,255,255,0.75);
}

.custom-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.custom-feature {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.custom-feature:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.custom-feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.custom-feature-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.custom-feature-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,168,224,0.15);
  transition: all var(--transition-base);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-brand), var(--pink-rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 500;
  color: var(--grey-800);
  font-size: var(--text-base);
}

.reviewer-date {
  font-size: var(--text-xs);
  color: var(--grey-400);
  margin-top: 2px;
}

.review-verified {
  font-size: var(--text-xs);
  color: var(--success);
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.review-stars {
  margin-bottom: var(--space-3);
}

.review-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--grey-800);
  margin-bottom: var(--space-2);
}

.review-content {
  font-size: var(--text-sm);
  color: var(--grey-500);
  line-height: 1.7;
}

.review-product {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--grey-100);
  font-size: var(--text-xs);
  color: var(--purple-mid);
}

/* ============================================
   INSTAGRAM GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,63,160,0.7), rgba(244,114,182,0.5));
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--grey-100);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  cursor: pointer;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--purple-brand);
}

.faq-question-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--grey-800);
  line-height: 1.3;
}

.faq-question:hover .faq-question-text {
  color: var(--purple-brand);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--purple-pale);
  color: var(--purple-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  font-size: var(--text-xl);
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--purple-brand);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.faq-answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-base);
  color: var(--grey-500);
  line-height: 1.8;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: linear-gradient(135deg, var(--purple-pale) 0%, var(--pink-soft) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '🌸';
  position: absolute;
  font-size: 120px;
  opacity: 0.08;
  top: -20px;
  left: -20px;
}

.newsletter::after {
  content: '✨';
  position: absolute;
  font-size: 100px;
  opacity: 0.06;
  bottom: -10px;
  right: -10px;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: var(--space-8) auto 0;
}

.newsletter-form .form-input {
  flex: 1;
  background: var(--white);
  border-color: transparent;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.75);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.footer-brand-tagline {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  color: var(--pink-blush);
  margin-bottom: var(--space-4);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-base);
  text-decoration: none;
  font-size: var(--text-base);
}

.footer-social-link:hover {
  background: var(--purple-brand);
  border-color: var(--purple-brand);
  color: white;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.footer-link:hover {
  color: var(--pink-blush);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-3);
}

.footer-contact-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.payment-icon {
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.hb-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-800);
  max-width: 360px;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  border-left: 4px solid var(--purple-brand);
}

.hb-toast--success { border-left-color: var(--success); }
.hb-toast--error { border-left-color: var(--error); }
.hb-toast--info { border-left-color: var(--info); }

.hb-toast--show {
  transform: translateY(0);
  opacity: 1;
}

.hb-toast__icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.hb-toast--success .hb-toast__icon { background: #d1fae5; color: var(--success); }
.hb-toast--error .hb-toast__icon { background: #fee2e2; color: var(--error); }
.hb-toast--info .hb-toast__icon { background: var(--purple-pale); color: var(--purple-brand); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 480px;
  width: 100%;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--purple-deep);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grey-400);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--grey-100);
  color: var(--grey-700);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--purple-pale) 0%, var(--pink-soft) 100%);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(139,92,246,0.1);
  top: -100px;
  right: -100px;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(244,114,182,0.08);
  bottom: -80px;
  left: -80px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--grey-400);
  margin-bottom: var(--space-4);
}

.page-breadcrumb a {
  color: var(--purple-mid);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 300;
  color: var(--purple-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ============================================
   SECTION SPACING
   ============================================ */
.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--grey-100) 25%, var(--grey-50) 50%, var(--grey-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--purple-pale);
  border-top-color: var(--purple-brand);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.stagger-children.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.stagger-children.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 500ms; }
.stagger-children.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 600ms; }
.stagger-children.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 700ms; }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  display: block;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--grey-700);
  margin-bottom: var(--space-3);
}

.empty-state-desc {
  font-size: var(--text-base);
  color: var(--grey-400);
  max-width: 360px;
  margin: 0 auto var(--space-6);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

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

  .products-masonry {
    columns: 3;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-nav {
    display: none;
  }

  .header-mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-logo-text {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .products-masonry {
    columns: 2;
  }

  .hero-arrows {
    display: none;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .custom-features {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section, .section-lg {
    padding: var(--space-12) 0;
  }

  .newsletter {
    padding: var(--space-10);
  }
}

@media (max-width: 480px) {
  .products-masonry {
    columns: 1;
  }

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

  .custom-features {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-display { font-family: var(--font-display); }
.font-script { font-family: var(--font-script); }

.color-purple { color: var(--purple-brand); }
.color-deep { color: var(--purple-deep); }
.color-muted { color: var(--grey-400); }

.mt-auto { margin-top: auto; }
.hidden { display: none !important; }

.divider {
  border: none;
  border-top: 1px solid var(--grey-100);
  margin: var(--space-6) 0;
}

/* Floral decorative element */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) auto;
  color: var(--purple-soft);
  font-size: var(--text-sm);
}

.floral-divider::before,
.floral-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-soft));
}

.floral-divider::after {
  background: linear-gradient(90deg, var(--purple-soft), transparent);
}

/* ===========================
   PRODUCT VARIANTS
=========================== */

.variant-box{
    margin:28px 0;
}

.variant-title{
    display:block;
    font-size:15px;
    font-weight:600;
    color:#333;
    margin-bottom:14px;
}

.variant-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.variant-btn{

    min-width:72px;
    height:44px;

    border:2px solid #e5e5e5;
    background:#fff;

    border-radius:12px;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.variant-btn:hover{

    border-color:#7B4DFF;
    color:#7B4DFF;

}

.variant-btn.active{

    background:linear-gradient(135deg,#7B4DFF,#9B5CFF);
    color:#fff;
    border-color:#7B4DFF;

    box-shadow:0 8px 20px rgba(123,77,255,.25);

}

.cart-variant{
    display:inline-block;
    margin-top:6px;
    padding:4px 10px;
    border-radius:20px;
    background:#f6f0ff;
    color:#7c3aed;
    font-size:12px;
    font-weight:600;
}

.policy-divider{
    margin:50px 0 30px;
}

.policy-help{
    background:#f8f8f8;
    border-radius:12px;
    padding:30px;
    text-align:center;
}

.policy-help h2{
    margin-bottom:15px;
}

.policy-help p{
    margin-bottom:10px;
    line-height:1.7;
}

.policy-help a{
    color:#d63384;
    font-weight:600;
    text-decoration:none;
}

.policy-help a:hover{
    text-decoration:underline;
}

/* ==========================
   POLICY PAGES
========================== */

.page-banner{
    background:#faf7ff;
    padding:70px 0;
    text-align:center;
    border-bottom:1px solid #eee;
}

.page-banner h1{
    font-size:42px;
    color:#4b2e83;
    margin-bottom:15px;
    font-weight:700;
}

.page-banner p{
    color:#666;
    font-size:17px;
    max-width:700px;
    margin:auto;
}

.policy-section{
    padding:70px 0;
    background:#f8f8fc;
}

.policy-card{
    max-width:950px;
    margin:auto;
    background:#fff;
    padding:45px;
    border-radius:18px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.policy-card h2{
    color:#4b2e83;
    margin:35px 0 15px;
    font-size:28px;
}

.policy-card p{
    color:#555;
    line-height:1.9;
    margin-bottom:15px;
}

.policy-card ul,
.policy-card ol{
    padding-left:25px;
    margin-bottom:20px;
}

.policy-card li{
    margin-bottom:10px;
    line-height:1.8;
    color:#555;
}

.policy-card hr{
    border:none;
    height:1px;
    background:#ececec;
    margin:35px 0;
}

/* Table */

.policy-card table{
    width:100%;
    border-collapse:collapse;
    margin:25px 0;
}

.policy-card table th{
    background:#4b2e83;
    color:#fff;
    padding:15px;
    text-align:left;
}

.policy-card table td{
    padding:15px;
    border:1px solid #eee;
}

.policy-card table tr:nth-child(even){
    background:#fafafa;
}

/* Need Help */

.policy-help{
    margin-top:50px;
    background:#f6f2ff;
    border-left:5px solid #7b3ff2;
    border-radius:15px;
    padding:30px;
}

.policy-help h2{
    margin-top:0;
}

.policy-help a{
    color:#7b3ff2;
    font-weight:600;
    text-decoration:none;
}

.policy-help a:hover{
    text-decoration:underline;
}

/* Responsive */

@media(max-width:768px){

.page-banner{
padding:45px 20px;
}

.page-banner h1{
font-size:32px;
}

.policy-section{
padding:40px 15px;
}

.policy-card{
padding:25px;
}

.policy-card h2{
font-size:22px;
}

.policy-card table{
display:block;
overflow-x:auto;
}

}

.policy-note{
    margin-top:20px;
    background:#fff8e8;
    border-left:4px solid #ffb300;
    padding:18px;
    border-radius:8px;
    color:#555;
    line-height:1.8;
}

.checkout-policy{
    margin-top:20px;
    margin-bottom:15px;
    font-size:13px;
    line-height:1.6;
    color:#666;
}

.checkout-policy label{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.checkout-policy input{
    margin-top:3px;
}

.checkout-policy a{
    color:#6B3FA0;
    text-decoration:none;
    font-weight:500;
}

.checkout-policy a:hover{
    text-decoration:underline;
}


/* ============================================
   SHOP PAGE
   Single source of truth for the shop layout, sidebar filters and
   toolbar. Previously this was scattered across an inline <style> in
   shop.html AND several conflicting/duplicate media queries here
   (1200px / 992px / 768px, none of which agreed with each other or with
   the sidebar's own 900px drawer breakpoint). Consolidated into one
   responsive system aligned with the rest of the site (1024 / 640 / 400).
   ============================================ */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.shop-count {
  font-size: var(--text-sm);
  color: var(--grey-500);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.shop-sort select {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  cursor: pointer;
  background: var(--white);
  color: var(--grey-700);
  outline: none;
}

.shop-sort select:focus {
  border-color: var(--purple-soft);
}

.active-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  background: var(--purple-pale);
  color: var(--purple-brand);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.active-filter-tag:hover {
  background: var(--purple-brand);
  color: white;
}

.load-more-btn {
  display: block;
  margin: var(--space-10) auto 0;
}

.mobile-filter-btn {
  display: none;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  max-height: calc(100vh - var(--header-height) - var(--space-10));
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196,168,224,0.15);
}

.shop-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.shop-sidebar-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--purple-deep);
}

.sidebar-close-btn {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  color: var(--grey-500);
  transition: background var(--transition-fast);
}

.sidebar-close-btn:hover {
  background: var(--grey-100);
}

.filter-group {
  margin-bottom: var(--space-6);
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--grey-100);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--grey-600);
  transition: color var(--transition-fast);
}

.filter-option:hover {
  color: var(--purple-brand);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--purple-brand);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filter-category-group {
  margin-bottom: var(--space-2);
}

.filter-option--main {
  font-weight: 500;
  color: var(--grey-700);
}

.filter-suboptions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0 0 var(--space-5);
}

.filter-option--sub {
  font-size: var(--text-xs);
}

.price-range {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.price-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--grey-600);
  transition: all var(--transition-fast);
}

.price-input:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.1);
}

.price-input::placeholder {
  color: var(--grey-400);
}

.filter-clear-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
  margin-top: var(--space-3);
}

.filter-clear-btn:hover {
  transform: translateY(-2px);
}

.filter-clear-btn--ghost {
  background: none;
  border: 1.5px solid var(--grey-200);
  color: var(--grey-500);
}

.filter-clear-btn--ghost:hover {
  border-color: var(--purple-brand);
  color: var(--purple-brand);
  transform: none;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Tablet & mobile: sidebar becomes a slide-in drawer. One breakpoint,
   shared by the layout, sidebar, drawer and toolbar — no more fighting
   between different max-widths in different files. */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 88vw);
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--transition-base), visibility var(--transition-base);
    z-index: var(--z-modal);
  }

  .shop-sidebar.mobile-open {
    transform: translateX(0);
    visibility: visible;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
}

@media (max-width: 640px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-toolbar-left {
    justify-content: space-between;
  }

  .shop-sort {
    justify-content: space-between;
  }

  .shop-sort select {
    flex: 1;
  }

  .price-range {
    flex-direction: column;
  }
}

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