/* Deep End Supply Co. — palette + type carried over from the live theme */
:root {
  --bg: #ffffff;
  --fg: #22211d;
  --cream: #f6e9d1;
  --tan: #e3b174;
  --teal: #3e97b9;
  --line: rgb(34 33 29 / 0.14);
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fjalla One', 'Arial Narrow', Impact, sans-serif;
  --pill: 37px;
  --r: 8px;
  --gutter: clamp(16px, 2.4vw, 35px);
  --header-h: 108px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--fg); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1500px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 30px; border-radius: var(--pill);
  background: var(--fg); color: #fff; border: 1px solid var(--fg); font-weight: 500; font-size: .95rem; text-decoration: none; transition: opacity .15s, transform .15s; }
.btn:hover { opacity: .86; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--outline { background: transparent; color: var(--fg); }
.btn--outline:hover { background: var(--fg); color: #fff; opacity: 1; }
.btn--block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; }
.link-arrow { color: inherit; text-decoration: none; font-weight: 500; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], textarea, select {
  width: 100%; background: #fff; border: 1px solid var(--tan); border-radius: var(--r); padding: 13px 14px; }
textarea { resize: vertical; }
.form-msg { min-height: 1.5em; margin: .75em 0 0; font-size: .9rem; }
.form-msg.is-error { color: #a3261b; }
.form-msg.is-ok { color: #2f6b3a; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 6px var(--gutter); min-height: var(--header-h); }
.logo img { width: 90px; height: 90px; border-radius: 2px; }
.main-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .01em; }
.main-nav a { text-decoration: none; opacity: .72; padding: 6px 2px; }
.main-nav a:hover, .main-nav a[aria-current] { opacity: 1; }
.header-actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; border-radius: 50%; color: inherit; text-decoration: none; }
.icon-btn:hover { background: rgb(34 33 29 / .08); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fg); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 749px) {
  :root { --header-h: 76px; }
  .logo img { width: 62px; height: 62px; }
  .site-header { grid-template-columns: auto 1fr auto; gap: 8px; }
  .main-nav { justify-content: center; gap: 12px; font-size: .95rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(420px, 62vh, 640px); display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(to top, rgb(3 3 3 / .35), rgb(3 3 3 / .08) 55%), url('/images/site/hero.jpg') center 40% / cover no-repeat; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.hero__inner { padding: 48px var(--gutter) 70px; display: grid; justify-items: center; gap: 28px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; line-height: 1;
  font-size: clamp(2.4rem, 7.2vw, 5.5rem); text-shadow: 0 2px 24px rgb(0 0 0 / .35); margin: 0; }
.hero .btn { background: rgb(34 33 29 / .92); border-color: transparent; }

/* the hero sits under the transparent-looking header on the home page only */
.home .site-header { background: transparent; position: sticky; }
.home .site-header.is-solid { background: var(--cream); }
.home .site-header:not(.is-solid) .main-nav, .home .site-header:not(.is-solid) .icon-btn { color: #fff; }
.home .site-header:not(.is-solid) .cart-count { background: #fff; color: var(--fg); }
.home .site-header:not(.is-solid) .logo img { box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }

/* ---------- marquee ---------- */
.marquee { background: var(--tan); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 55s linear infinite; font-weight: 500; font-size: 1rem; white-space: nowrap; }
.marquee__track span::after { content: ''; }
@keyframes scroll { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section__title { text-align: center; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1.1em; }
.section__title.left { text-align: left; padding-inline: var(--gutter); }
.section--dark { background: var(--fg); color: #fff; }
.pull { padding: clamp(56px, 8vw, 96px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: clamp(28px, 5vw, 64px); }
.pull .eyebrow { margin: 0; font-size: 1rem; }
.pull h2 { max-width: 28em; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.22; margin: 0; text-wrap: balance; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 60svh; background: var(--cream); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { display: grid; align-content: center; justify-items: center; text-align: center; gap: 4px; padding: 48px var(--gutter); }
.split__copy h2 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.split__copy p { max-width: 24em; margin-bottom: 1.6em; }
@media (max-width: 749px) { .split { grid-template-columns: 1fr; } .split__media { aspect-ratio: 4/3; } }

/* ---------- product grid + cards ---------- */
.grid { --min: 300px; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(var(--min), 100%), 1fr)); }
.grid.dense { --min: 250px; }
@media (max-width: 749px) { .grid, .grid.dense { --min: 150px; gap: 20px 12px; } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: #fff; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.card__media > a:not(.card__quick) { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.025); }
.card__title { text-align: center; text-decoration: none; font-size: 1rem; line-height: 1.3; padding-inline: 4px; }
.card__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__price { text-align: center; font-weight: 500; margin: 6px 0 0; }
.card { position: relative; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 3; pointer-events: none; background: #fff; color: var(--fg); font-size: .75rem; font-weight: 600; padding: 4px 11px; border-radius: 40px; box-shadow: 0 1px 6px rgb(0 0 0 / .12); }
.card__quick { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--pill); background: #fff; color: var(--fg);
  border: 1px solid var(--line); font-size: .85rem; font-weight: 500; text-decoration: none; box-shadow: 0 2px 10px rgb(0 0 0 / .1); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, background .15s; }
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__quick:hover { background: var(--fg); color: #fff; }
@media (hover: none), (max-width: 749px) { .card__quick { display: none; } }

/* ---------- page banner ---------- */
.banner { background: var(--tan); text-align: center; padding: clamp(32px, 5vw, 52px) var(--gutter); }
.banner h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; font-size: clamp(2rem, 5vw, 3rem); color: #010101; margin: 0; line-height: 1.15; }
.banner p { margin: 10px 0 0; }

/* ---------- catalog ---------- */
.catalog { max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.catbar { display: flex; justify-content: center; padding: 22px 0 4px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; max-width: 100%; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; background: rgb(255 255 255 / .55); border: 0; border-radius: var(--pill); padding: 9px 20px; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s, box-shadow .2s; }
.pill:hover { background: rgb(255 255 255 / .95); }
.pill[aria-pressed=true] { background: var(--fg); color: #fff; box-shadow: 0 4px 14px rgb(34 33 29 / .22); }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 16px 0 12px; font-size: .92rem; }
.toolbar .count { margin: 0 auto 0 6px; opacity: .65; }
.tool-btn, .tool-select { display: inline-flex; align-items: center; gap: 8px; background: rgb(255 255 255 / .6); border: 0; border-radius: var(--pill); padding: 9px 16px; font-weight: 500; transition: background .2s, box-shadow .2s; }
.tool-btn:hover, .tool-select:hover { background: #fff; box-shadow: 0 2px 10px rgb(34 33 29 / .1); }
.tool-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fg); color: #fff; font-size: .72rem; font-weight: 600; }
.tool-select { padding: 0; position: relative; }
.tool-select select { appearance: none; -webkit-appearance: none; width: auto; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2322211d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; border: 0; border-radius: var(--pill); padding: 9px 36px 9px 16px; font-weight: 500; cursor: pointer; }
.density { display: flex; gap: 2px; background: rgb(255 255 255 / .6); border-radius: var(--pill); padding: 3px; }
.density button { background: none; border: 0; border-radius: var(--pill); padding: 6px 9px; opacity: .45; transition: opacity .2s, background .2s; }
.density button[aria-pressed=true] { opacity: 1; background: #fff; box-shadow: 0 1px 4px rgb(34 33 29 / .15); }
.active { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }
.achip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: var(--pill); padding: 6px 8px 6px 14px; font-size: .85rem; font-weight: 500; box-shadow: 0 1px 4px rgb(34 33 29 / .12); }
.achip::after { content: '×'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgb(34 33 29 / .1); font-size: .95rem; line-height: 1; }
.achip:hover::after { background: rgb(34 33 29 / .22); }
.empty { text-align: center; padding: 40px 0; opacity: .8; }

/* slide-out filter panel */
.scrim { position: fixed; inset: 0; background: rgb(20 18 14 / .38); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 79; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.filters { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 80; display: flex; flex-direction: column; background: #fbf5e8;
  transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; box-shadow: -24px 0 60px rgb(0 0 0 / .14); }
.filters.is-open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 8px; }
.filters__title { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; margin: 0; }
.filters__body { flex: 1; overflow: auto; padding: 0 24px 12px; }
.filters__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.filters__foot .btn { flex: 1; }
.facet { border-bottom: 1px solid var(--line); padding: 16px 0 8px; }
.facet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; padding-bottom: 10px; cursor: pointer; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .5; transition: transform .2s; margin-right: 4px; }
.facet[open] summary::after { transform: rotate(-135deg); }
.facet__body { padding: 2px 0 14px; }
.facet__body.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; cursor: pointer; }
.fchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fchip span { display: inline-flex; align-items: center; background: #fff; border-radius: var(--pill); padding: 8px 15px; font-size: .9rem; font-weight: 500; box-shadow: inset 0 0 0 1px rgb(34 33 29 / .14); transition: background .15s, color .15s, box-shadow .15s; }
.fchip:hover span { box-shadow: inset 0 0 0 1px rgb(34 33 29 / .5); }
.fchip input:checked + span { background: var(--fg); color: #fff; box-shadow: none; }
.fchip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.fdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; flex: none; background: var(--sw, #cfcfcf); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
.fchip input:checked + span .fdot { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.facet__body.price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.facet__body.price label { position: relative; display: block; }
.facet__body.price .cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .55; }
.facet__body.price input { padding: 10px 14px 10px 28px; text-align: right; border: 0; border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgb(34 33 29 / .16); }
.hint { font-size: .85rem; opacity: .65; margin: 0 0 10px; }
.clear { background: none; border: 0; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
@media (max-width: 640px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar .count { order: 5; width: 100%; margin: 2px 0 0 4px; }
  .density { display: none; }
  .catbar { justify-content: flex-start; }
}

/* ---------- product page ---------- */
.crumbs { font-size: .85rem; opacity: .75; padding-top: 18px; padding-bottom: 6px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 64px); padding-block: 12px 64px; align-items: start; }
.gallery__main { background: #fff; border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 11; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { list-style: none; display: flex; gap: 10px; padding: 12px 0 4px; margin: 0; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumbs button { display: block; padding: 0; width: 72px; aspect-ratio: 9 / 11; background: #fff; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .75; }
.gallery__thumbs button[aria-current=true] { border-color: var(--fg); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { position: sticky; top: calc(var(--header-h) + 12px); }
.info h1 { font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.info .price { font-size: 1.05rem; font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.opt { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.opt legend { padding: 0; font-size: .95rem; margin-bottom: 8px; }
.opt legend span { font-weight: 500; }
.opt__values { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.opt[data-option="Color"] .opt__values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--teal); font-size: .9rem; line-height: 1.2; transition: background .12s, color .12s; }
.chip:hover span { background: rgb(62 151 185 / .1); }
.chip input:checked + span { background: var(--fg); color: #fff; border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.chip.is-unavailable span { opacity: .42; text-decoration: line-through; border-style: dashed; }
.buyrow { display: flex; gap: 10px; margin: 22px 0 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--tan); border-radius: var(--pill); background: #fff; flex: none; }
.qty button { width: 40px; height: 48px; background: none; border: 0; font-size: 1.1rem; }
.qty input { width: 38px; padding: 0; border: 0; text-align: center; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.desc { margin-top: 28px; font-size: .95rem; }
.desc h3 { font-size: 1rem; font-weight: 600; margin: 1.2em 0 .4em; }
.desc ul { padding-left: 1.15em; margin: 0 0 1em; } .desc li { margin: .15em 0; }
.ship-note { font-size: .85rem; opacity: .75; margin-top: 18px; }
.gallery, .info { min-width: 0; }
@media (max-width: 899px) { .pdp { grid-template-columns: minmax(0, 1fr); } .info { position: static; padding-top: 18px; } }

/* ---------- cart drawer + page ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / .42); z-index: 90; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw); background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s ease; box-shadow: -8px 0 40px rgb(0 0 0 / .15); }
.cart-drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.drawer-head h2 { font-family: var(--font-body); font-weight: 500; font-size: 1.4rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.pill { background: rgb(34 33 29 / .1); border-radius: 20px; padding: 1px 9px; font-size: .8rem; }
.drawer-body { flex: 1; overflow: auto; padding: 0 20px; }
.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; background: #f3f3f3; }
.line__title { font-weight: 500; text-decoration: none; display: block; line-height: 1.3; }
.line__variant { font-size: .85rem; opacity: .7; margin: 2px 0 8px; }
.line__ctrl { display: flex; align-items: center; gap: 14px; }
.line .qty { border-color: var(--line); } .line .qty button { height: 34px; width: 32px; } .line .qty input { width: 30px; font-size: .9rem; }
.line__remove { background: none; border: 0; padding: 0; font-size: .82rem; text-decoration: underline; opacity: .75; }
.line__price { font-weight: 500; white-space: nowrap; }
.sum { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 4px; }
.sum-note { font-size: .82rem; opacity: .72; margin: 0 0 14px; }
.cart-empty { text-align: center; padding: 56px 0; display: grid; gap: 14px; justify-items: center; }
.cart-notice { background: #fdf1d9; border: 1px solid var(--tan); border-radius: var(--r); padding: 10px 14px; font-size: .88rem; margin: 6px 0 12px; }
.cart-page { padding-block: 32px 64px; }
.cart-page h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.8rem); }
.cart-page .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cart-page .summary { background: #fff; border-radius: var(--r); padding: 22px; position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 899px) { .cart-page .cart-layout { grid-template-columns: 1fr; } }

/* ---------- misc pages ---------- */
.contact-page, .prose, .success, .notfound { padding-block: 36px 64px; }
.contact-page h1, .prose h1, .success h1, .notfound h1, .search-page h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 599px) { .row2 { grid-template-columns: 1fr; } }
.contact-form .btn { justify-self: start; }
.opt-note { opacity: .6; }
.prose h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin: .3em 0; }
.contact-details { text-align: left; margin: 0 0 28px; }
.contact-details .legal-details { margin: 0; }
.legal-details { padding-left: 1.2em; }
.success .lede { font-size: 1.15rem; }
.receipt { list-style: none; padding: 0; margin: 24px auto; max-width: 480px; text-align: left; } .receipt li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.search-page { padding-block: 28px 56px; }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 24px; }
.search-page .count { text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); padding: 40px var(--gutter) 22px; }
.footer-signup { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-bottom: 36px; }
.footer-signup h2 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.signup { position: relative; display: flex; gap: 8px; width: min(560px, 100%); flex-wrap: wrap; }
.signup input[type=email] { flex: 1; border-radius: var(--pill); border-color: transparent; padding: 15px 22px; }
.signup button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--fg); color: #fff; display: grid; place-items: center; }
.signup .form-msg { flex-basis: 100%; margin: 4px 14px 0; }
.footer-bar { border-top: 1px solid var(--fg); padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; font-size: .85rem; }
.footer-bar p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; } .footer-links a:hover { text-decoration: underline; }
.socials { display: flex; gap: 16px; }


/* ======================================================================================
   v2 polish: header fix, card extras, home tiles, trust strip, accordions, size guide,
   sticky mobile add-to-cart, footer columns, rugged details
   ====================================================================================== */

/* colour swatches (display only; classes keep the strict CSP free of inline styles) */
.c-army-green { --sw: #5a6240; }
.c-athletic-heather { --sw: #c9c9cb; }
.c-bay { --sw: #8fa9a0; }
.c-black { --sw: #141414; }
.c-blossom { --sw: #e6b8bd; }
.c-blue-jean { --sw: #7191b3; }
.c-blue-mist { --sw: #86a1ab; }
.c-brown { --sw: #5b4636; }
.c-burgundy { --sw: #6b1d2a; }
.c-charcoal-heather { --sw: #4d4d4f; }
.c-cream { --sw: #f3e9d0; }
.c-forest { --sw: #1f4d2e; }
.c-grey { --sw: #8d8d8d; }
.c-heather { --sw: #b8b8b8; }
.c-heather-blue-lagoon { --sw: #6aa7b8; }
.c-heather-grey { --sw: #b5b5b5; }
.c-heather-olive { --sw: #6f7552; }
.c-ivory { --sw: #f4efe1; }
.c-light-blue { --sw: #a7c7e7; }
.c-lilac { --sw: #bfa5cf; }
.c-natural { --sw: #efe6d2; }
.c-navy { --sw: #1c2541; }
.c-oatmeal-heather { --sw: #d6cbb8; }
.c-orchid { --sw: #c7a4cf; }
.c-pale-pink { --sw: #f4d6da; }
.c-pepper { --sw: #444444; }
.c-pink { --sw: #f2a7c3; }
.c-sandshell { --sw: #e3d5c0; }
.c-sports-green { --sw: #2e8b57; }
.c-true-navy { --sw: #1b2a4a; }
.c-true-royal { --sw: #2c4fa3; }
.c-vintage-indigo { --sw: #4a5f8a; }
.c-washed-denim { --sw: #7a9cc0; }
.c-blue-spruce { --sw: #536758; }
.c-island-green { --sw: #54b188; }
.c-khaki { --sw: #aea583; }
.c-sapphire { --sw: #03b2d3; }
.c-white { --sw: #ffffff; }

/* header: solid as soon as you scroll, so the nav never sits on top of hero content */
.site-header { transition: background-color .2s ease, box-shadow .2s ease; }
.home .site-header.is-solid { box-shadow: 0 1px 0 rgb(34 33 29 / .1); }

/* product cards: hover photo, colour dots, sticker badge */
.card__media img.card__img { position: absolute; inset: 0; }
.card__img--hover { opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) { .card:hover .card__img--hover { opacity: 1; } .card:hover .card__media img.card__img { transform: none; } }
.dots { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot, .chip__dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--sw, #cfcfcf); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .22); }
.dots__more { font-size: .75rem; opacity: .7; margin-left: 2px; }
.chip__dot { width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; flex: none; }
.chip span { display: flex; align-items: center; justify-content: center; }
.chip input:checked + span .chip__dot { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55); }
.badge--sticker { background: var(--tan); border: 1.5px solid var(--fg); border-radius: 6px; transform: translateX(-50%) rotate(-3deg); letter-spacing: .04em; text-transform: uppercase; font-size: .68rem; box-shadow: 2px 2px 0 var(--fg); }

/* scroll reveal (only when JS has marked the page, so no-JS visitors still see everything) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* rugged details: stitched lines + underlined section titles */
.section__title::after { content: ''; display: block; width: 72px; margin: 14px auto 0; border-top: 3px dashed var(--tan); }
.section__title.left::after { margin-left: 0; }
.banner { border-bottom: 3px dashed rgb(34 33 29 / .28); }
.section--dark.pull { border-top: 3px dashed rgb(255 255 255 / .18); }

/* shop by type tiles */
.section--tiles { background: var(--cream); padding-top: 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #fff; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 19 17 / .72), rgb(20 19 17 / 0) 55%); }
.tile:hover img { transform: scale(1.04); }
.tile__label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; display: flex; flex-direction: column; gap: 2px; }
.tile__label small { font: 500 .78rem var(--font-body); text-transform: none; opacity: .85; letter-spacing: 0; }

.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 899px) { .tiles--2 { grid-template-columns: 1fr; } }

.collection-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 18px 0 0; }
.collection-jump a { display: inline-flex; align-items: center; background: rgb(255 255 255 / .55); color: inherit; text-decoration: none; border-radius: var(--pill); padding: 9px 20px; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s, box-shadow .2s; }
.collection-jump a:hover { background: var(--fg); color: #fff; box-shadow: 0 4px 14px rgb(34 33 29 / .22); }

/* trust strip */
.trust { background: var(--cream); border-top: 3px dashed rgb(34 33 29 / .2); border-bottom: 3px dashed rgb(34 33 29 / .2); padding: 26px 0; }
.trust ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; }
.trust svg { flex: none; margin-top: 2px; }
.trust strong { display: block; font-weight: 600; }
.trust span { font-size: .9rem; opacity: .8; line-height: 1.4; }
@media (max-width: 749px) { .trust ul { grid-template-columns: 1fr; } }

/* product page: accordions, shipping line, size guide, sticky bar */
.ship-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 6px 0 0; padding: 12px 14px; background: rgb(255 255 255 / .55); border: 1px dashed rgb(34 33 29 / .3); border-radius: var(--r); }
.ship-line svg { flex: none; }
.desc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; cursor: pointer; font-weight: 600; font-size: .98rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; opacity: .7; }
.acc[open] summary::after { content: '−'; }
.acc__body { padding: 0 2px 16px; font-size: .95rem; }
.acc__body p:last-child, .acc__body ul:last-child { margin-bottom: 0; }
.acc__body ul { padding-left: 1.15em; margin: 0; }
.size-link { margin-left: 8px; font-size: .85rem; font-weight: 500; }
.size-dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); background: #fff; color: var(--fg); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.size-dialog::backdrop { background: rgb(0 0 0 / .45); }
.size-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 4px 22px; position: sticky; top: 0; background: #fff; }
.size-dialog__head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin: 0; }
.size-dialog__body { padding: 4px 22px 24px; font-size: .95rem; }
.size-dialog__body h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.size-dialog__body ol { padding-left: 1.2em; } .size-dialog__body li { margin: .35em 0; }
.size-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-table th, .size-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.size-table thead th { background: var(--cream); }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08); }
.sticky-atc__info { display: grid; min-width: 0; }
.sticky-atc__info strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__info span { font-size: .9rem; opacity: .8; }
.sticky-atc .btn { flex: none; padding: 12px 24px; }
@media (max-width: 749px) { .sticky-atc:not([hidden]) { display: flex; } body.has-sticky-atc { padding-bottom: 72px; } }

/* footer columns */
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 28px 36px; padding: 32px 0 30px; border-top: 3px dashed rgb(34 33 29 / .35); }
@media (max-width: 899px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-cols h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; margin: 0 0 10px; }
.footer-cols nav { display: grid; gap: 7px; align-content: start; font-size: .92rem; }
.footer-cols nav h3 { margin-bottom: 4px; }
.footer-cols a { text-decoration: none; opacity: .85; } .footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand__tag { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; line-height: 1.15; max-width: 14em; margin-bottom: 14px; }
.footer-note { opacity: .75; }

/* home "Best Sellers": exactly three across and centred (the generic grid reserves a 4th column on wide screens) */
.grid--3 { justify-content: center; }
@media (min-width: 750px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; margin-inline: auto; } }
@media (max-width: 749px) { .grid--3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); } }
