:root {
  --store-ink: #11110f;
  --store-paper: #f3efe5;
  --store-white: #fff;
  --store-gold: #c99a24;
  --store-line: rgba(17, 17, 15, .14);
  --store-muted: #625f57;
  --store-danger: #9d2929;
  --store-success: #176842;
}

.store-page {
  background: var(--store-paper);
  color: var(--store-ink);
}

.store-hero {
  min-height: min(78vh, 760px);
  padding: clamp(8rem, 16vw, 12rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(115deg, rgba(8, 8, 7, .97) 0 45%, rgba(8, 8, 7, .76) 72%, rgba(8, 8, 7, .94)),
    radial-gradient(circle at 80% 20%, rgba(201, 154, 36, .42), transparent 42%);
  color: #fff;
}

.store-hero::after {
  content: "M4";
  position: absolute;
  right: -0.08em;
  bottom: -.28em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
  font: 900 clamp(14rem, 38vw, 34rem)/1 "Roboto Condensed", sans-serif;
  letter-spacing: -.09em;
  pointer-events: none;
}

.store-hero .container { position: relative; z-index: 1; }
.store-kicker {
  display: inline-flex;
  padding: .42rem .72rem;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.store-hero h1 {
  max-width: 900px;
  margin: 1.1rem 0 .8rem;
  color: #fff;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: .83;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.store-hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.store-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.store-action,
.store-action-secondary {
  min-height: 46px;
  padding: .78rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.store-action { background: var(--store-gold); color: #111; }
.store-action-secondary { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.05); }
.store-action:focus-visible, .store-action-secondary:focus-visible, .store-card button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.store-principles { border-bottom: 1px solid var(--store-line); background: var(--store-white); }
.store-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.store-principle { padding: 1.35rem clamp(1rem, 3vw, 2rem); border-right: 1px solid var(--store-line); }
.store-principle:last-child { border-right: 0; }
.store-principle strong { display: block; margin-bottom: .2rem; }
.store-principle span { color: var(--store-muted); font-size: .88rem; }

.store-design-system {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #10100e;
  color: #fff;
}
.store-section-head-light h2 { color: #fff; }
.store-section-head-light p { color: rgba(255,255,255,.68); }
.store-design-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.store-design-grid article {
  min-width: 0; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.13); border-radius: 1.1rem;
  background: radial-gradient(circle at 50% 35%, #24221d, #090908 72%);
}
.store-design-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: .5rem; display: block; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.store-design-grid article:hover img { transform: scale(1.045) rotate(-1deg); }
.store-design-grid div { padding: .85rem; border-top: 1px solid rgba(255,255,255,.11); }
.store-design-grid strong, .store-design-grid span { display: block; }
.store-design-grid strong { color: #fff; font-size: .88rem; }
.store-design-grid span { margin-top: .15rem; color: rgba(255,255,255,.58); font-size: .72rem; }

.store-catalog { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.store-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.store-section-head h2 { margin: 0; font-size: clamp(2.3rem, 6vw, 5.2rem); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.store-section-head p { max-width: 430px; margin: 0; color: var(--store-muted); }
.store-catalog-tools { display: grid; grid-template-columns: minmax(210px, .35fr) minmax(0, 1fr); gap: .8rem; align-items: center; margin: 1.5rem 0 2rem; }
.store-search input {
  width: 100%; min-height: 44px; padding: .65rem .9rem; border: 1px solid var(--store-line); border-radius: 999px;
  background: var(--store-white); color: var(--store-ink); font: inherit;
}
.store-tabs { display: flex; gap: .5rem; min-width: 0; overflow-x: auto; padding: .15rem 0 .3rem; scrollbar-width: thin; }
.store-tabs button {
  flex: 0 0 auto; min-height: 40px; padding: .55rem .9rem; border: 1px solid var(--store-line); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; font-weight: 750; cursor: pointer;
}
.store-tabs button[aria-pressed="true"] { background: var(--store-ink); color: #fff; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.store-card { min-width: 0; border: 1px solid var(--store-line); border-radius: 1.4rem; background: var(--store-white); overflow: hidden; }
.store-card-media { aspect-ratio: 4 / 5; display: grid; place-items: center; background: #e7e1d5; overflow: hidden; }
.store-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.store-card:hover .store-card-media img { transform: scale(1.025); }
.store-card-body { padding: 1.1rem; }
.store-card-meta { display: flex; justify-content: space-between; gap: .6rem; color: var(--store-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.store-card h3 { margin: .45rem 0 .25rem; font-size: 1.3rem; }
.store-card p { margin: 0 0 1rem; color: var(--store-muted); font-size: .9rem; }
.store-card select, .store-card input {
  width: 100%; min-height: 44px; margin-bottom: .6rem; padding: .65rem .7rem; border: 1px solid var(--store-line);
  border-radius: .7rem; background: var(--store-white); color: var(--store-ink); font: inherit;
}
.store-card button { width: 100%; min-height: 44px; border: 0; border-radius: .7rem; background: var(--store-ink); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.store-card button:disabled { cursor: not-allowed; opacity: .55; }
.store-load-more { display: block; min-height: 48px; margin: 1.5rem auto 0; padding: .75rem 1.4rem; border: 1px solid var(--store-ink); border-radius: 999px; background: transparent; color: var(--store-ink); font: inherit; font-weight: 850; cursor: pointer; }
.store-load-more:hover, .store-load-more:focus-visible { background: var(--store-ink); color: #fff; }

.store-empty {
  padding: clamp(2rem, 7vw, 5rem); border: 1px solid var(--store-line); border-radius: 1.5rem;
  background: var(--store-white); text-align: center;
}
.store-empty h3 { margin: .5rem 0; font-size: clamp(1.7rem, 4vw, 3rem); }
.store-empty p { max-width: 620px; margin: 0 auto 1rem; color: var(--store-muted); }

.store-separation { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--store-ink); color: #fff; }
.store-separation-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.store-separation h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.4rem, 6vw, 5.3rem); line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }
.store-separation p { color: rgba(255,255,255,.72); }
.store-rules { display: grid; gap: .7rem; }
.store-rule { padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 1rem; }
.store-rule strong { display: block; color: #fff; }
.store-rule span { color: rgba(255,255,255,.68); font-size: .9rem; }

.store-cart-button {
  position: fixed; right: 1rem; bottom: 5.6rem; z-index: 9997; min-height: 48px; padding: .75rem 1rem;
  border: 0; border-radius: 999px; background: var(--store-gold); color: #111; box-shadow: 0 16px 42px rgba(0,0,0,.24);
  font: inherit; font-weight: 850; cursor: pointer;
}
.store-cart-button[hidden] { display: none; }
.store-drawer[hidden] { display: none; }
.store-drawer { position: fixed; inset: 0; z-index: 10020; display: grid; grid-template-columns: 1fr minmax(320px, 520px); }
.store-drawer-backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(5px); }
.store-drawer-panel { height: 100%; overflow: auto; padding: 1.2rem; background: var(--store-paper); color: var(--store-ink); box-shadow: -20px 0 70px rgba(0,0,0,.25); }
.store-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: -1.2rem; z-index: 1; margin: -1.2rem -1.2rem 1rem; padding: 1.2rem; background: var(--store-paper); border-bottom: 1px solid var(--store-line); }
.store-drawer-head h2 { margin: 0; font-size: 1.5rem; }
.store-close { width: 42px; height: 42px; border: 1px solid var(--store-line); border-radius: 50%; background: transparent; color: inherit; font: 1.3rem/1 sans-serif; cursor: pointer; }
.store-cart-lines { display: grid; gap: .7rem; }
.store-cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .75rem; border: 1px solid var(--store-line); border-radius: 1rem; background: var(--store-white); }
.store-cart-line img { width: 64px; height: 72px; border-radius: .7rem; object-fit: cover; background: #e7e1d5; }
.store-cart-line strong, .store-cart-line span { display: block; }
.store-cart-line span { color: var(--store-muted); font-size: .82rem; }
.store-cart-line button { border: 0; background: transparent; color: var(--store-danger); cursor: pointer; }
.store-totals { margin: 1rem 0; padding: 1rem 0; border-block: 1px solid var(--store-line); }
.store-total-row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.store-total-row:last-child { margin-top: .4rem; font-size: 1.2rem; font-weight: 900; }
.store-checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.store-field { min-width: 0; }
.store-field-wide { grid-column: 1 / -1; }
.store-field label { display: block; margin-bottom: .28rem; font-size: .78rem; font-weight: 800; }
.store-field input, .store-field select {
  width: 100%; min-height: 46px; padding: .7rem; border: 1px solid var(--store-line); border-radius: .7rem;
  background: var(--store-white); color: var(--store-ink); font: inherit;
}
.store-check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; font-size: .82rem; }
.store-check input { margin-top: .15rem; }
.store-check a { color: inherit; font-weight: 750; }
.store-checkout-submit { grid-column: 1 / -1; min-height: 50px; border: 0; border-radius: .8rem; background: var(--store-ink); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.store-checkout-submit:disabled { opacity: .55; cursor: not-allowed; }
.store-message { grid-column: 1 / -1; padding: .8rem; border-radius: .7rem; background: rgba(157,41,41,.1); color: var(--store-danger); font-size: .88rem; }
.store-message[hidden] { display: none; }
.store-status { margin: 1rem auto; padding: 1rem; border-radius: 1rem; background: var(--store-white); border: 1px solid var(--store-line); }
.store-status[hidden] { display: none; }

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

@media (max-width: 620px) {
  .store-hero { min-height: 72svh; padding-top: 7rem; }
  .store-hero h1 { font-size: clamp(3rem, 18vw, 5.4rem); }
  .store-principles-grid { grid-template-columns: 1fr; }
  .store-principle { border-right: 0; border-bottom: 1px solid var(--store-line); }
  .store-principle:last-child { border-bottom: 0; }
  .store-section-head { display: block; }
  .store-section-head p { margin-top: .8rem; }
  .store-design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-design-grid div { padding: .68rem; }
  .store-catalog-tools { grid-template-columns: 1fr; margin-block: 1rem 1.4rem; }
  .store-tabs { margin-inline: calc(var(--page-padding, 1rem) * -1); padding-inline: var(--page-padding, 1rem); }
  .store-grid { grid-template-columns: 1fr; }
  .store-card { display: grid; grid-template-columns: 42% 58%; }
  .store-card-media { aspect-ratio: auto; min-height: 250px; }
  .store-card h3 { font-size: 1.08rem; }
  .store-drawer { grid-template-columns: 1fr; }
  .store-drawer-backdrop { display: none; }
  .store-checkout-form { grid-template-columns: 1fr; }
  .store-field-wide, .store-check, .store-checkout-submit, .store-message { grid-column: 1; }
  .store-cart-button { right: .75rem; bottom: 5rem; }
}

@media (prefers-color-scheme: dark) {
  .store-page {
    --store-ink: #f8f5ed;
    --store-paper: #0c0c0b;
    --store-white: #171715;
    --store-line: rgba(255,255,255,.18);
    --store-muted: #c6c0b5;
  }
  .store-action { color: #111; }
  .store-tabs button[aria-pressed="true"], .store-card button, .store-checkout-submit { background: #f7f3ea; color: #111; }
  .store-card-media, .store-cart-line img { background: #25231f; }
  .store-action:focus-visible, .store-action-secondary:focus-visible, .store-card button:focus-visible { outline-color: var(--store-gold); }
}

@media (prefers-reduced-motion: reduce) {
  .store-card-media img, .store-design-grid img { transition: none; }
}
