/* Esa Drinks - Shared Styles */

/* Font Faces */
@font-face {
  font-family: 'ABC Ginto';
  src: url('../fonts/ABCGinto-Thin.woff2') format('woff2'),
       url('../fonts/ABCGinto-Thin.woff') format('woff'),
       url('../fonts/ABCGinto-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC Ginto';
  src: url('../fonts/ABCGinto-Light.woff2') format('woff2'),
       url('../fonts/ABCGinto-Light.woff') format('woff'),
       url('../fonts/ABCGinto-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC Ginto';
  src: url('../fonts/ABCGinto-Regular.woff2') format('woff2'),
       url('../fonts/ABCGinto-Regular.woff') format('woff'),
       url('../fonts/ABCGinto-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABC Ginto';
  src: url('../fonts/ABCGinto-Medium.woff2') format('woff2'),
       url('../fonts/ABCGinto-Medium.woff') format('woff'),
       url('../fonts/ABCGinto-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --lime: #D6F95F;
  --lime-dark: #C0CA33;
  --ink-blue: #2F3A7E;
  --black: #1a1a1a;
  --gray-dark: #4a4a4a;
  --gray: #8a8a8a;
  --gray-light: #f5f4f2;
  --gray-card: #eeede9;
  --white: #fafaf9;
  --orange: #E8A87C;
  --green: #85CDCA;
  --pink: #E8A0A0;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'ABC Ginto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top Accent Bar */
.accent-bar {
  height: 28px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}

.accent-bar span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.02em;
}

/* Bottom Accent Bar - Scrolling Marquee */
.accent-bar.scrolling {
  overflow: hidden;
  justify-content: flex-start;
}

.marquee {
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  align-items: center;
  padding-right: 50px;
}

.marquee-content.spaced {
  padding-right: 80px;
}

.marquee-content span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.02em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
header {
  padding: 0.75rem 40px 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
  margin-left: -12px;
}

.logo-img {
  height: 98px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Group icons closer together */
nav .cart-icon,
nav .social-icon {
  margin-left: -0.875rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-blue);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

nav a:hover {
  opacity: 0.7;
}

nav a.active {
  color: var(--ink-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Cart in nav */
nav .cart-icon {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-blue);
  position: relative;
  font-size: 0.75rem;
  align-items: center;
  gap: 0.25rem;
}

nav .cart-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-blue);
}

nav .cart-icon:hover {
  opacity: 0.7;
}

nav .cart-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-blue);
}

/* Social icons in nav */
nav .social-icon {
  display: flex;
  align-items: center;
  color: var(--ink-blue);
  transition: opacity 0.2s;
}

nav .social-icon:hover {
  opacity: 0.7;
}

nav .social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--ink-blue);
}

.header-right {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-right .cart-icon {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-blue);
  position: relative;
  font-size: 0.75rem;
  align-items: center;
  gap: 0.25rem;
}

.header-right .cart-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-blue);
}

.header-right .cart-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-blue);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 2rem;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav a {
  font-size: 1.5rem;
  color: var(--black);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  display: block;
}

.mobile-nav-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 2rem;
}

.mobile-nav-social a {
  border-bottom: none;
  padding: 0;
  display: flex;
}

.mobile-nav-social svg {
  width: 24px;
  height: 24px;
  fill: var(--black);
}

/* Hero */
.hero {
  width: 100%;
  padding: 0 40px;
}

.hero-image {
  width: 100%;
  height: 90vh;
  min-height: 540px;
  max-height: 780px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

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

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8dcc8 50%, #f0e4d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

.hero-placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* Tagline */
.tagline {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
}

.tagline-img {
  max-width: 260px;
  height: auto;
}

.tagline h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--ink-blue);
  line-height: 1.1;
}

/* Product Filter */
.product-filter {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.5rem 2rem 2rem;
}

.filter-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--ink-blue);
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
  text-decoration: none;
}

.filter-btn:hover {
  opacity: 0.7;
}

.filter-btn.active {
  color: var(--ink-blue);
  text-decoration: none;
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 12px;
  background-image: url('/images/underline.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Product Grid */
.products {
  width: 100%;
  padding: 0 40px 3rem;
}

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

.product-card {
  background: none;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

/* Hover effects only on devices with hover capability (not touch) */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
  }

  .product-card:hover .product-hover-overlay {
    opacity: 1;
  }

  .product-card:hover .product-image img {
    opacity: 0;
  }

  .product-card:hover .product-cta {
    opacity: 0;
  }

  .product-card:hover .staff-pick-badge {
    opacity: 0;
  }
}

.staff-pick-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 0.25rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: var(--gray-dark);
  border-radius: 2px;
  z-index: 1;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

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

.can {
  width: 70px;
  height: 160px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.can-tropicana { background: linear-gradient(180deg, #F5D4A0 0%, #E8A87C 100%); }
.can-limoncillo { background: linear-gradient(180deg, #A8E6CF 0%, #85CDCA 100%); }
.can-frutos-rojos { background: linear-gradient(180deg, #F5C6C6 0%, #E8A0A0 100%); }
.can-jengibre { background: linear-gradient(180deg, #F5E6A0 0%, #E8D87C 100%); }
.can-hibisco { background: linear-gradient(180deg, #E6A8CF 0%, #CD85B8 100%); }
.can-reserva { background: linear-gradient(180deg, #D4C4B0 0%, #B8A898 100%); }
.can-maracuya { background: linear-gradient(180deg, #FFE082 0%, #FFB74D 100%); }
.can-limaton { background: linear-gradient(180deg, #C5E1A5 0%, #9CCC65 100%); }

.can::before {
  content: 'esa soda';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.can.kombucha::before { content: 'esa kombucha'; }
.can.reserva::before { content: 'esa reserva'; }

.product-name {
  font-size: 0.8rem;
  color: var(--ink-blue);
}

.product-name .highlight {
  color: var(--ink-blue);
  font-weight: 500;
}

.product-cta {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--lime);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
}

.product-cta .highlight {
  font-weight: 500;
}

/* Product Card Hover Overlay */
.product-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e0f86b;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  z-index: 2;
}

.hover-info {
  text-align: left;
  padding-top: 9%;
  padding-left: 7%;
}

.hover-category {
  font-size: 1rem;
  font-weight: 500;
  color: #233c8c;
  margin-bottom: 0;
}

.hover-flavor {
  font-size: 1rem;
  font-weight: 500;
  color: #233c8c;
  margin-bottom: 3.5rem;
}

.hover-volume {
  font-size: 1rem;
  font-weight: 400;
  color: #233c8c;
}

.hover-mas {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: auto;
}

.product-image img,
.product-cta,
.staff-pick-badge {
  transition: opacity 0.3s ease;
}

.product-price {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Page Styles */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-content.full-width {
  max-width: none;
  padding: 3rem 0;
}

/* Wider layout for product pages */
.page-content.product-page {
  max-width: none;
  padding: 0 40px 3rem 40px;
}

.page-content.product-page > .back-link:not(.back-link-mobile) {
  display: none;
}

.page-content.product-page .back-link-mobile {
  display: none;
}

.page-content.product-page .product-info .back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.page-content.product-page .product-detail {
  gap: 3rem;
}

.page-content.product-page .product-images-column {
  margin-left: 0;
}

.page-content.product-page .product-gallery {
  min-height: 700px;
  border-radius: 12px;
}

.page-content.product-page .product-gallery img {
  border-radius: 12px;
}

.page-content.product-page .product-gallery-secondary img {
  border-radius: 12px;
}

.page-content.product-page .product-info {
  max-width: 480px;
  padding-top: 1.5rem;
}

.page-header {
  margin-bottom: 3rem;
  padding: 0 40px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray);
  font-size: 1rem;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  background: var(--gray-card);
  border-radius: 4px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* FAQ Page */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 0 40px;
}

.faq-column {
  display: flex;
  flex-direction: column;
}

.faq-column-image {
  width: 100%;
  height: 340px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

.faq-section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--black);
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-top: 0.75rem;
  color: var(--gray-dark);
  line-height: 1.6;
  font-size: 0.85rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lime-dark);
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.contact-info a {
  color: var(--ink-blue);
  text-decoration: none;
}

/* Magazine Page */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.magazine-card {
  text-decoration: none;
  color: inherit;
}

.magazine-card-image {
  height: 300px;
  background: var(--gray-card);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.magazine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.magazine-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.magazine-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Stores Page */
.stores-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}

.stores-intro p {
  color: var(--gray-dark);
  line-height: 1.8;
}

.store-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.store-card {
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: 4px;
}

.store-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.store-card p {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 0.25rem;
}

.store-card .city {
  color: var(--gray);
  font-size: 0.8rem;
}

/* Nuestra Historia Section */
.nuestra-historia-section {
  padding: 1.5rem 40px 3rem;
}

.historia-hero {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.historia-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia-hero h2 {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: 'ABC Ginto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: #e0f86b;
}

.historia-content {
  max-width: 1200px;
  margin-left: 10%;
}

.historia-block {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 13rem;
  margin-bottom: 2.5rem;
}

.historia-block h3 {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink-blue);
}

.historia-text p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

.historia-text p:last-child {
  margin-bottom: 0;
}

/* Esa Magazine Section */
.esa-magazine-section {
  padding: 0 40px 3rem;
}

.magazine-hero {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.magazine-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-hero h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'ABC Ginto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 5.4rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.esa-magazine-section .magazine-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.esa-magazine-section .magazine-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

.esa-magazine-section .magazine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.esa-magazine-section .magazine-card:hover img {
  transform: scale(1.05);
}

.magazine-card-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #e0f86b;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
}

/* Button styles */
.btn {
  padding: 0.875rem 1.5rem;
  background: var(--black);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--gray-dark);
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

.newsletter-form button {
  padding: 0.875rem 1.5rem;
  background: var(--black);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--gray-dark);
}

/* Footer */
footer {
  background: var(--lime);
  padding: 3rem 40px 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-col h4 {
  font-size: 0.9375rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--ink-blue);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-blue);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-blue);
  opacity: 0.8;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
}

.cart-overlay.open .cart-sidebar {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1rem;
  font-weight: 500;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--gray);
  padding: 3rem 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 60px;
  height: 80px;
  background: var(--gray-card);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image .can {
  width: 30px;
  height: 70px;
  border-radius: 4px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--gray);
}

.cart-item-price {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--gray);
  cursor: pointer;
  text-decoration: underline;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cart-qty-btn:hover {
  border-color: var(--black);
  background: var(--gray-light);
}

.cart-item-count {
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: #233c8c;
  color: #e0f86b;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.checkout-btn:disabled {
  background: var(--gray);
  color: white;
  cursor: not-allowed;
}

/* Product Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 0;
}

/* Container for gallery + secondary images (kombucha pages) */
.product-images-column {
  display: flex;
  flex-direction: column;
}

.product-gallery {
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Secondary images for kombucha products */
.product-gallery-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.product-gallery-secondary img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.product-info h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.flavor-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-info .flavor {
  display: inline-block;
  background: var(--lime);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  font-size: 0.9rem;
}

.subscription-badge {
  display: none;
  background: var(--ink-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  font-size: 0.9rem;
}

.subscription-badge.visible {
  display: inline-block;
}

.product-info .price {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-info .description {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.variant-selector {
  margin-bottom: 2rem;
}

.variant-selector label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.variant-options {
  display: flex;
  gap: 0.75rem;
}

.variant-btn {
  padding: 0.75rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-btn:hover {
  border-color: var(--black);
}

.variant-btn.selected {
  border-color: #233c8c;
  background: #233c8c;
  color: white;
}

.variant-btn.subscription {
  border-color: var(--lime-dark);
}

.variant-btn.subscription.selected {
  border-color: #e0f86b;
  background: #e0f86b;
  color: var(--black);
}

/* Related Products */
.related-products {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.page-content.full-width .related-products {
  padding-left: 40px;
  padding-right: 40px;
}

.related-products h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-blue);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.related-card .product-cta {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
}

.add-to-cart {
  width: 100%;
  padding: 1rem 2rem;
  background: #233c8c;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

/* Handwritten style badges */
.price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.price-row .price {
  margin-bottom: 0;
}

.ahorra-badge {
  display: none;
  height: 49px;
  width: auto;
}

.ahorra-badge.visible {
  display: inline-block;
}

.hecho-en-mexico {
  display: block;
  height: 43px;
  width: auto;
  margin-top: 1rem;
}

.product-details-extra {
  margin-top: 1.25rem;
  padding-top: 0;
}

.product-details-extra h3 {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #233c8c;
}

.product-details-extra ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.product-details-extra li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.product-details-extra li::before {
  content: '·';
  position: absolute;
  left: 0;
}

.product-details-extra p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

.ingredients-note {
  font-size: 0.8rem;
  color: var(--gray);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--black);
}

/* Article Page */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--gray);
  font-size: 0.9rem;
}

.article-hero {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 700px;
  margin: 0 auto;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
}

/* Magazine Article - New Layout */
.magazine-article-hero {
  position: relative;
  width: 100%;
  padding: 0 40px;
  margin-bottom: 0;
}

.magazine-article-hero-inner {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 8px;
}

.magazine-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.magazine-article-category {
  font-size: 3rem;
  font-weight: 500;
  color: #e0f86b;
  margin-bottom: 0;
}

.magazine-article-breadcrumb {
  font-size: 0.85rem;
  color: #e0f86b;
}

.magazine-article-breadcrumb a {
  color: #e0f86b;
  text-decoration: none;
}

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

.magazine-article-breadcrumb span {
  color: #e0f86b;
  opacity: 0.7;
}

/* Magazine Article - Two Column Layout */
.magazine-article-body {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  padding: 3rem 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.magazine-article-sidebar {
  padding-top: 0.5rem;
}

.magazine-article-back {
  display: inline-block;
  font-size: 0.85rem;
  color: #233c8c;
  text-decoration: none;
  margin-bottom: 2rem;
}

.magazine-article-back:hover {
  opacity: 0.7;
}

.magazine-article-title {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: #233c8c;
  margin-bottom: 1.5rem;
}

.magazine-article-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.magazine-article-date {
  font-size: 0.9rem;
  color: #233c8c;
}

.magazine-article-author {
  font-size: 0.9rem;
  font-weight: 500;
  color: #233c8c;
}

.magazine-article-author .signature {
  height: 2.25rem;
  margin-left: 0.25rem;
  vertical-align: baseline;
}

.magazine-article-text {
  padding-top: 0.5rem;
}

.magazine-article-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.magazine-article-text h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  color: var(--black);
}

/* Mobile back link for magazine articles - shown above hero */
.magazine-article-back-mobile {
  display: none;
}

/* Responsive for magazine articles */
@media (max-width: 900px) {
  .magazine-article-back-mobile {
    display: block;
    padding: 1rem 1rem 0.5rem;
    font-size: 0.85rem;
    color: #233c8c;
    text-decoration: none;
  }

  .magazine-article-back-mobile:hover {
    opacity: 0.7;
  }

  /* Hide the back link in sidebar on mobile */
  .magazine-article-back {
    display: none;
  }

  .magazine-article-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .magazine-article-hero {
    padding: 0 1rem;
  }

  .magazine-article-hero-inner {
    height: 35vh;
    min-height: 250px;
  }

  .magazine-article-hero-overlay {
    padding: 1.5rem;
  }

  .magazine-article-title {
    font-size: 1.75rem;
  }

  .magazine-article-category {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .magazine-article-hero-inner {
    height: 30vh;
    min-height: 200px;
  }

  .magazine-article-title {
    font-size: 1.5rem;
  }

  .magazine-article-category {
    font-size: 1.5rem;
  }
}

/* Newsletter Page - New Layout */
.newsletter-layout {
  display: flex;
  gap: 2rem;
  padding: 2rem 40px 4rem;
}

.newsletter-content-box {
  flex: 2;
  border: 1px solid #233c8c;
  border-radius: 8px;
  padding: 3rem;
  background: #fff;
  height: fit-content;
  text-align: left;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 500;
  color: #233c8c;
  margin-bottom: 1.5rem;
}

.newsletter-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 3rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  align-items: flex-start;
  margin-left: 0;
  margin-right: auto;
}

.newsletter-form input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: #233c8c;
  color: #e0f86b;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-form button:hover {
  background: #e0f86b;
  color: #233c8c;
}

.newsletter-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  align-self: flex-start;
}

.newsletter-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.newsletter-footer {
  background: var(--lime);
  padding: 3rem 40px;
}

.newsletter-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.newsletter-footer .footer-col h4 {
  color: #233c8c;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.newsletter-footer .footer-col a {
  display: block;
  color: #233c8c;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.newsletter-footer .footer-col a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .newsletter-layout {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .newsletter-content-box {
    padding: 2rem;
    height: auto;
  }

  .newsletter-image {
    order: -1;
    width: 100%;
  }

  .newsletter-image img {
    min-height: 250px;
  }

  .newsletter-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .product-detail,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-content.product-page .back-link-mobile {
    display: inline-flex;
    margin-bottom: 1.5rem;
  }

  .page-content.product-page .product-info .back-link {
    display: none;
  }

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

  nav {
    display: none;
  }

  .header-right {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .product-grid,
  .magazine-grid,
  .store-list,
  .esa-magazine-section .magazine-cards {
    grid-template-columns: 1fr;
  }

  .historia-hero,
  .magazine-hero {
    height: 250px;
  }

  .historia-hero h2,
  .magazine-hero h2 {
    font-size: 3.6rem;
  }

  .nuestra-historia-section,
  .esa-magazine-section {
    padding: 3rem 1rem 2rem;
  }

  .historia-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .variant-options {
    flex-wrap: wrap;
  }

  header {
    padding: 1rem;
  }

  .hero {
    padding: 0;
  }

  .hero-image {
    height: 50vh;
  }

  .tagline h2 {
    font-size: 2rem;
  }

  .product-filter {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .faq-column-image {
    height: 200px;
  }

  .page-header {
    padding: 0 1rem;
  }

  .page-content {
    padding: 2rem 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Honeypot field for spam protection */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
  padding: 1rem;
}

.checkout-modal.open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-content {
  background: white;
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
}

.checkout-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.checkout-modal-close:hover {
  color: var(--black);
}

.checkout-modal h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #233c8c;
  margin-bottom: 0.75rem;
}

.checkout-modal p {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.checkout-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-modal-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: center;
}

.checkout-modal-form input[type="email"]:focus {
  outline: none;
  border-color: #233c8c;
}

.checkout-modal-form button[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #233c8c;
  color: #e0f86b;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-modal-form button[type="submit"]:hover {
  background: #1a2d6b;
}

.checkout-modal-form button[type="submit"]:disabled {
  background: var(--gray);
  cursor: not-allowed;
}

.checkout-modal-success {
  padding: 1rem 0;
}

.checkout-modal-success h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.checkout-modal-success p {
  margin-bottom: 2rem;
}

.checkout-modal-success .btn {
  background: #233c8c;
  color: #e0f86b;
}
