:root {
  --green: #8dc63f;
  --green-deep: #6ea31a;
  --ink: #333333;
  --muted: #717171;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --bg: #ffffff;
  --sans: "Lato", "Segoe UI", sans-serif;
  --header: 7.4rem;
  --pad: clamp(1rem, 3vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

body.cart-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar,
.subbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem var(--pad);
}

.topbar {
  padding-bottom: 0.35rem;
}

.subbar {
  padding-top: 0.15rem;
  padding-bottom: 0.7rem;
  justify-content: space-between;
}

.logo {
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.menu-btn,
.top-link,
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: #333;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  background: #fff;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.72rem 1rem;
  outline: none;
  font-size: 0.95rem;
}

.search button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.4rem;
  margin-right: 0.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.search svg,
.cart-btn svg,
.location svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-btn span {
  min-width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #173000;
  font-size: 0.72rem;
}

.location,
.quick {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #4d4d4d;
  font-size: 0.86rem;
}

.quick {
  gap: 1.2rem;
}

.location svg {
  width: 1rem;
  height: 1rem;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: max(1rem, calc((100% - 1240px) / 2));
  width: min(16rem, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgb(0 0 0 / 8%);
}

.nav.is-open {
  display: grid;
}

.nav a {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--soft);
  font-weight: 700;
}

.nav a:hover {
  background: var(--soft);
}

.promo {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.promo span {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.05rem 0.45rem;
  border-radius: 5px;
  background: #c6ef4a;
  color: #173000;
}

.rail {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  padding: 0.85rem var(--pad) 0.2rem;
  border-bottom: 3px solid var(--green);
}

.rail button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0 0.7rem;
  cursor: pointer;
  color: #4a4a4a;
  font-weight: 700;
}

.rail button[aria-pressed="true"] {
  color: #111;
}

.banners {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.7rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.8rem var(--pad) 0;
}

.banner {
  min-height: 16rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  color: #fff;
  overflow: hidden;
}

.banner-bars {
  background: linear-gradient(120deg, #5a3428, #c49274);
}

.banner-drinks {
  background: linear-gradient(160deg, #d7ef55, #6f8f12);
  color: #173000;
}

.banner p {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner h1,
.banner h2 {
  max-width: 12ch;
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  font-weight: 900;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner-art {
  width: 8.5rem;
  height: 5.2rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: flex-end;
  padding: 0.7rem;
  flex: none;
}

.banner-art strong,
.thumb strong {
  font-size: 1.3rem;
  font-weight: 900;
}

.categories,
.catalog-wrap,
.info,
.checkout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.8rem var(--pad);
}

.categories h2,
.catalog-head h2,
.info h2,
.checkout h2,
.site-footer h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 1.4rem;
  margin-top: 1rem;
}

.category-row a {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 6.2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
}

.bubble {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 0.4rem;
  background: var(--soft);
}

.bubble-plain {
  background:
    radial-gradient(circle at 50% 40%, #8dc63f 0 18%, transparent 19%),
    #f3f3f3;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.catalog-head p,
.specs,
.brand,
.note,
.fine,
.order-empty,
.drawer-empty {
  color: var(--muted);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.product {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid transparent;
}

.product:hover {
  border-color: #ededed;
  box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
}

.product[hidden] {
  display: none;
}

.thumb {
  height: 11rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  background: #fafafa;
}

.brand {
  font-size: 0.75rem;
}

.product h3 {
  min-height: 3.8rem;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.specs {
  font-size: 0.8rem;
}

.price {
  margin: 0.7rem 0 0.8rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.add {
  margin-top: auto;
  min-height: 2.4rem;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #173000;
  font-weight: 700;
  cursor: pointer;
}

.add:hover {
  background: var(--green-deep);
  color: #fff;
}

.bar-cacao {
  background: linear-gradient(145deg, #4a2c22, #c4a48c);
  color: #fff;
}

.bar-mani {
  background: linear-gradient(145deg, #a86420, #f0c48a);
  color: #2a1608;
}

.bar-berries {
  background: linear-gradient(145deg, #7a2d4e, #e7a3b8);
  color: #fff;
}

.pack-mix {
  background: linear-gradient(90deg, #4a2c22 0 33%, #e0a15a 33% 66%, #d16b8c 66%);
  color: #fff;
}

.can-citrus {
  background: linear-gradient(180deg, #f4f8cf, #b6d63a);
  color: #243000;
}

.can-rojos {
  background: linear-gradient(180deg, #f8d5de, #c44766);
  color: #fff;
}

.can-zero {
  background: linear-gradient(180deg, #f4f7f4, #8eaaa0);
  color: #14221e;
}

.info {
  background: var(--soft);
  max-width: none;
  padding-left: max(var(--pad), calc((100% - 1240px) / 2));
  padding-right: max(var(--pad), calc((100% - 1240px) / 2));
}

.info ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.info li {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  background: #fff;
}

.checkout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.note {
  margin-top: 0.4rem;
}

.order-box {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.order-list,
.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-list li,
.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.order-total,
.drawer-foot p {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--soft);
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  padding: 0.65rem 0.7rem;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--green-deep);
}

.form-error {
  color: #b42318;
  font-weight: 700;
}

.thanks {
  color: var(--green-deep);
  font-weight: 700;
}

.form.is-sent label,
.form.is-sent .add,
.form.is-sent .fine,
.form.is-sent .form-error {
  display: none;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.qty button {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 1.2rem;
  padding: 1.6rem max(var(--pad), calc((100% - 1240px) / 2)) 1rem;
  background: #f1f1f1;
}

.site-footer a,
.site-footer p {
  display: block;
  margin-top: 0.35rem;
  color: #555;
}

.site-footer h2 {
  margin-bottom: 0.4rem;
}

.copy {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid #ddd;
}

.drawer[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 45%);
  cursor: pointer;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(24rem, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #fff;
}

.drawer-head,
.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-list {
  flex: 1;
  overflow: auto;
}

.text-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.add-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-align: center;
}

.catalog-empty[hidden],
.drawer-empty[hidden],
.order-empty[hidden],
.thanks[hidden],
.form-error[hidden] {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .catalog,
  .info ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout,
  .site-footer,
  .banners {
    grid-template-columns: 1fr;
  }

  .top-link {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
  }

  .search {
    order: 5;
    flex-basis: 100%;
  }

  .subbar,
  .category-row {
    display: flex;
    overflow: auto;
  }

  .catalog,
  .info ol {
    grid-template-columns: 1fr;
  }

  .rail {
    justify-content: flex-start;
    overflow: auto;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
