:root {
  --ink: #173136;
  --paper: #fff;
  --page-background: linear-gradient(180deg, #fff 0, #fafafa 65vh, #f4f4f4 130vh);
  --cream: #f7f7f7;
  --line: #b6b3af;
  --muted: #4b5353;
  --gold: oklch(.842 .1 84);
  --accent: #341625;
  --heading: Fraunces, Amiri, Georgia, serif;
  color: var(--ink);
  background: var(--page-background) no-repeat;
  background-color: #f4f4f4;
  font: 16px/1.65 Jost, Cairo, sans-serif;
}
html { scroll-behavior: smooth; }
[lang="ar"] { font-family: Cairo, sans-serif; }
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a97831; outline-offset: 4px; }
h1, h2, h3, .brand, .universe strong { font-family: var(--heading); line-height: 1.05; }
h2 { font-size: calc(clamp(2rem, 4vw, 3rem) - 2pt); font-weight: 500; }
h3 { font-size: calc(1.17em - 2pt); font-weight: 500; }
.wrap, .nav-inner { max-width: 1440px; margin: auto; padding-inline: 32px; }
.section { padding-block: 112px; }
.tonal { background: color-mix(in srgb, var(--cream) 70%, var(--paper)); }
.dark { background: var(--ink); color: var(--cream); }
.nav { position: fixed; inset: 0 0 auto; z-index: 5; border-bottom: 1px solid transparent; transition: background .3s; }
.nav.scrolled, .nav:has(.menu[aria-expanded="true"]) { background: var(--paper); border-color: var(--line); }
.nav-inner, .nav-actions, .nav nav, .actions { display: flex; align-items: center; }
.nav-inner { min-height: 80px; justify-content: space-between; gap: 16px; }
.nav nav { gap: clamp(12px, 2.5vw, 32px); font-weight: 500; font-size: 14px; }
.nav nav a:hover, .nav nav a[aria-current] { color: #9b772f; }
.nav-actions, .actions { gap: 12px; }
.actions { flex-wrap: wrap; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 20px; font-weight: 600; }
.brand i, .round { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 17px; }
.brand i { color: #b28a43; border-color: #c9a45b70; }
.brand small { display: block; font: 10px/1.6 Jost, Cairo, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.dark .brand small { color: #d9cbb8; }
.languages { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); background: var(--cream); border-radius: 30px; }
.languages button { border: 0; border-radius: 30px; padding: 2px 10px; background: transparent; font-size: 12px; }
.languages button[aria-pressed="true"] { background: var(--accent); color: white; }
.button, .outline { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 24px; min-height: 44px; border: 1px solid var(--accent); border-radius: 100px; background: var(--accent); color: white; font-size: 14px; font-weight: 500; text-align: center; }
.button:hover { background: #50263b; border-color: #50263b; }
.outline { background: transparent; color: inherit; border-color: var(--line); }
.outline:hover, .round:hover { border-color: var(--accent); }
.menu { display: none; }
.banner { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; text-align: center; color: var(--paper); background: #473017; }
.hero { min-height: max(640px, 100svh); }
.cover, .banner::after { position: absolute; inset: 0; }
.cover { z-index: -2; }
.banner::after { content: ""; z-index: -1; background: linear-gradient(#0006, #0004, #0007); }
.hero-frame { position: absolute; inset: 24px; pointer-events: none; color: #e0be6860; }
.hero-frame span { position: absolute; width: 40px; height: 40px; border: 1px solid; }
.hero-frame span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hero-frame span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.hero-frame span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.hero-frame span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.banner-copy { padding: 20px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow::before, .heading .eyebrow::after, .banner .eyebrow::after { content: ""; width: 32px; height: 1px; background: #b79750; }
.banner .eyebrow, .heading .eyebrow { justify-content: center; }
.banner .eyebrow, .dark .eyebrow { color: #ebdbc2; }
.hero h1 { margin-top: 24px; font-size: calc(clamp(3rem, 8vw, 6rem) - 2pt); font-weight: 400; letter-spacing: -.035em; }
.hero h1 em { display: block; color: var(--gold); font-weight: 300; }
.banner-copy > p:not(.eyebrow) { max-width: 570px; margin: 24px auto 40px; color: #f2e8db; font-size: 18px; font-weight: 300; }
.banner .actions { justify-content: center; }
.hero .button, .hero .outline { padding: 14px 26px; }
.banner .outline { border-color: #ffefd96b; }
.scroll-cue { position: absolute; bottom: 26px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffefd96b; border-radius: 50%; }
.heading { text-align: center; margin: 0 auto 56px; }
.heading h2, .editorial h2, .wedding h2 { margin-top: 20px; }
.heading > p:last-child, .editorial > p:not(.eyebrow) { color: var(--muted); max-width: 580px; margin: 20px auto 0; }
.editorial > p:not(.eyebrow) { margin-inline: 0; }
.editorial > :is(.button, .outline, .actions) { margin-top: 28px; }
.univers { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; align-items: start; }
.universe { grid-column: span 5; position: relative; display: block; border: 0; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 14; color: var(--paper); background: #51402e; text-align: start; }
.universe.wide { grid-column: span 7; }
.universe.square { aspect-ratio: 1; }
.universe img, .universe::after { position: absolute; inset: 0; }
.universe img { transition: transform .6s; }
.universe:hover img { transform: scale(1.05); }
.universe::after { content: ""; background: linear-gradient(0deg,#000b,transparent 55%); }
.universe span, .universe i { position: absolute; z-index: 1; inset-block-end: 24px; }
.universe span { inset-inline-start: 24px; }
.universe i { inset-inline-end: 24px; border: 1px solid #fff7; border-radius: 50%; display: grid; place-items: center; width: 38px; height: 38px; }
.universe strong { display: block; font-size: 30px; font-weight: 500; }
.universe small { font-size: 14px; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 64px; }
.spacious { gap: 80px; }
.photo { position: relative; overflow: hidden; border-radius: 8px; background: var(--line); }
.photo img, .signature-list img { object-position: center top; }
.portrait { aspect-ratio: 4 / 5; }
.landscape { aspect-ratio: 4 / 3; }
.badge { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; background: var(--paper); color: var(--ink); padding: 6px 14px; border-radius: 30px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.stats { display: flex; flex-wrap: wrap; gap: 26px; padding: 20px 0; margin-top: 24px; border-block: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .1em; }
.stats dd, .rate-grid dd { font-family: var(--heading); font-size: 24px; }
.signature-list, .grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 56px; }
.signature-list button, .grid .piece-button { padding: 0; border: 0; background: transparent; text-align: start; }
.signature-list img, .grid img { height: auto; aspect-ratio: 4 / 5; border-radius: 8px; }
.signature-list h3, .grid h3 { margin-top: 14px; font-size: calc(17px - 2pt); }
.grid .actions { margin-top: 12px; }
.center { display: flex; justify-content: center; margin-top: 36px; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#catalog { margin-top: 56px; scroll-margin-top: 100px; }
.wedding { min-height: 620px; }
.wedding h2 { font-size: calc(clamp(2.5rem, 6vw, 3.75rem) - 2pt); }
.rates { padding-block: 80px; gap: 80px; }
.rates h2 { font-size: calc(36px - 2pt); }
.rate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 8px; }
.rate-grid div { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 18px 10px; text-align: center; }
.rate-grid dt, .rate-grid small { color: var(--muted); font-size: 12px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.contact-list i { color: #9b772f; margin-inline-end: 8px; }
.shop-photo img { height: auto; aspect-ratio: 5 / 3; }
.map-link { display: block; background: var(--cream); padding: 20px; text-align: center; }
.dark .editorial > p:not(.eyebrow), footer p, footer small { color: #d8cabe; }
footer .wrap { padding-block: 72px 28px; border-top: 1px solid #fff2; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h3 { font-size: calc(18px - 2pt); margin-bottom: 16px; }
.footer-grid p { margin: 12px 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-newsletter { max-width: 440px; margin-top: 32px; }
.footer-newsletter label { display: block; margin-bottom: 8px; }
.footer-end { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 50px; padding-top: 20px; border-top: 1px solid #fff2; }
.footer-end small { text-align: left; font-size: .875rem; }
.footer-end p { text-align: right; margin: 0; font-size: .875rem; }
#newsletter { display: flex; gap: 8px; }
#newsletter input { min-width: 0; }
dialog { width: min(32rem,calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #20150eaa; }
dialog h2 { font-size: calc(34px - 2pt); margin-block: 12px; }
dialog p { margin-bottom: 10px; }
.close { position: absolute; inset-inline-end: 6px; top: 6px; }
.close button { border: 0; border-radius: 50%; background: var(--paper); font-size: 25px; width: 40px; height: 40px; }
#channels { display: flex; flex-wrap: wrap; gap: 8px; }
#request { display: grid; gap: 12px; margin-top: 16px; }
#request label { display: grid; gap: 4px; }
input, textarea { width: 100%; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
#feedback { margin: 12px 0 0; }
#feedback:empty, #newsletter-status:empty { display: none; }
#piece-image { height: auto; max-height: 44vh; object-fit: contain; border-radius: 8px; background: var(--cream); }
@media (max-width: 1000px) {
  .menu { display: grid; }
  .nav nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 18px 32px; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .nav:has(.menu[aria-expanded="true"]) nav { display: flex; }
  .split { gap: 36px; }

}
@media (max-width: 767px) {
  .wrap, .nav-inner { padding-inline: 16px; }
  .nav-inner { min-height: 66px; }
  .nav-visit { display: none; }
  .hero-frame { inset: 16px; }
  .hero .cover { object-position: 58% center; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .16em; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 16px; }
  .section { padding-block: 80px; }
  .univers, .split { grid-template-columns: 1fr; gap: 16px; }
  .universe, .universe.wide { grid-column: auto; aspect-ratio: 4 / 5; }
  .split { gap: 32px; }
  .signature-list, .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .wedding { min-height: 520px; }
  .rates { padding-block: 64px; }
}
@media (max-width: 480px) {
  .nav-actions { gap: 5px; }
  .brand { gap: 6px; }
  .brand small { letter-spacing: .09em; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .actions { gap: 8px; }
  .hero .actions a { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.catalog-tools { padding-block: 48px 0; scroll-margin-top: 90px; }
#catalog-search { max-width: 600px; margin: auto; }
#catalog-search > div { display: flex; gap: 8px; }
#catalog-search input { min-width: 0; }
.category-shortcuts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.category-shortcuts a { display: block; text-align: center; }
.category-shortcuts img { width: min(100%, 168px); height: auto; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 8px; }
.merchandise { padding-inline: clamp(12px, 2vw, 32px); }
.merch-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.merch-links a { position: relative; isolation: isolate; min-height: 190px; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--accent); color: white; font-family: var(--heading); font-size: clamp(1.3rem, 3vw, 2.2rem); }
.merch-links img { position: absolute; inset: 0; z-index: -2; }
.merch-links a::after { content: ""; position: absolute; inset: 0; background: #0005; z-index: -1; }
.shelf { padding-top: 56px; scroll-margin-top: 50px; }
.shelf .grid { margin-top: 24px; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; padding: 24px 16px; border-block: 1px solid var(--line); background: var(--cream); margin-top: 18px; }
.service-strip :is(div, button) { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; }
.service-strip i { color: var(--accent); font-size: 20px; }
.footer-link { padding: 0; border: 0; background: transparent; }
.footer-link:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .category-shortcuts { display: flex; overflow-x: auto; padding: 4px; }
  .category-shortcuts a { flex: 0 0 118px; font-size: 14px; }
  .merch-links { gap: 8px; }
  .merch-links a { min-height: 125px; }
  .service-strip :is(div, button) { flex-direction: column; font-size: 14px; }
}
@media (max-width: 480px) {
  .nav-actions .round { inline-size: 32px; block-size: 32px; }
  .nav-inner { gap: 4px; }
  .merch-links a { font-size: 1rem; }
}

.store-header { background: linear-gradient(180deg, #fff, #fafafa); }
.utility { background: var(--cream); border-bottom: 1px solid var(--line); font-size: .875rem; }
.utility-inner, .utility-links { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-inner { min-height: 34px; }
.utility-links button, .category-nav button { border: 0; background: transparent; padding: 0; }
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(8px, 2vw, 24px); padding-block: 10px; }
.masthead .brand { font-size: clamp(1.25rem, 2.5vw, 1.7rem); gap: 7px; }
.masthead .brand i { inline-size: 28px; block-size: 28px; font-size: 14px; }
.masthead .brand small { font-size: 8px; letter-spacing: .14em; }
.masthead .nav-actions { display: flex; justify-self: end; }
.masthead #catalog-search { margin: 0; width: 100%; max-width: 300px; }
#catalog-search > div { position: relative; }
#catalog-search input { min-height: 34px; padding-block: 5px; padding-inline: 10px 33px; font-size: .875rem; }
.search-submit { position: absolute; inset-inline-end: 2px; inset-block: 2px; width: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 16px; }
.search-submit:hover { background: var(--cream); }
.category-nav { background: var(--ink); color: var(--paper); border-block: 1px solid var(--ink); }
.category-nav .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4.1vw, 64px); min-height: 42px; overflow-x: auto; white-space: nowrap; }
.category-nav :is(a, button) { flex: 0 0 auto; }
.category-nav :is(a, button):hover { color: white; text-decoration: underline; }
.utility-links :is(a, button):hover { color: var(--accent); text-decoration: underline; }
.front-hero { position: relative; overflow: hidden; background: var(--cream); }
.front-slide { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(500px, 75svh, 880px); color: #fff; background: var(--ink); }
.front-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #120c12dc, #120c1266 59%, #120c1214); }
[dir="rtl"] .front-slide::after { transform: scaleX(-1); }
.front-copy { max-width: 680px; padding: clamp(24px, 5vw, 72px); padding-bottom: clamp(78px, 8vw, 112px); }
.front-copy :is(h1, h2) { font-size: calc(clamp(2.6rem, 5.4vw, 5.3rem) - 2pt); font-weight: 500; margin-block: 16px; }
.front-copy .eyebrow, .front-copy > p:not(.eyebrow) { color: #f7f4f4; }
.front-copy > p:not(.eyebrow) { max-width: 32ch; margin-bottom: 24px; }
.front-slide > img { position: absolute; inset: 0; z-index: -2; object-position: center; animation: hero-pan 4.5s ease-out both; }
@keyframes hero-pan { from { transform: scale(1); } to { transform: scale(1.045); } }
@media (prefers-reduced-motion: reduce) { .front-slide > img { animation: none; } }
.slide-controls { position: absolute; inset-inline-start: clamp(24px, 5vw, 72px); bottom: 20px; display: flex; gap: 8px; }
.slide-controls button { background: var(--paper); }
.front .merch-links { margin-top: 16px; padding-inline: clamp(12px, 2vw, 32px); }
.front .merch-links a { inline-size: 100%; min-height: 110px; aspect-ratio: 2.1; }
.catalog-tools { padding-block: 52px 0; }
.catalog-tools > h2, .shelf > h2 { text-align: center; font-size: calc(clamp(1.8rem, 3vw, 2.6rem) - 2pt); }
.category-shortcuts { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 24px; }
.shelf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 24px; }
.shelf-row .grid { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(145px, 19%, 235px); grid-template-columns: none; overflow-x: auto; margin: 0; padding: 5px; scroll-snap-type: x mandatory; }
.shelf-row article { scroll-snap-align: start; }
.shelf-row .piece-button { width: 100%; }
#offres { text-align: center; }
@media (max-width: 900px) {
  .category-nav .wrap { justify-content: flex-start; }
  .masthead .brand { grid-column: 2; grid-row: 1; }
  .masthead .nav-actions { grid-column: 3; grid-row: 1; }
  .masthead #catalog-search { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 640px) {
  .front-slide { min-height: clamp(460px, 70svh, 660px); }
  .front-slide::after { background: linear-gradient(90deg, #120c12de, #120c1260); }
  .front .merch-links a { min-height: 104px; }
  .shelf-row { gap: 4px; }
  .shelf-row .round { inline-size: 30px; block-size: 30px; }
}

.dark .outline:hover, .dark .round:hover { border-color: var(--paper); }
.dark .button { border-color: var(--line); }

.social-strip, .utility-actions { display: flex; align-items: center; gap: 16px; }
.social-strip { flex-wrap: wrap; font-size: 17px; line-height: 1; }
.social-strip span { display: inline-grid; place-items: center; width: 20px; min-height: 28px; }
.utility-actions { justify-content: flex-end; flex-wrap: wrap; }
[dir="rtl"] .utility-inner { flex-direction: row-reverse; }
@media (max-width: 540px) {
  .utility-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 5px; }
  .social-strip, .utility-actions, .utility-links { gap: 8px; }
}

@media (min-width: 1024px) {
  .shelf-row { --shelf-gap: clamp(12px, 1.4vw, 24px); }
  .shelf-row .grid { gap: var(--shelf-gap); grid-auto-columns: calc((100% - 5 * var(--shelf-gap)) / 6); }
  .shelf-row:not(:has(article:nth-child(7))) { grid-template-columns: minmax(0, 1fr); }
  .shelf-row:not(:has(article:nth-child(7))) > button { display: none; }
}

.collection-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
  margin-top: clamp(24px, 4vw, 56px);
}
.collection-photos img {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 8px;
}

.follow-us {
  padding-block: clamp(26px, 4vw, 52px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.follow-us h2 { font-size: calc(clamp(1.7rem, 3vw, 2.4rem) - 2pt); }
.follow-us .social-strip {
  justify-content: center;
  gap: clamp(12px, 5vw, 72px);
  margin-top: clamp(18px, 3vw, 32px);
  font-size: clamp(25px, 4vw, 42px);
  color: var(--accent);
}
.follow-us .social-strip span { width: auto; }

.payment-marks { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.payment-mark { display: block; box-sizing: border-box; width: 56px; height: 32px; padding: 6px 8px; object-fit: contain; border-radius: 5px; background: #fff; }

@media (max-width: 700px) {
  .footer-end { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .footer-end small, .footer-end p { text-align: center; }
}

.shopping-page { padding-block: clamp(32px, 6vw, 80px); min-height: 50vh; }
.shopping-page h1 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); margin-block: 12px 20px; }
.shop-page { padding-block-start: clamp(16px, 3vw, 36px); }
.shop-page h1 { margin-block-start: 0; }
.shop-filters {
  display: flex;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}
.shop-filters a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}
.shop-filters a:hover { background: #e8e6e3; }
.shop-filters a[aria-current="page"] { background: var(--accent); color: white; }
.shop-filters a:focus-visible { outline-offset: -3px; }
.shopping-page .grid { margin-top: 28px; }
.grid .piece-button { display: block; }
.grid article > p { margin-block: 6px 12px; }
.shop-page .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-card-photo { position: relative; }
.catalog-card-photo img { aspect-ratio: 4 / 3; }
.catalog-card-photo .catalog-reserve {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
  padding: 5px 12px;
  min-height: 36px;
  border-color: var(--paper);
  font-size: .8125rem;
}
.shop-page .grid h3 { margin-top: 8px; }
.shop-page .grid article > p { margin-block: 4px 0; }
@media (max-width: 900px) {
  .shop-page .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shop-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nav-actions .cart-link { position: relative; display: inline-grid; place-items: center; }
#cart-count { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; background: var(--accent); color: white; border-radius: 20px; min-width: 17px; padding-inline: 3px; font-size: 11px; text-align: center; }
.back-link { text-decoration: underline; text-underline-offset: 3px; }
.product-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 5vw, 72px); margin-block-start: 24px; }
.product-layout > img { aspect-ratio: 4 / 5; height: auto; border-radius: 8px; }
.product-price { font-size: 1.25rem; margin-block: 12px 20px; }
.product-copy [role="status"] { margin-top: 12px; }
.cart-items { list-style: none; padding: 0; margin: 0 0 20px; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cart-item img { aspect-ratio: 1; border-radius: 6px; }
.cart-item-name { font-weight: 600; }
.cart-item-copy p { margin: 0; }
.cart-controls input { width: 4rem; margin-inline-start: 8px; padding: 5px; }
#cart-page > .button { margin-top: 12px; }
@media (max-width: 620px) {
  .product-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-controls { grid-column: 2; }
}

.catalog-filters { display: grid; gap: 12px; margin-block: 18px 12px; }
.catalog-category-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.catalog-category-row .shop-filters { min-width: 0; }
#collection-filter { flex: 0 0 auto; max-width: 48%; }
#collection-filter select { width: 100%; }
#collection-filter label span { display: none; }
.catalog-filter-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.catalog-filters select, .size-field input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.catalog-filters select, #catalog-filter-reset a { border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); }
.catalog-filters select.filter-selected { background: var(--accent); color: white; color-scheme: dark; }
#catalog-filter-reset a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; font-size: .75rem; white-space: nowrap; }
#catalog-filter-reset a:hover { background: #e8e6e3; }
@media (min-width: 1024px) {
  .catalog-filters { grid-template-columns: minmax(0, max-content) auto; justify-content: start; column-gap: 8px; margin-top: 28px; }
  .catalog-category-row { gap: 8px; }
  .shop-filters a { padding-inline: clamp(3px, calc(1.5vw - 12px), 10px); font-size: clamp(.75rem, 1.1vw, .8125rem); }
  .catalog-filters select { padding-inline: 8px; }
  #collection-filter { width: clamp(112px, 10vw, 128px); }
  .catalog-filter-controls select { width: clamp(105px, 9vw, 116px); font-size: .8125rem; }
  #collection-filter select { font-size: .8125rem; }
  .catalog-filter-controls { align-items: center; flex-wrap: nowrap; gap: 8px; }
  .catalog-filters label { position: relative; }
  .catalog-filters label span { position: absolute; inset-block-end: 100%; inset-inline-start: 0; }
  #collection-filter label span { display: block; }
}
.catalog-filters label, .size-field { display: grid; gap: 4px; font-size: .875rem; }
#catalog-count { font-size: .875rem; }
.product-description { max-width: 48ch; margin-bottom: 20px; }
.product-sizing { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-bottom: 20px; }
.product-sizing p { flex-basis: 100%; font-size: .875rem; }
.size-field { max-width: 150px; }
.cart-item-copy .size-field { margin-top: 8px; }

.info-page { max-width: 850px; }
.info-page section { margin-block: 24px; }
.info-page h2 { font-size: calc(1.5rem - 2pt); margin-bottom: 8px; }
.info-page .actions { margin-top: 20px; }
