:root {
  --cream: #f7f1e7;
  --paper: #faf6ef;
  --sand: #e9dfcf;
  --wine: #7b1e32;
  --green: #173e32;
  --green-2: #215241;
  --gold: #daba88;
  --ink: #201f1b;
  --muted: #6b655d;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
}

body.locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.section-shell {
  width: min(100% - 2.5rem, 1330px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.7rem;
  padding: 0.85rem clamp(1.25rem, 5vw, 4.5rem);
  color: white;
  background: rgba(16, 45, 37, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: var(--green);
  background: var(--gold);
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-logo {
  width: 2.65rem;
  height: 2.65rem;
  object-fit: cover;
  background: #332c69;
  border: 1px solid rgba(218, 186, 136, 0.42);
  border-radius: 8px;
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.brand small {
  margin-top: -0.1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.6rem;
  padding: 0 0.95rem;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.cart-button b {
  display: grid;
  place-items: center;
  min-width: 1.55rem;
  min-height: 1.55rem;
  color: var(--green);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 4.7rem);
  overflow: hidden;
  color: white;
  background: var(--green);
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 31, 25, 0.97) 0%, rgba(12, 31, 25, 0.83) 41%, rgba(12, 31, 25, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 760px);
  min-height: inherit;
  margin-inline: clamp(1.25rem, 6vw, 5rem);
  padding-block: 4rem;
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-text {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.primary-button,
.secondary-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: white;
  background: var(--green);
}

.hero .primary-button {
  color: var(--green);
  background: #f5ead8;
}

.secondary-button {
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.soft-button {
  min-height: 2.45rem;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(23, 62, 50, 0.22);
  font-size: 0.78rem;
}

.primary-button:hover,
.secondary-button:hover,
.soft-button:hover,
.category-tile:hover {
  transform: translateY(-2px);
}

.primary-button:hover,
.soft-button:hover {
  color: white;
  background: var(--green-2);
}

.wide {
  width: 100%;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-points span::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  background: var(--gold);
  border-radius: 999px;
  vertical-align: 0.08rem;
}

.hero-note {
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: 2rem;
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  backdrop-filter: blur(14px);
}

.hero-note small,
.hero-note b {
  display: block;
}

.hero-note small {
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.hero-note b {
  margin-top: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.category-band,
.catalog,
.delivery,
.branches {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.category-band {
  background: #efe5d6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.category-tile {
  min-height: 9.5rem;
  padding: 1.3rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(185, 170, 150, 0.35);
  border-radius: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile small,
.category-tile b,
.category-tile span {
  display: block;
}

.category-tile small {
  color: var(--wine);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
}

.category-tile b {
  margin-top: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.category-tile span {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.catalog {
  background: #f0e8dc;
}

.section-title {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-lead {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.catalog-tools {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-block: 1.2rem;
  border-block: 1px solid rgba(185, 170, 150, 0.42);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 2.7rem;
  padding: 0 1rem;
  color: #5e554c;
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.tabs button.active {
  color: white;
  background: var(--wine);
}

.filters {
  display: grid;
  gap: 0.75rem;
}

.filters label {
  display: grid;
  gap: 0.35rem;
  color: #70685e;
  font-size: 0.75rem;
  font-weight: 800;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(185, 170, 150, 0.35);
  border-radius: 999px;
  outline: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.1rem 1.25rem;
  margin-top: 2rem;
}

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: var(--sand);
  border: 0;
  border-radius: 1.35rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.7s ease;
}

.product-card:hover .product-image img {
  scale: 1.035;
}

.badge,
.stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--wine);
  background: rgba(247, 241, 231, 0.92);
}

.stock {
  flex: 0 0 auto;
  color: #356453;
  background: #e7eee9;
}

.open-mark {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: white;
  background: var(--green);
  border-radius: 999px;
  font-size: 1.35rem;
  opacity: 0;
  translate: 0 0.5rem;
  transition: opacity 0.2s ease, translate 0.2s ease;
}

.product-card:hover .open-mark {
  opacity: 1;
  translate: 0 0;
}

.product-copy {
  padding: 1rem 0.1rem 0;
}

.product-title-row,
.product-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.link-title {
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.2;
}

.link-title:hover {
  color: var(--wine);
}

.product-copy p {
  display: -webkit-box;
  min-height: 2.6rem;
  margin: 0.55rem 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.93rem;
  line-height: 1.45;
}

.product-bottom {
  align-items: center;
  margin-top: 1rem;
}

.product-bottom strong {
  display: inline-block;
  font-size: 0.98rem;
}

.product-bottom span {
  margin-left: 0.4rem;
  color: #8b8378;
  font-size: 0.78rem;
}

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

.branches {
  background: #f0e8dc;
}

.delivery-grid {
  display: grid;
  gap: 2rem;
}

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

.delivery-list div {
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid rgba(185, 170, 150, 0.35);
  border-radius: 1rem;
}

.delivery-list b,
.delivery-list span {
  display: block;
}

.delivery-list span {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.branches-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.branches-logo {
  width: 7.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: #332c69;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(36, 29, 20, 0.14);
}

.branch-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.branch-card {
  display: grid;
  overflow: hidden;
  background: #fffaf3;
  border: 1px solid rgba(185, 170, 150, 0.34);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(36, 29, 20, 0.08);
}

.branch-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sand);
}

.branch-copy {
  display: grid;
  gap: 0.65rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.branch-label {
  width: fit-content;
  padding: 0.35rem 0.6rem;
  color: #7b1e32;
  background: #f2e3ce;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branch-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.branch-copy p {
  margin: 0;
  color: var(--muted);
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.branch-actions .primary-button,
.branch-actions .soft-button {
  min-height: 2.75rem;
}

.footer {
  padding-block: 3rem;
  color: rgba(255, 255, 255, 0.75);
  background: #102d25;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  color: white;
}

.footer p {
  max-width: 420px;
  margin: 1rem 0 0;
  line-height: 1.7;
}

.footer h3 {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
}

.footer a:hover {
  color: var(--gold);
}

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.modal-backdrop {
  display: grid;
  align-items: end;
}

.product-modal {
  position: relative;
  display: grid;
  width: 100%;
  max-height: 94svh;
  overflow-y: auto;
  background: #f8f2e8;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.modal-close,
.drawer-head button {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: var(--ink);
  background: rgba(248, 242, 232, 0.92);
  border: 0;
  border-radius: 999px;
  font-size: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
}

.modal-media {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  background: var(--sand);
}

.modal-media > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.modal-stock {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  background: var(--green);
}

.thumbs {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
}

.thumbs button {
  flex: 0 0 auto;
  width: 3.7rem;
  height: 3.7rem;
  overflow: hidden;
  padding: 0;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 0.8rem;
}

.thumbs button.active {
  border-color: var(--gold);
}

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

.modal-copy {
  padding: 1.7rem;
}

.modal-copy h2,
.checkout-modal h2 {
  margin: 0.55rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.composition {
  display: grid;
  gap: 0.3rem;
  margin-block: 1.3rem;
  padding-block: 1rem;
  color: #766e64;
  border-block: 1px solid rgba(185, 170, 150, 0.4);
}

.composition b {
  color: var(--ink);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  font-size: 0.9rem;
  font-weight: 900;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.variant-list button {
  min-height: 2.65rem;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid rgba(185, 170, 150, 0.5);
  border-radius: 999px;
}

.variant-list button.active {
  color: white;
  background: var(--wine);
  border-color: var(--wine);
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1.6rem 1rem;
}

.quantity {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  border: 1px solid rgba(185, 170, 150, 0.55);
  border-radius: 999px;
}

.quantity button {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  background: transparent;
  border: 0;
  font-size: 1.1rem;
}

.quantity span {
  min-width: 2rem;
  text-align: center;
  font-weight: 900;
}

.drawer-backdrop {
  display: flex;
  justify-content: flex-end;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  min-height: 100%;
  padding: 1.2rem;
  background: #f8f2e8;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.25);
}

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

.drawer-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 400;
}

.cart-items {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(185, 170, 150, 0.38);
  border-radius: 1rem;
}

.cart-item img {
  width: 4.8rem;
  height: 4.8rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

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

.cart-item span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item strong {
  grid-column: 2;
  margin-top: 0.4rem;
}

.quantity.small {
  height: 2.25rem;
  margin-top: 0.6rem;
}

.quantity.small button {
  width: 2.1rem;
  height: 2.1rem;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-block: 1.5rem 1rem;
  font-size: 1.1rem;
}

.empty,
.empty-cart {
  padding: 3rem 0;
  color: var(--muted);
  text-align: center;
}

.checkout-modal {
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: min(100% - 2rem, 480px);
  margin: auto;
  padding: 1.6rem;
  background: #f8f2e8;
  border-radius: 1.35rem;
}

.checkout-modal label {
  display: grid;
  gap: 0.4rem;
  color: #4f4a43;
  font-size: 0.82rem;
  font-weight: 900;
}

.checkout-modal input,
.checkout-modal textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(141, 125, 104, 0.38);
  border-radius: 0.8rem;
  outline: 0;
}

.checkout-modal textarea {
  resize: vertical;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(calc(100% - 2rem), 390px);
  min-height: 3.4rem;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--green);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.toast span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.toast button {
  margin-left: auto;
  color: white;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
}

.mobile-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.3rem;
  padding: 0 1.2rem;
  color: white;
  background: var(--wine);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(70, 11, 25, 0.28);
  font-weight: 900;
}

@media (min-width: 640px) {
  .filters {
    grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.7fr);
  }
}

@media (min-width: 768px) {
  .section-shell {
    width: min(100% - 4rem, 1330px);
  }

  .desktop-nav {
    display: flex;
  }

  .hero-note {
    display: block;
  }

  .delivery-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .branches-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .modal-backdrop {
    align-items: center;
    padding: 1.2rem;
  }

  .product-modal {
    grid-template-columns: 1fr 1fr;
    width: min(100%, 1050px);
    margin: auto;
    border-radius: 1.5rem;
  }

  .modal-media {
    min-height: 620px;
  }

  .modal-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
  }

  .mobile-cart {
    display: none;
  }
}

@media (min-width: 1024px) {
  .catalog-tools {
    grid-template-columns: 1fr 440px;
    align-items: end;
  }
}

@media (max-width: 760px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 31, 25, 0.94) 0%, rgba(12, 31, 25, 0.72) 58%, rgba(12, 31, 25, 0.26) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent);
  }

  .cart-button span {
    display: none;
  }
}

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

/* UI polish for uploaded product catalog */
body {
  background:
    linear-gradient(180deg, #f7f1e7 0, #efe6d8 620px, #f3ecdf 100%);
}

.site-header {
  min-height: 4.25rem;
  padding-block: 0.55rem;
  box-shadow: 0 12px 34px rgba(16, 45, 37, 0.18);
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
}

.brand-logo {
  width: 2.45rem;
  height: 2.45rem;
}

.hero {
  min-height: 74svh;
}

.hero h1 {
  font-size: 4.15rem;
  letter-spacing: 0;
}

.section-title {
  font-size: 3.4rem;
  letter-spacing: 0;
}

.category-band,
.catalog,
.delivery,
.branches {
  padding-block: 4.75rem;
}

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

.category-tile {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  padding: 0;
  color: white;
  background: #173e32;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(36, 29, 20, 0.12);
}

.category-tile img,
.category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: scale 0.35s ease;
}

.category-tile:hover img {
  scale: 1.04;
}

.category-shade {
  background: linear-gradient(180deg, rgba(10, 22, 18, 0.12), rgba(10, 22, 18, 0.78));
}

.category-content {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 1;
}

.category-tile small {
  color: #f2d9af;
  letter-spacing: 0.12em;
}

.category-tile b {
  margin-top: 0.45rem;
  color: white;
  font-size: 1.45rem;
  line-height: 1.08;
}

.category-tile span span {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.74);
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.catalog-count {
  display: grid;
  place-items: center;
  width: 7.2rem;
  height: 7.2rem;
  color: var(--green);
  background: #fffaf3;
  border: 1px solid rgba(185, 170, 150, 0.42);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(36, 29, 20, 0.08);
}

.catalog-count b,
.catalog-count span {
  display: block;
}

.catalog-count b {
  margin-bottom: -1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
}

.catalog-count span {
  max-width: 5.2rem;
  color: #6b655d;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.catalog-tools {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(185, 170, 150, 0.35);
  border-radius: 8px;
}

.tabs {
  padding: 0;
}

.tabs button,
.filters input,
.filters select {
  border-radius: 8px;
}

.tabs button {
  min-height: 2.45rem;
  padding-inline: 0.9rem;
}

.filters input,
.filters select {
  min-height: 2.65rem;
  background: #fffaf3;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  align-items: stretch;
  gap: 1.15rem;
}

.product-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  background: #fffaf3;
  border: 1px solid rgba(185, 170, 150, 0.34);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(36, 29, 20, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 30, 50, 0.25);
  box-shadow: 0 22px 54px rgba(36, 29, 20, 0.14);
}

.product-image {
  aspect-ratio: 1 / 0.78;
  background: #eadfce;
  border-radius: 0;
}

.product-image img {
  object-fit: cover;
}

.open-mark {
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
}

.product-copy {
  display: flex;
  flex: 1;
  min-height: 13.2rem;
  padding: 0.95rem;
  flex-direction: column;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.7rem;
}

.category-pill,
.stock {
  min-width: 0;
  min-height: 1.45rem;
  padding-inline: 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  max-width: 58%;
  overflow: hidden;
  color: #7b1e32;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  background: #f2e3ce;
  font-weight: 900;
}

.stock {
  color: #285a48;
  background: #e1eadf;
}

.link-title {
  display: -webkit-box;
  min-height: 4.55rem;
  margin-top: 0.75rem;
  overflow: hidden;
  font-size: 1.28rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-copy p {
  min-height: 2.55rem;
  margin-top: 0.5rem;
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
}

.product-bottom {
  align-items: end;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.price-block {
  min-width: 0;
}

.product-bottom strong,
.product-bottom span {
  display: block;
}

.product-bottom strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-bottom span {
  margin: 0.22rem 0 0;
}

.soft-button {
  flex: 0 0 auto;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border-radius: 999px;
}

.delivery-list div,
.checkout-modal,
.cart-drawer,
.cart-item {
  border-radius: 8px;
}

.modal-close,
.drawer-head button {
  border-radius: 50%;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 6rem;
  }

  .section-title {
    font-size: 4.4rem;
  }
}

@media (min-width: 1024px) {
  .catalog-tools {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-head {
    display: block;
  }

  .catalog-count {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 0.65rem;
    padding-inline: 1rem;
  }

  .brand b {
    font-size: 1.05rem;
  }

  .brand small,
  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 68svh;
  }

  .hero-content {
    width: min(100% - 2rem, 760px);
    margin-inline: 1rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .section-title {
    font-size: 2.55rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 10.75rem;
  }

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

  .product-copy {
    min-height: 11.6rem;
  }
}
