:root {
  color-scheme: light;
  --primary: #8ba39b;
  --primary-dark: #728b83;
  --success: #8ba39b;
  --danger: #303a38;
  --warning: #dce4df;
  --light: #f7f6f2;
  --dark: #1f2b28;
  --ink: #2f3937;
  --soft-white: #fdfcf9;
  --sky: #e4e9e6;
  --sky-strong: #afc0ba;
  --deep: #2b3432;
  --card: #f1f3ef;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.page-leaf-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-leaf {
  position: absolute;
  height: auto;
  opacity: 0.09;
  filter: drop-shadow(0 8px 20px rgba(95, 117, 111, 0.08));
}

.leaf-dark {
  filter: invert(1) brightness(0.48) contrast(1.05) drop-shadow(0 8px 20px rgba(95, 117, 111, 0.08));
}

.leaf-1 {
  width: clamp(170px, 17vw, 280px);
  left: -18px;
  top: 8%;
  transform: rotate(-8deg);
}

.leaf-2 {
  width: clamp(160px, 14vw, 250px);
  right: 4%;
  top: 18%;
  transform: rotate(10deg);
}

.leaf-3 {
  width: clamp(180px, 16vw, 290px);
  left: 4%;
  top: 34%;
  transform: rotate(-14deg);
}

.leaf-4 {
  width: clamp(170px, 15vw, 260px);
  right: -30px;
  top: 43%;
  transform: rotate(16deg);
}

.leaf-5 {
  width: clamp(180px, 16vw, 300px);
  left: -32px;
  top: 56%;
  transform: rotate(-6deg);
}

.leaf-6 {
  width: clamp(160px, 14vw, 260px);
  right: 7%;
  top: 66%;
  transform: rotate(12deg);
}

.leaf-7 {
  width: clamp(170px, 15vw, 280px);
  left: 6%;
  top: 80%;
  transform: rotate(-12deg);
}

.leaf-8 {
  width: clamp(160px, 14vw, 250px);
  right: -18px;
  top: 88%;
  transform: rotate(9deg);
}

main,
.site-footer,
#cart-panel,
#cart-backdrop {
  position: relative;
  z-index: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(180, 196, 190, 0.24) 0%, rgba(180, 196, 190, 0) 38%),
    radial-gradient(circle at 12% 62%, rgba(192, 205, 199, 0.18) 0%, rgba(192, 205, 199, 0) 34%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(102, 126, 118, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(102, 126, 118, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 78%);
  z-index: -1;
}

/* Respeta preferencias de usuario */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

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

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(28, 38, 35, 0.06);
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 1px solid rgba(139, 163, 155, 0.12);
}

@media (min-width: 900px) {
  .site-header {
    padding: 1.2rem 3.4rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (min-width: 768px) {
  .brand {
    gap: 0;
  }
}

.brand-logo-wrap {
  width: 160px;
  height: 118px;
  display: grid;
  place-items: center;
}

@media (min-width: 768px) {
  .brand-logo-wrap {
    width: 232px;
    height: 150px;
  }
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(-12px);
}

@media (min-width: 768px) {
  .brand-logo {
    width: 100%;
    height: 100%;
    transform: translateY(-14px);
  }
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.site-nav a {
  color: #556764;
  transition: color 0.3s ease;
  font-size: 1.08rem;
  font-weight: 500;
  display: inline-block;
  position: relative;
}

@media (max-width: 880px) {
  .site-nav a {
    display: none;
  }
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-icon {
  width: 34px;
  height: 34px;
  color: #394744;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
}

.nav-icon:hover {
  color: #1f2b28;
  transform: translateY(-1px);
}

.cart-toggle {
  position: relative;
}

@media (min-width: 768px) {
  .cart-toggle {
    width: 34px;
    height: 34px;
  }
}

.cart-toggle:hover {
  background: transparent;
  color: #1f2b28;
  box-shadow: none;
}

.cart-count {
  background: #d4e1dd;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #33423e;
  position: absolute;
  top: 1px;
  right: 0;
}

/* ========== MAIN ========== */
main {
  padding: 0 0 2rem;
}

/* ========== ABOUT SECTION ========== */
.about {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(217, 226, 208, 0.55) 100%);
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .about-content h2 {
    font-size: 2.5rem;
  }
}

.about-content > p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 700px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .about-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(143, 174, 138, 0.18);
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(143, 174, 138, 0.14);
  border-color: rgba(143, 174, 138, 0.35);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.about-cta {
  margin-top: 2.5rem;
}

.about-cta .button {
  display: inline-block;
}

@media (min-width: 768px) {
  .about {
    padding: 5rem 2rem;
    margin: 3rem 0;
  }
}

/* ========== HERO ========== */
.hero {
  padding: 2.4rem 1.5rem 3.2rem;
  text-align: left;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.8rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-leaf {
  position: absolute;
  height: auto;
  opacity: 0.18;
}

.hero-bg-left {
  left: -36px;
  top: 168px;
  width: clamp(210px, 22vw, 350px);
  filter: invert(1) brightness(0.46) contrast(1.02);
  transform: rotate(-5deg);
}

.hero-bg-right {
  right: -10px;
  top: 105px;
  width: clamp(210px, 20vw, 330px);
  opacity: 0.16;
  transform: rotate(8deg);
}

.hero-brandmark {
  width: clamp(210px, 26vw, 330px);
  margin: 0 0 1.1rem;
  opacity: 0.97;
}

.hero-brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(71, 96, 90, 0.1));
}

@media (min-width: 768px) {
  .hero {
    padding: 3rem 2rem 4rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -18%;
  width: 72%;
  height: 122%;
  background: radial-gradient(ellipse at center, rgba(225, 233, 229, 0.72) 0%, rgba(225, 233, 229, 0.38) 55%, rgba(225, 233, 229, 0) 72%);
  border-top-left-radius: 55% 60%;
  border-bottom-left-radius: 40% 45%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: -120px;
  top: 24%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(169, 187, 181, 0.22) 0%, rgba(169, 187, 181, 0) 72%);
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}

.hero-kicker {
  display: inline-block;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #80938d;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #2b3634;
  line-height: 1.08;
  letter-spacing: 0;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.35rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.2rem;
  }
}

.lead {
  font-size: 1rem;
  color: #697a75;
  max-width: 520px;
  margin: 0 0 2.1rem;
  line-height: 1.8;
  font-weight: 500;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.2rem;
    margin: 0 0 3rem;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-gallery {
  position: relative;
  background: linear-gradient(145deg, rgba(250, 250, 247, 0.98) 0%, rgba(236, 242, 238, 0.96) 100%);
  border: 1px solid rgba(143, 174, 138, 0.22);
  border-radius: 34px;
  padding: 1.2rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(42, 56, 52, 0.12);
  z-index: 2;
}

.hero-track {
  position: relative;
  min-height: 440px;
}

.hero-product {
  width: 100%;
  height: 100%;
  min-height: 440px;
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid rgba(143, 174, 138, 0.18);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(47, 58, 51, 0.12);
  opacity: 0;
  transform: translateX(24px) scale(0.975);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-product.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: #ffffff;
}

.hero-gallery::before,
.hero-gallery::after {
  content: '';
  position: absolute;
  width: 76px;
  height: 38px;
  border: 1px solid rgba(136, 162, 155, 0.25);
  border-radius: 90% 10% 90% 10%;
  pointer-events: none;
}

.hero-gallery::before {
  left: 1rem;
  bottom: 1rem;
  transform: rotate(-24deg);
}

.hero-gallery::after {
  right: 1rem;
  top: 1rem;
  transform: rotate(18deg);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(47, 58, 51, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--deep);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  z-index: 3;
  transition: all 0.28s ease;
}

.hero-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.hero-arrow-prev {
  left: 1.1rem;
}

.hero-arrow-next {
  right: 1.1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 3;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(47, 58, 51, 0.2);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-dot.active {
  transform: scale(1.2);
  background: var(--primary);
}

@media (max-width: 640px) {
  .hero-gallery {
    padding: 0.85rem;
    display: flex;
    justify-content: center;
  }

  .hero-track {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    min-height: 320px;
  }

  .hero-product {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 280px;
    height: auto;
    transform: translateX(-50%) scale(0.98);
  }

  .hero-product.active {
    transform: translateX(-50%) scale(1);
  }

  .hero-product img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .hero-track,
  .hero-product {
    min-height: 300px;
  }

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

  .hero-arrow-prev {
    left: 0.55rem;
  }

  .hero-arrow-next {
    right: 0.55rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-kicker {
    font-size: 0.7rem;
  }
}

.hero-benefits {
  max-width: 1220px;
  margin: 0 auto 2.4rem;
  padding: 1.2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 174, 138, 0.2);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(47, 58, 51, 0.08);
}

.benefit-item {
  padding: 0.45rem 1rem;
  border-left: 1px solid rgba(159, 182, 145, 0.22);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(139, 163, 155, 0.3);
  color: #7f978f;
  display: grid;
  place-items: center;
  margin-top: 0.12rem;
}

.benefit-icon svg {
  width: 21px;
  height: 21px;
}

.benefit-item:first-child {
  border-left: none;
}

.benefit-item h3 {
  font-size: 0.98rem;
  margin: 0 0 0.22rem;
  color: #33414a;
  grid-column: 2;
}

.benefit-item p {
  font-size: 0.88rem;
  color: #738580;
  margin: 0;
  grid-column: 2;
}

@media (min-width: 760px) {
  .hero-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.95rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-brandmark {
    width: 170px;
    margin-bottom: 0.9rem;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero-track,
  .hero-product {
    min-height: 360px;
  }

  .hero-bg-left {
    left: -48px;
    top: 148px;
    width: 196px;
    opacity: 0.2;
  }

  .hero-bg-right {
    right: -22px;
    top: 64px;
    width: 150px;
    opacity: 0.14;
  }

  .page-leaf {
    opacity: 0.07;
  }

  .leaf-1,
  .leaf-3,
  .leaf-5,
  .leaf-7 {
    width: 150px;
  }

  .leaf-2,
  .leaf-4,
  .leaf-6,
  .leaf-8 {
    width: 130px;
  }

  .benefit-item {
    grid-template-columns: 36px 1fr;
    padding: 0.4rem 0.7rem;
  }

  .benefit-icon {
    width: 34px;
    height: 34px;
  }

  .benefit-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1080px) {
  .hero-benefits {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.25rem 1.4rem;
  }
}

.button {
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(143, 174, 138, 0.3);
}

.button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 151, 117, 0.4);
}

.button.ghost {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.button.ghost:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(143, 174, 138, 0.3);
}

/* ========== SECTION HEAD ========== */
.section-head {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 3rem;
    padding: 2rem;
  }
}

.section-head h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 2.5rem;
  }
}

.section-head p {
  color: #666;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ========== FILTERS ========== */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .filters {
    padding: 0 2rem;
  }
}

#category-filter {
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 25px;
  font-size: 1rem;
  background: white;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#category-filter:hover {
  background: var(--primary);
  color: white;
}

/* ========== PRODUCT GRID ========== */
.product-grid,
.popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 1rem 3rem;
}

@media (min-width: 640px) {
  .product-grid,
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .product-grid,
  .popular-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem 3rem;
  }
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  will-change: transform;
  contain: content;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(143, 174, 138, 0.22);
}

.product-card.popular {
  border: 2px solid var(--warning);
}

.product-image {
  width: 100%;
  height: 200px;
  background: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-emoji {
  font-size: 4rem;
  display: block;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  will-change: transform;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  background: #ffffff;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .product-emoji {
    animation: none;
  }
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--warning);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.product-description {
  padding: 0 1.5rem;
  color: #666;
  font-size: 0.9rem;
  flex-grow: 1;
  margin: 0.5rem 0 1rem;
}

.product-meta {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  min-width: 0;
}

.add-to-cart {
  flex: 0 0 auto;
  border-radius: 25px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(143, 174, 138, 0.25);
}

.add-to-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(122, 151, 117, 0.35);
}

@media (max-width: 640px) {
  .product-grid,
  .popular-grid {
    padding: 0 0 3rem;
  }

  .product-image {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: #ffffff;
  }

  .product-photo {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    padding: 0;
    display: block;
  }
}

/* ========== CART PANEL ========== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 98;
}

.cart-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

#cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80vw;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  #cart-panel {
    width: clamp(300px, 90vw, 500px);
  }
}

#cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--sky-strong));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.cart-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

#cart-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.cart-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  min-width: 0;
}

.item-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-info h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  color: var(--ink);
  font-weight: 700;
  transition: all 0.2s ease;
}

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

.qty-display {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.btn-remove {
  color: var(--danger);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-remove:hover {
  transform: scale(1.2);
}

#cart-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #999;
}

#cart-empty p {
  margin: 0;
  line-height: 1.8;
}

.text-muted {
  font-size: 0.9rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  background: var(--light);
}

.cart-summary {
  margin-bottom: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

#send-whatsapp {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#send-whatsapp:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.02);
}

#send-whatsapp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#clear-cart {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 2px solid #ddd;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#clear-cart:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(135deg, var(--deep) 0%, #051f3f 100%);
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .site-footer {
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
  }
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
  }
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-section a:hover {
  color: #b8c8a8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(184, 200, 168, 0.3);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ========== CTA SECTION ========== */
.cta {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(143, 174, 138, 0.07) 0%, rgba(184, 200, 168, 0.09) 100%);
}

@media (min-width: 768px) {
  .cta {
    padding: 5rem 2rem;
  }
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(122, 151, 117, 0.25);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 4rem 3rem;
  }
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card h2 {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-card h2 {
    font-size: 2.2rem;
  }
}

.cta-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

#contact-btn {
  background: white;
  color: var(--primary);
  padding: 1.1rem 2.4rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

#contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  background: #f3f8ef;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  z-index: 997;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(143, 174, 138, 0.4);
}

.whatsapp-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .whatsapp-logo {
    width: 36px;
    height: 36px;
  }
}

.footer-social-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: inline-block;
}

/* ========== MODAL DETALLE PRODUCTO ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

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

.modal-container {
  background: white;
  width: 100%;
  max-width: 1100px;
  max-height: 95vh;
  border-radius: 24px;
  position: relative;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .modal-product-detail {
    grid-template-columns: 1fr 1.3fr;
    padding: 1.5rem;
    gap: 1rem;
  }
}

.modal-product-image {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: grid;
  place-items: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  padding: 8px;
}

.modal-product-image::before,
.modal-product-image::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
  filter: invert(1) brightness(2) contrast(0.8);
}

.modal-product-image::before {
  top: 10px;
  left: 8px;
  background-image: url('assets/1.png');
  transform: rotate(-12deg);
}

.modal-product-image::after {
  bottom: 10px;
  right: 8px;
  background-image: url('assets/2.png');
  transform: rotate(10deg);
}

.modal-product-image .product-emoji {
  font-size: 8rem;
}

.modal-product-image .product-photo {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 10px;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .modal-product-image .product-photo {
    max-height: 380px;
  }
}

.modal-product-info {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-product-info h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

@media (min-width: 768px) {
  .modal-product-info h2 {
    font-size: 2.3rem;
  }
}

.modal-description {
  font-size: 1rem;
  color: #4f4f4f;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .modal-description {
    font-size: 1.05rem;
  }
}

.modal-description p {
  margin-bottom: 0.6rem;
}

.modal-description-list {
  margin: 0 0 0.9rem 1rem;
  padding-left: 1rem;
}

.modal-description-list li {
  margin-bottom: 0.5rem;
}

.modal-price {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

@media (min-width: 768px) {
  .modal-price {
    font-size: 1.6rem;
  }
}

.modal-quantity {
  margin-bottom: 2rem;
}

.modal-quantity h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--sky);
  border-radius: 12px;
  width: fit-content;
  overflow: hidden;
  background: var(--soft-white);
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  transition: all 0.2s ease;
  user-select: none;
}

.qty-btn:hover {
  background: var(--sky);
}

.qty-btn:active {
  background: var(--sky-strong);
}

.qty-input {
  width: 50px;
  height: 44px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-sizes {
  margin-bottom: 1.5rem;
}

.modal-sizes h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

.size-options {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.size-btn {
  padding: 0.35rem 0.7rem;
  background: white;
  border: 2px solid var(--sky);
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.12s ease;
  font-size: 0.9rem;
}

.size-btn:hover {
  background: var(--soft-white);
  border-color: var(--primary);
}

.size-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(143, 174, 138, 0.25);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 480px) {
  .modal-actions {
    flex-direction: row;
  }
}

.modal-actions .button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
}

.buy-now-whatsapp {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(143, 174, 138, 0.3) !important;
}

.buy-now-whatsapp:hover {
  background: var(--primary-dark) !important;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(143, 174, 138, 0.25);
  }
  50% {
    box-shadow: 0 4px 30px rgba(143, 174, 138, 0.45);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
  }

  .site-nav a {
    display: none;
  }

  .brand-logo-wrap {
    width: 120px;
    height: 86px;
  }

  .nav-icon,
  .cart-toggle {
    width: 32px;
    height: 32px;
  }

  .hero-layout {
    gap: 1.5rem;
  }

  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-gallery {
    padding: 0.85rem;
    display: flex;
    justify-content: center;
  }

  .hero-track {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    min-height: 300px;
  }

  .hero-product {
    width: 100%;
    max-width: 240px;
    height: auto;
    left: 50%;
    right: auto;
    transform: translateX(calc(-50% + 24px)) scale(0.975);
  }

  .hero-product.active {
    transform: translateX(-50%) scale(1);
  }

  .hero-product img {
    height: auto;
  }

  .product-grid,
  .popular-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem 2rem;
  }

  #cart-panel {
    width: 100%;
  }

  .cart-backdrop {
    display: none;
  }

  #cart-panel.open {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .section-head {
    padding: 1rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .filters {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .brand-logo-wrap {
    width: 104px;
    height: 76px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .lead {
    margin-bottom: 1.4rem;
  }

  .hero-track {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    min-height: 240px;
  }

  .hero-product {
    width: 100%;
    max-width: 210px;
    height: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%) scale(0.975);
  }

  .hero-product.active {
    transform: translateX(-50%) scale(1);
  }

  .hero-product img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .product-grid,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .cart-toggle {
    width: 30px;
    height: 30px;
  }

  .site-nav {
    gap: 0.55rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Social link icon styles */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2b3434;
}

.social-link svg {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.instagram-link svg { color: var(--primary-dark); }
.whatsapp-link svg { color: var(--primary); }

