/* Al Qamis — theme: "tailor's paper". Solid white cards with a hairline edge and a soft shadow on a
   calm, cool ivory page; the teal ink and the brass stay the accents. Loaded last on every shop page,
   so it refines the earlier sheets. Nothing here blurs what is behind it and nothing is pinned to the
   window: both made the browser repaint the page on every frame of a scroll. */

/* ---- background --------------------------------------------------------- */
body { background: var(--paper-page); }
.section--tint { background: var(--paper-tint); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.page-hero { background: linear-gradient(180deg, #fff, var(--paper-page)); border-bottom-color: var(--paper-line); }

/* ---- surfaces: white paper, a hairline edge, a soft shadow ------------------ */
.card, .design-card, .fabric-item, .look-card, .review-card, .value-card, .how-step,
.insta-card:not(.insta-card--follow), .range-card, .fabric-card, .how-flow__visual,
.std-size__pick, .cfg__stage, .hero__frame, .book-band, .view-tabs, .view-toggle {
  background: #fff;
  border: 1px solid var(--paper-line);
  box-shadow: var(--paper-shadow);
}
.cfg__stage { background: radial-gradient(110% 80% at 50% 15%, #fff 0%, #f1f5f5 75%); }
.design-card__art, .look-card__art, .range-card { background: linear-gradient(160deg, #fff, #eef3f3); }
.design-card:hover, .range-card:hover, .fabric-card:hover, .insta-card:hover { box-shadow: var(--paper-shadow-lift); }

.choice { background: #fff; border-color: var(--paper-line); }
.choice:has(input:checked) { background: #fff; }
.chip { background: #fff; border-color: rgba(28, 53, 56, .16); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  background-color: #fff;
  border-color: rgba(28, 53, 56, .18);
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { background-color: #fff; }

/* ---- the house finish: crisp corners, fine edges, small capitals -------------------------
   Buttons are pressed labels: square corners, small capitals spaced out, a fine highlight on top
   and a soft shadow under the dark ones. Pills and chips are square-cornered tabs to match. */
:root { --radius: 6px; --radius-sm: 3px; }
.btn {
  border-radius: 2px; min-height: 46px; padding: 0 24px;
  font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.btn--lg { min-height: 52px; padding: 0 30px; font-size: .76rem; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .64rem; letter-spacing: .13em; }
.btn--primary {
  background: linear-gradient(180deg, #24474a 0%, #18302f 100%);
  border-color: #132a2c; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 1px rgba(19, 39, 41, .25), 0 10px 20px -14px rgba(19, 39, 41, .7);
}
.btn--primary:hover { background: linear-gradient(180deg, #2b5357 0%, #1c3538 100%); }
.btn--brass {
  background: linear-gradient(180deg, #c7a46c 0%, #b38b52 100%); border-color: #a57f47; color: #132a2c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 1px rgba(127, 97, 48, .3);
}
.btn--brass:hover { background: linear-gradient(180deg, #d0af78 0%, #bb935a 100%); }
.btn--ghost { background: #fff; border-color: rgba(28, 53, 56, .32); box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(19, 39, 41, .06); }
.btn--ghost:hover { background: #f5f7f6; border-color: var(--ink); }
.chip, .pill { border-radius: 2px; letter-spacing: .02em; }
.chip[aria-pressed='true'], .pill[aria-pressed='true'] { box-shadow: inset 0 0 0 1px rgba(184, 146, 90, .55); }
.view-tabs, .view-tabs button, .view-toggle button, .split__back, .shop-card__price, .shop-card__tag, .tag { border-radius: 2px; }

/* Cards: white paper with a fine edge, a lit top line and a soft lift. */
.card, .design-card, .fabric-item, .look-card, .review-card, .value-card, .how-step, .range-card, .fabric-card, .shop-card {
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(19, 39, 41, .05), 0 16px 30px -26px rgba(19, 39, 41, .45);
}

/* Fields: a fine frame with square corners. */
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 2px; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(184, 146, 90, .2); }

/* ---- Inspiration's tabs: Complete looks · Shirts · Pants --------------------------------- */
.insp-tabs { background: #fff; border-bottom: 1px solid var(--paper-line); }
.insp-tabs__list { list-style: none; display: flex; justify-content: center; gap: 8px 40px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.insp-tabs__list::-webkit-scrollbar { display: none; }
.insp-tabs__list a {
  display: block; padding: 18px 2px 15px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s;
}
.insp-tabs__list a:hover { color: var(--ink); }
.insp-tabs__list a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--brass); }
@media (max-width: 599px) { .insp-tabs__list { justify-content: flex-start; gap: 26px; } }
.insp-cta { margin: 22px 0 0; text-align: right; font-size: .84rem; }
.insp-cta a { color: var(--brass-ink); text-underline-offset: 4px; }
.insp-tabs + .shop-catalog .filter-bar { margin-top: 0; }

.modal { background: #fff; border: 1px solid var(--paper-line); }
.modal-backdrop { background: rgba(19, 39, 41, .45); }


/* ---- Full width on big screens ----------------------------------------------------------
   The header and the colour bands run edge to edge; content may be up to 1600px wide with gutters
   that grow with the screen; running text keeps its own measure (about 60 characters a line). */
.container { max-width: 1600px; }
/* Side gutters only: sections keep their own top and bottom spacing (the footer's rows, the designer…). */
:root { --gutter: 20px; }
@media (min-width: 768px) { :root { --gutter: clamp(32px, 3vw, 56px); } .container { padding-left: var(--gutter); padding-right: var(--gutter); } }
/* The footer's dividing lines stop where its text does. */
.site-footer__signup { border-bottom: 0; background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .09)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.site-footer__base { border-top: 0; background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .09)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.site-header__inner, .announce__inner { max-width: none; }
.container--narrow { max-width: 820px; } /* stories, policies, forms: a comfortable line */

/* Home: the hero splits the screen; its right half is a picture panel that bleeds to the edge. */
@media (min-width: 900px) {
  .hero { padding: 0; background: #fff; border-bottom: 1px solid var(--paper-line); }
  .hero::before { display: none; }
  .hero__grid.container {
    max-width: none; padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
    min-height: clamp(600px, calc(100vh - var(--header-h) - 32px), 900px);
  }
  .hero__copy { align-self: center; justify-self: end; width: 100%; max-width: 700px; padding: 72px clamp(32px, 5vw, 104px); box-sizing: border-box; }
  .hero__title { font-size: clamp(3rem, 4.6vw, 5.6rem); }
  .hero .lead { font-size: 1.15rem; }
  .hero__visual { position: relative; min-height: 560px; }
  .hero__frame {
    position: absolute; inset: 0; max-width: none; aspect-ratio: auto; margin: 0;
    border: 0; border-radius: 0; box-shadow: none; padding: 76px 12% 116px;
    background: radial-gradient(75% 70% at 50% 40%, #fbfaf6 0%, #ece6da 100%);
  }
  .hero__frame::after { inset: 24px; border: 1px solid rgba(184, 146, 90, .38); border-radius: 0; }
  .hero__caption { left: 52px; top: 46px; font-size: 1.4rem; }
  .hero__swatches { bottom: 48px; }
  .hero__swatches button .swatch-svg, .hero__swatches button img { width: 30px; height: 30px; }
}

/* The designer: the shirt takes everything left of the panel on a backdrop running to the edge, and
   the panel stands flush against the right edge, the full height of the screen. */
@media (min-width: 980px) {
  .container.cfg { max-width: none; padding: 0; }
  .cfg { padding-top: 0; padding-bottom: 0; }
  .cfg__head { padding: 0 clamp(32px, 3vw, 56px); }
  .split, .split:not([hidden]) { gap: 0; height: calc(100vh - var(--menu-h, var(--header-h))); max-height: none; }
  .split__stage { border: 0; border-radius: 0; box-shadow: none; background: radial-gradient(70% 75% at 50% 38%, #fbfaf6 0%, #ece6da 100%); }
  .split__stage::after { inset: 20px; border: 1px solid rgba(184, 146, 90, .3); border-radius: 0; }
  .split__views { left: clamp(32px, 3vw, 56px); top: 34px; }
  .split__panel { border: 0; border-left: 1px solid var(--paper-line); border-radius: 0; box-shadow: none; }
}
@media (min-width: 1280px) { .split { grid-template-columns: minmax(0, 1.5fr) minmax(480px, 1fr); } }
@media (min-width: 1700px) { .split { grid-template-columns: minmax(0, 1fr) 640px; } }
