/* ============================================================
   AASHAS — End-of-Year Sale Website
   Design System & Styles
   ============================================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #FDFBF9;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8F5F1;
  --brand-accent: #C97B91;
  --brand-accent-light: #F2DDE4;
  --brand-accent-hover: #B5627A;
  --brand-deep: #7A3350;
  --text-primary: #2D2A26;
  --text-secondary: #5C5751;
  --text-muted: #8A837B;
  --border-light: #EDE8E3;
  --border-medium: #DDD6CE;
  --shadow-soft: 0 2px 12px rgba(45, 42, 38, 0.06);
  --shadow-hover: 0 8px 30px rgba(45, 42, 38, 0.10);
  --shadow-card: 0 1px 4px rgba(45, 42, 38, 0.04);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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: 1280px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

.section-spacing {
  padding: var(--space-4xl) 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--brand-accent);
  margin: var(--space-lg) auto var(--space-xl);
  border: none;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-smooth);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  height: 40px;
  width: auto;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 2px;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand-accent);
  transition: width var(--transition-smooth);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-nav a:hover {
  color: var(--brand-deep);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

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

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding-top: 120px;
  padding-bottom: var(--space-4xl);
  text-align: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-accent-light) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin: 0 auto var(--space-2xl);
  position: relative;
  z-index: 1;
  border-radius: var(--border-radius);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--brand-deep);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.hero-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--brand-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 50px;
  position: relative;
  z-index: 1;
}

.hero-discount-badge span {
  font-family: var(--font-body);
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  margin-top: var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brand-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================================
   SALE INFO STRIP
   ============================================================ */
.sale-info {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-xl) 0;
}

.sale-info-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.sale-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sale-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.sale-info-item strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   PRODUCT CATALOG
   ============================================================ */
.catalog {
  padding: var(--space-4xl) 0;
}

.catalog-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

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

/* Product Card */
.product-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition-smooth);
}

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

/* Product Image Area */
.product-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-subtle);
}

.product-image-wrap img,
.product-image-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-smooth);
}

.product-image-wrap img.lazy {
  opacity: 0;
}

.product-image-wrap img.loaded {
  opacity: 1;
}

/* Carousel Slide Management */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-card:hover .carousel-arrow,
.product-image-wrap:hover .carousel-arrow {
  opacity: 1;
}

/* Always visible on touch devices */
@media (hover: none) {
  .carousel-arrow {
    opacity: 0.8;
  }
}

.carousel-arrow:hover {
  background: #fff;
}

.carousel-arrow.prev {
  left: 8px;
}

.carousel-arrow.next {
  right: 8px;
}

.carousel-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--text-primary);
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Discount Badge on Card */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-deep);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 3;
}

/* Product Info */
.product-info {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.product-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price-discounted {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-deep);
}

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



/* ============================================================
   ABOUT / STORY SECTION
   ============================================================ */
.about {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle radial warmth in the background */
.about::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, var(--brand-accent-light) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

/* Corner decorative flourishes */
.about-decor {
  position: absolute;
  width: 120px;
  height: 120px;
  color: var(--brand-accent);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.about-decor-tl {
  top: 16px;
  left: 16px;
}

.about-decor-tr {
  top: 16px;
  right: 16px;
}

.about-decor-bl {
  bottom: 16px;
  left: 16px;
}

.about-decor-br {
  bottom: 16px;
  right: 16px;
}

.about-decor svg {
  width: 100%;
  height: 100%;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

/* Opening quote mark */
.about-quote-mark {
  color: var(--brand-accent);
  opacity: 0.2;
  margin: var(--space-md) auto var(--space-xs);
  width: 48px;
  height: auto;
}

.about-quote-mark svg {
  width: 100%;
  height: auto;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  margin-top: var(--space-md);
}

.about-text p:first-child {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brand-deep);
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

.about-text p {
  margin-bottom: var(--space-lg);
}

.about-text p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-primary);
}

/* Closing ornamental flourish */
.about-flourish {
  margin-top: var(--space-2xl);
  color: var(--brand-accent);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.about-flourish svg {
  width: 100%;
  height: auto;
}

/* Hide corner decorations on small screens to avoid clutter */
@media (max-width: 767px) {
  .about-decor {
    width: 70px;
    height: 70px;
    opacity: 0.25;
  }

  .about-decor-tl {
    top: 8px;
    left: 8px;
  }

  .about-decor-tr {
    top: 8px;
    right: 8px;
  }

  .about-decor-bl {
    bottom: 8px;
    left: 8px;
  }

  .about-decor-br {
    bottom: 8px;
    right: 8px;
  }

  .about-quote-mark {
    width: 36px;
  }

  .about-text p:first-child {
    font-size: 1rem;
  }
}

@media (max-width: 399px) {
  .about-decor {
    width: 50px;
    height: 50px;
    opacity: 0.15;
  }
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  padding: var(--space-4xl) 0;
}

.contact-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  transition: transform var(--transition-smooth);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand-deep);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 400;
}

.contact-value a {
  color: var(--text-primary);
}

.contact-value a:hover {
  color: var(--brand-accent-hover);
}

/* Contact Map Embed */
.contact-map {
  margin-top: var(--space-2xl);
  max-width: 100%;
}

.map-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.map-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-smooth);
}

.map-container:hover {
  box-shadow: var(--shadow-hover);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(253, 251, 249, 0.95), rgba(253, 251, 249, 0.7), transparent);
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.map-container:hover .map-overlay {
  opacity: 1;
}

.map-overlay-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
  padding: 6px 16px;
  background: var(--bg-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.map-overlay-text svg {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  background: var(--brand-accent-light);
  color: var(--brand-deep);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 99;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .section-title {
    font-size: 2.4rem;
  }

  .header-inner {
    height: 72px;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: var(--space-4xl);
  }

  .hero-logo {
    width: 240px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-name {
    font-size: 1.05rem;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  .header-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(253, 251, 249, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  }

  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .product-grid {
    gap: var(--space-md);
  }

  .sale-info-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero {
    padding-top: 100px;
  }

  .hero-decor {
    display: none;
  }

  /* Hide header logo on mobile until user scrolls */
  .header-logo {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    max-width: 0;
    overflow: hidden;
  }

  .site-header.scrolled .header-logo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-width: 200px;
  }

  .hero-dot {
    opacity: 0.08;
  }

  .hero-logo {
    width: 160px;
  }

  .hero-discount-badge {
    padding: var(--space-sm) var(--space-xl);
    font-size: 1rem;
  }

  .section-spacing {
    padding: var(--space-3xl) 0;
  }

  .catalog,
  .about,
  .contact {
    padding: var(--space-3xl) 0;
  }

  .product-info {
    padding: var(--space-sm) var(--space-sm) var(--space-md);
  }

  .product-name {
    font-size: 0.9rem;
  }

  .price-discounted {
    font-size: 0.95rem;
  }

  .price-original {
    font-size: 0.8rem;
  }

  .product-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .carousel-arrow {
    width: 28px;
    height: 28px;
  }

  .carousel-arrow svg {
    width: 12px;
    height: 12px;
  }

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

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Small mobile: < 400px */
@media (max-width: 399px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

/* ============================================================
   PRODUCT DETAIL MODAL
   ============================================================ */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

/* Modal body — split layout */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
}

/* ---- Gallery side ---- */
.modal-gallery {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-subtle);
  overflow: hidden;
}

.modal-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.modal-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.modal-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery arrows */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.modal-gallery:hover .modal-arrow {
  opacity: 1;
}

@media (hover: none) {
  .modal-arrow {
    opacity: 0.85;
  }
}

.modal-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.modal-arrow-prev {
  left: 12px;
}

.modal-arrow-next {
  right: 12px;
}

.modal-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

/* Gallery dots */
.modal-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-dot.active {
  background: #fff;
  transform: scale(1.35);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

/* Gallery badge */
.modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-deep);
  color: #fff;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 5px;
  z-index: 5;
}

/* ---- Details side ---- */
.modal-details {
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-product-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.modal-product-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

/* Pricing block */
.modal-pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.modal-price-sale {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

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

.modal-savings {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Divider */
.modal-divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: var(--space-lg) 0;
}

/* Info items */
.modal-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.modal-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.modal-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-accent);
  flex-shrink: 0;
}

/* WhatsApp order button */
.modal-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 15px var(--space-2xl);
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  margin-top: auto;
}

.modal-whatsapp-btn:hover {
  background: #22c55e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

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

.modal-whatsapp-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.modal-whatsapp-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Body scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}

/* Make product cards clickable */
.product-card {
  cursor: pointer;
}

/* ---- Modal responsive ---- */

/* Tablet and below: stack vertically */
@media (max-width: 767px) {
  .product-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .product-modal {
    max-height: 95vh;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    transform: translateY(100%);
  }

  .product-modal-overlay.active .product-modal {
    transform: translateY(0);
  }

  .modal-body {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-gallery {
    aspect-ratio: 4 / 5;
    max-height: 55vh;
  }

  .modal-details {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    max-height: none;
    overflow-y: visible;
  }

  .modal-product-name {
    font-size: 1.35rem;
  }

  .modal-price-sale {
    font-size: 1.4rem;
  }

  /* Close button: fixed to overlay so it's never clipped by modal overflow */
  .modal-close {
    position: fixed;
    top: calc(5vh + 10px);
    right: 12px;
    z-index: 1010;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .modal-close svg {
    width: 16px;
    height: 16px;
  }

  .modal-arrow {
    width: 36px;
    height: 36px;
  }

  .modal-arrow svg {
    width: 15px;
    height: 15px;
  }

  .modal-whatsapp-btn {
    padding: 14px var(--space-xl);
    font-size: 0.95rem;
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 399px) {
  .modal-gallery {
    aspect-ratio: 1 / 1;
    max-height: 45vh;
  }

  .modal-details {
    padding: var(--space-md) var(--space-md) var(--space-lg);
  }

  .modal-product-name {
    font-size: 1.2rem;
  }

  .modal-info-item {
    font-size: 0.82rem;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

  .site-header,
  .whatsapp-float,
  .carousel-arrow,
  .carousel-dots,
  .hero-scroll-hint,
  .product-modal-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}