/* ==========================================================================
   CASA MIMO - STYLING SYSTEM
   Luxury E-commerce Premium Design (iOS, Apple & Pinterest Shop style)
   ========================================================================== */

/* 1. DESIGN TOKENS & VARIABLES */
:root {
  /* Brand Palettes */
  --green-950: #112217;
  --green-900: #183523;
  --green-800: #21472f;
  --green-700: #2d5a3d;
  --green-600: #376d4b;
  --green-soft: #d9e4d7;
  
  --pine-green: #21472f;
  --wine: #8b2b2c;
  --soft: #7c837d;
  
  --cream-50: #fffdf8;
  --cream-100: #faf7ef;
  --cream-200: #f2ebde;
  --beige-100: #eadfce;
  --beige-200: #d8c9b4;
  --pink-accent: #d75f62;
  --pink-accent-glow: rgba(215, 95, 98, 0.15);
  
  --paper: #fffaf0;
  --white: #ffffff;
  --text: #1d2a22;
  --muted: #6d746e;
  --line: rgba(33, 71, 47, 0.08);
  
  /* Premium Shadow Presets */
  --shadow-soft: 0 10px 30px rgba(24, 53, 35, 0.04);
  --shadow-card: 0 12px 32px rgba(24, 53, 35, 0.06);
  --shadow-deep: 0 20px 48px rgba(17, 34, 23, 0.1);
  --shadow-modal: 0 30px 60px rgba(17, 34, 23, 0.15);
  
  /* Smooth Border Radii */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  
  --container: 1200px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: var(--text);
  background-color: var(--cream-50);
  background-image:
    radial-gradient(circle at top left, rgba(217, 228, 215, 0.4), transparent 40rem),
    radial-gradient(circle at 90% 10%, rgba(234, 223, 206, 0.4), transparent 40rem);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.cart-open,
body.search-open,
body.login-open {
  overflow: hidden;
}

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

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

/* 3. BUTTON COMPONENT (SYSTEM-WIDE) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(45, 90, 61, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 14px 32px rgba(24, 53, 35, 0.22);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-800);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--cream-100);
  border-color: var(--green-700);
  box-shadow: 0 8px 20px rgba(24, 53, 35, 0.08);
}

.btn-block {
  width: 100%;
}

/* 4. HEADER & NAVIGATION */
.top-announcement-bar {
  position: relative;
  z-index: 40;
  height: 38px;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(90deg, var(--green-950), var(--green-800));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.announcement-container {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.announcement-left,
.announcement-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 92px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.main-header.is-scrolled {
  height: 76px;
  background: rgba(255, 253, 248, 0.88);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(17, 34, 23, 0.04);
}

.header-container {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 30px;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.main-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.main-header.is-scrolled .main-logo {
  height: 42px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(29, 42, 34, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 4px;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green-700);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-900);
}

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

/* Dropdown Menu Store */
.dropdown-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.dropdown-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.dropdown-menu a:hover {
  color: var(--green-900);
  background: var(--cream-200);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-btn,
.cart-btn,
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover,
.cart-btn:hover,
.mobile-menu-toggle:hover {
  transform: translateY(-2px);
  color: var(--white);
  background: var(--green-800);
  box-shadow: 0 8px 20px rgba(24, 53, 35, 0.12);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green-700);
  border: 2px solid var(--cream-50);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.desktop-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green-900);
  transition: var(--transition-smooth);
}

.desktop-login-btn:hover {
  transform: translateY(-2px);
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
  box-shadow: 0 8px 20px rgba(24, 53, 35, 0.1);
}

.mobile-menu-toggle {
  display: none;
}

/* 5. HERO SECTION */
.hero-section {
  padding: 60px 0 40px;
  position: relative;
}

.hero-container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  max-width: 540px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(45, 90, 61, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-subhighlights {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.subhighlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.subhighlight-item i {
  font-size: 1.1rem;
  color: var(--green-700);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(24, 53, 35, 0.12));
}

/* 6. SERVICE BAR SECTION */
.service-bar-section {
  padding: 40px 0;
}

.service-bar-card {
  max-width: var(--container);
  margin-inline: auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  transition: var(--transition-smooth);
}

.service-item:last-child {
  border-right: none;
}

.service-item:hover {
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--cream-100);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--green-800);
  flex-shrink: 0;
}

.service-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 4px;
}

.service-text p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* 7. GENERAL SECTIONS STYLING */
.section {
  padding: 80px 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

#categorias {
  padding-bottom: 20px;
}

#vitrine {
  padding-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green-900);
  font-weight: 700;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid transparent;
}

.section-link:hover {
  color: var(--green-900);
  border-color: var(--green-900);
}

/* 8. CATEGORY GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  justify-content: center;
}

.home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.home-category-card:hover {
  transform: translateY(-6px);
}

.home-category-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(140, 16, 38, 0.12); /* Light pinkish wine border */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px; /* Padding for double-ring effect */
  background: transparent;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 12px;
}

.home-category-card:hover .home-category-ring {
  border-color: var(--wine);
  box-shadow: 0 6px 20px rgba(140, 16, 38, 0.08);
}

.home-category-img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* essential for overlay badge positioning */
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.home-category-card:hover .home-category-img-circle {
  transform: scale(1.04);
}

/* For icon-only state, fall back to pastel backgrounds */
.home-category-img-circle.icon-only {
  background-color: #FAF7EF;
  color: var(--wine);
}
.home-category-card:nth-child(5n+1) .home-category-img-circle.icon-only {
  background-color: #FFF0F2; /* Soft Rose */
  color: var(--wine);
}
.home-category-card:nth-child(5n+2) .home-category-img-circle.icon-only {
  background-color: #EAF2EE; /* Soft Sage */
  color: var(--pine-green);
}
.home-category-card:nth-child(5n+3) .home-category-img-circle.icon-only {
  background-color: #FFF9EB; /* Soft Cream */
  color: #B58A3E;
}
.home-category-card:nth-child(5n+4) .home-category-img-circle.icon-only {
  background-color: #F3F0FF; /* Soft Lavender */
  color: #6C55B5;
}
.home-category-card:nth-child(5n+5) .home-category-img-circle.icon-only {
  background-color: #FFF2EA; /* Soft Peach */
  color: #D36729;
}

/* Beautiful overlaid icon badge when displaying a product image */
.home-category-icon-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid rgba(140, 16, 38, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-category-card:hover .home-category-icon-badge {
  transform: scale(1.1) rotate(12deg);
  border-color: var(--wine);
  box-shadow: 0 4px 12px rgba(140, 16, 38, 0.18);
}

.home-category-info {
  text-align: center;
}

.home-category-info h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.home-category-card:hover .home-category-info h3 {
  color: var(--wine);
}

.home-category-info span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
}

@media (max-width: 576px) {
  .home-category-ring {
    width: 110px;
    height: 110px;
    padding: 6px;
    margin-bottom: 8px;
  }
  .home-category-info h3 {
    font-size: 0.95rem;
  }
  .home-category-info span {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  .home-category-icon-badge {
    width: 28px;
    height: 28px;
    bottom: -2px;
    right: -2px;
    border-width: 1px;
  }
  .home-category-icon-badge svg {
    width: 13px !important;
    height: 13px !important;
  }
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(33, 71, 47, 0.15);
}

.category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-image: var(--img, none);
  background-position: center;
  background-size: cover;
  transition: var(--transition-smooth);
}

.category-card:hover .category-image {
  transform: scale(1.04);
}

.category-body {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.category-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 4px;
}

.category-body p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* 9. PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(33, 71, 47, 0.15);
}

.product-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  background: var(--pink-accent);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px var(--pink-accent-glow);
}

.wishlist-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.wishlist-btn:hover {
  transform: scale(1.08);
  background: var(--white);
  color: var(--pink-accent);
}

.wishlist-btn.is-active i {
  font-weight: 900;
  color: var(--pink-accent);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background-image: var(--img, none);
  background-position: center;
  background-size: cover;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

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

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-pricing {
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-pricing .price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-900);
}

.product-pricing .installments {
  font-size: 0.72rem;
  color: var(--muted);
}

/* 10. EXTRA MOBILE SECTIONS & NEWSLETTER */
.mobile-extra-section {
  display: none;
}

.newsletter-section {
  padding: 80px 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--green-900), var(--green-950));
  border-radius: var(--radius-md);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  color: var(--white);
  box-shadow: var(--shadow-deep);
}

.newsletter-copy {
  display: flex;
  gap: 20px;
  align-items: center;
}

.newsletter-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.newsletter-copy h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.newsletter-copy p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
}

.newsletter-form input {
  flex-grow: 1;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--green-900);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.features-footer-bar-section {
  padding: 40px 0;
}

.features-footer-container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.footer-feature-item:last-child {
  border-right: none;
}

.footer-feature-item i {
  font-size: 1.25rem;
  color: var(--green-800);
}

.footer-feature-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-900);
}

.footer-feature-text p {
  font-size: 0.72rem;
  color: var(--muted);
}

/* 11. FOOTER STYLING */
.main-footer {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}

.footer-top {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 260px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-850);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-950);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--green-900);
  padding-left: 4px;
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-col p i {
  margin-right: 6px;
  color: var(--green-800);
}

.payment-methods-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.payment-badge {
  width: 42px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--muted);
}

.pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-900);
}

.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 30px 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* 12. DRAWERS & MODALS (CART, LOGIN, SEARCH) */
/* Overlays */
.cart-overlay,
.login-overlay,
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 34, 23, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1050;
}

body.cart-open .cart-overlay,
body.login-open .login-overlay,
body.search-open .search-overlay {
  opacity: 1;
  visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: var(--transition-smooth);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

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

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cart-drawer-header h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.cart-drawer-header h3 span {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--cream-200);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item-img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background-image: var(--img, none);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
}

.cart-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item p {
  font-size: 0.85rem;
  color: var(--green-700);
  font-weight: 700;
  margin-bottom: 8px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--cream-100);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quantity-btn:hover {
  background: var(--cream-200);
}

.quantity-control span {
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.remove-item {
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  transition: var(--transition-smooth);
}

.remove-item:hover {
  color: var(--pink-accent);
}

.empty-cart-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--muted);
  gap: 16px;
}

.empty-cart-message i {
  font-size: 3rem;
  color: rgba(24, 53, 35, 0.15);
}

.empty-cart-message p {
  font-size: 0.95rem;
}

.cart-drawer-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

#cart-total-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--green-900);
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 36px 30px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1100;
}

body.login-open .login-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.login-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.login-modal-head h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-900);
}

.login-modal-head p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.login-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-smooth);
}

.login-close:hover {
  color: var(--green-900);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-900);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form input {
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--cream-100);
  outline: none;
  font-size: 0.9rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  transition: var(--transition-smooth);
}

.login-form input:focus {
  border-color: var(--green-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.08);
}

.login-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-700);
}

.login-links a:hover {
  color: var(--green-900);
  text-decoration: underline;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 580px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 36px 30px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1100;
}

body.search-open .search-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.search-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.search-modal-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-900);
}

.search-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-smooth);
}

.search-close:hover {
  color: var(--green-900);
}

.search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-form input {
  flex-grow: 1;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--cream-100);
  outline: none;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition-smooth);
}

.search-form input:focus {
  border-color: var(--green-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.08);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-800);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip:hover {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}

/* Floating Cart Button & Toast */
.floating-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(24, 53, 35, 0.3);
  z-index: 99;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.floating-cart-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 32px rgba(24, 53, 35, 0.4);
}

.floating-cart-btn i {
  color: var(--white);
}

.floating-cart-btn .cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--pink-accent, #d75f62);
  color: var(--white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream-50);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--green-950);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-deep);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   13. MEDIA QUERIES & RESPONSIVE LAYOUT REDESIGN
   ========================================================================== */

/* Breakpoint A: Tablet landscape & Small Desktop */
@media (max-width: 1024px) {
  .hero-container {
    gap: 30px;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-item {
    border-right: none;
    padding: 8px 0;
  }
  .service-item:nth-child(even) {
    border-left: none;
  }
  .features-footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-feature-item {
    border-right: none;
  }
}

/* Breakpoint B: Small Tablet & Mobile Landscape */
@media (max-width: 768px) {
  .top-announcement-bar {
    display: none;
  }
  .main-header {
    height: 76px;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 16px;
  }
  
  /* Flow logo naturally on the left and hide status badge in header on mobile */
  .logo-area {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    z-index: 5;
  }
  .logo-area .status-badge {
    display: none !important;
  }
  .main-logo {
    height: 40px !important;
  }
  
  .nav-menu {
    display: none; /* Hide standard desktop menu */
  }
  
  .mobile-menu-toggle {
    display: inline-grid; /* Display hamburger menu */
    z-index: 10;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    z-index: 10;
  }
  
  .desktop-login-btn,
  .header-actions .icon-btn:nth-child(3) {
    display: none; /* Hide desktop specific actions */
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-subhighlights {
    justify-content: center;
  }
  .hero-visual {
    margin-inline: auto;
  }
  
  .newsletter-box {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 24px;
    text-align: center;
  }
  .newsletter-copy {
    flex-direction: column;
  }
  .newsletter-copy h3 {
    font-size: 1.5rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  .brand-bio {
    max-width: 100% !important;
    text-align: center;
  }
  .footer-brand .social-links {
    justify-content: center;
  }
  .payment-methods-grid {
    flex-wrap: wrap;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  /* Mobile Bottom Navigation Menu */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(24, 53, 36, 0.06);
    box-shadow: 0 -4px 20px rgba(24, 53, 35, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body {
    padding-bottom: 70px; /* Leave space for bottom bar */
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: var(--transition-smooth);
  }
  .mobile-bottom-nav a i {
    font-size: 1.25rem;
  }
  .mobile-bottom-nav a.active {
    color: var(--green-900);
  }
  .floating-cart-btn {
    bottom: 84px; /* Lift cart button so it doesn't overlap bottom bar */
  }
}

/* Breakpoint C: Mobile Portrait / smartphones (iOS Style Cut) */
@media (max-width: 576px) {
  .section {
    padding: 48px 0;
    padding-inline: 16px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 1.7rem;
  }
  
  .hero-section {
    padding: 30px 0;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-buttons {
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }
  .hero-buttons .btn {
    flex: 1;
    font-size: 0.72rem;
    padding: 0 10px;
    height: 48px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-item {
    padding: 8px 0;
  }
  
  /* PERFECT MOBILE 2x2 GRIDS FOR BOTH PRODUCTS AND CATEGORIES */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card {
    border-radius: var(--radius-sm);
  }
  .category-body {
    padding: 12px;
  }
  .category-body h3 {
    font-size: 0.95rem;
  }
  .category-body p {
    font-size: 0.68rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 10px;
    border-radius: var(--radius-sm);
  }
  .product-badge {
    top: 18px;
    left: 18px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .wishlist-btn {
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .product-image {
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .product-info h3 {
    font-size: 0.85rem;
    height: 2.7em;
    margin-bottom: 4px;
  }
  .product-pricing .price {
    font-size: 1.1rem;
  }
  .product-pricing .installments {
    font-size: 0.65rem;
  }
  .product-card .add-btn {
    height: 38px;
    border-radius: 10px;
    font-size: 0.72rem;
    padding: 0 10px;
  }
  
  .features-footer-container {
    grid-template-columns: 1fr;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
  }
  .footer-feature-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 12px;
  }
  
  /* Compact Drawer & Modal styles for iOS Phones */
  .cart-drawer {
    max-width: 100%;
  }
  .login-modal,
  .search-modal {
    padding: 24px 18px;
  }
}
