:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #d9d0c0;
  --accent: #0f6b4c;
  --accent-ink: #f7faf8;
  --card: #fffdf8;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 107, 76, 0.08), transparent 36%),
    linear-gradient(180deg, #f7f3eb 0%, var(--bg) 48%, #ebe4d7 100%);
  color: var(--ink);
  font-family: var(--font);
}

a {
  color: inherit;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 11.25rem;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.hero-actions .hero-cta {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.product-detail h1,
.cart-page h1,
.success-page h1,
.instagram-page h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lede,
.hint {
  color: var(--muted);
  max-width: 36rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.coming-soon {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.card-link,
.product-card {
  text-decoration: none;
}

.product-card {
  display: block;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem;
  height: 100%;
}

.product-card img,
.product-card img.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background: #e8e1d4;
}

.product-layout img {
  display: block;
  width: 100%;
  height: auto;
  background: #e8e1d4;
}

.product-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  margin: 0.9rem 0 0.35rem;
}

.product-addon {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.addon-name {
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn.btn-addon {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Collapsed until a wallet is actually available, so the slot takes no gap. */
.express-slot {
  position: relative;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.express-slot.is-ready {
  height: auto;
  margin: 0 0 0.75rem;
  overflow: visible;
}

.express-checkout {
  height: 44px;
  visibility: hidden;
}

.express-slot.is-ready .express-checkout {
  height: auto;
  visibility: visible;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.btn-paypal {
  background: #ffc439;
  color: #111;
}

.cart-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.qty {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.qty input {
  width: 4.5rem;
  padding: 0.35rem 0.5rem;
  font: inherit;
}

.linkish {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.cart-subtotal {
  font-size: 1.15rem;
}

.promo-box:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  margin: 0 0 1rem;
}

.cart-shortfall {
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.promo-box .option-field {
  flex: 1 1 12rem;
  margin: 0;
}

.promo-box .option-field span {
  text-transform: none;
}

.error {
  color: #9b1c1c;
}

.empty,
.success-page,
.cart-page,
.product-detail {
  min-height: 40vh;
}

footer,
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(8rem, 0.75fr) minmax(0, 1.25fr) minmax(8rem, 0.7fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.site-footer nav {
  display: block;
  font-weight: 400;
}

.site-footer h2,
.site-footer-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.55rem;
}

.site-footer-lede,
.site-footer p {
  margin: 0;
  line-height: 1.45;
}

.site-footer-lede {
  max-width: 28rem;
}

.site-footer-links {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.site-footer-links a,
.site-footer-contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.15rem 0;
}

.site-footer-instagram {
  gap: 0.35em;
  white-space: nowrap;
}

.site-footer-ig {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
}

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

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer-contact {
  margin-top: 0.85rem;
}

.site-footer-copy {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

@media (max-width: 840px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }

  .site-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .site-footer-links a {
    min-height: 2.75rem;
  }
}

@media (max-width: 720px) {
  .hero {
    margin-bottom: 1.25rem;
  }

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

  .hero .lede {
    margin: 0 0 0.5rem;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.4rem;
    font-size: 0.84rem;
    line-height: 1.2;
    text-align: center;
  }

  .top {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
  }

  nav {
    width: 100%;
    gap: 0.75rem;
  }

  .deal-banner {
    margin-bottom: 0.6rem;
    padding: 0.55rem 0.75rem;
  }

  .back {
    margin-bottom: 0.5rem;
  }

  .grid {
    gap: 0.55rem;
  }

  .product-card {
    padding: 0.45rem 0.45rem 0.65rem;
  }

  .product-card h2 {
    font-size: 0.92rem;
    line-height: 1.15;
    margin: 0.4rem 0 0.12rem;
  }

  .product-card .price {
    font-size: 0.82rem;
    margin: 0;
  }

  .product-layout,
  .cart-line {
    grid-template-columns: 1fr;
  }

  .product-layout > div:not(.gallery) {
    display: flex;
    flex-direction: column;
  }

  .product-layout .eyebrow.brand {
    order: 1;
    margin-bottom: 0.2rem;
  }

  .product-layout h1 {
    order: 2;
    font-size: 1.85rem;
    margin-bottom: 0.35rem;
  }

  .product-layout .price {
    order: 3;
    margin: 0 0 0.4rem;
  }

  .product-layout .hint:has(a[href="#reviews"]) {
    order: 4;
    margin: 0 0 0.5rem;
  }

  .product-layout .product-options {
    order: 5;
    margin: 0 0 0.65rem;
  }

  .product-layout [data-add-scope] {
    order: 6;
    margin-bottom: 1rem;
  }

  .product-layout > div > p {
    order: 7;
    margin: 0 0 0.65rem;
  }

  .product-layout .hint {
    order: 8;
    margin: 0 0 0.5rem;
  }

  .product-layout .product-addon {
    order: 9;
  }

  .qty {
    align-items: flex-start;
  }

  .deal-adjust strong {
    grid-column: 1;
    justify-self: start;
  }
}

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

  .product-card h2 {
    font-size: 1.45rem;
    margin: 0.7rem 0 0.25rem;
  }

  .product-card .price {
    font-size: 1.05rem;
  }
}

.gallery {
  display: grid;
  gap: 0.75rem;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f4f4f4;
}

.color-gallery {
  display: grid;
  gap: 0.75rem;
}

.product-layout .size-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e8e1d4;
  overflow: hidden;
  border-radius: 8px;
}

.product-layout .size-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: one 3:4 photo across, the next peeking in. Beats `.product-layout > div:not(.gallery)`. */
@media (max-width: 720px) {
  .product-layout > div.color-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  .product-layout > div.color-gallery > .size-frame,
  .product-layout > div.color-gallery > .color-frame {
    flex: 0 0 82%;
    width: 82%;
    scroll-snap-align: start;
  }
}

.product-layout .color-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e8e1d4;
  overflow: hidden;
  border-radius: 8px;
}

.product-layout .color-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: none;
}

@media (max-width: 720px) {
  .gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.6rem;
    scroll-padding: 0 0.5rem;
  }

  .gallery img,
  .gallery picture {
    flex: 0 0 calc(100% - 2.5rem);
    max-height: 21vh;
    width: calc(100% - 2.5rem);
    object-fit: contain;
    scroll-snap-align: start;
    border-radius: 6px;
  }
  
  .gallery picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
.eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin: 0 0 0.25rem;
}
.eyebrow.brand {
  text-transform: none;
}

.product-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  max-width: 22rem;
}
.option-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}
.option-field span {
  color: var(--muted);
  text-transform: lowercase;
}
.option-field select,
.option-field input[type="text"],
.option-field input[type="email"],
.option-field input[type="password"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  font: inherit;
  line-height: 1.3;
  padding: 0.65rem 2.25rem 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--card);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235c564c' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
  color: var(--ink);
}
.option-field input[type="text"],
.option-field input[type="email"],
.option-field input[type="password"] {
  background-image: none;
  padding-right: 0.75rem;
}
.option-field select:focus,
.option-field input[type="text"]:focus,
.option-field input[type="email"]:focus,
.option-field input[type="password"]:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-page {
  max-width: 36rem;
}
.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}
.contact-form .names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-form textarea,
.review-form textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.banner {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.banner.err {
  border-color: #9b1c1c;
  background: rgb(155 28 28 / 0.08);
  color: #9b1c1c;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .contact-form .names {
    grid-template-columns: 1fr;
  }
}

.deal-banner {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
.deal-hint {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
}
.deal-hint a {
  color: var(--accent);
  font-weight: 700;
}
.deal-adjust strong {
  color: var(--accent);
  grid-column: 3;
  justify-self: end;
}

.subscribe-form {
  margin: 1.25rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
}
.subscribe-copy {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.subscribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.subscribe-email {
  flex: 1 1 12rem;
  margin: 0;
}
.subscribe-belt {
  flex: 1 1 10rem;
  margin: 0;
}
.subscribe-form .btn {
  flex: 0 0 auto;
  align-self: stretch;
}
.subscribe-form .hint {
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}
.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;
}
footer .subscribe-form {
  margin-top: 0.5rem;
}
.account-optin {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.account-optin h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
button.linkish {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.orders-page { max-width: 36rem; }
.orders-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin: 1rem 0 1.25rem;
}
.orders-form .option-field { flex: 1 1 14rem; margin: 0; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: var(--card);
}
.order-lines { margin: 0.5rem 0; padding-left: 1.1rem; }
.ship-block { margin-top: 0.75rem; }
.ship-address { white-space: pre-line; margin: 0.25rem 0 0; }

.admin-page { max-width: 52rem; }
.admin-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.admin-bar h1 { margin: 0; }
.admin-bar p { margin: 0; }

.reviews {
  margin-top: 2.5rem;
  max-width: 40rem;
}
.reviews h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}
.reviews h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: baseline;
  font-weight: 700;
}
.stars { letter-spacing: 0.08em; }
.star-on { color: var(--accent); }
.star-off { color: var(--line); }
.review-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--card);
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  margin: 0;
}
.review-card p,
.review-body {
  white-space: pre-wrap;
  margin: 0.45rem 0 0;
}
.review-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.rating-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  border: 0;
  margin: 0;
  padding: 0;
}
.rating-picker legend {
  width: 100%;
  padding: 0;
  margin-bottom: 0.2rem;
  color: var(--muted);
}
.rating-picker label {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.review-form .btn { justify-self: start; }
.review-card form { margin-top: 0.75rem; }
.order-card form { margin-top: 0.75rem; }
.pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.75rem;
}
.pack-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin: 0;
}
.pack-actions form:has(input[name="tracking"]) {
  flex: 1 1 100%;
}
.pack-actions .option-field {
  flex: 1 1 12rem;
  max-width: 16rem;
  margin: 0;
}
.policy {
  max-width: 40rem;
}
.policy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.35rem;
}
.policy h2 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.4rem;
}
.policy ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.policy li + li {
  margin-top: 0.35rem;
}
.pack-meta { margin: 0.2rem 0; }
.pack-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0;
}
.pack-table th,
.pack-table td {
  text-align: left;
  padding: 0.35rem 0.75rem 0.35rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

/* Mobile sticky checkout bar on /cart. Hidden until the main checkout controls leave the screen. */
.cart-bar {
  display: none;
}
@media (max-width: 640px) {
  body.cart-bar-on {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
  body.cart-bar-on [data-cart-filled]:not([hidden]) .cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(28, 25, 21, 0.08);
  }
  .cart-bar .btn {
    flex: 0 0 auto;
    margin: 0;
  }
}

.color-gallery:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Bag tag size, inline after the price in the hint style. */
.price .size-inline {
  font-weight: 400;
  font-size: 0.95rem;
}

/* Mobile: keep the whole Add to cart inside Safari's visible viewport (svh = bars shown).
   Slides size from the viewport height; 3:4 frames stay 3:4. Desktop is untouched. */
@media (max-width: 720px) {
  .deal-banner {
    margin-bottom: 0.4rem;
  }
  .product-detail .back {
    margin-bottom: 0.3rem;
  }
  .product-layout {
    gap: 0.5rem;
  }
  .product-layout > div.color-gallery {
    --slide-h: clamp(140px, calc(100vh - 440px), 420px);
    --slide-h: clamp(140px, calc(100svh - 440px), 420px);
    margin-bottom: 0;
  }
  .product-layout > div.color-gallery > .size-frame,
  .product-layout > div.color-gallery > .color-frame {
    flex: 0 0 auto;
    height: var(--slide-h);
    width: calc(var(--slide-h) * 3 / 4);
  }
  .product-layout .eyebrow.brand {
    margin-bottom: 0;
  }
  .product-layout h1 {
    margin: 0 0 0.15rem;
    line-height: 1.15;
  }
  .product-layout .price {
    margin: 0 0 0.3rem;
  }
  .product-layout .product-options {
    margin: 0 0 0.5rem;
    gap: 0.5rem;
  }
}

.instagram-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.instagram-card {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.instagram-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #e8e1d4;
}

.instagram-caption {
  margin: 0;
  white-space: pre-line;
  line-height: 1.45;
}

.instagram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  font-weight: 700;
}

.instagram-actions a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.instagram-actions a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 721px) {
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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