:root {
  --navy: #123b59;
  --navy-deep: #082b43;
  --navy-soft: #dfeaf0;
  --ink: #15242e;
  --muted: #667781;
  --cream: #f6f1ec;
  --surface: #fffdfb;
  --line: #d9e0e3;
  --whatsapp: #1fa855;
  --shadow: 0 18px 48px rgba(14, 49, 72, 0.1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0%, rgba(27, 81, 117, 0.08), transparent 26rem),
    var(--cream);
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  min-height: 36px;
  padding: 0.45rem 1rem;
  background: var(--navy-deep);
  color: white;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 0.7rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(18, 59, 89, 0.12);
  background: rgba(246, 241, 236, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(18, 59, 89, 0.14);
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 1.55rem;
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 45px;
  padding: 0.7rem 0.85rem 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 700;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 0.35rem;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 0.85rem;
}

main {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.catalog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 2rem;
  align-items: end;
  padding: clamp(2.4rem, 7vw, 5.6rem) 0 2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.65rem;
  color: var(--navy-deep);
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.catalog-heading > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(10, 45, 67, 0.05);
}

.search-box span {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-box:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 59, 89, 0.1);
}

.category-list {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.5rem;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(18, 59, 89, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
}

.category-button:hover,
.category-button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.catalog-results {
  padding: 0.7rem 0 4.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.results-header h2 {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.results-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 89, 0.11);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(14, 49, 72, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.12 / 1;
  padding: 1.3rem;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.98), rgba(223, 234, 240, 0.72)),
    var(--navy-soft);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 15px rgba(8, 43, 67, 0.16));
}

.product-fallback {
  display: grid;
  place-items: center;
  width: 76%;
  min-height: 70%;
  padding: 1.4rem 1rem;
  border: 1px solid rgba(18, 59, 89, 0.16);
  border-radius: 18px 18px 28px 28px;
  background: linear-gradient(145deg, #fefdfb, #e3edf2);
  color: var(--navy);
  text-align: center;
  box-shadow: 0 16px 22px rgba(8, 43, 67, 0.1);
}

.product-fallback span {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-fallback strong {
  font-size: 1rem;
  line-height: 1.15;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stock-label {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #e7f5eb;
  color: #16733d;
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-content h3 {
  min-height: 2.55em;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.presentation {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.flavor-select {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.flavor-select span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.flavor-select select {
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.product-buy {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #e8ecee;
}

.product-buy p {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0;
}

.product-buy small {
  color: var(--muted);
  font-size: 0.67rem;
}

.product-buy strong {
  color: var(--navy-deep);
  font-size: 1.03rem;
}

.add-button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-weight: 750;
}

.add-button:hover {
  background: var(--navy-deep);
}

.buying-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(18, 59, 89, 0.14);
  border-radius: 24px;
  background: var(--navy-soft);
}

.buying-info > div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem;
}

.step-number {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.buying-info p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.buying-info strong {
  color: var(--navy-deep);
}


.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(5, 24, 37, 0.44);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100dvh;
  background: var(--surface);
  box-shadow: -16px 0 55px rgba(8, 43, 67, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.cart-open {
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-size: 1.65rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 1.8rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 1.4rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid #e7ecee;
}

.cart-item-copy {
  display: grid;
  gap: 0.25rem;
}

.cart-item-copy small {
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-item-copy strong {
  line-height: 1.25;
}

.cart-item-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-item-copy b {
  color: var(--navy-deep);
  font-size: 0.92rem;
}

.quantity-control {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.quantity-control button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.2rem;
}

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

.cart-footer {
  padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--navy-deep);
}

.cart-total span {
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-total strong {
  font-size: 1.6rem;
}

.price-note {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.checkout-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--whatsapp);
  color: white;
  font-size: 1rem;
  font-weight: 800;
}

.empty-cart,
.empty-results {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 320px;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.empty-cart span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  font-weight: 800;
}

.empty-cart strong,
.empty-results strong {
  margin-bottom: 0.35rem;
  color: var(--navy-deep);
  font-size: 1.1rem;
}

.empty-cart p,
.empty-results p {
  max-width: 280px;
  margin-bottom: 0;
  line-height: 1.5;
}

.mobile-cart {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 18;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 -12px 32px rgba(8, 43, 67, 0.12);
  backdrop-filter: blur(12px);
}

.mobile-cart button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 15px;
  background: var(--navy);
  color: white;
  text-align: left;
}

.mobile-cart button > span:first-child {
  display: grid;
  gap: 0.1rem;
}

.mobile-cart small {
  opacity: 0.78;
}

.toast {
  position: fixed;
  top: 104px;
  left: 50%;
  z-index: 60;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--navy-deep);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem 6rem;
  background: var(--navy-deep);
  color: white;
  text-align: left;
}

footer img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

footer p {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

footer a {
  color: white;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announcement {
    font-size: 0.75rem;
  }

  .site-header {
    min-height: 69px;
    padding: 0.55rem 1rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 1.3rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .cart-trigger > span:first-child {
    display: none;
  }

  .cart-trigger {
    min-width: 45px;
    justify-content: center;
    padding: 0.55rem;
  }

  .catalog-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2.4rem;
  }

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

  .product-image {
    aspect-ratio: 1 / 1;
    padding: 0.8rem;
  }

  .product-content {
    padding: 0.8rem;
  }

  .product-content h3 {
    font-size: 0.94rem;
  }

  .product-buy {
    align-items: stretch;
    flex-direction: column;
  }

  .add-button {
    width: 100%;
  }

  .buying-info {
    grid-template-columns: 1fr;
  }


  footer {
    flex-wrap: wrap;
    padding-bottom: 7rem;
  }
}

@media (max-width: 410px) {
  main {
    width: min(100% - 1.2rem, 1320px);
  }

  .product-grid {
    gap: 0.55rem;
  }

  .product-content h3 {
    min-height: 3.6em;
  }

  .product-meta {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Consistent product photography, including tall pouches and small bottles. */
.catalog-heading { border-bottom: 2px solid var(--navy); margin-bottom: 1.5rem; }
.eyebrow { font-size: 0.875rem; }
.product-card { border-radius: 12px; box-shadow: 0 5px 18px rgba(14,49,72,.045); }
.product-content h3 { font-size: 1.125rem; min-height: 2.5em; }
.product-buy strong { font-variant-numeric: tabular-nums; }
.product-buy { align-items: center; }
.product-image { border-top: 3px solid var(--navy); }
.mobile-cart { display: none; }
@media (max-width: 760px) {
  .mobile-cart { display: block; }
  .product-content h3 { font-size: 1rem; }
  .cart-trigger > span:first-child { display: inline; font-size: .875rem; }
  .brand small { font-size: .75rem; letter-spacing: .12em; }
}
.product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 1.4rem 1.4rem 3rem;
  overflow: hidden;
  background: #fff;
}
.product-image img {
  position: absolute;
  inset: 1.4rem 1.4rem 3rem;
  width: calc(100% - 2.8rem);
  height: calc(100% - 4.4rem);
  object-fit: contain;
  object-position: center;
  filter: none;
}
.image-flavor {
  position: absolute;
  bottom: 0.8rem;
  left: 0.5rem;
  right: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--navy);
}
.product-content { border-top: 1px solid #eef1f3; }
.product-meta { min-height: 1.4rem; font-size: 0.875rem; letter-spacing: 0.02em; }
.flavor-select span { font-size: 0.875rem; }
.flavor-select select { min-height: 44px; font-size: 1rem; }
.flavor-spacer { min-height: 5.15rem; }
.stock-label {
  align-self: start;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  border-radius: 7px;
  background: #e7f5eb;
  color: #17653a;
}
.stock-low { background: #fff0d8; color: #795009; }
.stock-empty { background: #edf0f2; color: #52606a; }
.product-buy small { font-size: 0.8rem; line-height: 1.3; }
.product-buy { flex-wrap: wrap; }
.product-buy strong { font-size: 1.125rem; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #3982b2; outline-offset: 3px; }
.image-unavailable { display: grid; gap: 0.5rem; padding: 1rem; color: var(--muted); text-align: center; }
.image-unavailable strong { color: var(--navy); }
.image-unavailable small { font-size: 0.8rem; }
.cart-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0.7rem; }
.cart-thumbnail { display: grid; place-items: center; align-self: start; height: 80px; background: white; border-radius: 8px; overflow: hidden; }
.cart-thumbnail img { width: 100%; height: 80px; object-fit: contain; padding: 4px; }
.cart-thumbnail .image-unavailable { padding: 3px; font-size: 0.75rem; }
.cart-thumbnail .image-unavailable span, .cart-thumbnail .image-unavailable small { display: none; }
.cart-item-copy { min-width: 0; overflow-wrap: anywhere; }
.cart-item-copy small, .cart-item-copy span { font-size: 0.875rem; }
.quantity-control { grid-column: 2; justify-self: start; grid-template-columns: 44px 40px 44px; height: 44px; }
.cart-drawer[aria-hidden="true"] { visibility: hidden; }
@media (max-width: 760px) {
  .product-image { padding: 0.8rem 0.8rem 2.6rem; }
  .product-image img { inset: 0.8rem 0.8rem 2.6rem; width: calc(100% - 1.6rem); height: calc(100% - 3.4rem); }
  .product-meta { min-height: 2.4rem; }
  .product-content { padding: 0.75rem; }
  .stock-label { min-height: 3rem; display: flex; align-items: center; }
  .flavor-select select { padding-left: 0.35rem; }
}

.announcement { flex-wrap: wrap; font-size: 0.875rem; }
.instagram-contact { color: inherit; text-underline-offset: 3px; padding: 0.25rem 0.5rem; }
.instagram-contact:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 600px) {
  .announcement .instagram-contact { flex-basis: 100%; }
}
