:root {
  --ink: #1d2433;
  --muted: #667085;
  --line: #e6e8ee;
  --paper: #fffdf8;
  --surface: #ffffff;
  --brand: #e54052;
  --brand-dark: #bd263a;
  --accent: #18a999;
  --sun: #ffd166;
  --shadow: 0 14px 40px rgba(29, 36, 51, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(230, 232, 238, 0.9);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border: 3px solid var(--sun);
  border-radius: 50%;
  font-weight: 900;
}

.logo-link {
  transform-origin: left center;
  transition: transform 180ms ease;
}

.logo-link:hover,
.logo-link:focus-visible {
  transform: scale(1.04);
}

.logo-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
  line-height: 1;
  user-select: none;
}

.logo-la {
  z-index: 2;
  margin-bottom: -0.22em;
  font-family: "Titan One", cursive;
  color: #111;
  line-height: 0.55;
  text-shadow:
    -2px -2px 0 #ffe082,
    2px -2px 0 #ffe082,
    -2px 2px 0 #ffe082,
    2px 2px 0 #ffe082,
    4px 4px 0 #ffca28;
  transform: rotate(-8deg) translateX(-16%);
}

.logo-pinata {
  z-index: 1;
  display: flex;
  gap: 0.02em;
  font-family: "Titan One", cursive;
  line-height: 0.9;
}

.logo-pinata span {
  display: inline-block;
  cursor: pointer;
  text-shadow:
    -2px -2px 0 #fff8e1,
    2px -2px 0 #fff8e1,
    -2px 2px 0 #fff8e1,
    2px 2px 0 #fff8e1,
    3px 4px 5px rgba(0, 0, 0, 0.2);
  transition: transform 260ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-pinata:hover span {
  animation: logo-bounce 500ms ease infinite alternate;
}

.logo-pinata span:hover {
  z-index: 3;
  transform: translateY(-15%) scale(1.15) rotate(0deg) !important;
}

.letter-p {
  color: #e91e63;
  transform: translateY(-4%) rotate(-4deg);
}

.letter-i {
  color: #29b6f6;
  transform: translateY(6%) rotate(5deg);
}

.letter-n {
  color: #ff9800;
  transform: translateY(-6%) rotate(-3deg);
}

.letter-a1 {
  color: #8bc34a;
  transform: translateY(4%) rotate(3deg);
}

.letter-t {
  color: #ab47bc;
  transform: translateY(-2%) rotate(-5deg);
}

.letter-a2 {
  color: #26c6da;
  transform: translateY(5%) rotate(4deg);
}

.logo-chicureo {
  margin-top: -0.05rem;
  color: #1d2433;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.logo-size-nav .logo-la {
  font-size: 1.08rem;
}

.logo-size-nav .logo-pinata {
  font-size: clamp(1.95rem, 3.4vw, 2.45rem);
}

@keyframes logo-bounce {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -0.08em;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.button.danger {
  background: #b42318;
}

.button.icon {
  width: 44px;
  padding: 0;
}

.brand,
.nav-actions,
.card,
.featured-card,
.featured-card-body,
.product-summary,
.contact-panel,
.admin-panel,
.admin-list-item,
.footer-info {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  color: #fff;
  background: #1d2433;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(18, 23, 33, 0.2), rgba(18, 23, 33, 0.7));
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: hero-fade 18s infinite;
}

.hero-slide-1 {
  background-image: url("https://images.unsplash.com/photo-1503095396549-807759245b35?auto=format&fit=crop&w=1800&q=82");
  animation-delay: 0s;
}

.hero-slide-2 {
  background-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=82");
  animation-delay: 6s;
}

.hero-slide-3 {
  background-image: url("https://images.unsplash.com/photo-1608889825271-969628dcae17?auto=format&fit=crop&w=1800&q=82");
  animation-delay: 12s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 1rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

@keyframes hero-fade {
  0%,
  30% {
    opacity: 1;
    transform: scale(1);
  }

  36%,
  94% {
    opacity: 0;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.featured-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.featured-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.featured-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.featured-copy {
  max-width: 460px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.featured-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.featured-price {
  margin-bottom: 1.1rem;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
}

.featured-carousel {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 0 3.25rem;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.featured-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.featured-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(29, 36, 51, 0.08);
}

.featured-card-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eef2f6;
  text-decoration: none;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.featured-label {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.3rem 0.55rem;
  color: #1d2433;
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.featured-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
}

.featured-card-body h3 {
  min-height: 2.5em;
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.featured-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.featured-image {
  height: 100%;
  min-height: 300px;
}

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

.carousel-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 46px;
  min-height: 46px;
  padding: 0;
  background: rgba(29, 36, 51, 0.82);
  transform: translateY(-50%);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  transform: none;
}

.carousel-dots button {
  width: 11px;
  height: 11px;
  min-height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(29, 36, 51, 0.16);
  border-radius: 999px;
}

.carousel-dots button.active {
  width: 28px;
  background: var(--sun);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.catalog-search {
  flex: 1;
  max-width: 560px;
}

.catalog-page-size {
  flex: 0 0 150px;
  width: 150px;
}

.filter-toggle {
  flex: 0 0 auto;
}

.catalog-page-hero {
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3rem);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.catalog-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.catalog-page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(29, 36, 51, 0.06);
}

.filters-panel {
  margin-bottom: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input:disabled,
select:disabled {
  color: #475467;
  background: #f3f5f8;
  cursor: not-allowed;
}

.contact-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.contact-edit-row .button {
  min-width: 96px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(29, 36, 51, 0.08);
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #eef2f6;
  text-decoration: none;
}

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

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.55rem;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.card-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card-body h3 a {
  text-decoration: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pill {
  padding: 0.25rem 0.45rem;
  background: #f3f5f8;
  border-radius: 999px;
}

.price {
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.product-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(1.2rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.product-gallery {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.product-thumbs {
  display: grid;
  gap: 0.6rem;
}

.product-thumbs button {
  width: 86px;
  min-height: 106px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 8px;
}

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

.product-main-image {
  position: relative;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.product-summary {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.product-summary h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.product-price {
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
}

.product-facts {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.product-facts p {
  margin: 0;
}

.product-option {
  display: grid;
  gap: 0.45rem;
}

.product-option label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-option span {
  width: max-content;
  min-width: 58px;
  padding: 0.5rem 0.8rem;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 42px 64px 42px;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-control button {
  min-height: 42px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-radius: 0;
}

.quantity-control input {
  min-height: 42px;
  padding: 0;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.stock-note {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 850;
}

.stock-note.out {
  color: var(--muted);
}

.product-whatsapp {
  width: 100%;
  background: #25d366;
}

.product-whatsapp.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.product-description {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.product-description h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.product-description ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.related-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
}

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel,
.admin-panel {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.5rem max(5.8rem, clamp(1rem, 4vw, 3rem)) 1.5rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: #fff;
}

.footer-info {
  max-width: 680px;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(29, 36, 51, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  margin-left: auto;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: #fff;
  background: rgba(29, 36, 51, 0.92);
}

.whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: var(--shadow);
  text-decoration: none;
  font-size: 1.6rem;
}

.status {
  margin: 1rem 0;
  color: var(--muted);
}

.notice {
  padding: 0.75rem 1rem;
  background: #fff7df;
  border: 1px solid #f3d58b;
  border-radius: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(29, 36, 51, 0.62);
  backdrop-filter: blur(6px);
}

.modal-panel {
  width: min(100%, 860px);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.admin-list-panel {
  margin-top: 1.25rem;
}

.hero-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-admin-grid .full {
  grid-column: 1 / -1;
}

.hero-admin-item {
  display: grid;
  gap: 0.75rem;
}

.hero-admin-preview {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-list-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-search {
  flex: 1;
}

.admin-page-size {
  width: 150px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-list-item img {
  width: 74px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f6;
}

.admin-list-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.admin-list-item p {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 0.94)),
    url("https://images.unsplash.com/photo-1503095396549-807759245b35?auto=format&fit=crop&w=1600&q=78") center/cover;
}

.login-panel {
  width: min(100%, 430px);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0;
  text-align: center;
}

.login-form {
  width: 100%;
}

.login-error {
  width: 100%;
  margin: 0;
}

@media (max-width: 980px) {
  .filters,
  .product-detail,
  .split {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem 0.72rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .logo-link {
    transform-origin: center;
  }

  .logo-size-nav .logo-la {
    font-size: 0.95rem;
  }

  .logo-size-nav .logo-pinata {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .logo-chicureo {
    font-size: 0.58rem;
  }

  .site-header > .nav-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    width: 100%;
    gap: 0.45rem;
  }

  .site-header > .nav-actions .button {
    width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.45rem;
    font-size: 0.88rem;
  }

  .section,
  .featured-section,
  .catalog-page-hero,
  .product-shell,
  .product-detail,
  .related-section,
  .admin-shell {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .hero {
    min-height: 58vh;
    min-height: 58svh;
    padding: 1.5rem 0.95rem 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-content .nav-actions,
  .hero-content .button,
  .featured-header .button,
  .contact-panel .button,
  .filter-toggle {
    width: 100%;
  }

  .catalog-page-hero {
    padding-top: 1.45rem;
    padding-bottom: 1.25rem;
  }

  .catalog-page-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.6rem);
  }

  .section-head h2,
  .featured-header h2 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .featured-carousel {
    padding: 0 2.1rem;
  }

  .carousel-nav {
    top: 40%;
    width: 38px;
    min-height: 38px;
  }

  .carousel-prev {
    left: 0.05rem;
  }

  .carousel-next {
    right: 0.05rem;
  }

  .featured-card-body {
    padding: 0.75rem;
  }

  .featured-card-body h3 {
    min-height: auto;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  }

  .card-body .button {
    width: 100%;
  }

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

  .catalog-page-size {
    flex-basis: auto;
    width: 100%;
  }

  .filters {
    gap: 0.65rem;
    padding: 0.85rem;
    box-shadow: none;
  }

  .map-frame {
    min-height: 280px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem 4.8rem 5.2rem 0.95rem;
  }

  .footer-admin-link {
    margin-left: 0;
  }

  .whatsapp {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 54px;
    height: 54px;
    font-size: 1.45rem;
  }
}

@media (max-width: 680px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-section,
  .filters,
  .product-detail,
  .product-gallery,
  .split,
  .catalog-toolbar,
  .contact-edit-row,
  .hero-admin-grid,
  .admin-list-item,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head .nav-actions,
  .full.nav-actions {
    width: 100%;
    align-items: stretch;
  }

  .section-head .nav-actions > *,
  .full.nav-actions > * {
    flex: 1 1 100%;
  }

  .admin-list-toolbar,
  .pagination,
  .pagination-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-size,
  .catalog-page-size {
    width: 100%;
  }

  .admin-list-actions,
  .admin-list-item .button {
    width: 100%;
  }

  .admin-list-actions {
    justify-content: stretch;
  }

  .admin-panel,
  .contact-panel,
  .product-summary {
    padding: 1rem;
  }

  .admin-list-item {
    align-items: start;
    gap: 0.75rem;
  }

  .admin-list-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-admin-preview {
    aspect-ratio: 4 / 3;
  }

  .product-thumbs {
    display: flex;
    order: 2;
    overflow-x: auto;
  }

  .product-thumbs button {
    flex: 0 0 66px;
    width: 66px;
    min-height: 82px;
  }

  .product-main-image {
    order: 1;
    aspect-ratio: 4 / 5;
  }

  .product-main-image img {
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .product-summary h1 {
    font-size: clamp(1.65rem, 10vw, 2.45rem);
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 42px 1fr 42px;
  }

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

  .featured-carousel {
    width: 100%;
    min-height: 0;
  }

  .featured-track {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 0;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0.45rem;
  }

  .modal-panel {
    width: 100%;
    max-height: 94vh;
    max-height: 94svh;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
  }

  .modal-head {
    align-items: flex-start;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions .button,
  .modal-actions button,
  .contact-edit-row .button {
    width: 100%;
  }

  .form-grid .card {
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .button,
  button,
  input,
  select {
    min-height: 40px;
  }

  .featured-carousel {
    padding: 0 1.85rem;
  }

  .carousel-nav {
    width: 34px;
    min-height: 34px;
  }

  .footer {
    padding-right: 4.5rem;
  }
}
