:root {
  --ink: #15110d;
  --charcoal: #241f1a;
  --paper: #fffaf2;
  --linen: #f4efe4;
  --porcelain: #ffffff;
  --muted: #74695c;
  --gold: #c59a4a;
  --gold-soft: #ead7a9;
  --olive: #53623b;
  --wine: #7a342d;
  --line: rgba(36, 31, 26, 0.12);
  --shadow: 0 18px 44px rgba(21, 17, 13, 0.16);
  --radius: 8px;
  color-scheme: light;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(21, 17, 13, 0.03), rgba(255, 250, 242, 0) 220px),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100dvh;
  padding-bottom: 0;
}

.brand-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
  padding: 34px max(18px, env(safe-area-inset-left)) 44px max(18px, env(safe-area-inset-right));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 17, 13, 0.72), rgba(21, 17, 13, 0.88)),
    url("assets/images/optimized/trio-arabe-hero.jpg") center/cover;
  color: var(--paper);
  text-align: center;
}

.brand-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--olive), var(--wine));
}

.brand-header::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 250, 242, 0.18), transparent 32%),
    rgba(21, 17, 13, 0.2);
  backdrop-filter: blur(1.5px);
}

.brand-hero {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
}

.brand-hero img {
  width: min(430px, 82vw);
  margin: 2px auto 12px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.38));
}

.brand-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-hero h1 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.04;
}

.brand-subtitle {
  display: block;
  max-width: 620px;
  margin-top: 10px;
  color: rgba(255, 250, 242, 0.84);
  font-size: 0.95rem;
  line-height: 1.52;
}

.header-cart {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 54px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(234, 215, 169, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
}

.service-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.service-band div {
  padding: 16px 18px;
  background: var(--linen);
}

.service-band strong,
.service-band span {
  display: block;
}

.service-band strong {
  font-size: 0.85rem;
  color: var(--charcoal);
}

.service-band span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.whatsapp-service {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.share-service {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 0;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
}

.service-icon-muted {
  background: var(--ink);
  color: var(--gold-soft);
}

.service-icon .icon {
  width: 20px;
  height: 20px;
}

.service-copy {
  min-width: 0;
}

.service-button,
.magazine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--olive);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

button.service-button {
  border: 0;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.catalog-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: 12px 0;
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(14px);
}

.search-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

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

.category-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 700;
}

.category-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 16px;
}

.featured-strip article {
  min-height: 92px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(197, 154, 74, 0.15), rgba(83, 98, 59, 0.1));
}

.featured-strip span,
.featured-strip strong {
  display: block;
}

.featured-strip span {
  margin-bottom: 7px;
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-strip strong {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.42;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  box-shadow: 0 10px 28px rgba(21, 17, 13, 0.07);
}

.product-media {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--linen);
  cursor: zoom-in;
  color: inherit;
  text-decoration: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-media:hover img {
  transform: scale(1.025);
}

.product-content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 14px;
  min-width: 0;
}

.product-tag {
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-content h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.18;
}

.product-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.price {
  color: var(--wine);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.add-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.add-button {
  flex: 0 0 auto;
  padding: 0 13px;
  font-size: 0.88rem;
}

.add-button:hover,
.whatsapp-button:hover,
.service-button:hover,
.magazine-button:hover,
.mobile-checkout:hover {
  filter: brightness(1.06);
}

.mobile-checkout {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid rgba(234, 215, 169, 0.34);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-copy,
.checkout-action {
  display: inline-flex;
  align-items: center;
}

.checkout-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.checkout-copy strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.checkout-copy span {
  color: var(--gold-soft);
  font-weight: 800;
}

.checkout-action {
  gap: 8px;
  font-weight: 800;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(21, 17, 13, 0.48);
  opacity: 0;
  transition: opacity 160ms ease;
}

.cart-backdrop[hidden],
.image-modal[hidden],
.order-confirm-modal[hidden],
.share-feedback[hidden] {
  display: none !important;
}

.cart-backdrop.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(440px, 100%);
  background: var(--paper);
  box-shadow: -22px 0 48px rgba(21, 17, 13, 0.22);
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head,
.cart-footer {
  padding: 18px;
  background: var(--porcelain);
}

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

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

.cart-head span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-head strong {
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.cart-body {
  overflow-y: auto;
  padding: 16px 18px 22px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
}

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

.cart-item h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.24;
}

.cart-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-control button,
.remove-item {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.qty-control span {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.remove-item {
  color: var(--wine);
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.order-form label {
  display: grid;
  gap: 7px;
}

.order-form span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
  outline: 0;
}

.order-form input,
.order-form select {
  height: 44px;
  padding: 0 12px;
}

.order-form textarea {
  resize: vertical;
  padding: 11px 12px;
}

.cart-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.total-line strong {
  color: var(--wine);
  font-size: 1.14rem;
}

.whatsapp-button {
  width: 100%;
  min-height: 50px;
  background: var(--olive);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 150px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.icon-wrap,
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.no-results {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.magazine-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(197, 154, 74, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(21, 17, 13, 0.96), rgba(83, 98, 59, 0.9)),
    var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.magazine-cover {
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

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

.magazine-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px 24px;
}

.magazine-copy span {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.magazine-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.06;
}

.magazine-copy p {
  margin: 0 0 8px;
  color: rgba(255, 250, 242, 0.78);
  line-height: 1.52;
}

.magazine-button {
  width: fit-content;
  background: var(--gold);
  color: var(--ink);
}

.site-footer {
  padding: 22px 18px 104px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.order-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: none;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
}

.photo-lightbox:target {
  display: grid;
  pointer-events: auto;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-backdrop,
.photo-lightbox-backdrop,
.order-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(21, 17, 13, 0.78);
}

.image-modal-panel,
.photo-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  width: min(980px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid rgba(234, 215, 169, 0.28);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.image-modal-panel > img,
.photo-lightbox-panel > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: calc(100dvh - 36px);
  object-fit: contain;
  background: #0f0b08;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 250, 242, 0.92);
}

.image-modal-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.image-modal-copy span {
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.image-modal-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.12;
}

.image-modal-copy strong {
  color: var(--wine);
  font-size: 1.1rem;
}

.image-modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.preview-add {
  width: 100%;
  margin-top: 6px;
}

.order-confirm-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid rgba(234, 215, 169, 0.28);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.order-confirm-panel header,
.order-confirm-panel footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: var(--porcelain);
}

.order-confirm-panel header {
  border-bottom: 1px solid var(--line);
}

.order-confirm-panel footer {
  border-top: 1px solid var(--line);
}

.order-confirm-panel header span,
.confirmation-block > span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-confirm-panel h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  line-height: 1.12;
}

.order-confirm-summary {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
}

.confirmation-block {
  display: grid;
  gap: 10px;
}

.confirmation-block ul,
.confirmation-block dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.confirmation-block li,
.confirmation-block dl div,
.confirmation-total {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-block li {
  list-style: none;
}

.confirmation-block dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-block dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.confirmation-block p {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--linen);
  color: var(--muted);
  line-height: 1.42;
}

.confirmation-block li strong,
.confirmation-total strong {
  color: var(--wine);
  white-space: nowrap;
}

.confirmation-total {
  border-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.confirmation-total strong {
  font-size: 1.18rem;
}

.share-feedback {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  left: max(16px, env(safe-area-inset-left));
  z-index: 90;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 760px) {
  .brand-header {
    min-height: 390px;
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .brand-hero h1 {
    font-size: 1.75rem;
  }

  .brand-subtitle {
    max-width: 320px;
    font-size: 0.84rem;
  }

  .brand-hero img {
    width: min(285px, 78vw);
  }

  .brand-hero p {
    max-width: 310px;
    font-size: 0.67rem;
  }

  .service-band {
    grid-template-columns: 1fr;
  }

  .whatsapp-service,
  .share-service {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .service-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .featured-strip {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(160px, auto);
  }

  .product-content {
    padding: 12px;
  }

  .product-content h2 {
    font-size: 1rem;
  }

  .product-content p {
    font-size: 0.82rem;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .add-button {
    width: 100%;
  }

  .cart-drawer {
    width: 100%;
  }

  .magazine-feature {
    grid-template-columns: 1fr;
  }

  .magazine-cover {
    min-height: 210px;
  }

  .magazine-copy {
    padding: 22px 18px;
  }

  .magazine-copy h2 {
    font-size: 1.5rem;
  }

  .magazine-button {
    width: 100%;
  }

  .image-modal-panel,
  .photo-lightbox-panel {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }

  .image-modal-panel > img,
  .photo-lightbox-panel > img {
    min-height: 0;
    height: auto;
    max-height: 58dvh;
  }

  .image-modal-copy {
    padding: 18px;
  }

  .image-modal-copy h2 {
    font-size: 1.32rem;
  }

  .order-confirm-panel footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 980px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-checkout {
    left: auto;
    width: 360px;
  }
}
