/* Carter Clothing N Fashion — storefront styles. Pure CSS, no build step. */

:root {
  --ink: #0b0b0d;
  --ink-soft: #2a2a2e;
  --paper: #ffffff;
  --bone: #f6f4f0;
  --line: #e4e0d8;
  --muted: #6d6a64;
  --denim: #2f4a6b;
  --gold: #a9853a;
  --err: #a3261c;
  --ok: #1f6b45;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: #b9b5ad; }

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

/* ---- Draft banner ---- */
.draft {
  background: #f3c94b;
  color: #231b00;
  text-align: center;
  font-size: 14px;
  padding: 7px 16px;
}

/* ---- Header ---- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  line-height: 1;
  grid-column: 2;
}

.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-top: 6px;
  padding-left: .34em;
}

.primary-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 28px;
}

.primary-nav a {
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover, .primary-nav a.on { border-bottom-color: #fff; }

.bag {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bag-count {
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
  grid-column: 1;
  justify-self: start;
}

.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-block { display: block; width: 100%; }
.btn-wide { flex: 1; }
.btn-small { padding: 8px 14px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover { color: var(--ink); }

/* ---- Ornament ---- */
.ornament { display: block; margin: 14px auto 18px; max-width: 60%; height: auto; color: currentColor; }

/* ---- Hero ---- */
.hero {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 84px 0 92px;
  border-top: 1px solid #26262b;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 { margin: 0; }

.hero-name {
  display: block;
  font-weight: 900;
  font-size: clamp(58px, 13vw, 148px);
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: .95;
  padding-left: .07em;
}

.hero-sub {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(14px, 2.6vw, 27px);
  letter-spacing: .36em;
  text-transform: uppercase;
  margin-top: 18px;
  padding-left: .36em;
}

.hero .ornament { margin: 30px auto 26px; width: 300px; }
.hero-line { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(19px, 2.4vw, 25px); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 56px 20px; }
.section-tight { padding-top: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }

.more { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-underline-offset: 5px; }
.more-center { display: block; text-align: center; margin-top: 16px; }

.page-head { text-align: center; padding: 54px 20px 22px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); margin: 0; }
.page-head .eyebrow { margin-bottom: 12px; }
.lede { max-width: 640px; margin: 0 auto 1em; font-size: 19px; color: var(--ink-soft); }

.empty { text-align: center; padding: 50px 0; color: var(--muted); }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-center { justify-content: center; }

.chip {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line);
}

.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort label { letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; color: var(--muted); }

/* ---- Product grid ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }

.card { text-decoration: none; display: block; }

.card-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bone);
  overflow: hidden;
}

.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-photo img { transform: scale(1.04); }

.no-photo {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  color: #d5cfc3;
  font-family: var(--display);
  font-weight: 900;
  font-size: 84px;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin: 0;
}

.tag-sale { background: var(--err); color: #fff; }
.tag-sold { background: var(--ink); color: #fff; }
.tag-inline { position: static; display: inline-block; background: #f3c94b; margin-bottom: 14px; }

.card-body { padding: 14px 2px 0; }
.card-body h3 { font-family: var(--body); font-weight: 500; font-size: 16.5px; margin: 0 0 4px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.price { margin: 0; color: var(--ink-soft); }
.price s { color: var(--muted); margin-right: 6px; }
.price-big { font-size: 24px; margin-bottom: 22px; }
.on-request { font-style: italic; font-family: var(--display); color: var(--denim); }

/* ---- Pager ---- */
.pager { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 46px; font-size: 14px; }
.pager .off { color: #bbb6ac; }

/* ---- Product page ---- */
.crumbs { padding: 22px 20px 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-top: 22px; padding-bottom: 40px; align-items: start; }

.gallery-main { background: var(--bone); aspect-ratio: 3 / 4; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumb { padding: 0; border: 1px solid transparent; background: var(--bone); aspect-ratio: 3 / 4; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--ink); }

.product-info { position: sticky; top: 100px; }
.product-info h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }

.options { border: 0; padding: 0; margin: 0 0 22px; }
.options legend { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: block; min-width: 54px; text-align: center; padding: 11px 14px; border: 1px solid var(--line); font-size: 15px; }
.option:hover span { border-color: var(--ink); }
.option input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.option.out { cursor: not-allowed; }
.option.out span { color: #bbb6ac; text-decoration: line-through; background: var(--bone); border-color: var(--line); }
.one-option { color: var(--muted); margin-bottom: 18px; }

.buy-row { display: flex; gap: 12px; align-items: stretch; }

.qty { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 0 12px; font-size: 14px; }
.qty span { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.qty select { border: 0; background: transparent; font: inherit; padding: 12px 2px; }

.enquire { background: var(--bone); padding: 22px; margin-bottom: 8px; }
.enquire .btn { display: block; }
.soldout { background: var(--bone); padding: 18px 20px; }

.description { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.assurances { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.assurances li { padding: 3px 0 3px 22px; position: relative; }
.assurances li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); }

/* ---- Band ---- */
.band { background: var(--bone); padding: 64px 0; margin-top: 30px; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band h2 { font-size: clamp(26px, 3.2vw, 38px); }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.promises li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.promises li:first-child { border-top: 1px solid var(--line); }
.promises strong { display: block; color: var(--ink); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 13.5px; }
.hours { margin: 0 0 4px; }
.hours span { display: inline-block; min-width: 160px; color: var(--muted); }

/* ---- Bag & checkout ---- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 50px; align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-photo { display: block; aspect-ratio: 3 / 4; background: var(--bone); overflow: hidden; }
.cart-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-photo .no-photo { font-size: 40px; }
.cart-detail h2 { font-family: var(--body); font-weight: 500; font-size: 18px; margin: 0 0 4px; }
.cart-detail h2 a { text-decoration: none; }
.cart-detail p { margin: 0; font-size: 15px; }
.cart-controls { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.cart-total { font-size: 17px; margin: 0; }

.summary { background: var(--bone); padding: 28px; position: sticky; top: 100px; }
.summary-flat { position: static; margin-bottom: 22px; }
.summary h2 { font-size: 24px; margin-bottom: 16px; }
.summary dl { margin: 0 0 18px; }
.summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary dt, .summary dd { margin: 0; }
.summary .grand { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 14px; font-size: 20px; font-weight: 500; }
.summary-lines { border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 8px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 15.5px; }
.summary-lines small { display: block; color: var(--muted); }

.note { font-size: 14px; color: var(--muted); }
.note-center { text-align: center; margin: 12px 0 0; }
.note-box { border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 22px; }
.note-box p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---- Forms ---- */
fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 23px; padding: 0; margin-bottom: 16px; }

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { grid-template-columns: 2fr 1fr 1fr; }

label { font-size: 14px; }
.field label { display: block; margin-bottom: 6px; letter-spacing: .04em; }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcabf;
  border-radius: 0;
  padding: 12px 14px;
}

.sort select, .qty select { width: auto; }
.qty select { border: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.field-error { color: var(--err); font-size: 14px; margin: 6px 0 0; }

.choice-option { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 10px; cursor: pointer; }
.choice-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice-option input { margin-top: 5px; accent-color: var(--ink); }
.choice-option strong { display: block; font-weight: 500; font-size: 16.5px; }
.choice-option small { color: var(--muted); font-size: 14px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 14px 18px; margin: 20px 0 0; border-left: 3px solid; }
.section > .flash { margin: 0 0 26px; }
.flash-ok { background: #eef6f1; border-color: var(--ok); }
.flash-err { background: #fbeeec; border-color: var(--err); }

/* ---- Contact ---- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.visit { background: var(--bone); padding: 28px; }
.visit h2 { font-size: 24px; }
.about-piece { display: flex; gap: 16px; align-items: center; background: var(--bone); padding: 14px; margin-bottom: 22px; }
.about-piece img { width: 74px; aspect-ratio: 3 / 4; object-fit: cover; }
.about-piece p { margin: 0; }

/* ---- Prose ---- */
.prose h2 { font-size: 25px; margin-top: 1.6em; }
.prose p { color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #e9e6e0; margin-top: 70px; padding: 56px 0 0; font-size: 15.5px; }
main:has(> .band:last-child) + .site-footer { margin-top: 0; }
main:has(> .band:last-child) > .band:last-child { margin-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h2 { font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer a { text-underline-offset: 4px; }
.site-footer li { padding: 3px 0; }
.brand-foot { align-items: flex-start; margin-bottom: 14px; }
.brand-foot .brand-sub { padding-left: 0; }
.site-footer .hours span { color: #b9b5ad; }
.footer-base { border-top: 1px solid #26262b; padding-top: 18px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #b9b5ad; }
.footer-base p { margin: 0; }

/* ---- Small screens ---- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cart-layout { grid-template-columns: 1fr; gap: 34px; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-row { min-height: 66px; }
  .brand-name { font-size: 24px; }
  .brand-sub { font-size: 9px; letter-spacing: .28em; }
  .nav-toggle { display: block; }
  .bag-label { display: none; }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 16px;
    border-top: 1px solid #26262b;
  }

  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 0; border-bottom: 1px solid #1c1c20; }

  .product { grid-template-columns: 1fr; gap: 26px; }
  .product-info { position: static; }
  .band-grid, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 60px 0 66px; }
  .hero .ornament { width: 220px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .section { padding: 40px 20px; }
  .section-tight { padding-top: 6px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-total { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .btn { padding: 14px 20px; }
  .hero-actions .btn { width: 100%; }
}
