@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa&display=swap');

/* ============================================================
   Artesana Mediterránea — style.css
   ============================================================
   1.  Custom Properties (:root variables)
   2.  CSS Reset
   3.  Base Typography
   4.  Layout Containers
   5.  Navigation (Header, Hamburger)
   6.  Mobile Nav Overlay
   7.  Hero Section
   8.  Product Cards + Grid
   9.  Category Filter Bar
   10. Product Detail Layout
   11. Gallery (Images + Thumbnails)
   12. Brand Story Section
   13. WhatsApp CTA Section
   14. About Page Layout
   15. Contact Page Layout
   16. Footer
   17. Skeleton Loaders
   18. Floating WhatsApp Button
   19. Utility Classes
   20. Animations
   21. @media (min-width: 768px) — TABLET overrides
   22. @media (min-width: 1200px) — DESKTOP overrides
   23. @media (prefers-reduced-motion: reduce)
   ============================================================ */

/* ============================================================
   1. Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --color-terracotta: #C1673A;
  --color-beige: #F2E8D9;
  --color-sea-blue: #3B6E8F;
  --color-olive: #7A8C5E;
  --color-off-white: #FAF7F2;
  --color-charcoal: #2C2C2C;
  --color-muted: #8B8278;
  --color-border: #E2D8CC;
  --color-whatsapp: #25D366;
  --color-stock-low: #D97706;
  --color-stock-out: #DC2626;

  /* Spacing (4px base scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container-max: 1280px;
  --container-padding-mobile: var(--space-4);
  --container-padding-tablet: var(--space-6);
  --container-padding-desktop: var(--space-8);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(44, 44, 44, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(44, 44, 44, 0.16);
  --shadow-nav: 0 2px 12px rgba(44, 44, 44, 0.10);

  /* Transitions */
  --transition-base: 200ms ease;
  --transition-card: 300ms ease;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   2. CSS Reset
   ============================================================ */
*,
*::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: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-off-white);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================================
   3. Base Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   4. Layout Containers
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding-mobile);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: var(--space-7);
  margin-top: calc(-1 * var(--space-4));
}

/* ============================================================
   5. Navigation (Header, Hamburger)
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: white;
  box-shadow: var(--shadow-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--container-padding-mobile);
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 64px;
}

.site-logo {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-text {
  font-family: "Aref Ruqaa", serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--color-terracotta);
  transform: translateY(-4px);
}

.logo-f {
  font-family: "Aref Ruqaa", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-terracotta);
}

.site-logo img,
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-charcoal);
  letter-spacing: 0.04em;
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 2px;
}

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

.main-nav a:hover { color: var(--color-terracotta); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--color-terracotta); }
.main-nav a.active::after { width: 100%; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 300;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================================
   6. Mobile Nav Overlay
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(44, 44, 44, 0.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}

.nav-overlay-links a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: white;
  letter-spacing: 0.02em;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color var(--transition-base);
}

.nav-overlay-links a:hover,
.nav-overlay-links a.active {
  color: var(--color-terracotta);
}

.nav-overlay-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.nav-overlay-close:hover { opacity: 1; }

body.nav-open .nav-overlay { display: flex; }
body.nav-open { overflow: hidden; }

/* ============================================================
   7. Hero Section
   ============================================================ */
.hero {
  background-color: var(--color-beige);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
  position: relative;
}

.hero-content {
  padding: var(--space-9) var(--container-padding-mobile) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-charcoal);
}

.hero-title em {
  font-style: italic;
  color: var(--color-terracotta);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(242, 232, 217, 0.6) 100%
  );
}

/* Category pills inside hero */
.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.hero-category-pill {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.hero-category-pill:not(:last-child)::after {
  content: ' ·';
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background-color: var(--color-beige);
  padding: var(--space-8) 0 var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-charcoal);
}

.page-hero p {
  color: var(--color-muted);
  margin-top: var(--space-2);
  margin-bottom: 0;
}

/* ============================================================
   8. Product Cards + Grid
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-card), box-shadow var(--transition-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

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

.card-image-wrap {
  position: relative;
}

.card-cat-overlay {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  box-shadow: 0 1px 6px rgba(44, 44, 44, 0.18);
}

.card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-beige);
}

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

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

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

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.3;
}

.card-chips {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.card-meta .price {
  align-self: flex-end;
}

.price {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-charcoal);
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.card-footer .btn-add-cart,
.card-footer .btn-wa {
  justify-content: center;
}

.btn-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: white;
  flex-shrink: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}

.btn-wa-icon svg {
  width: 20px;
  height: 20px;
}

.btn-wa-icon:hover {
  background: #1da851;
  transform: scale(1.1);
}

/* ============================================================
   9. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  padding: 12px var(--space-5);
  min-height: 48px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-terracotta);
  color: white;
}

.btn-primary:hover {
  background: #a85530;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  width: 100%;
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

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

.btn-whatsapp.btn-large {
  min-height: 56px;
  font-size: 17px;
  padding: 14px var(--space-7);
  max-width: 400px;
}

.btn-secondary {
  background: white;
  color: var(--color-charcoal);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-charcoal);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.btn-outline:hover {
  background: var(--color-terracotta);
  color: white;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1;
  border: 1px solid transparent;
}

.badge-category {
  background: var(--color-off-white);
  color: var(--color-sea-blue);
  border-color: rgba(59, 110, 143, 0.45);
}

.badge-stock-disponible {
  background: transparent;
  color: var(--color-olive);
  border-color: rgba(122, 140, 94, 0.35);
}

.badge-stock-bajas {
  background: transparent;
  color: var(--color-stock-low);
  border-color: rgba(217, 119, 6, 0.35);
}

.badge-stock-agotado {
  background: transparent;
  color: var(--color-stock-out);
  border-color: rgba(220, 38, 38, 0.3);
}

/* ============================================================
   9. Category Filter Bar
   ============================================================ */
.filter-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  background: white;
  position: sticky;
  top: 64px;
  z-index: 50;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-2) 0;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  min-height: 44px;
  background: var(--color-beige);
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
}

.filter-btn.active {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
}

/* ============================================================
   10. Product Detail Layout
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.price-stock {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.price-stock .price {
  font-size: 28px;
}

.product-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-charcoal);
}

.product-description p {
  margin-bottom: var(--space-4);
}

.product-info .btn-whatsapp {
  margin-top: var(--space-2);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--color-muted);
  padding: var(--space-5) 0 0;
  transition: color var(--transition-base);
}

.back-link:hover { color: var(--color-terracotta); }
.back-link svg { width: 16px; height: 16px; }

/* Related products */
.related-products {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-7);
}

.related-products h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-6);
}

/* ============================================================
   11. Gallery (Images + Thumbnails)
   ============================================================ */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-beige);
  cursor: zoom-in;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-card);
}

.gallery-main img:hover { transform: scale(1.03); }

.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-1) 0;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all var(--transition-base);
}

.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active {
  border-color: var(--color-terracotta);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  color: white;
  font-size: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  cursor: pointer;
}

.lightbox-close:hover { opacity: 1; }

/* ============================================================
   12. Brand Story Section
   ============================================================ */
.brand-story {
  background: var(--color-beige);
  padding: var(--space-9) 0;
}

.brand-story-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  align-items: center;
  text-align: center;
}

.brand-story-text {
  max-width: 600px;
}

.brand-story-text blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-charcoal);
  margin-bottom: var(--space-5);
}

.brand-story-text blockquote::before {
  content: '"';
  color: var(--color-terracotta);
  font-size: 48px;
  line-height: 0;
  vertical-align: -16px;
  margin-right: 4px;
}

.brand-story-text p {
  color: var(--color-muted);
  font-size: 16px;
}

/* Categories section */
.categories-section {
  padding: var(--space-8) 0;
}

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

.category-card {
  background: var(--color-beige);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: all var(--transition-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-height: 100px;
}

.category-card:hover {
  background: var(--color-sea-blue);
  border-color: var(--color-sea-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.category-icon {
  width: 32px;
  height: 32px;
  color: var(--color-terracotta);
  transition: color var(--transition-base);
}

.category-card:hover .category-icon {
  color: white;
}

.state-icon {
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.category-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   13. WhatsApp CTA Section
   ============================================================ */
.wa-cta {
  background: var(--color-charcoal);
  padding: var(--space-9) 0;
  text-align: center;
}

.wa-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.wa-cta h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: white;
  max-width: 480px;
}

.wa-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  max-width: 380px;
  margin-bottom: 0;
}

.wa-cta .btn-whatsapp {
  width: auto;
  min-width: 280px;
  padding: 16px var(--space-7);
  font-size: 17px;
  min-height: 56px;
}

/* ============================================================
   14. About Page Layout
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
}

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

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-charcoal);
}

.about-signature {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--color-terracotta);
  margin-top: var(--space-3);
}

/* ============================================================
   15. Contact Page Layout
   ============================================================ */
.contact-hero {
  padding: var(--space-9) var(--container-padding-mobile);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 560px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
}

.contact-hero p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 380px;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  color: var(--color-muted);
  font-size: 14px;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   16. Footer
   ============================================================ */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-7) 0 var(--space-6);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-size: 14px;
}

.footer-legal-nav a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.footer-legal-nav a:hover {
  color: var(--color-terracotta);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition-base);
}

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

/* ============================================================
   17. Skeleton Loaders
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    #f0e8d8 25%,
    #f8f2e8 50%,
    #f0e8d8 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    90deg,
    #f0e8d8 25%,
    #f8f2e8 50%,
    #f0e8d8 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    #f0e8d8 25%,
    #f8f2e8 50%,
    #f0e8d8 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.title { height: 20px; width: 90%; }
.skeleton-line.price { height: 22px; width: 40%; }
.skeleton-btn {
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    #f0e8d8 25%,
    #f8f2e8 50%,
    #f0e8d8 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-top: var(--space-2);
}

/* ============================================================
   18. Floating WhatsApp Button
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.wa-float svg {
  width: 30px;
  height: 30px;
  color: white;
}

/* ============================================================
   18b. Cookie Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
  margin-bottom: 0;
  font-size: 14px;
  max-width: 640px;
}

.cookie-banner a {
  color: var(--color-terracotta);
  text-decoration: underline;
}

/* ============================================================
   19. Utility Classes
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-terracotta { color: var(--color-terracotta); }

.empty-state,
.error-state {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  color: var(--color-muted);
  grid-column: 1 / -1;
}

.empty-state h3,
.error-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
}

.error-state h3 { color: var(--color-terracotta); }

.empty-icon,
.error-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

/* 404 Page */
.page-404 {
  text-align: center;
  padding: var(--space-10) var(--container-padding-mobile);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.page-404 .error-code {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 600;
  color: var(--color-terracotta);
  line-height: 1;
  opacity: 0.3;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
}

.page-404 p {
  color: var(--color-muted);
  max-width: 360px;
  margin-bottom: 0;
}

.page-404-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-3);
}

/* ============================================================
   20. Animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}

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

/* Stagger delay for card grids */
.fade-in:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2) { transition-delay: 80ms; }
.fade-in:nth-child(3) { transition-delay: 160ms; }
.fade-in:nth-child(4) { transition-delay: 240ms; }
.fade-in:nth-child(n+5) { transition-delay: 320ms; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   21. @media (min-width: 768px) — TABLET
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }

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

  .header-inner {
    padding: var(--space-4) var(--container-padding-tablet);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
  }

  .header-inner > *:first-child { justify-self: start; }
  .header-inner > *:last-child  { justify-self: end; }

  .main-nav ul {
    display: flex;
  }

  .hamburger { display: none; }

  /* Hero — tablet: side by side */
  .hero-inner {
    flex-direction: row;
    align-items: stretch;
    min-height: auto;
  }

  .hero-content {
    flex: 1;
    padding: var(--space-9) var(--container-padding-tablet) var(--space-9) var(--container-padding-tablet);
  }

  .hero-title { font-size: 52px; }

  .hero-image {
    flex: 1;
    aspect-ratio: auto;
    min-height: 440px;
  }

  /* Product grid — 2 columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Filter bar — wraps on tablet */
  .filter-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  /* Product detail — 2 column */
  .product-detail {
    grid-template-columns: 55% 45%;
    align-items: start;
  }

  .product-info h1 { font-size: 36px; }

  /* About layout — 2 column */
  .about-layout {
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: var(--space-8);
  }

  .about-image { aspect-ratio: 3 / 4; }

  /* Category grid — 3 columns on tablet */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-2);
  }

  /* Cookie banner — text and button side by side */
  .cookie-banner {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .page-hero h1 { font-size: 48px; }

  .wa-cta h2 { font-size: 38px; }

  .brand-story-text blockquote { font-size: 28px; }

  .section-title { font-size: 36px; }
}

/* ============================================================
   22. @media (min-width: 1200px) — DESKTOP
   ============================================================ */
@media (min-width: 1200px) {
  h1 { font-size: 64px; }
  h2 { font-size: 42px; }
  h3 { font-size: 24px; }

  body { font-size: 18px; }

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

  .header-inner {
    padding: var(--space-4) var(--container-padding-desktop);
  }

  /* Hero — desktop: full overlay */
  .hero {
    min-height: 85vh;
    background-image: linear-gradient(
      to right,
      rgba(250, 247, 242, 0.97) 45%,
      rgba(250, 247, 242, 0.3) 75%,
      transparent 100%
    ), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
  }

  .hero-inner {
    min-height: 85vh;
    align-items: center;
  }

  .hero-image { display: none; }

  .hero-content {
    max-width: 640px;
    padding: var(--space-10) var(--container-padding-desktop);
  }

  .hero-title { font-size: 68px; }
  .hero-subtitle { font-size: 18px; }

  /* Product grid — 4 columns */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  /* Product detail — 55/45 */
  .product-detail { gap: var(--space-9); }

  .product-info h1 { font-size: 48px; }

  /* Category grid — 5 columns */
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Floating WA — hidden on desktop */
  .wa-float { display: none; }

  .page-hero h1 { font-size: 56px; }

  .section-title { font-size: 42px; }
}

/* ============================================================
   23. @media (prefers-reduced-motion: reduce)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skeleton,
  .skeleton-image,
  .skeleton-line,
  .skeleton-btn {
    animation: none;
    background: #f0e8d8;
  }
}

/* ============================================================
   20. Cart Buttons
   ============================================================ */

/* .btn-add-cart — add to cart pill */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: var(--color-beige);
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 36px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-add-cart svg {
  flex-shrink: 0;
}

.btn-add-cart:hover {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
}

.btn-add-cart.is-in-cart {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
}

.btn-add-cart.is-in-cart:hover {
  background: #a85530;
  border-color: #a85530;
}

/* Full-width variant for detail page */
.btn-add-cart-lg {
  width: 100%;
  justify-content: center;
  padding: 13px var(--space-5);
  font-size: 15px;
  min-height: 48px;
}

@keyframes cart-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.btn-add-cart.adding {
  animation: cart-pop 280ms ease;
}

/* .btn-wa — WhatsApp pill (replaces .btn-wa-icon icon-only) */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}

.btn-wa svg {
  flex-shrink: 0;
}

.btn-wa:hover {
  background: #1da851;
  transform: scale(1.03);
}

/* Full-width variant for detail page */
.btn-wa-lg {
  width: 100%;
  justify-content: center;
  padding: 13px var(--space-5);
  font-size: 15px;
  min-height: 48px;
}

/* .detail-actions — stacks cart + WA buttons on detail page */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* .qty-stepper — inline quantity control on cards and detail */
.qty-hidden { display: none !important; }

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-terracotta);
  border-radius: var(--radius-full);
  min-height: 36px;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 0 4px;
  user-select: none;
}

.qty-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
  line-height: 1;
  flex-shrink: 0;
}

.qty-btn:hover { background: rgba(255,255,255,0.2); }

.qty-count {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
}

/* Larger variant for detail page */
.qty-stepper-lg {
  min-height: 48px;
  font-size: 16px;
}

.qty-stepper-lg .qty-btn {
  width: 40px;
  height: 40px;
  font-size: 24px;
}

/* ============================================================
   21. Cart Toggle (header) + Badge
   ============================================================ */

body.cart-open {
  overflow: hidden;
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-charcoal);
  flex-shrink: 0;
  transition: color var(--transition-base), background var(--transition-base);
}

.cart-toggle svg {
  width: 22px;
  height: 22px;
}

.cart-toggle:hover {
  color: var(--color-terracotta);
  background: rgba(193, 103, 58, 0.08);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-terracotta);
  color: white;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.cart-badge:empty {
  display: none;
}

/* ============================================================
   22. Cart Overlay + Drawer
   ============================================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(44, 44, 44, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

body.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: slides up from bottom */
.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 350;
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 32px rgba(44, 44, 44, 0.18);
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  transform: translateY(100%);
  transition: transform 300ms ease;
}

body.cart-open .cart-drawer {
  transform: translateY(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0;
}

.cart-drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color var(--transition-base), background var(--transition-base);
  line-height: 1;
}

.cart-drawer-close:hover {
  color: var(--color-charcoal);
  background: var(--color-beige);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  -webkit-overflow-scrolling: touch;
}

.cart-drawer-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Desktop: slides in from right */
@media (min-width: 768px) {
  .cart-drawer {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: 420px;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
  }

  body.cart-open .cart-drawer {
    transform: translateX(0);
  }
}

/* ============================================================
   23. Cart Item List
   ============================================================ */

.cart-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  margin: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-3);
  align-items: start;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-beige);
  flex-shrink: 0;
  display: block;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-unit-price {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-charcoal);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}

.cart-qty-btn:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.cart-qty-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-charcoal);
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 16px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color var(--transition-base), background var(--transition-base);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: var(--color-stock-out);
  background: rgba(220, 38, 38, 0.08);
}

/* Cart total + actions */
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-charcoal);
  padding-bottom: var(--space-1);
}

.cart-total-label {
  color: var(--color-muted);
}

.cart-total-amount {
  font-size: 20px;
  font-weight: 700;
}

.cart-clear-btn {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
  text-align: center;
}

.cart-clear-btn:hover {
  color: var(--color-stock-out);
}

/* Empty cart state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  gap: var(--space-3);
  color: var(--color-muted);
}

.cart-empty svg {
  color: var(--color-border);
}

.cart-empty p {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
}
