:root {
  color-scheme: light;
  --brand-blue: #7bbad0;
  --brand-blue-dark: #3f7e95;
  --brand-red: #bf5150;
  --brand-red-dark: #b23b44;
  --bg: #f7f8fb;
  --bg-soft: #ffffff;
  --bg-tint: #f1f5f8;
  --text: #1d2433;
  --muted: #5f6b7a;
  --warning: #c67a17;
  --danger: #b23b44;
  --shadow: 0 18px 23px rgba(24, 36, 52, 0.12);
  --radius: 18px;
  --wa: #25d366;
  --wa-hover: #1da851;
  --wa-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Futura", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 10% 10%, #fef1f1 0%, var(--bg) 45%, #eef6fa 100%);
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% 0 0 30%;
  /*background: radial-gradient(circle at 20% 20%, rgba(123, 186, 208, 0.2), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(210, 75, 82, 0.18), transparent 55%);*/
  pointer-events: none;
  z-index: -1;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid rgba(63, 126, 149, 0.12);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.logo img {
  width: 42px;
  height: 42px;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.1rem;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(63, 126, 149, 0.18);
  box-shadow: 0 14px 24px rgba(24, 36, 52, 0.08);
  width: 100%;
  position: relative;
}

.mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--brand-blue-dark);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-right: 1px solid rgba(63, 126, 149, 0.15);
  cursor: pointer;
}

.mega-btn svg {
  width: 18px;
  height: 18px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding-left: 8px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 6px;
  font-size: 1rem;
  color: var(--text);
}

.search-input::placeholder {
  color: rgba(95, 107, 122, 0.7);
}

.search-input:focus-visible {
  outline: none;
}

.search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(123, 186, 208, 0.2);
  color: var(--brand-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

.search-btn:hover,
.search-btn:focus-visible {
  background: rgba(123, 186, 208, 0.35);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(63, 126, 149, 0.18);
  box-shadow: 0 18px 32px rgba(24, 36, 52, 0.14);
  padding: 8px;
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 12;
}

.search-dropdown[hidden] {
  display: none;
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(123, 186, 208, 0.12);
  border-color: rgba(123, 186, 208, 0.25);
}

.search-result-info {
  display: grid;
  gap: 2px;
}

.search-result-name {
  font-weight: 600;
}

.search-result-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.search-badge {
  white-space: nowrap;
}

.search-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-min {
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-min .nav-link {
  padding: 4px 2px;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.nav-min .nav-link.is-active,
.nav-min .nav-link:hover,
.nav-min .nav-link:focus-visible {
  background: none;
  border-color: transparent;
  color: var(--brand-red-dark);
  box-shadow: inset 0 -2px 0 rgba(210, 75, 82, 0.6);
}

.nav-link.is-active,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: linear-gradient(120deg, rgba(123, 186, 208, 0.2), rgba(210, 75, 82, 0.15));
  border-color: rgba(123, 186, 208, 0.35);
}

.hero {
  padding: 72px 0 48px;
background: radial-gradient(120% 120% at 10% 10%, #fef1f1 0%, var(--bg) 45%, #eef6fa 100%);
}

.hero-content {
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.2rem);
  margin: 12px 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card {
  background: linear-gradient(140deg, #ffffff 0%, #f2f7fb 100%);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(123, 186, 208, 0.2);
}

.hero-list {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--muted);
}

.section {
  padding: 32px 0 64px;
}

.section-header {
  margin-bottom: 24px;
}

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

.category-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid rgba(123, 186, 208, 0.2);
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
  z-index: 0;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid rgba(210, 75, 82, 0.6);
  border-right: 3px solid rgba(123, 186, 208, 0.35);
  pointer-events: none;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.carousel {
  position: relative;
  padding: 0 44px;
  overflow: visible;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 28px 18px 36px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track > * {
  scroll-snap-align: start;
}

.carousel-item {
  position: relative;
  z-index: 0;
}

.carousel-item:hover,
.carousel-item:focus-visible {
  z-index: 2;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: transparent;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(63, 126, 149, 0.25);
  background: #fff;
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.brand-card {
  background: linear-gradient(150deg, #ffffff 0%, #f2f7fb 100%);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(123, 186, 208, 0.2);
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 0;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0 16px;
}

.filters {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.field span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(63, 126, 149, 0.2);
  background: #fff;
  font-size: 1rem;
}

input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(123, 186, 208, 0.4);
  outline-offset: 2px;
}

.header-search .search-input {
  border: none;
  background: transparent;
  padding: 10px 6px;
}

.header-search .search-input:focus-visible {
  outline: none;
}

.catalog-section {
  padding-bottom: 48px;
}

.product-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.product-card {
  background: var(--bg-soft);
  background-image: none;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(63, 126, 149, 0.18);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 0;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  background-image: none;
  border-radius: 12px;
  box-shadow: none;
}

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

.category-card h3,
.brand-card h3 {
  margin: 0;
}

.category-card p,
.brand-card p {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge--available {
  background: rgba(123, 186, 208, 0.2);
  color: var(--brand-blue-dark);
  border-color: rgba(123, 186, 208, 0.35);
}

.badge--low {
  background: rgba(198, 122, 23, 0.15);
  color: #8a520c;
  border-color: rgba(198, 122, 23, 0.25);
}

.badge--out {
  background: rgba(210, 75, 82, 0.15);
  color: var(--brand-red-dark);
  border-color: rgba(210, 75, 82, 0.3);
}

.stock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #80c1d6;
  /*background-image: linear-gradient(135deg, #80c1d6, #cf484b);*/
  color: #fff;
  /*box-shadow: 0 10px 18px rgba(128, 193, 214, 0.35);*/
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(128, 193, 214, 0.45);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(123, 186, 208, 0.4);
  color: var(--brand-blue-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(123, 186, 208, 0.12);
  border-color: rgba(123, 186, 208, 0.7);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1fb455);
  box-shadow: 0 10px 20px rgba(29, 173, 85, 0.3);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pagination button {
  border-radius: 999px;
  border: 1px solid rgba(63, 126, 149, 0.2);
  background: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

.pagination button.is-active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.product-detail {
  display: grid;
  gap: 24px;
  padding: 32px 0 48px;
}

.product-media {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(63, 126, 149, 0.18);
  box-shadow: var(--shadow);
}

.product-info h1 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-hero {
  padding: 32px 0 16px;
}

.contact-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(123, 186, 208, 0.2);
  box-shadow: var(--shadow);
}

.link {
  color: var(--brand-red-dark);
  font-weight: 600;
}

.status-message {
  font-weight: 600;
  color: var(--danger);
}

.status-message:not(:empty) {
  background: rgba(210, 75, 82, 0.1);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(210, 75, 82, 0.2);
}

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

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--brand-red);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(63, 126, 149, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whatsapp-float {
  position: fixed;
  right: max(35px, env(safe-area-inset-right));
  bottom: max(35px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wa-shadow);
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
}

.whatsapp-float:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
}

.whatsapp-float:active {
  transform: translateY(1px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.4), var(--wa-shadow);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2s infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (min-width: 768px) {
  .header-content {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-search {
    max-width: 680px;
    justify-self: center;
  }

  .nav {
    justify-content: flex-end;
  }

  .hero-content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

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

  .filters {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: end;
  }

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

  .product-detail {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

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

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .mega-btn span {
    display: none;
  }
}

@media (max-width: 767px) {
  .carousel {
    padding: 0;
  }

  .carousel-btn {
    display: none;
  }
}

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

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