:root {
  --green-950: #082d1a;
  --green-900: #0b3f25;
  --green-800: #125c35;
  --green-700: #19733f;
  --green-600: #2f9e48;
  --lime: #9bd44c;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --ink: #102417;
  --muted: #657267;
  --line: #dfe7dd;
  --shadow: 0 14px 34px rgba(12, 45, 27, 0.14);
  --shadow-strong: 0 24px 54px rgba(12, 45, 27, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  animation: pageFade 560ms var(--ease-out) both;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: -42px;
  z-index: 30;
}

.topbar {
  min-height: 42px;
  padding: 0 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: var(--green-950);
  font-size: 13px;
  font-weight: 600;
}

.navbar {
  min-height: 136px;
  padding: 10px 7vw;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 31;
  transition: box-shadow 260ms ease, background 260ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(560px, 40vw);
  min-width: 340px;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-out);
}

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

.brand-mark {
  width: 50px;
  height: 50px;
  border: 2px solid var(--green-700);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-700);
  font-weight: 800;
  transition: transform 420ms var(--ease-out), background 220ms ease, color 220ms ease;
}

.brand-logo {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  width: min(360px, 100%);
}

.footer-brand .brand-logo {
  height: 74px;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
  color: #fff;
  background: var(--green-700);
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--green-700);
  font-size: 11px;
  letter-spacing: 3px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu a {
  padding: 33px 0 27px;
  border-bottom: 3px solid transparent;
  position: relative;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.menu a:hover,
.menu a.active {
  color: var(--green-700);
  border-color: var(--green-600);
  outline: none;
}

.menu a:hover {
  transform: translateY(-2px);
}

.panel-menu button {
  width: auto;
  padding: 14px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  text-transform: inherit;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.icon-button,
.cart-button,
.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--green-950);
  cursor: pointer;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 0;
  transition: transform 220ms var(--ease-out), color 180ms ease;
}

.icon-button::before,
.cart-button::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.icon-button[aria-label="Cuenta"]::before,
.icon-button[aria-label="Iniciar sesion"]::before,
.icon-button[aria-label="Iniciar sesi\00f3n"]::before,
.account-button::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 3c-5.2 0-9 2.7-9 6v1h18v-1c0-3.3-3.8-6-9-6Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 3c-5.2 0-9 2.7-9 6v1h18v-1c0-3.3-3.8-6-9-6Z'/%3E%3C/svg%3E");
}

.icon-button:hover,
.cart-button:hover {
  color: var(--green-700);
  transform: translateY(-2px) scale(1.05);
}

.cart-button {
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  display: grid;
  place-items: center;
  font-size: 0;
  transition: transform 220ms var(--ease-out), color 180ms ease;
}

.cart-button::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 20.5A1.5 1.5 0 1 1 4 20.5a1.5 1.5 0 0 1 3 0Zm12 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM3 3h2.3l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 1.9-1.4L22 7H7.1L6.6 4.6A2 2 0 0 0 4.7 3H3Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 20.5A1.5 1.5 0 1 1 4 20.5a1.5 1.5 0 0 1 3 0Zm12 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM3 3h2.3l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 1.9-1.4L22 7H7.1L6.6 4.6A2 2 0 0 0 4.7 3H3Z'/%3E%3C/svg%3E");
}

.cart-button span {
  position: absolute;
  top: -10px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: rgba(3, 34, 19, 0.46);
  opacity: 0;
  transition: opacity 240ms ease;
}

.cart-drawer {
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(3, 34, 19, 0.3);
  transform: translateX(calc(100% + 28px));
  transition: transform 320ms var(--ease-out);
}

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

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

.cart-drawer-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: var(--green-950);
}

.cart-drawer-header h2,
.cart-drawer-header .eyebrow {
  margin: 0;
}

.cart-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  padding: 16px;
  overflow: auto;
  background: var(--cream);
}

.empty-cart {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.cart-line {
  margin-bottom: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-line img {
  width: 74px;
  height: 74px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--cream);
}

.cart-line h3,
.cart-line p {
  margin: 0;
}

.cart-line h3 {
  font-size: 15px;
}

.cart-line p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-line strong {
  color: var(--green-800);
}

.quantity-controls {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--green-900);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.quantity-controls span {
  text-align: center;
  font-weight: 800;
}

.cart-summary {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-total-row {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--green-950);
  font-weight: 800;
}

.cart-total-row strong {
  font-size: 22px;
}

.cart-customer {
  display: grid;
  gap: 12px;
}

.cart-customer label {
  display: grid;
  gap: 7px;
  color: var(--green-950);
  font-size: 13px;
  font-weight: 800;
}

.cart-customer input,
.cart-customer textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfe1d3;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--green-950);
  background: #f7fbf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cart-customer textarea {
  min-height: 98px;
  resize: vertical;
}

.cart-customer input:focus,
.cart-customer textarea:focus {
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 115, 63, 0.12);
  outline: none;
}

.cart-customer input::placeholder,
.cart-customer textarea::placeholder {
  color: #7f8d82;
}

.send-cart,
.clear-cart {
  width: 100%;
  margin-top: 12px;
}

.clear-cart {
  color: var(--green-900);
  border: 1px solid var(--line);
  background: #fff;
}

.whatsapp,
.button,
.add-cart {
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background 220ms ease;
}

.whatsapp {
  gap: 0;
  min-height: 56px;
  min-width: 176px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 0;
  letter-spacing: 0;
}

.whatsapp::before {
  content: "";
  width: 140px;
  height: 47px;
  flex: 0 0 auto;
  background: url("catalogo-img/whatsapp-button-logo.png") center / contain no-repeat;
}

.whatsapp,
.button.primary,
.add-cart {
  color: #fff;
  background: var(--green-700);
}

.button.primary:hover,
.add-cart:hover,
.whatsapp:hover {
  background: var(--green-800);
  box-shadow: 0 12px 24px rgba(25, 115, 63, 0.28);
  transform: translateY(-2px);
}

.button:active,
.add-cart:active,
.whatsapp:active,
.filter-button:active {
  transform: translateY(0) scale(0.98);
}

.button.secondary {
  color: #fff;
  border: 2px solid #fff;
}

.hero {
  position: relative;
  min-height: 398px;
  overflow: hidden;
  background: var(--green-900);
}

.hero-slide {
  min-height: 398px;
  display: flex;
  align-items: center;
  padding: 70px 7vw 82px;
  background:
    linear-gradient(90deg, rgba(2, 22, 12, 0.86) 0%, rgba(2, 22, 12, 0.54) 40%, rgba(2, 22, 12, 0.08) 100%),
    var(--bg) center/cover;
  animation: heroDrift 16s ease-in-out infinite alternate;
  transition: opacity 420ms ease, filter 420ms ease;
}

.hero-content {
  width: min(600px, 100%);
  color: #fff;
  animation: heroTextIn 760ms var(--ease-out) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 500px;
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.section {
  padding: 24px 7vw 18px;
}

.search-section {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.section-title {
  text-align: center;
}

.section-title h2 {
  display: inline-block;
  margin: 0 0 24px;
  position: relative;
  font-size: 27px;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title h2::after {
  content: "";
  width: 44px;
  height: 3px;
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  background: var(--green-600);
  transform-origin: center;
  animation: underlineGrow 680ms var(--ease-out) both;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.view-all {
  position: absolute;
  right: 0;
  top: 8px;
  color: var(--green-700);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.view-all:hover {
  color: var(--green-900);
  transform: translateX(4px);
}

.view-all::after {
  content: " ->";
}

.category-grid,
.product-grid,
.service-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(6, 1fr);
}

.category-card {
  min-height: 142px;
  padding: 22px 14px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(21, 52, 32, 0.08);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease;
}

.category-card:hover {
  transform: translateY(-7px);
  border-color: rgba(47, 158, 72, 0.45);
  box-shadow: var(--shadow-strong);
}

.category-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef8f1;
  transition: transform 300ms var(--ease-out), background 220ms ease;
}

.category-icon img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.category-card:hover .category-icon {
  transform: translateY(-2px) scale(1.06);
  background: #e2f2e7;
}

.category-card strong {
  font-size: 17px;
}

.category-card small {
  font-weight: 800;
}

.product-grid {
  grid-template-columns: repeat(5, 1fr);
}

.featured-grid {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.service-card {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(21, 52, 32, 0.09);
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease, border-color 280ms ease;
}

.product-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 158, 72, 0.45);
  box-shadow: var(--shadow-strong);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.35;
  display: block;
  object-fit: cover;
  transition: transform 480ms var(--ease-out), filter 280ms ease;
}

.product-card:hover img,
.service-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.favorite {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-700);
  cursor: pointer;
  font-size: 24px;
  transition: transform 220ms var(--ease-out), background 180ms ease, color 180ms ease;
}

.favorite:hover {
  transform: scale(1.12);
}

.favorite.is-active {
  color: #fff;
  background: var(--green-700);
  animation: heartPop 380ms var(--ease-out) both;
}

.product-info {
  padding: 14px 16px 16px;
}

.product-info h3,
.service-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.product-info p:not(.rating) {
  min-height: 58px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.product-category {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  transition: background 220ms ease, transform 220ms var(--ease-out);
}

.product-card:hover .product-category {
  transform: translateY(-1px);
  background: var(--green-900);
}

.product-info strong {
  display: block;
  margin-bottom: 7px;
  font-size: 22px;
}

.rating {
  margin: 0 0 12px;
  color: #d39b1e;
  font-size: 14px;
}

.rating span {
  color: var(--muted);
}

.add-cart {
  width: 100%;
  min-height: 39px;
  font-size: 12px;
}

.services-section {
  padding-top: 16px;
}

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

.service-card img {
  width: 100%;
  aspect-ratio: 1.9;
  display: block;
  object-fit: cover;
  transition: transform 480ms var(--ease-out), filter 280ms ease;
}

.service-card div {
  padding: 22px 20px 20px;
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-top: -47px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  position: relative;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green-700);
  transition: transform 320ms var(--ease-out), background 220ms ease;
}

.service-icon img {
  width: 33px;
  height: 33px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-card:hover .service-icon {
  transform: translateY(-4px) rotate(-8deg);
  background: var(--green-900);
}

.service-card p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.service-card a {
  color: var(--green-700);
  font-weight: 800;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.service-card a:hover {
  color: var(--green-900);
}

.service-card a::after {
  content: " ->";
}

.service-detail {
  padding: 58px 7vw 74px;
}

.service-detail-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.service-detail-main,
.service-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(21, 52, 32, 0.09);
}

.service-detail-main {
  overflow: hidden;
}

.service-detail-main img {
  width: 100%;
  aspect-ratio: 1.9;
  display: block;
  object-fit: cover;
}

.service-detail-content {
  padding: 28px;
}

.service-detail-content p {
  color: var(--muted);
  line-height: 1.65;
}

.service-detail-card {
  padding: 24px;
}

.service-detail-card h2 {
  margin-top: 0;
}

.service-checklist {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.service-checklist li {
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--green-950);
  font-weight: 700;
}

.service-checklist li::before {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: 8px;
  left: 4px;
  border-radius: 50%;
  background: var(--green-700);
}

.advice-band {
  margin: 14px 7vw 28px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(21, 52, 32, 0.08);
}

.advice-band > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.big-whatsapp {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-700);
  font-size: 25px;
}

.advice-band h2,
.advice-band p {
  margin: 0;
}

.advice-band h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
}

.advice-band p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.footer {
  padding: 24px 7vw 14px;
  border-top: 1px solid var(--line);
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -6px 18px rgba(14, 48, 28, 0.06);
}

.footer-grid {
  grid-template-columns: 1.35fr 0.85fr 0.95fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer .brand-mark {
  border-color: var(--green-700);
  color: var(--green-700);
}

.footer .brand strong,
.footer .brand small {
  color: var(--green-950);
}

.footer p {
  margin: 6px 0;
  line-height: 1.5;
  font-size: 13px;
}

.footer h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 13px;
  text-transform: uppercase;
}

.footer a:not(.brand) {
  display: block;
  margin: 5px 0;
  color: var(--green-800);
  font-size: 13px;
}

.copyright {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.private-access {
  width: max-content;
  margin: 12px auto 0;
  display: block;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 700;
}

.private-access:hover {
  color: var(--green-950);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--green-950);
}

@media (max-width: 1320px) {
  .navbar {
    min-height: 120px;
    gap: 14px;
  }

  .brand {
    width: min(470px, 38vw);
    min-width: 320px;
  }

  .brand-logo {
    height: 96px;
  }

  .menu {
    gap: 14px;
    font-size: 12px;
  }

  .nav-actions {
    gap: 6px;
  }
}

@media (max-width: 1100px) {
  .navbar {
    min-height: 116px;
  }

  .brand {
    width: min(430px, 40vw);
    min-width: 300px;
  }

  .brand-logo {
    height: 92px;
  }

  .menu {
    gap: 12px;
    font-size: 11px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .topbar {
    padding: 10px 5vw;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar {
    padding: 14px 5vw;
    flex-wrap: wrap;
  }

  .brand {
    width: min(440px, 76vw);
    min-width: 260px;
  }

  .brand-logo {
    height: 88px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    width: 100%;
    display: none;
    order: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 14px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    order: 6;
  }

  .hero-slide {
    min-height: 540px;
    padding: 56px 5vw 82px;
    background:
      linear-gradient(90deg, rgba(2, 22, 12, 0.88), rgba(2, 22, 12, 0.44)),
      var(--bg) center/cover;
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .section-heading-row {
    display: block;
  }

  .view-all {
    display: block;
    position: static;
    margin: -8px 0 18px;
    text-align: center;
  }

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

  .footer {
    padding: 18px 5vw 12px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(132px, max-content));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .footer-grid > div {
    min-width: 132px;
  }

  .footer-grid > div:first-child {
    min-width: 190px;
  }

  .footer-brand {
    width: 180px;
  }

  .footer-brand .brand-logo {
    height: 52px;
  }

  .footer h3,
  .footer a:not(.brand),
  .footer p {
    white-space: nowrap;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advice-band,
  .advice-band > div {
    align-items: stretch;
    flex-direction: column;
  }

  .advice-band .button {
    width: auto;
    min-height: 42px;
    align-self: flex-start;
  }
}

.page-hero {
  min-height: 330px;
  padding: 70px 7vw;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.88), rgba(3, 34, 19, 0.34)),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1800&q=80") center/cover;
  animation: pageHeroIn 760ms var(--ease-out) both;
}

.page-hero > div {
  width: min(720px, 100%);
  animation: heroTextIn 760ms var(--ease-out) both;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  text-transform: uppercase;
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.compact-hero {
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.88), rgba(3, 34, 19, 0.36)),
    url("https://images.unsplash.com/photo-1485955900006-10f4d324d411?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.services-hero {
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.9), rgba(3, 34, 19, 0.38)),
    url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.advice-hero {
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.9), rgba(3, 34, 19, 0.36)),
    url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.88), rgba(3, 34, 19, 0.34)),
    url("https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.9), rgba(3, 34, 19, 0.32)),
    url("https://images.unsplash.com/photo-1525498128493-380d1990a112?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.catalog-layout {
  padding: 34px 7vw 52px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  opacity: 1;
  transform: none;
}

.catalog-layout .product-card,
.catalog-layout .catalog-content,
.catalog-layout .filters {
  opacity: 1;
  transform: none;
}

.filters,
.info-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(21, 52, 32, 0.09);
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease;
}

.filters:hover,
.info-panel:hover,
.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.filters {
  height: fit-content;
  padding: 20px;
  position: sticky;
  top: 110px;
}

.filters h2,
.catalog-toolbar h2,
.info-panel h2,
.contact-form h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.filter-button {
  width: 100%;
  min-height: 42px;
  margin: 5px 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  border-color: var(--green-700);
  background: var(--green-700);
  transform: translateX(4px);
}

.catalog-toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.catalog-toolbar input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.catalog-toolbar input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(47, 158, 72, 0.14);
  transform: translateY(-1px);
}

.catalog-toolbar input {
  max-width: 340px;
  min-height: 44px;
  padding: 0 14px;
}

.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-item.is-hidden {
  display: none;
}

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

.wide-services .service-card img {
  aspect-ratio: 2.35;
}

.split-section {
  padding: 46px 7vw 58px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.info-panel,
.contact-form {
  padding: 28px;
}

.check-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--green-950);
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  min-height: 44px;
  padding: 0 12px;
}

.contact-form textarea {
  padding: 12px;
  resize: vertical;
}

.about-section {
  padding: 52px 7vw;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.about-section article {
  max-width: 760px;
}

.about-section h2 {
  margin-top: 0;
  font-size: 32px;
}

.about-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  gap: 16px;
}

.metric-grid div {
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-800);
  transition: transform 260ms var(--ease-out), background 220ms ease, box-shadow 260ms ease;
}

.metric-grid div:hover {
  transform: translateY(-5px);
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.metric-grid strong {
  display: block;
  font-size: 42px;
}

.metric-grid span {
  font-weight: 700;
}

.contact-details p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-details .button {
  margin-top: 12px;
}

.map-button {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  background: var(--green-800);
}

.map-button.outline {
  color: var(--green-800);
  border: 1px solid var(--green-800);
  background: #fff;
}

.map-section {
  padding: 0 7vw 58px;
}

.map-frame {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

.map-pin-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(21, 52, 32, 0.16);
  font-weight: 800;
}

.map-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-700);
  box-shadow: 0 0 0 6px rgba(47, 158, 72, 0.16);
}

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

@media (max-width: 760px) {
  .page-hero {
    min-height: 400px;
    padding: 56px 5vw;
  }

  .catalog-layout,
  .split-section,
  .about-section {
    padding-left: 5vw;
    padding-right: 5vw;
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar input,
  .catalog-grid {
    max-width: none;
  }

  .catalog-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid .product-card {
    border-radius: 7px;
  }

  .catalog-grid .product-card img {
    aspect-ratio: 1.08;
  }

  .catalog-grid .product-info {
    padding: 10px 10px 12px;
  }

  .catalog-grid .product-category {
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .catalog-grid .product-info h3 {
    min-height: 40px;
    margin-bottom: 6px;
    font-size: clamp(14px, 4.1vw, 16px);
    line-height: 1.2;
  }

  .catalog-grid .product-info p:not(.rating) {
    min-height: 54px;
    margin-bottom: 8px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .catalog-grid .product-info strong {
    margin-bottom: 8px;
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .catalog-grid .add-cart {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .catalog-grid .favorite {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
    font-size: 21px;
  }

  .wide-services {
    grid-template-columns: 1fr;
  }

  .map-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 380px) {
  .catalog-layout {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .catalog-grid {
    gap: 9px;
  }

  .catalog-grid .product-info {
    padding: 9px;
  }

  .catalog-grid .product-info h3 {
    font-size: 13px;
  }

  .catalog-grid .product-info p:not(.rating) {
    min-height: 48px;
    font-size: 11px;
  }

  .catalog-grid .product-info strong {
    font-size: 17px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-card.reveal.is-visible:hover,
.service-card.reveal.is-visible:hover {
  transform: translateY(-8px);
}

.filters.reveal.is-visible:hover,
.info-panel.reveal.is-visible:hover,
.contact-form.reveal.is-visible:hover,
.metric-grid div.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.cart-button.bump span {
  animation: countBump 360ms var(--ease-out) both;
}

.add-cart.added {
  animation: buttonGlow 680ms var(--ease-out) both;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    background-position: center center;
  }
  to {
    background-position: center 45%;
  }
}

@keyframes pageHeroIn {
  from {
    filter: saturate(0.88) brightness(0.9);
  }
  to {
    filter: saturate(1) brightness(1);
  }
}

@keyframes underlineGrow {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.2);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes heartPop {
  0% {
    transform: scale(0.85);
  }
  55% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(36, 211, 102, 0.34);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(36, 211, 102, 0);
    transform: scale(1.04);
  }
}

@keyframes cardFilterIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes countBump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.28);
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: none;
  }
  40% {
    box-shadow: 0 0 0 7px rgba(47, 158, 72, 0.2);
  }
}

@keyframes productRowIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .advice-band {
    background-attachment: scroll;
  }
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(8, 45, 26, 0.88), rgba(8, 45, 26, 0.52)),
    url("catalogo-img/limonero-2-m-1.gif") center/cover;
}

.login-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(3, 34, 19, 0.34);
}

.login-brand {
  width: min(620px, 100%);
  margin-bottom: 28px;
}

.login-brand .brand-logo {
  height: 128px;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.login-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  margin-top: 24px;
  display: grid;
  gap: 15px;
}

.google-login-button {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  color: var(--green-950);
  background: #fff;
  box-shadow: 0 10px 22px rgba(21, 52, 32, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.google-login-button:hover,
.google-login-button:focus-visible {
  border-color: var(--green-700);
  background: #f7fbf8;
  box-shadow: 0 14px 28px rgba(25, 115, 63, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.google-login-button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.google-login-button.is-loading {
  pointer-events: none;
}

.google-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-700);
  font-size: 16px;
  font-weight: 900;
}

.login-form label,
.admin-form label,
.edit-fields label {
  display: grid;
  gap: 7px;
  color: var(--green-950);
  font-size: 13px;
  font-weight: 800;
}

.login-form input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.edit-fields input,
.edit-fields select,
.edit-fields textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfe1d3;
  border-radius: 7px;
  color: var(--green-950);
  background: #f7fbf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-form textarea,
.edit-fields textarea {
  min-height: 112px;
  resize: vertical;
}

.login-form input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.edit-fields input:focus,
.edit-fields select:focus,
.edit-fields textarea:focus {
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 115, 63, 0.12);
  outline: none;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder,
.edit-fields input::placeholder,
.edit-fields textarea::placeholder {
  color: #7f8d82;
}

.admin-form select,
.edit-fields select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-800) 50%),
    linear-gradient(135deg, var(--green-800) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

.admin-upload-field {
  position: relative;
}

.admin-upload-preview {
  width: 100%;
  height: 0;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbf8;
  opacity: 0;
  transition: height 180ms ease, opacity 180ms ease;
}

.admin-upload-preview.has-image {
  height: 132px;
  min-height: 132px;
  margin-top: 2px;
  border: 1px solid #cfe1d3;
  opacity: 1;
}

.visually-hidden-file {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.login-back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-800);
  font-weight: 800;
}

.admin-page {
  background: var(--cream);
}

.admin-hero {
  padding: 48px 7vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 34, 19, 0.9), rgba(3, 34, 19, 0.42)),
    url("catalogo-img/romero-30-cm-29.gif") center/cover;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  text-transform: uppercase;
}

.admin-hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: 18px;
}

.admin-dashboard {
  padding: 36px 7vw 60px;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
}

.admin-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.admin-form,
.admin-products {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-form {
  height: fit-content;
  display: grid;
  gap: 14px;
}

.collapsible-form {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfe1d3;
  background: #fff;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.collapsible-form:hover,
.collapsible-form:focus-within {
  border-color: #b7d5bf;
  box-shadow: 0 10px 24px rgba(12, 45, 27, 0.08);
}

.admin-products > .collapsible-form {
  margin-bottom: 16px;
}

.form-toggle {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  color: var(--green-950);
  background: #f7fbf8;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  transition: background 180ms ease;
}

.form-toggle.category-header {
  border-radius: 0;
}

.form-toggle .category-toggle {
  pointer-events: none;
}

.form-chevron {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 8px 18px rgba(25, 115, 63, 0.18);
  transition: transform 260ms var(--ease-out), background 180ms ease;
}

.form-toggle:hover,
.form-toggle:focus-visible {
  background: #f7fbf8;
}

.form-toggle:hover .form-chevron,
.form-toggle:focus-visible .form-chevron {
  background: var(--green-800);
}

.form-toggle:focus-visible {
  outline: 3px solid rgba(25, 115, 63, 0.16);
  outline-offset: 5px;
}

.form-body {
  margin-top: 0;
  padding: 12px;
  display: grid;
  gap: 14px;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  max-height: 900px;
  transform: translateY(0);
  transition: max-height 320ms var(--ease-out), opacity 200ms ease, padding 260ms var(--ease-out), transform 260ms var(--ease-out), margin 260ms var(--ease-out);
}

.collapsible-form.is-collapsed .form-body {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  max-height: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.collapsible-form.is-collapsed .form-chevron {
  transform: rotate(-90deg);
}

.admin-form h2,
.admin-toolbar h2 {
  margin: 0;
}

.admin-toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-toolbar span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.admin-product-row {
  margin-bottom: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fcfa);
  cursor: default;
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 140ms ease, transform 180ms var(--ease-out);
}

.category-list {
  display: grid;
  gap: 14px;
}

.admin-category {
  overflow: hidden;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-category:hover {
  border-color: #b7d5bf;
  box-shadow: 0 10px 24px rgba(12, 45, 27, 0.08);
}

.category-header {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f7fbf8;
}

.category-toggle {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex: 1;
  border: 0;
  color: var(--green-950);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.category-toggle strong,
.category-toggle small {
  display: block;
}

.category-toggle strong {
  font-size: 16px;
}

.category-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.category-edit-button,
.category-delete-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 4px 12px rgba(12, 45, 27, 0.06);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-edit-button::before,
.category-delete-button::before,
.edit-button::before,
.delete-button::before,
.drag-button::before {
  content: none;
}

.category-delete-button {
  color: #7a2e26;
}

.category-edit-button svg,
.category-delete-button svg,
.category-chevron svg,
.drag-button svg,
.edit-button svg,
.delete-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-edit-button:hover,
.category-edit-button:focus-visible {
  border-color: var(--green-700);
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 8px 18px rgba(25, 115, 63, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.category-delete-button:hover,
.category-delete-button:focus-visible {
  border-color: #b94b3f;
  color: #fff;
  background: #b94b3f;
  box-shadow: 0 8px 18px rgba(185, 75, 63, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.category-chevron {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 8px 18px rgba(25, 115, 63, 0.18);
  cursor: pointer;
  transition: background 180ms ease, transform 260ms var(--ease-out);
}

.category-chevron:hover,
.category-chevron:focus-visible {
  background: var(--green-800);
  outline: none;
}

.admin-category.is-collapsed .category-chevron {
  transform: rotate(-90deg);
}

.category-products {
  padding: 12px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  opacity: 1;
  max-height: 2600px;
  transform: translateY(0);
  transition: max-height 340ms var(--ease-out), opacity 200ms ease, padding 260ms var(--ease-out), transform 260ms var(--ease-out);
}

.admin-category.is-collapsed .category-products {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.admin-product-row:active {
  cursor: default;
}

.admin-product-row:hover {
  border-color: #b7d5bf;
  box-shadow: 0 10px 24px rgba(12, 45, 27, 0.1);
  transform: translateY(-1px);
}

.is-sorting-products .admin-product-row:hover {
  box-shadow: none;
  transform: none;
}

.admin-product-row.is-dragging {
  border-color: var(--green-700);
  box-shadow: 0 18px 34px rgba(12, 45, 27, 0.18);
  opacity: 0.84;
  transform: scale(0.99);
  transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.admin-product-row img {
  width: 76px;
  height: 76px;
  min-width: 76px;
  max-width: 76px;
  min-height: 76px;
  max-height: 76px;
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: contain;
  display: block;
  background: #f7fbf8;
}

.admin-product-row h3,
.admin-product-row p {
  margin: 0;
}

.category-pill {
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  display: inline-flex;
  border: 1px solid #cfe1d3;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.admin-product-row h3 {
  color: var(--green-950);
  font-size: 15px;
  line-height: 1.25;
}

.admin-product-row p {
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-800);
  background: #eef8f1;
  font-size: 12px;
  font-weight: 800;
}

.switch-label {
  width: 52px;
  height: 30px;
  position: relative;
  filter: drop-shadow(0 3px 8px rgba(12, 45, 27, 0.12));
}

.switch-label input {
  opacity: 0;
  position: absolute;
}

.switch-label span {
  inset: 0;
  position: absolute;
  border-radius: 999px;
  background: #ccd8cf;
  cursor: pointer;
}

.switch-label span::after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.switch-label input:checked + span {
  background: var(--green-700);
}

.switch-label input:checked + span::after {
  transform: translateX(22px);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.edit-button,
.delete-button,
.drag-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #cfe1d3;
  border-radius: 6px;
  background: #f7fbf8;
  color: var(--green-800);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.edit-button {
  color: var(--green-800);
}

.drag-button {
  color: var(--green-700);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.drag-button:active {
  cursor: grabbing;
}

.is-sorting-products {
  cursor: grabbing;
  user-select: none;
}

.edit-button:hover,
.edit-button:focus-visible,
.drag-button:hover,
.drag-button:focus-visible {
  border-color: var(--green-700);
  color: #fff;
  background: var(--green-700);
  outline: none;
  transform: translateY(-1px);
}

.delete-button {
  color: #7a2e26;
}

.delete-button:hover,
.delete-button:focus-visible {
  border-color: #b94b3f;
  color: #fff;
  background: #b94b3f;
  outline: none;
  transform: translateY(-1px);
}

.edit-product-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 30, 17, 0.58);
}

.edit-product-view.is-open {
  display: flex;
}

.preview-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 22px;
  display: none;
  background: rgba(5, 30, 17, 0.62);
}

.preview-panel.is-open,
.preview-panel:target {
  display: block;
}

.preview-close-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.preview-shell {
  height: calc(100vh - 44px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 30, 17, 0.3);
}

.preview-header {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fbf8;
}

.preview-header h2,
.preview-header .eyebrow {
  margin: 0;
}

.preview-content {
  overflow: auto;
  padding: 22px;
  background: var(--cream);
}

.preview-catalog-head {
  margin-bottom: 18px;
}

.preview-catalog-head h3,
.preview-catalog-head .eyebrow {
  margin: 0;
}

.preview-catalog-head h3 {
  color: var(--green-950);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(12, 45, 27, 0.1);
}

.preview-card img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: contain;
  background: #f7fbf8;
}

.preview-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.preview-card-body span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-800);
  background: #eef8f1;
  font-size: 11px;
  font-weight: 800;
}

.preview-card h4,
.preview-card p {
  margin: 0;
}

.preview-card h4 {
  color: var(--green-950);
  font-size: 17px;
}

.preview-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preview-card strong {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  font-size: 13px;
}

.edit-product-form {
  width: min(860px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 30, 17, 0.28);
}

.edit-product-header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.edit-product-header h2 {
  margin: 0;
  color: var(--green-900);
}

.edit-close {
  width: 34px;
  height: 34px;
  border: 1px solid #cfe1d3;
  border-radius: 7px;
  color: var(--green-800);
  background: #f7fbf8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.edit-close:hover,
.edit-close:focus-visible {
  color: #fff;
  background: var(--green-700);
  outline: none;
}

.edit-product-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.edit-image-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.edit-image-panel img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f7fbf8;
}

.file-drop {
  min-height: 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9fc9aa;
  border-radius: 8px;
  color: var(--green-800);
  background: #f7fbf8;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--green-700);
  color: #fff;
  background: var(--green-700);
}

.admin-file-drop::before,
.file-drop::before {
  content: "+";
  width: 22px;
  height: 22px;
  margin-right: 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green-700);
  line-height: 1;
}

.file-drop:hover::before,
.file-drop:focus-within::before {
  color: var(--green-700);
  background: #fff;
}

.edit-fields {
  display: grid;
  gap: 14px;
}

.edit-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logout-button {
  min-width: 150px;
}

@media (max-width: 760px) {
  .login-page {
    padding: 16px;
  }

  .login-card {
    padding: 22px;
  }

  .admin-dashboard {
    padding-left: 5vw;
    padding-right: 5vw;
    grid-template-columns: 1fr;
  }

  .admin-product-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .admin-product-row img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    max-height: 52px;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f7fbf8;
  }

  .edit-product-view {
    padding: 16px;
    align-items: flex-start;
  }

  .preview-panel {
    padding: 10px;
  }

  .preview-shell {
    height: calc(100vh - 20px);
  }

  .preview-content {
    padding: 14px;
  }

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

  .preview-card img {
    height: 130px;
  }

  .edit-product-form {
    max-height: calc(100vh - 32px);
    padding: 18px;
  }

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

  .edit-image-panel {
    justify-items: start;
  }

  .edit-image-panel img {
    width: min(180px, 100%);
    max-height: 180px;
  }

  .panel-menu {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .admin-product-row {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
  }

  .admin-product-row > img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .edit-image-panel {
    justify-items: start;
  }

  .edit-image-panel > img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
