/* ==========================================================================
   Circle-E — online store (/shop). Loaded AFTER style.css; same six rules.

   DARK STORE. Every store section is black. White appears only as SLABS —
   product tiles, the facts panel, cart lines, the order summary — and black
   rules are allowed inside a white slab (rule 3). Black areas get no rules;
   form controls on black are outlined with an inset white edge, the same
   treatment .btn--line already uses.

   The only non-monochrome pixels are garment colors (swatches, placeholder
   tees) and product photos — they are content, like the work photos.
   ========================================================================== */

.store-msg{ margin:0; font-weight:500; font-size:15px; letter-spacing:.06em; text-transform:uppercase; font-family:var(--font-display);}

/* Links inside running text */
.shop-alt a, .opt__hint a, .facts a, .summary__fine a, .policy a, .pdp__desc a{ font-weight:700; }

/* ---- Buttons inside WHITE slabs flip to black ---- */
.slab .btn--fill{ background:var(--black); color:var(--white); }
.slab .btn--line{ background:var(--white); color:var(--black); box-shadow:inset 0 0 0 var(--rule) var(--black); }
.slab :focus-visible{ outline-color:var(--black); }

/* Disabled buttons: hatched, never grey */
.btn[disabled]{
  cursor:not-allowed; transform:none !important;
  background:repeating-linear-gradient(45deg, var(--white) 0 8px, var(--black) 8px 16px);
  color:var(--white);
}
.slab .btn[disabled]{
  background:repeating-linear-gradient(45deg, var(--black) 0 8px, var(--white) 8px 16px);
  color:var(--black);
}
.btn--big{ padding:20px 28px; font-size:14px; }

/* ---- hero promises ---- */
.shop-hero{ padding-bottom:clamp(30px,4vw,56px); }
.shop-hero .sec__lede{ margin-bottom:clamp(26px,3vw,38px); }
.promises{
  list-style:none; margin:0; padding:0;
  display:grid; gap:var(--rule-fat);
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.promises li{
  display:flex; flex-direction:column; gap:6px;
  padding:18px 20px;
  background:var(--white); color:var(--black);
}
.promises strong{ font-weight:700; font-size:13px; letter-spacing:.14em; text-transform:uppercase; font-family:var(--font-display);}
.promises span{ font-weight:400; font-size:14px; }
.promises :focus-visible{ outline-color:var(--black); }

/* ---- filters ---- */
.shop-list{ padding-top:clamp(20px,3vw,40px); }
.filters{ display:flex; flex-wrap:wrap; gap:var(--rule); margin-bottom:clamp(22px,2.6vw,32px); }
.chip{
  padding:11px 16px;
  background:var(--black); color:var(--white);
  border:0; box-shadow:inset 0 0 0 var(--rule) var(--white);
  font-weight:700; font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  cursor:pointer;
  font-family:var(--font-display);
}
.chip:hover{ transform:translate(0,3px); }
.chip[aria-pressed="true"]{ background:var(--white); color:var(--black); }

/* ---- product grid: white photo tile, black caption, space between ---- */
.pgrid{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(26px,3vw,40px) var(--rule-fat);
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
}
.pcard{
  display:flex; flex-direction:column; height:100%;
  color:var(--white); text-decoration:none;
  transition:transform .1s steps(2);
}
.pcard:hover{ transform:translate(0,-6px); }
.pcard__img{
  aspect-ratio:1/1; overflow:hidden;
  background:var(--white);
  display:flex; align-items:center; justify-content:center;
}
.pcard__img img{ width:100%; height:100%; object-fit:cover; }
.pcard__img .tee{ width:72%; height:auto; }
.pcard__body{ display:flex; flex-direction:column; gap:8px; padding:16px 0 0; flex:1; }
.pcard__name{
  margin:0; font-weight:700; font-size:clamp(14px,1.1vw,17px);
  line-height:1.15; letter-spacing:.06em; text-transform:uppercase;
  font-family:var(--font-display);
}
.pcard__sum{ margin:0; font-weight:300; font-size:14px; line-height:1.45; }
.pcard__foot{ display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; margin-top:auto; padding-top:6px; }
.pcard__price{ font-weight:700; font-size:18px; letter-spacing:.04em; }
.pcard__colors, .pcard__tag{ font-weight:500; font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-family:var(--font-display);}
.pcard__tag{ background:var(--white); color:var(--black); padding:3px 7px; }

.shop-alt{ margin:clamp(40px,5vw,64px) 0 0; max-width:62ch; font-size:15px; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.pdp-sec{ padding-top:clamp(28px,4vw,60px); }
.pdp{
  display:grid; gap:clamp(24px,4vw,64px);
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:start;
}
@media (max-width: 860px){ .pdp{ grid-template-columns:minmax(0,1fr); } }

.gallery{ position:sticky; top:calc(var(--bar-h) + 20px); }
@media (max-width: 860px){ .gallery{ position:static; } }
.gallery__main{
  aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
  background:var(--white); overflow:hidden;
}
.gallery__main img{ width:100%; height:100%; object-fit:cover; }
.gallery__main .tee{ width:74%; height:auto; }
.gallery__thumbs{ display:flex; gap:var(--rule-fat); margin-top:var(--rule-fat); flex-wrap:wrap; }
.gallery__thumb{ width:72px; height:72px; padding:0; border:0; background:var(--white); cursor:pointer; }
.gallery__thumb img{ width:100%; height:100%; object-fit:cover; }
.gallery__thumb:hover{ transform:translate(0,3px); }

.crumbs{ margin-bottom:14px; font-weight:500; font-size:11px; letter-spacing:.24em; text-transform:uppercase; font-family:var(--font-display);}
.crumbs a{ text-decoration:none; }
.crumbs a:hover{ background:var(--white); color:var(--black); }

.pdp__name{
  margin:0 0 10px;
  font-weight:700; font-size:clamp(24px,3.2vw,42px);
  line-height:1.04; letter-spacing:.04em; text-transform:uppercase;
  font-family:var(--font-display);
}
.pdp__price{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px;
  margin:0 0 14px; font-weight:700; font-size:clamp(22px,2.2vw,30px); letter-spacing:.02em;
}
.pdp__price-note{ font-weight:500; font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-family:var(--font-display);}
.pdp__sum{ margin:0 0 clamp(26px,3vw,36px); font-weight:300; font-size:17px; line-height:1.5; max-width:46ch; }

.opt{ margin:0 0 clamp(22px,2.4vw,30px); padding:0; border:0; min-width:0; }
.opt__legend{
  display:flex; gap:12px; align-items:baseline;
  padding:0; margin:0 0 10px;
  font-weight:700; font-size:12px; letter-spacing:.24em; text-transform:uppercase;
  font-family:var(--font-display);
}
.opt__val{ font-weight:400; letter-spacing:.1em; }
.opt__hint{ margin:10px 0 0; font-size:13px; line-height:1.5; }

/* color swatches — the chip gets a white edge so a black garment still reads */
.swatches{ display:flex; flex-wrap:wrap; gap:10px; }
.swatch{ display:block; cursor:pointer; padding:5px; }
.swatch__chip{ display:block; width:40px; height:40px; box-shadow:inset 0 0 0 2px var(--white); }
.swatch:hover{ transform:translate(0,3px); }
.swatch:has(input:checked){ box-shadow:inset 0 0 0 var(--rule) var(--white); }
.swatch:has(input:focus-visible){ outline:var(--rule) solid var(--white); outline-offset:2px; }

/* sizes */
.sizes{ display:grid; gap:var(--rule); grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); }
.size{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  min-height:52px; padding:6px 4px; cursor:pointer;
  background:var(--black); color:var(--white);
  box-shadow:inset 0 0 0 var(--rule) var(--white);
}
.size__name{ font-weight:700; font-size:14px; letter-spacing:.08em; }
.size__sub{ font-weight:500; font-size:10px; letter-spacing:.1em; text-transform:uppercase; font-family:var(--font-display);}
.size:hover{ transform:translate(0,3px); }
.size:has(input:checked){ background:var(--white); color:var(--black); }
.size:has(input:focus-visible){ outline:var(--rule) solid var(--white); outline-offset:2px; }
.size--out{
  cursor:not-allowed; transform:none !important;
  background:repeating-linear-gradient(45deg, var(--black) 0 6px, var(--white) 6px 8px);
}
.size--out .size__name, .size--out .size__sub{ background:var(--black); padding:0 4px; text-decoration:line-through; }

/* size chart: opens as a white slab */
.chart{ margin-top:12px; }
.chart summary{
  display:inline-block; cursor:pointer; list-style:none;
  font-weight:700; font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  box-shadow:inset 0 calc(-1 * var(--rule)) 0 var(--white); padding-bottom:4px;
  font-family:var(--font-display);
}
.chart summary::-webkit-details-marker{ display:none; }
.chart summary:hover{ background:var(--white); color:var(--black); }
.chart__panel{ margin-top:12px; padding:14px 16px 16px; background:var(--white); color:var(--black); }
.chart table, .policy__table{
  width:100%; border-collapse:collapse;
  border-top:var(--rule) solid var(--black);
  font-size:14px;
}
.chart th, .chart td, .policy__table th, .policy__table td{
  padding:9px 8px; text-align:left; border-bottom:var(--rule) solid var(--black);
}
.chart thead th, .policy__table thead th{ font-weight:700; font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-family:var(--font-display);}
.chart p{ font-size:13px; margin:10px 0 0; }

/* quantity */
.qty{ display:inline-flex; box-shadow:inset 0 0 0 var(--rule) var(--white); }
.qty__btn{
  width:48px; height:48px; border:0; cursor:pointer;
  background:var(--white); color:var(--black);
  font-size:22px; line-height:1;
}
.qty__btn:active{ transform:translate(0,2px); }
.qty__input, .qty__val{
  width:64px; height:48px; border:0; text-align:center;
  font:inherit; font-weight:700; font-size:17px;
  background:var(--black); color:var(--white);
  display:inline-flex; align-items:center; justify-content:center;
  -moz-appearance:textfield; appearance:textfield;
}
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }
.qty--sm .qty__btn{ width:38px; height:38px; font-size:18px; }
.qty--sm .qty__val{ width:44px; height:38px; font-size:15px; }
/* qty inside a white slab (cart lines) inverts */
.slab .qty{ box-shadow:inset 0 0 0 var(--rule) var(--black); }
.slab .qty__btn{ background:var(--black); color:var(--white); }
.slab .qty__val{ background:var(--white); color:var(--black); }

/* checkbox */
.check{ display:flex; align-items:center; gap:12px; cursor:pointer; font-size:15px; }
.check input{ position:absolute; opacity:0; width:1px; height:1px; }
.check__box{ flex:none; width:24px; height:24px; box-shadow:inset 0 0 0 var(--rule) var(--white); background:var(--black); position:relative; }
.check input:checked + .check__box{ background:var(--white); }
.check input:checked + .check__box::after{
  content:""; position:absolute; left:8px; top:3px; width:6px; height:12px;
  border:solid var(--black); border-width:0 3px 3px 0; transform:rotate(45deg);
}
.check input:focus-visible + .check__box{ outline:var(--rule) solid var(--white); outline-offset:2px; }

/* personalization fields */
.custom__fields{ margin-top:14px; display:grid; gap:14px; }
.custom__fields[hidden]{ display:none; }
.custom__field label{
  display:flex; justify-content:space-between; gap:10px;
  margin-bottom:6px; font-weight:700; font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  font-family:var(--font-display);
}
.custom__opt{ font-weight:400; text-transform:none; letter-spacing:.02em; }
.custom__count{ font-weight:500; letter-spacing:.06em; }

/* Text inputs on black: black field, white text, inset white edge */
.field, .custom__field input, .custom__field select{
  width:100%; height:50px; padding:0 14px;
  font:inherit; font-size:16px; font-weight:500;  /* 16px stops iOS zoom-on-focus */
  background:var(--black); color:var(--white);
  border:0; border-radius:0; box-shadow:inset 0 0 0 var(--rule) var(--white);
  appearance:none; -webkit-appearance:none;
}
.custom__field input::placeholder{ color:var(--white); opacity:1; font-weight:300; }
.custom__field select{
  background-image:linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position:calc(100% - 22px) 21px, calc(100% - 15px) 21px;
  background-size:7px 7px; background-repeat:no-repeat;
}
.custom__field input:focus, .custom__field select:focus{ outline:var(--rule) solid var(--white); outline-offset:2px; }

.pdp__msg{ margin:0 0 12px; font-weight:700; font-size:14px; }
.pdp__msg:empty{ display:none; }
.pdp__msg:not(:empty)::before{ content:"! "; }

.added{ margin-top:var(--rule-fat); padding:18px; background:var(--white); color:var(--black); }
.added[hidden]{ display:none; }
.added__text{ margin:0 0 14px; font-weight:500; font-size:14px; }
.added__actions{ display:flex; flex-wrap:wrap; gap:var(--rule); }

/* facts under the button: a white slab with black rules inside */
.facts{ list-style:none; margin:clamp(22px,2.6vw,30px) 0 0; padding:4px 18px; background:var(--white); color:var(--black); }
.facts li{
  display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px;
  padding:12px 0; border-bottom:var(--rule) solid var(--black);
  font-size:14px; line-height:1.45;
}
.facts li:last-child{ border-bottom:0; }
.facts strong{ font-weight:700; font-size:11px; letter-spacing:.2em; text-transform:uppercase; padding-top:2px; font-family:var(--font-display);}
.facts :focus-visible{ outline-color:var(--black); }

.pdp__desc{ margin-top:clamp(28px,3.4vw,42px); }
.pdp__h{ margin:0 0 10px; font-weight:700; font-size:12px; letter-spacing:.24em; text-transform:uppercase; font-family:var(--font-display);}
.pdp__desc p{ margin:0 0 12px; font-weight:300; font-size:16px; line-height:1.6; max-width:52ch; }
.pdp__details{ margin:0; padding-left:1.1em; font-size:14px; line-height:1.8; }

/* ==========================================================================
   CART — lines and summary are white slabs on black
   ========================================================================== */
.cart-sec{ min-height:60vh; }
.cart-grid{
  display:grid; gap:clamp(24px,4vw,56px);
  grid-template-columns:minmax(0,1.4fr) minmax(300px,.9fr);
  align-items:start;
}
@media (max-width: 900px){ .cart-grid{ grid-template-columns:minmax(0,1fr); } }

.lines{ list-style:none; margin:0; padding:0; display:grid; gap:var(--rule-fat); }
.line{
  display:grid; grid-template-columns:96px minmax(0,1fr) auto; gap:16px;
  padding:16px; align-items:start;
  background:var(--white); color:var(--black);
}
.line--err{ box-shadow:inset var(--rule-fat) 0 0 var(--black); padding-left:24px; }
.line__img{
  width:96px; height:96px; display:flex; align-items:center; justify-content:center;
  overflow:hidden; background:var(--white); box-shadow:inset 0 0 0 var(--rule) var(--black);
}
.line__img img{ width:100%; height:100%; object-fit:cover; }
.line__img .tee{ width:78%; height:auto; }
.line__name{ margin:0 0 4px; font-weight:700; font-size:15px; letter-spacing:.05em; text-transform:uppercase; font-family:var(--font-display);}
.line__name a{ text-decoration:none; }
.line__name a:hover{ background:var(--black); color:var(--white); }
.line__opts{ margin:0 0 4px; font-size:14px; }
.line__note{ margin:0 0 4px; font-weight:700; font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-family:var(--font-display);}
.line__err{ margin:4px 0; font-weight:700; font-size:13px; }
.line__err::before{ content:"! "; }
.line__row{ display:flex; align-items:center; gap:16px; margin-top:10px; flex-wrap:wrap; }
.line__price{ margin:0; font-weight:700; font-size:16px; white-space:nowrap; }
@media (max-width: 520px){
  .line{ grid-template-columns:72px minmax(0,1fr); }
  .line__img{ width:72px; height:72px; }
  .line__price{ grid-column:2; }
}
.linkbtn{
  border:0; background:none; padding:2px 0 4px; cursor:pointer; color:inherit;
  font-weight:700; font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  box-shadow:inset 0 calc(-1 * var(--rule)) 0 currentColor;
  font-family:var(--font-display);
}
.linkbtn:hover{ background:var(--black); color:var(--white); box-shadow:none; }

.summary{
  padding:clamp(20px,2.4vw,30px);
  background:var(--white); color:var(--black);
  position:sticky; top:calc(var(--bar-h) + 20px);
}
@media (max-width: 900px){ .summary{ position:static; } }
.summary__h{ margin:0 0 18px; font-weight:700; font-size:14px; letter-spacing:.24em; text-transform:uppercase; font-family:var(--font-display);}

.methods{ display:grid; gap:var(--rule); }
.method{ display:block; cursor:pointer; position:relative; }
.method input{ position:absolute; opacity:0; width:1px; height:1px; }
.method__box{
  display:flex; flex-direction:column; gap:4px; padding:14px 16px;
  background:var(--white); color:var(--black);
  box-shadow:inset 0 0 0 var(--rule) var(--black);
}
.method input:checked + .method__box{ background:var(--black); color:var(--white); }
.method input:focus-visible + .method__box{ outline:var(--rule) solid var(--black); outline-offset:2px; }
.method__name{ display:flex; justify-content:space-between; gap:10px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; font-family:var(--font-display);}
.method__sub{ font-size:13px; line-height:1.4; }

.totals{ margin:20px 0 16px; padding:0; border-top:var(--rule) solid var(--black); }
.totals div{ display:flex; justify-content:space-between; gap:12px; padding:9px 0; font-size:14px; }
.totals dt{ font-weight:400; }
.totals dd{ margin:0; font-weight:700; }
.totals__grand{ margin-top:4px; padding-top:14px !important; border-top:var(--rule-fat) solid var(--black); font-size:17px !important; }
.totals__grand dt{ font-weight:700; text-transform:uppercase; letter-spacing:.1em; font-size:13px; font-family:var(--font-display);}

.freebar{ margin:0 0 16px; }
.freebar p{ margin:0 0 8px; font-size:13px; font-weight:500; }
.freebar__track{ display:block; height:10px; background:var(--white); box-shadow:inset 0 0 0 2px var(--black); }
.freebar__fill{ display:block; height:100%; background:var(--black); }

.summary .pdp__msg{ margin:12px 0 0; }
.summary__fine{ margin:14px 0 0; font-size:12px; line-height:1.5; }

.cart-empty{ display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding:clamp(20px,4vw,50px) 0; }

/* ==========================================================================
   POLICIES / THANKS — all black, separated by space; tables are white slabs
   ========================================================================== */
.policy{ padding:clamp(36px,5vw,70px) 0; }
.policy__grid{ display:grid; gap:clamp(16px,3vw,48px); grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr); }
@media (max-width: 760px){ .policy__grid{ grid-template-columns:minmax(0,1fr); } }
.policy__body p{ margin:0 0 16px; max-width:62ch; font-size:16px; line-height:1.6; }
.policy__slab{ max-width:420px; margin:0 0 12px; padding:6px 16px 10px; background:var(--white); color:var(--black); }
.policy__slab .policy__table{ border-top:0; }
.policy__slab tr:last-child td{ border-bottom:0; }
.thanks{ min-height:70vh; }
.thanks .promises{ margin-bottom:clamp(30px,4vw,48px); }

/* thanks-page receipt: white slab */
.receipt{ max-width:560px; margin:0 0 clamp(26px,3vw,38px); padding:clamp(18px,2.4vw,26px); background:var(--white); color:var(--black); }
.receipt__top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; align-items:baseline; padding-bottom:10px; border-bottom:var(--rule-fat) solid var(--black); }
.receipt__ref{ margin:0; font-weight:700; font-size:18px; letter-spacing:.06em; text-transform:uppercase; font-family:var(--font-display);}
.receipt__method{ margin:0; font-weight:500; font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-family:var(--font-display);}
.receipt__lines{ list-style:none; margin:12px 0 0; padding:0; font-size:15px; line-height:1.6; }
.receipt .totals{ margin-top:14px; }

/* home page featured row (inside the black #shop section) */
.featured{ margin-top:clamp(40px,5vw,64px); }
.featured[hidden]{ display:none; }
.featured__head{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:16px; }
.featured__head .eyebrow{ margin:0; }
.featured__all{ font-weight:700; font-size:12px; letter-spacing:.16em; text-transform:uppercase; text-decoration:none; padding:6px 8px; font-family:var(--font-display);}
.featured__all:hover{ background:var(--white); color:var(--black); }
