/* ============================================================
   EmpressCraft.com - Main Stylesheet
   Design: Etsy-inspired, warm artisanal, premium
   Target: High-net-worth individuals, new parents, couples
   Mobile-first responsive
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-primary:       #1B2838;   /* deep navy */
  --color-primary-light: #2C3E50;
  --color-accent:        #C9A96E;   /* warm gold */
  --color-accent-light:  #DFC98A;
  --color-accent-dark:   #A8884A;
  --color-bg:            #FAF8F5;   /* warm white */
  --color-bg-alt:        #F5F2ED;
  --color-bg-card:       #FFFFFF;
  --color-text:          #2D2D2D;
  --color-text-light:    #6B6B6B;
  --color-text-muted:    #9C9C9C;
  --color-border:        #E8E3DC;
  --color-border-light:  #F0EDE8;
  --color-success:       #5B8C5A;
  --color-error:         #C44545;
  --color-warning:       #D4A853;
  --color-star:          #F5A623;

  /* Typography */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-nav:      'Montserrat', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:    1200px;
  --max-width-sm: 900px;
  --header-height: 72px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

.section-title h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.container-sm {
  max-width: var(--max-width-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-accent);
}

.logo-sub {
  font-family: var(--font-nav);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  color: var(--color-text-muted);
  margin-top: -2px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.main-nav a {
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.25rem 0;
}

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

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--transition-fast);
  position: relative;
}

.header-actions a:hover {
  background: var(--color-bg-alt);
}

.header-actions svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  margin-top: var(--header-height);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F1A2E 100%);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url('assets/images/hero-pattern.svg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: var(--space-4xl) var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  background: rgba(201,169,110,0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero h1 span {
  color: var(--color-accent);
  font-style: italic;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.hero-actions .btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-primary);
}

.hero-actions .btn-secondary {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.hero-actions .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-section {
  padding: var(--space-4xl) 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

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

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

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.category-card-overlay h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.category-card-overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-alt);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

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

.product-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.product-card-body {
  padding: var(--space-md);
}

.product-card-category {
  font-family: var(--font-nav);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.product-card-price .original {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-right: var(--space-sm);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--color-star);
}

.product-card-rating span {
  color: var(--color-text-light);
  font-size: 0.75rem;
  margin-left: 4px;
}

.product-card-customize {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   BRAND STORY SECTION
   ============================================================ */
.brand-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-card);
}

.brand-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.brand-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h2 {
  margin-bottom: var(--space-lg);
}

.brand-text p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.brand-stat {
  text-align: center;
}

.brand-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.brand-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* ============================================================
   TESTIMONIALS / REVIEWS
   ============================================================ */
.testimonials-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-alt);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

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

.testimonial-stars {
  color: var(--color-star);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* ============================================================
   CUSTOM CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto var(--space-xl);
}

.cta-section .btn-accent {
  font-size: 1rem;
  padding: 1rem 3rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.cta-feature svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: auto;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.footer-column h4 {
  color: #fff;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.footer-column a {
  display: block;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-payments {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer-payments svg {
  height: 24px;
  opacity: 0.5;
}

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */
.page-header {
  margin-top: var(--header-height);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-bg-alt);
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

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

.breadcrumbs .separator {
  font-size: 0.7rem;
}

/* ============================================================
   CUSTOMIZATION WIDGET
   ============================================================ */
.customize-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
}

.customize-panel h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
}

.customize-options {
  display: grid;
  gap: var(--space-lg);
}

.customize-option label {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.customize-option select,
.customize-option input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}

.customize-option select:focus,
.customize-option input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.option-pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-bg-card);
}

.option-pill:hover {
  border-color: var(--color-accent);
}

.option-pill.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.customize-preview {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: 8px;
  border: 2px dashed var(--color-border);
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.customize-preview img {
  max-height: 120px;
}

.customize-preview p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.price-breakdown {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.price-row.total {
  border-top: 2px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-upload {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-bg-alt);
}

.file-upload:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-card);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--color-text-muted);
}

.file-upload p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.file-upload .hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.file-upload.has-file {
  border-color: var(--color-success);
  border-style: solid;
  background: rgba(91,140,90,0.05);
}

/* ============================================================
   MODAL / OVERLAY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.modal h2 {
  margin-bottom: var(--space-lg);
  padding-right: var(--space-xl);
}

.contact-options {
  display: grid;
  gap: var(--space-md);
}

.contact-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.contact-option:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.contact-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option-icon.email {
  background: rgba(201,169,110,0.15);
  color: var(--color-accent);
}

.contact-option-icon.whatsapp {
  background: rgba(37,211,102,0.15);
  color: #25D366;
}

.contact-option-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.contact-option-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 3000;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: toastIn 0.3s ease;
  max-width: 400px;
}

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

.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-error); }
.toast.info { border-left: 4px solid var(--color-accent); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

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

.form-group label {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
}

.filter-group {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

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

.filter-group h4 {
  font-family: var(--font-nav);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.35rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-checkbox input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* ============================================================
   COLOR SWATCH SELECTOR
   ============================================================ */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
}

/* ============================================================
   SIZE SELECTOR
   ============================================================ */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.size-btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-bg-card);
  padding: 0 0.75rem;
}

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

.size-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.size-btn.out-of-stock {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ============================================================
   STARS RATING DISPLAY
   ============================================================ */
.stars {
  display: inline-flex;
  gap: 1px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: var(--color-star);
}

.stars .empty {
  fill: var(--color-border);
}

/* ============================================================
   PRODUCT DETAIL LAYOUT
   ============================================================ */
.product-detail {
  margin-top: var(--header-height);
  padding: var(--space-2xl) 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.product-gallery-main {
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-md);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.product-gallery-thumbs img {
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  object-fit: cover;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
  border-color: var(--color-accent);
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.product-info .rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.product-info .price-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.product-info .description {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.cart-section {
  margin-top: var(--header-height);
  padding: var(--space-2xl) 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-md);
  align-items: start;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.cart-item-details h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.cart-item-details p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-selector button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg-alt);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.qty-selector button:hover {
  background: var(--color-border);
}

.qty-selector span {
  width: 40px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-summary {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.cart-summary h3 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

/* ============================================================
   CHECKOUT FORM
   ============================================================ */
.checkout-section {
  margin-top: var(--header-height);
  padding: var(--space-2xl) 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-2xl);
  align-items: start;
}

.shipping-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.shipping-form h3 {
  margin-bottom: var(--space-lg);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
