/* Elumin8 Art
   Night blue chrome, parchment ground. The artwork is the loudest thing
   on every page; the interface stays quiet underneath it. */

:root {
  --night:      #0B1A38;   /* header, hero, footer */
  --night-deep: #071227;   /* panels inside the night */
  --night-soft: #1B3059;   /* hairlines on dark */
  --parchment:  #F6F2EA;   /* catalogue ground */
  --paper:      #FFFFFF;
  --ink:        #1A1D24;   /* body text on light */
  --ink-soft:   #5C6472;
  --brass:      #B8893C;   /* the one accent */
  --brass-lift: #D9B268;
  --rule:       #E2DACC;

  --measure: 64ch;
  --gap: 1.5rem;
  --shell: 1200px;
  --radius: 2px;

  --display: "Marcellus", Georgia, serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brass); }

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.masthead { background: var(--night); color: #EAE6DD; }
.masthead a { text-decoration: none; }
.masthead__bar {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0; min-height: 76px;
}
.masthead__logo img { width: 148px; }
.masthead__nav {
  margin-left: auto; display: flex; align-items: center;
  gap: 1.6rem; font-size: .95rem;
}
.masthead__nav a { opacity: .85; }
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { opacity: 1; color: var(--brass-lift); }

.cartlink {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--night-soft); padding: .45rem .9rem; border-radius: var(--radius);
}
.cartlink:hover { border-color: var(--brass); }
.cartlink__count {
  background: var(--brass); color: #fff; font-size: .78rem;
  min-width: 1.4em; text-align: center; border-radius: 999px; padding: 0 .4em;
}

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--night); color: #F2EEE6; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,26,56,.94) 0%, rgba(11,26,56,.72) 46%, rgba(11,26,56,.30) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(4rem, 12vh, 8.5rem) 0; }
.hero h1 { max-width: 15ch; margin-bottom: .5rem; }
.hero__sub { max-width: 46ch; color: #CDC6B8; font-size: 1.1rem; }
.hero__arabic {
  font-family: var(--display); color: var(--brass-lift);
  font-size: 1.35rem; letter-spacing: .04em; margin-bottom: 1.4rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 1rem; font-weight: 500;
  padding: .85rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brass); color: #fff; }
.btn--primary:hover { background: #A1762F; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #F2EEE6; }
.btn--ghost:hover { border-color: var(--brass-lift); color: var(--brass-lift); }
.btn--quiet { border-color: var(--rule); background: var(--paper); color: var(--ink); }
.btn--quiet:hover { border-color: var(--brass); color: var(--brass); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* -------------------------------------------------------------- sections */

.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band--paper { background: var(--paper); }
.band--night { background: var(--night); color: #E8E3D9; }
.band--night h2 { color: #F4F0E7; }
.band__lead { max-width: 52ch; color: var(--ink-soft); }
.band--night .band__lead { color: #B9B2A4; }

.band__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem;
}
.band__head h2 { margin-bottom: 0; }

/* ------------------------------------------------------------ catalogue */

.grid {
  display: grid; gap: 2rem 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__frame {
  background: var(--paper); border: 1px solid var(--rule);
  aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center;
}
.card__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__frame img { transform: scale(1.03); }
.card:hover .card__frame { border-color: var(--brass); }
.card__title { font-family: var(--display); font-size: 1.1rem; margin: .9rem 0 .15rem; }
.card__meta { font-size: .9rem; color: var(--ink-soft); }
.card__tag {
  display: inline-block; font-size: .78rem; letter-spacing: .06em;
  color: var(--brass); border: 1px solid var(--brass); padding: .1rem .5rem;
  border-radius: var(--radius); margin-bottom: .5rem;
}

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters a {
  text-decoration: none; font-size: .92rem; padding: .4rem .95rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper);
}
.filters a[aria-current="true"] { background: var(--night); color: #F2EEE6; border-color: var(--night); }

/* ---------------------------------------------------------------- product */

.product { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .product { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.gallery__main {
  background: var(--paper); border: 1px solid var(--rule);
  display: grid; place-items: center; overflow: hidden;
}
.gallery__main img { width: 100%; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery__thumbs button {
  padding: 0; border: 1px solid var(--rule); background: var(--paper);
  width: 74px; height: 74px; cursor: pointer; overflow: hidden;
}
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--brass); border-width: 2px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { position: sticky; top: 1.5rem; }
.buybox__price { font-family: var(--display); font-size: 2rem; margin: .2rem 0 .1rem; }
.buybox__from { font-size: .9rem; color: var(--ink-soft); }

.optionset { margin: 1.75rem 0; }
.optionset > legend {
  font-size: .95rem; font-weight: 600; padding: 0; margin-bottom: .7rem;
}
.optionset__hint { font-size: .88rem; color: var(--ink-soft); margin: -.4rem 0 .8rem; }

.choices { display: grid; gap: .5rem; }
.choices--inline { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; border: 1px solid var(--rule); background: var(--paper);
  padding: .7rem .9rem; border-radius: var(--radius); font-size: .95rem;
}
.choice input:checked + span { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }
.choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice__price { float: right; color: var(--ink-soft); }
.choice input:checked + span .choice__price { color: var(--ink); }

.addon {
  border: 1px solid var(--rule); background: var(--paper);
  padding: 1rem 1.1rem; border-radius: var(--radius); margin: 1.5rem 0;
}
.addon label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.addon input { margin-top: .35rem; }
.addon p { font-size: .9rem; color: var(--ink-soft); margin: .35rem 0 0; }

.spec { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.25rem; font-size: .95rem; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; }

/* ------------------------------------------------------------------ cart */

.lines { width: 100%; border-collapse: collapse; }
.lines th {
  text-align: left; font-weight: 600; font-size: .85rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: .8rem;
}
.lines td { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; vertical-align: top; }
.lines__item { display: flex; gap: 1rem; }
.lines__item img { width: 82px; height: 82px; object-fit: cover; border: 1px solid var(--rule); }
.lines__title { font-family: var(--display); font-size: 1.05rem; }
.lines__option { font-size: .9rem; color: var(--ink-soft); }
.lines__right { text-align: right; white-space: nowrap; }
.lines input[type="number"] { width: 4.5rem; padding: .4rem .5rem; border: 1px solid var(--rule); border-radius: var(--radius); font: inherit; }

.summary {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.5rem; border-radius: var(--radius);
}
.summary__row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.summary__total {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-size: 1.5rem;
  border-top: 1px solid var(--rule); padding-top: .9rem; margin-top: .9rem;
}

.cols { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .cols { grid-template-columns: 1.6fr .9fr; align-items: start; } }

/* ----------------------------------------------------------------- forms */

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: .72rem .85rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field--half { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .field--half { grid-template-columns: 1fr 1fr; } }
.field__note { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 0; }

.notice {
  border-left: 3px solid var(--brass); background: var(--paper);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.notice--bad { border-left-color: #A4302B; }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--night-deep); color: #9FA7B6; padding: 3.5rem 0 2.5rem; font-size: .94rem; }
.footer a { color: #C9CFDA; text-decoration: none; }
.footer a:hover { color: var(--brass-lift); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer h4 { font-family: var(--body); font-size: .9rem; font-weight: 600; color: #E6E2D8; margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer__base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; }

/* ----------------------------------------------------------------- misc */

.empty { text-align: center; padding: 4rem 1rem; }
.empty h2 { margin-bottom: .4rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------- hero slider ---- */

.hero__media .hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero__media .hero__slide.on { opacity: 1; }

/* Directional scrim: heavy where the words sit, almost clear over the art.
   The old flat overlay drowned the image. */
.hero::after {
  background:
    linear-gradient(97deg,
      rgba(7,16,34,.93) 0%,
      rgba(7,16,34,.86) 26%,
      rgba(7,16,34,.52) 52%,
      rgba(7,16,34,.12) 74%,
      rgba(7,16,34,.04) 100%),
    linear-gradient(to top, rgba(7,16,34,.55) 0%, rgba(7,16,34,0) 34%);
}
.hero__media .hero__slide { opacity: 0; }
.hero__media .hero__slide.on { opacity: .96; }

.hero__inner { padding-bottom: clamp(5rem, 14vh, 9rem); }

.hero__strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; gap: 0; overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(to top, rgba(7,16,34,.72), rgba(7,16,34,.18));
  scrollbar-width: none;
}
.hero__strip::-webkit-scrollbar { display: none; }
.hero__dot {
  flex: 1 0 auto; min-width: 150px;
  background: none; border: 0; border-right: 1px solid rgba(255,255,255,.1);
  color: #B9C2D2; font: inherit; font-size: .82rem; letter-spacing: .02em;
  padding: .85rem 1rem; cursor: pointer; text-align: left;
  transition: color .2s ease, background-color .2s ease;
}
.hero__dot:last-child { border-right: 0; }
.hero__dot:hover { color: #fff; background: rgba(255,255,255,.06); }
.hero__dot.on { color: var(--brass-lift); box-shadow: inset 0 2px 0 var(--brass); }
@media (max-width: 640px) { .hero__dot { min-width: 128px; font-size: .76rem; } }

/* how a product is sold, under the title in the buy box */
.buybox__sold {
  font-size: .92rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: .9rem; margin-bottom: 1rem;
}


/* ------------------------------------------------------------- legal ---- */

.legal { max-width: 46rem; }
.legal h1 { margin-bottom: .3rem; }
.legal h2 {
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  color: var(--night); margin: 2.1rem 0 .55rem;
}
.legal p { font-size: .98rem; line-height: 1.68; }
.legal__meta { font-size: .88rem; color: var(--ink-soft); }

/* =========================================================== mobile ==== */
/* The desktop layout already reflows. These rules are about mobile being
   designed rather than merely surviving: a real menu, a cart you can use
   with a thumb, and a buy button that is always within reach. */

.masthead__mobile { display: none; margin-left: auto; align-items: center; gap: .6rem; }

.navtoggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: none; border: 1px solid var(--night-soft); border-radius: var(--radius);
  cursor: pointer;
}
.navtoggle span { display: block; height: 1.5px; background: #EAE6DD; border-radius: 2px; }
.navtoggle[aria-expanded="true"] { border-color: var(--brass); }
.navtoggle[aria-expanded="true"] span { background: var(--brass-lift); }

.cartlink--icon { padding: .5rem .7rem; gap: .35rem; }
.cartlink--icon svg { display: block; }

.navpanel { background: var(--night-deep); border-top: 1px solid rgba(255,255,255,.08); }
.navpanel .shell { display: flex; flex-direction: column; padding-block: .5rem 1.25rem; }
.navpanel a {
  color: #E3E0D8; text-decoration: none; font-size: 1.05rem;
  padding: .95rem .25rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.navpanel a:last-child { border-bottom: 0; color: var(--brass-lift); }

@media (max-width: 860px) {
  .masthead__nav   { display: none; }
  .masthead__mobile{ display: flex; }
  .masthead__bar   { min-height: 64px; padding: .8rem 0; }
  .masthead__logo img { width: 116px; }
}

@media (min-width: 861px) {
  .navpanel { display: none !important; }
}

/* ------- cart: the table becomes cards below 760px ---------------------- */

@media (max-width: 760px) {
  .lines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lines, .lines tbody, .lines tr, .lines td { display: block; width: 100%; }
  .lines tr {
    border: 1px solid var(--rule); border-radius: var(--radius);
    background: var(--paper); padding: 1rem; margin-bottom: 1rem;
  }
  .lines td { border: 0; padding: 0; }
  .lines td + td { margin-top: .9rem; }
  .lines__item img { width: 96px; height: 96px; }
  .lines__right {
    text-align: left; font-family: var(--display); font-size: 1.3rem;
    border-top: 1px solid var(--rule); padding-top: .8rem !important;
  }
  .lines__right::before {
    content: "Total"; display: block; font-family: var(--body);
    font-size: .82rem; color: var(--ink-soft); margin-bottom: .1rem;
  }
}

/* ------- product: a buy bar that follows you up the page ---------------- */

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; align-items: center; gap: 1rem;
  padding: .7rem 1.25rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 24px rgba(11,26,56,.09);
  transform: translateY(110%); transition: transform .25s ease;
}
.buybar.on { transform: translateY(0); }
.buybar__price { font-family: var(--display); font-size: 1.35rem; white-space: nowrap; }
.buybar__label { font-size: .74rem; color: var(--ink-soft); display: block; line-height: 1.2; }
.buybar .btn { flex: 1; padding: .9rem 1rem; }

@media (max-width: 900px) {
  .buybar { display: flex; }
  .buybox { position: static; }
  main { padding-bottom: 5rem; }
  .product { gap: 2rem; }
  .gallery__thumbs button { width: 64px; height: 64px; }
}

/* ------- touch targets and small-screen trims --------------------------- */

@media (max-width: 640px) {
  .shell { width: min(100% - 2rem, var(--shell)); }
  .choices--inline { grid-template-columns: 1fr 1fr; }
  .choice span { padding: .85rem .9rem; }
  .btn { padding: .95rem 1.4rem; }
  .filters { gap: .4rem; margin-bottom: 1.75rem; }
  .filters a { padding: .5rem .9rem; }
  .grid { gap: 1.5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card__title { font-size: 1rem; }
  .band { padding: 2.75rem 0; }
  .band__head { margin-bottom: 1.5rem; }
  .summary { padding: 1.25rem; }
  .lines input[type="number"] { min-height: 44px; }
  .field input, .field select, .field textarea { min-height: 46px; font-size: 16px; }
  .hero__inner { padding-bottom: 6.5rem; }
}
