:root {
  --plum: #2d1435;
  --plum-2: #4a1855;
  --berry: #b63b59;
  --cream: #fbf3e8;
  --cream-2: #fffaf4;
  --gold: #c19a63;
  --leaf: #376c45;
  --ink: #201522;
  --muted: #705f6a;
  --line: rgba(45, 20, 53, 0.14);
  --shadow: 0 18px 40px rgba(45, 20, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

button,
select {
  font: inherit;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--plum);
  font-weight: 900;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--plum);
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(193, 154, 99, 0.16);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-2);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--plum);
}

.hero {
  min-height: 78svh;
  display: grid;
  align-items: center;
  padding: 112px 24px 88px;
  color: #fff;
  background-color: var(--plum);
  background-image:
    linear-gradient(90deg, rgba(45, 20, 53, 0.96) 0%, rgba(45, 20, 53, 0.84) 42%, rgba(45, 20, 53, 0.28) 76%, rgba(251, 243, 232, 0.22) 100%),
    url("assets/products/arma-tu-acai.jpg");
  background-repeat: no-repeat;
  background-position: center, right 9% center;
  background-size: cover, 650px auto;
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--plum);
  font-size: 2.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--plum);
  font-size: 1.16rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.btn-primary {
  background: var(--gold);
  color: var(--plum);
}

.btn-secondary,
.btn-secondary-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary-dark {
  color: var(--plum);
  border-color: var(--line);
  background: #fff;
}

.quick-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid rgba(193, 154, 99, 0.38);
  border-radius: 8px;
  background: var(--cream-2);
  box-shadow: var(--shadow);
}

.quick-strip button {
  min-height: 62px;
  padding: 14px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--plum);
  cursor: pointer;
  font-weight: 900;
}

.quick-strip button:last-child {
  border-right: 0;
}

.quick-strip button:hover,
.quick-strip button:focus-visible,
.quick-strip button.is-active {
  background: rgba(193, 154, 99, 0.18);
  outline: none;
}

.section {
  padding: 82px 24px;
}

.section-light {
  background: var(--cream-2);
}

.section-cream {
  background: var(--cream);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

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

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(45, 20, 53, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream);
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(193, 154, 99, 0.18);
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-price {
  color: var(--berry);
  font-weight: 900;
  white-space: nowrap;
}

.product-controls {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.product-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-controls select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-2);
  color: var(--plum);
  font-weight: 800;
}

.quantity-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.quantity-row button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-2);
  color: var(--plum);
  cursor: pointer;
  font-weight: 900;
}

.quantity-row output {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--plum);
  font-weight: 900;
}

.add-button {
  width: 100%;
  background: var(--plum);
  color: #fff;
}

.cart-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100svh - 112px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  border: 1px solid rgba(193, 154, 99, 0.42);
  border-radius: 8px;
  background: var(--cream);
  padding: 18px;
  box-shadow: var(--shadow);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-header h2 {
  font-size: 1.8rem;
}

.icon-button {
  width: 42px;
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  gap: 10px;
}

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

.cart-item img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item strong,
.cart-item span,
.cart-item small {
  display: block;
}

.cart-item strong {
  color: var(--plum);
  line-height: 1.15;
}

.cart-item small {
  color: var(--muted);
  font-weight: 700;
}

.cart-item-actions {
  display: grid;
  grid-template-columns: 32px 34px 32px;
  gap: 5px;
  align-items: center;
}

.cart-item-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-2);
  color: var(--plum);
  cursor: pointer;
  font-weight: 900;
}

.cart-item-actions span {
  text-align: center;
  color: var(--plum);
  font-weight: 900;
}

.cart-empty {
  padding: 18px;
  border: 1px dashed rgba(45, 20, 53, 0.25);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 2px solid rgba(45, 20, 53, 0.18);
}

.cart-total span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.cart-total strong {
  color: var(--plum);
  font-size: 2rem;
  line-height: 1;
}

.cart-actions {
  display: grid;
  gap: 10px;
}

.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.order-preview {
  display: grid;
  gap: 10px;
}

.order-preview img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.menu-page {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 20, 53, 0.18);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 8px 18px rgba(45, 20, 53, 0.08);
}

.menu-page img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  transition: transform 180ms ease;
}

.menu-page:hover img,
.menu-page:focus-visible img {
  transform: scale(1.03);
}

.menu-page:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.contact-section {
  padding: 58px 24px;
  background: var(--plum);
  color: #fff;
}

.contact-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.contact-inner img {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}

.contact-inner h2 {
  color: #fff;
}

.contact-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.floating-cart span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--plum);
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: #180d1c;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(18, 10, 20, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 92svh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 1080px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
    max-height: none;
  }

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

@media (max-width: 980px) {
  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    background-position: center, right -160px bottom 20px;
    background-size: cover, 620px auto;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    min-height: 66px;
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    max-width: 180px;
    white-space: normal;
    line-height: 1.05;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream-2);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 74svh;
    align-items: start;
    padding: 92px 18px 240px;
    background-image:
      linear-gradient(180deg, rgba(45, 20, 53, 0.97) 0%, rgba(45, 20, 53, 0.88) 54%, rgba(45, 20, 53, 0.36) 100%),
      url("assets/products/arma-tu-acai.jpg");
    background-position: center, center bottom -84px;
    background-size: cover, 430px auto;
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -18px;
  }

  .quick-strip button {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 58px 18px;
  }

  .product-grid,
  .menu-gallery {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 48px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
  }

  .floating-cart {
    right: 12px;
    bottom: 12px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox img {
    width: 100%;
    height: auto;
    max-height: 86svh;
    object-fit: contain;
  }
}
