/* Abasta Market — Demo UI moderna y minimalista */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --green-light: #76BA43;
  --green: #53A438;
  --green-dark: #2D7234;
  --green-darker: #274825;
  --green-soft: #EEF6E8;
  --green-muted: rgba(118, 186, 67, 0.14);
  --orange: #F58220;
  --orange-light: #FFCD22;
  --orange-soft: #FFF4E8;
  --brand-gradient: linear-gradient(
    160deg,
    var(--green-darker) 0%,
    var(--green-dark) 42%,
    #3d7a32 68%,
    #c96a18 88%,
    var(--orange) 100%
  );
  --white: #FFFFFF;
  --bg: #F5F7F4;
  --bg-warm: #FAFAF8;
  --surface: #FFFFFF;
  --border: #E2E8E0;
  --border-light: #EEF2EC;
  --text: #1A1F1A;
  --text-muted: #5C665C;
  --shadow-sm: 0 1px 3px rgba(26, 31, 26, 0.05);
  --shadow-md: 0 8px 28px rgba(45, 114, 52, 0.09);
  --shadow-lg: 0 24px 56px rgba(45, 114, 52, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; border: none; background: none; }

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="checkbox"]:hover {
  border-color: var(--green-light);
}

input[type="checkbox"]:checked {
  border-color: transparent;
  background: var(--brand-gradient);
  box-shadow: 0 2px 8px rgba(45, 114, 52, 0.22), 0 1px 4px rgba(245, 130, 32, 0.12);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  overflow: visible;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.logo img { height: 38px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.nav-main a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-main a:hover,
.nav-main a.active {
  background: rgba(118, 186, 67, 0.12);
  color: var(--green-dark);
}

/* Categories dropdown — desktop */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-trigger svg {
  transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown-trigger:hover {
  background: rgba(118, 186, 67, 0.12);
  color: var(--green-dark);
}

.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 220px 1fr;
  width: min(520px, 92vw);
  min-height: 320px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  overflow: hidden;
}

.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cat-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  border-right: 1px solid var(--border-light);
  max-height: 360px;
  overflow-y: auto;
}

.nav-cat-item {
  position: relative;
}

.nav-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.nav-cat-link::after {
  content: '›';
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-cat-item.active .nav-cat-link,
.nav-cat-link:hover {
  background: rgba(118, 186, 67, 0.1);
  color: var(--green-dark);
}

.nav-cat-item.active .nav-cat-link::after,
.nav-cat-link:hover::after {
  opacity: 1;
}

.nav-cat-item .nav-subcat-list {
  display: none;
}

.nav-subcat-panel {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-subcat-head {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-dark);
}

.nav-subcat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-subcat-grid a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-subcat-grid a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.nav-subcat-all {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-dark);
}

.nav-subcat-all:hover {
  text-decoration: underline;
}

.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(118, 186, 67, 0.18);
}

.header-search svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background var(--transition);
  cursor: pointer;
}

.icon-btn:hover { background: var(--bg); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background:
    linear-gradient(160deg, var(--green-soft) 0%, var(--white) 42%, var(--orange-soft) 100%);
  overflow: hidden;
}

.hero .hero-banner-strip {
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(118, 186, 67, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(245, 130, 32, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 1.75rem;
}

.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero-search input {
  flex: 1;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.95rem;
}

.hero-search input:focus {
  outline: none;
  border-color: var(--green-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), filter var(--transition);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(45, 114, 52, 0.22), 0 2px 8px rgba(245, 130, 32, 0.12);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(45, 114, 52, 0.28), 0 4px 12px rgba(245, 130, 32, 0.2);
}

.btn-outline {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--green-light); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-dark);
}

.hero-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* Logo hero */
.hero-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero-logo {
  width: min(320px, 90%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(45, 114, 52, 0.12));
}

/* Slider a lo largo — debajo del hero */
.hero-slider {
  width: 100%;
  margin-top: 2rem;
}

/* Banners promocionales — ancho completo (fuera del .container) */
.hero-banner-strip {
  width: 100%;
  margin-top: 2rem;
}

.hero-banner-strip .hero-carousel--promo,
.hero-carousel--promo {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1280 / 384;
  min-height: clamp(240px, 30vw, 400px);
  max-height: none;
  height: auto;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.hero-slider .hero-carousel:not(.hero-carousel--promo) {
  width: 100%;
  max-width: none;
  aspect-ratio: 1280 / 384;
  max-height: 220px;
  border-radius: var(--radius);
}

/* Hero carousel — proporción banner 1280×384 */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  touch-action: pan-y;
  cursor: grab;
}

.hero-carousel.is-dragging {
  cursor: grabbing;
}

.hero-carousel-track,
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide,
.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

/* Banner slides */
.hero-slide-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.hero-slide-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel--promo .hero-slide-banner img {
  object-fit: cover;
}

.hero-slide-cta {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition);
}

.hero-slide-cta:hover {
  transform: translateY(-1px);
  background: var(--green-soft);
}

/* Product recommendation slides */
.hero-slide-products {
  padding: 0.65rem 1rem;
  background: linear-gradient(160deg, var(--green-soft) 0%, var(--white) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide-head {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.hero-slide-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-dark);
}

.hero-slide-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-rec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.hero-rec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.6rem 0.45rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition);
  gap: 0.3rem;
}

.hero-rec-card:hover {
  border-color: var(--green-light);
}

.hero-rec-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hero-rec-card strong {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.hero-rec-card span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-dark);
}

.hero-rec-link {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--green-dark) !important;
  margin-top: 0.25rem;
}

/* Carousel controls (shared) */
.carousel-btn,
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
  z-index: 2;
}

.carousel-btn:hover,
.hero-carousel-btn:hover {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
}

.carousel-btn.prev,
.hero-carousel-btn.prev { left: 0.4rem; }
.carousel-btn.next,
.hero-carousel-btn.next { right: 0.4rem; }

.carousel-dots,
.hero-carousel-dots {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.carousel-dot,
.hero-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width var(--transition), background var(--transition);
}

.hero-carousel-dots .carousel-dot,
.hero-carousel-dots .hero-carousel-dot {
  background: var(--border);
}

.carousel-dot.active,
.hero-carousel-dot.active {
  width: 16px;
  background: var(--green);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(118, 186, 67, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.float-text strong { display: block; font-size: 0.85rem; }
.float-text span { font-size: 0.75rem; color: var(--text-muted); }

/* ── Sections ── */
section { padding: 4rem 0; }

.section-alt { background: var(--white); }
.section-muted { background: var(--bg-warm); }

/* Promo strip */
.promo-strip {
  background: var(--brand-gradient);
  color: white;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.promo-strip span { opacity: 0.85; }
.promo-strip strong { color: var(--orange-light); }

/* Hero mini products */
.hero-products {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-product-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-product-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.35rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
  white-space: nowrap;
}

.link-arrow:hover { gap: 0.55rem; }

/* Hero product slider */
.hero-products-wrap {
  margin-top: 1rem;
}

.hero-products-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.hero-product-slider {
  position: relative;
  overflow: hidden;
  touch-action: pan-x pinch-zoom;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.hero-product-slider.is-dragging {
  cursor: grabbing;
}

.hero-product-slider-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  will-change: transform;
}

.hero-product-slider .hero-rec-card {
  flex: 0 0 108px;
  min-width: 108px;
  padding: 0.65rem 0.5rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hero-product-slider .hero-rec-card:hover {
  border-color: var(--green-light);
}

.hero-product-slider .hero-rec-card img {
  width: 64px;
  height: 64px;
}

.hero-product-slider .hero-rec-card strong {
  font-size: 0.68rem;
}

.hero-product-slider .hero-rec-card span {
  font-size: 0.78rem;
}

/* Recomendados — mismo ancho que .container / Ofertas destacadas */
.home-recomendados-slider {
  -webkit-mask-image: none;
  mask-image: none;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem 0.75rem;
}

.home-recomendados-slider .hero-rec-card {
  flex: 0 0 120px;
  min-width: 120px;
}

/* Categories slider */
.cat-slider {
  position: relative;
  overflow: hidden;
  margin: 0 -0.25rem;
  padding: 0.25rem 0 0.5rem;
  touch-action: pan-x pinch-zoom;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cat-slider.is-dragging {
  cursor: grabbing;
}

.cat-slider-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

.cat-slider .category-card {
  flex: 0 0 108px;
  padding: 0.85rem 0.5rem;
  gap: 0.5rem;
}

.cat-slider .category-icon {
  width: 52px;
  height: 52px;
}

.cat-slider .category-card span {
  font-size: 0.78rem;
  line-height: 1.2;
}

.cat-slider .category-card:hover {
  transform: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--border);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  border-color: var(--green-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card.featured {
  border-color: var(--green-light);
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--white) 100%);
  box-shadow: var(--shadow-sm);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.35rem;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-card span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card[data-id] {
  cursor: pointer;
}

.product-card[data-id] .add-btn {
  cursor: pointer;
}

.product-image {
  aspect-ratio: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.product-body h3 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
}

.product-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  flex-shrink: 0;
}

.add-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(45, 114, 52, 0.28), 0 2px 8px rgba(245, 130, 32, 0.18);
}

.add-btn.added {
  background: var(--orange);
  animation: pop 0.35s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Benefits */
.benefits {
  background: var(--white);
  border-block: 1px solid var(--border-light);
  padding: 2.5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  padding: 1rem;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: var(--green-soft);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.benefit-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.benefit-item p { font-size: 0.82rem; color: var(--text-muted); }

/* CTA Banner */
.cta-banner {
  margin: 0 1rem 4rem;
  max-width: calc(1200px - 2rem);
  margin-inline: auto;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--brand-gradient);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-content {
  padding: 2.5rem 3rem;
}

.cta-banner-image {
  width: 280px;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.cta-banner h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35rem; }
.cta-banner p { opacity: 0.85; font-size: 0.95rem; }

.cta-banner .btn {
  background: white;
  color: var(--green-dark);
  flex-shrink: 0;
}

.cta-banner-btn {
  margin-top: 1.25rem;
}

/* ── Category page ── */
.page-hero {
  padding: 2rem 0 1.5rem;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb span { color: var(--text); font-weight: 500; }

.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero > p { color: var(--text-muted); max-width: 560px; }

.subcategory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.pill:hover {
  border-color: var(--green-light);
  color: var(--green-dark);
}

.pill.active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 2px 10px rgba(45, 114, 52, 0.2), 0 1px 6px rgba(245, 130, 32, 0.12);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.filters-heading,
.filters h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.filters-toggle {
  display: none;
}

.filter-group { margin-bottom: 1.25rem; }
.filter-group:last-child { margin-bottom: 0; }

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  cursor: pointer;
}

.filter-group label:hover { color: var(--text); }

.filter-group-label {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.catalog-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.catalog-page-btn:hover:not(:disabled) {
  border-color: var(--green-light);
  color: var(--green-dark);
}

.catalog-page-btn.active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

.catalog-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.catalog-toolbar .count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.catalog-toolbar .count strong { color: var(--text); }

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
}

.sort-select:focus { outline: none; border-color: var(--green-light); }

/* Footer */
.site-footer {
  background: var(--brand-gradient);
  color: #fff;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #fff;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-col a {
  font-size: 0.88rem;
  color: #fff;
  transition: opacity var(--transition);
}

.footer-col a:hover { opacity: 0.85; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 300;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--green-dark);
  color: white;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 31, 26, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav.open .mobile-panel { transform: translateX(0); }

.mobile-panel .nav-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 1.5rem 0 0;
}

.mobile-panel .nav-main a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

/* Mobile categories accordion */
.mobile-nav-group {
  border-top: 1px solid var(--border-light);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.mobile-nav-toggle,
.mobile-cat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.mobile-nav-toggle:hover,
.mobile-cat-toggle:hover {
  background: var(--green-soft);
}

.mobile-nav-toggle svg,
.mobile-cat-toggle svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.mobile-nav-group.open > .mobile-nav-toggle svg,
.mobile-cat-group.open > .mobile-cat-toggle svg {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: none;
  padding: 0 0 0.5rem;
}

.mobile-nav-group.open > .mobile-nav-submenu {
  display: block;
}

.mobile-cat-group {
  margin: 0.15rem 0;
}

.mobile-cat-toggle {
  padding: 0.65rem 1rem 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-subcat-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.5rem;
  display: none;
}

.mobile-cat-group.open .mobile-subcat-list {
  display: block;
}

.mobile-subcat-list a {
  display: block;
  padding: 0.55rem 1rem 0.55rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.mobile-subcat-list a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.mobile-subcat-list li:first-child a {
  font-weight: 600;
  color: var(--green-dark);
}

/* ── Side panels (carrito / perfil) ── */
body.panel-open { overflow: hidden; }

.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(26, 31, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.panel-overlay.open { opacity: 1; pointer-events: auto; }

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 190;
  width: min(400px, 100vw);
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(26, 31, 26, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-panel.open { transform: translateX(0); }

.side-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.side-panel-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.panel-close { font-size: 1.1rem; }

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.side-panel-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-block { width: 100%; }

.panel-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.panel-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.panel-empty p { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.panel-empty span { font-size: 0.85rem; }

.panel-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.panel-cart-list { list-style: none; }

.panel-cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.panel-cart-item:last-child { border-bottom: none; }

.panel-cart-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0.25rem;
}

.panel-cart-thumb img { width: 100%; height: 100%; object-fit: contain; }

.panel-cart-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.panel-cart-info strong {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-cart-info span { font-size: 0.78rem; color: var(--text-muted); }
.panel-cart-line { font-size: 0.88rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }

.panel-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.panel-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
}

.panel-summary-row.total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px dashed var(--border);
}

.panel-profile { text-align: center; }

.panel-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.panel-profile h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.2rem; }
.panel-email { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.panel-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.panel-profile-stats div {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid var(--border-light);
}

.panel-profile-stats strong { display: block; font-size: 1.2rem; color: var(--green-dark); }
.panel-profile-stats span { font-size: 0.75rem; color: var(--text-muted); }

.panel-info-card {
  text-align: left;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.panel-info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.panel-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.panel-quick-links a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: border-color var(--transition);
}

.panel-quick-links a:hover { border-color: var(--green-light); }

/* ── Account / Cart pages ── */
.account-page,
.cart-page-wrap {
  padding: 2rem 0 4rem;
}

.account-login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-login-actions-row {
  display: flex;
  gap: 0.65rem;
}

.account-login-actions-row .btn {
  flex: 1;
}

.account-login-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.25;
  text-align: center;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1.5rem 1.75rem;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(118, 186, 67, 0.18), transparent 55%),
    linear-gradient(135deg, #f3f9ef 0%, var(--white) 58%, #fff8f0 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.profile-hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(45, 114, 52, 0.22);
}

.profile-hero-info { min-width: 0; flex: 1; }
.profile-hero h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.profile-hero-email {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-chip--accent {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green-dark);
}

.profile-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.profile-tabs a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.profile-tabs a:hover,
.profile-tabs a.active {
  background: var(--green-muted);
  color: var(--green-dark);
}

.account-guest {
  text-align: center;
  padding: 3rem 1rem;
}

.account-guest-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.account-section-head h2 {
  margin: 0;
  padding: 0;
  border: none;
}

.account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.account-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.account-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
}

.form-field input:focus {
  outline: none;
  border-color: var(--green-light);
}

.form-field.full { grid-column: 1 / -1; }

.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.address-card {
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-warm);
}

.address-card.default {
  border-color: var(--green-light);
  background: var(--green-soft);
}

.address-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.address-label { font-weight: 800; font-size: 0.95rem; }

.address-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
}

.address-recipient { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.address-line { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.address-ref { font-size: 0.82rem; color: var(--text-muted); margin: 0.5rem 0; line-height: 1.45; }
.address-phone { font-size: 0.85rem; margin-bottom: 0.85rem; }

.address-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.orders-list { display: flex; flex-direction: column; gap: 0.85rem; }

.orders-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-muted);
}

.orders-empty p { margin-bottom: 1rem; }

.order-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-warm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.order-card.is-open {
  border-color: rgba(83, 164, 56, 0.35);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.order-card-head strong { display: block; font-size: 0.95rem; letter-spacing: 0.01em; }
.order-card-head span { font-size: 0.82rem; color: var(--text-muted); }

.order-status {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-status.is-progress {
  background: #eef6ff;
  color: #1d4f91;
}

.order-status.is-done {
  background: var(--green-soft);
  color: var(--green-dark);
}

.order-status.is-cancel {
  background: #fdecec;
  color: #9b2c2c;
}

.order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.order-card-body strong { font-size: 1.05rem; color: var(--green-dark); }

.order-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.order-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.order-lines li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.88rem;
}

.order-line-qty {
  font-weight: 700;
  color: var(--green-dark);
  min-width: 1.75rem;
}

.order-line-name { color: var(--text); line-height: 1.35; }
.order-line-price { font-weight: 600; white-space: nowrap; }
.order-line-empty { color: var(--text-muted); font-size: 0.85rem; }

.order-totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.88rem;
}

.order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.order-totals-total {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-light);
  font-weight: 800;
  color: var(--text) !important;
}

.order-totals-total span:last-child { color: var(--green-dark); font-size: 1.05rem; }

/* Cart full page */
.page-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.page-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.page-empty h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.cart-page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cart-page-head h1 { font-size: 1.75rem; font-weight: 800; }
.cart-page-head span { font-size: 0.9rem; color: var(--text-muted); }

.cart-items-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cart-full-list { list-style: none; }

.cart-full-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.cart-full-item:last-child { border-bottom: none; }

.cart-full-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  padding: 0.35rem;
  overflow: hidden;
}

.cart-full-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cart-full-info h3 {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.cart-full-unit { font-size: 0.82rem; color: var(--text-muted); }

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 32px;
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--transition);
}

.qty-control button:hover { background: var(--green-soft); }

.qty-control span,
.qty-control input[type="number"] {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  border-inline: 1px solid var(--border);
  line-height: 32px;
}

.qty-control input[type="number"] {
  width: 48px;
  height: 32px;
  border: none;
  border-inline: 1px solid var(--border);
  background: var(--white);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-control input[type="number"]::-webkit-outer-spin-button,
.qty-control input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-full-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-full-right strong { font-size: 1.05rem; color: var(--green-dark); }

.cart-remove {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition);
}

.cart-remove:hover { color: #c0392b; }

.cart-summary-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cart-summary-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cart-summary-rows { margin-bottom: 1.25rem; }

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.cart-delivery-preview {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  border: 1px solid rgba(118, 186, 67, 0.25);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.cart-delivery-preview strong { display: block; margin: 0.2rem 0; }
.cart-delivery-preview p { color: var(--text-muted); line-height: 1.45; }

.cart-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Section toolbar */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.section-toolbar h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-danger-text { color: #c0392b !important; border-color: rgba(192, 57, 43, 0.3) !important; }
.btn-danger-text:hover { background: rgba(192, 57, 43, 0.06) !important; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(26, 31, 26, 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-head h2 { font-size: 1.1rem; font-weight: 800; }

.modal-body { padding: 1.25rem; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* Checkout page */
.checkout-page { padding: 2rem 0 4rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.checkout-main { display: flex; flex-direction: column; gap: 1.25rem; }

.checkout-addresses { display: flex; flex-direction: column; gap: 0.65rem; }

.checkout-address-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.checkout-address-option.selected {
  border-color: var(--green-light);
  background: var(--green-soft);
}

.checkout-address-option input { accent-color: var(--green); flex-shrink: 0; }

.checkout-address-option div { flex: 1; min-width: 0; }

.checkout-address-option strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.checkout-address-option span { font-size: 0.82rem; color: var(--text-muted); }

.payment-methods { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.25rem; }

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-method.selected {
  border-color: var(--green-light);
  background: var(--green-soft);
}

.payment-method input { accent-color: var(--green); }

.payment-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.payment-method strong { display: block; font-size: 0.88rem; }
.payment-method span { font-size: 0.78rem; color: var(--text-muted); }

.payment-form {
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.payment-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.payment-badges span {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-items {
  list-style: none;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.checkout-items li span:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }

.checkout-success {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.checkout-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: white;
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.checkout-success h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.65rem; }
.checkout-success p { color: var(--text-muted); line-height: 1.6; }
.checkout-success-total { margin-top: 1rem; font-size: 1.1rem; }
.checkout-success-total strong { color: var(--green-dark); font-size: 1.35rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-area { padding: 1rem 0 0; }
  .hero-logo { width: min(240px, 70%); }
  .hero-banner-strip .hero-carousel--promo {
    min-height: clamp(200px, 36vw, 320px);
  }
  .hero-slider .hero-carousel:not(.hero-carousel--promo) { max-height: 180px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .profile-hero {
    align-items: flex-start;
    padding: 1.25rem;
  }
  .profile-hero-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .site-header .nav-main, .header-search { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { display: block; }

  .filters {
    padding: 0;
    overflow: hidden;
  }

  .filters-heading {
    display: none;
  }

  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
  }

  .filters-toggle:hover {
    background: var(--green-soft);
  }

  .filters-toggle svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition);
  }

  .filters:not(.is-collapsed) .filters-toggle {
    border-bottom: 1px solid var(--border);
  }

  .filters:not(.is-collapsed) .filters-toggle svg {
    transform: rotate(180deg);
  }

  .filters-body {
    padding: 1rem 1.25rem 1.25rem;
  }

  .filters.is-collapsed .filters-body {
    display: none;
  }
  .hero { padding: 2rem 0 2.5rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-banner-strip .hero-carousel--promo {
    min-height: clamp(180px, 42vw, 280px);
  }
  .hero-slider .hero-carousel:not(.hero-carousel--promo) {
    aspect-ratio: 1280 / 384;
    max-height: 160px;
    height: auto;
    min-height: 0;
  }
  .hero-products-head .hero-slide-sub { display: none; }
  .hero-product-slider .hero-rec-card {
    flex: 0 0 96px;
    min-width: 96px;
    padding: 0.55rem 0.4rem;
  }
  .hero-product-slider .hero-rec-card img {
    width: 52px;
    height: 52px;
  }
  .cat-slider .category-card {
    flex: 0 0 92px;
    padding: 0.7rem 0.35rem;
  }
  .cat-slider .category-icon {
    width: 44px;
    height: 44px;
  }
  .cat-slider .category-card span {
    font-size: 0.72rem;
  }
  .cta-banner {
    grid-template-columns: 1fr;
    text-align: center;
    margin: 0 0.75rem 2.5rem;
    gap: 0;
  }
  .cta-banner-content {
    order: 2;
    padding: 1.35rem 1.25rem 1.75rem;
  }
  .cta-banner-image {
    order: 1;
    width: 100%;
    height: auto;
    max-height: 180px;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    padding: 1.25rem 1.5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  }
  .cta-banner h3 {
    font-size: 1.2rem;
    line-height: 1.35;
  }
  .cta-banner p {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 32ch;
    margin-inline: auto;
  }
  .cta-banner-btn {
    display: inline-flex;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.88rem;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .category-card { padding: 0.85rem 0.35rem; }
  .category-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-body h3 { font-size: 0.8rem; }
  .product-price { font-size: 1rem; }
  .hero-banner-strip .hero-carousel--promo {
    min-height: clamp(160px, 48vw, 220px);
  }
  .hero-slider .hero-carousel:not(.hero-carousel--promo) { max-height: 140px; }
  .hero-slide-cta { display: none; }
  .hero-product-slider .hero-rec-card {
    flex: 0 0 88px;
    min-width: 88px;
  }
  .hero-product-slider .hero-rec-card img {
    width: 46px;
    height: 46px;
  }
  .cta-banner { margin: 0 0.65rem 2rem; border-radius: var(--radius); }
  .cta-banner-content { padding: 1.15rem 1rem 1.5rem; }
  .cta-banner-image { max-height: 150px; padding: 1rem 1.25rem 0; }
  .cta-banner h3 { font-size: 1.1rem; }
  .cta-banner p { font-size: 0.84rem; }
  .cta-banner-btn { max-width: none; }
}

/* ── Product detail page ── */
.product-page {
  padding: 1.5rem 0 4rem;
}

.product-breadcrumb {
  margin-bottom: 1.5rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.product-detail-gallery {
  position: relative;
  aspect-ratio: 1;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-gallery .product-badge {
  top: 1rem;
  left: 1rem;
}

.product-detail-info h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.product-detail-perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.product-qty {
  flex-shrink: 0;
}

.product-add-btn,
.product-buy-btn {
  flex: 1;
  min-width: 140px;
}

.product-detail-section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.product-detail-section h2,
.product-related h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.product-detail-section p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}

.product-related {
  padding-top: 0.5rem;
}

.product-not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.product-not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-not-found p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-detail-gallery {
    padding: 1.25rem;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
  .product-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .product-add-btn,
  .product-buy-btn {
    width: 100%;
  }
  .product-qty {
    align-self: center;
  }
}

/* App nativa (WebView MAUI) */
html.abasta-app,
html.abasta-native-app {
  -webkit-tap-highlight-color: transparent;
}
html.abasta-native-app .site-header {
  padding-top: env(safe-area-inset-top, 0);
}
html.abasta-native-app .site-footer {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
}
html.abasta-native-app .menu-toggle {
  display: flex;
}
