/* Leader Wear shop layer. Loads AFTER style.css and street.css and never overrides the supplied design.
   It only styles things that exist once products are published: product cards, the product dialog,
   bag line items, checkout, and the admin-only preview bar. Same palette: black, white, neutral grey. */

[hidden]{display:none!important}

/* Only present when the server knows an admin override exists: hold those regions invisible (layout kept) until
   store.js has applied them, so default text never flashes first. The timed reveal is a fail-safe if scripts fail. */
.lw-loading [data-content],.lw-loading #product-grid,.lw-loading #hero-image,.lw-loading #attitude-image,.lw-loading #photo-dialog-image,.lw-loading #footer-social,.lw-loading #drop-link{visibility:hidden;animation:lw-reveal 0s 2s forwards}
@keyframes lw-reveal{to{visibility:visible}}
@media(prefers-reduced-motion:reduce){.lw-loading [data-content],.lw-loading #product-grid,.lw-loading #hero-image,.lw-loading #attitude-image,.lw-loading #photo-dialog-image,.lw-loading #footer-social,.lw-loading #drop-link{animation:lw-reveal 0s 2s forwards!important}}

/* ---------- admin-only draft preview bar (never shown to customers) */
.preview-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;align-items:center;padding:10px 3%;background:#ffe600;color:#111;border-bottom:2px solid #111;font:800 .8125rem/1.4 Arial,Helvetica,sans-serif;letter-spacing:.04em;text-transform:uppercase}
.preview-bar a{text-decoration:underline;text-underline-offset:4px}

/* ---------- admin-entered copy */
.pre-line{white-space:pre-line}
.attitude-visual img.is-custom{transform:none;object-position:center}

/* ---------- extra contact links under the Instagram handle in the footer */
.footer-contact{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:16px;font-size:.8125rem;letter-spacing:.02em}
.footer-contact a{border-bottom:1px solid #777;padding-bottom:3px}

/* ---------- product cards (replace the "Next piece" placeholders when products exist) */
.product-card{border:1px solid #111;background:#fff}
.product-open{display:block;width:100%;padding:0;text-align:left;background:none;color:inherit}
.product-card .product-space{display:block;position:relative;background:#e8e8e8;aspect-ratio:4/4.5;overflow:hidden}
.product-card .product-space img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.product-card:hover .product-space img{transform:scale(1.03)}
.product-card .slot-number{position:absolute;inset:0;display:grid;place-items:center}
.product-badge{position:absolute;left:16px;top:17px;z-index:1;background:#111;color:#fff;font-family:'Courier New',monospace;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;padding:5px 9px}
.product-card .product-caption{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:18px 16px;border-top:1px solid #111}
/* style.css styles every direct <span> of .product-caption small and grey (for "Coming soon"); name and price must stay full strength */
.product-card .product-caption>.product-title{font-size:.875rem;font-weight:700;color:#111;text-transform:uppercase;overflow-wrap:anywhere}
.product-card .product-caption>.product-price{font-size:.875rem;font-weight:800;color:#111;white-space:nowrap}

/* ---------- product dialog */
.product-dialog{width:min(1040px,94vw);max-width:none;max-height:94dvh;margin:auto;padding:0;overflow:auto;background:#f5f5f5;border:1px solid #111}
.product-dialog .close{position:absolute;right:10px;top:10px;z-index:3;background:#fff;border:1px solid #111;border-radius:0}
.product-detail{display:grid;grid-template-columns:1.1fr 1fr}
.product-gallery{background:#e8e8e8;border-right:1px solid #111}
.product-stage{position:relative;aspect-ratio:4/4.6;overflow:hidden}
.product-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-stage.is-empty:after{content:"LW";position:absolute;inset:0;display:grid;place-items:center;font-family:Impact,'Arial Narrow','Arial Black',sans-serif;font-size:9rem;color:transparent;-webkit-text-stroke:1.5px #aaa}
.product-thumbs{display:flex;gap:8px;padding:10px;overflow-x:auto;background:#fff;border-top:1px solid #111}
.product-thumbs:empty{display:none}
.product-thumbs button{flex:0 0 64px;height:76px;padding:0;border:1px solid #111;background:#e8e8e8;opacity:.6}
.product-thumbs button[aria-current=true]{opacity:1;outline:2px solid #111;outline-offset:-4px}
.product-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.product-info{display:flex;flex-direction:column;gap:18px;padding:58px 32px 32px}
.product-info h2{font-size:clamp(2.2rem,3.6vw,3.4rem);margin:0;overflow-wrap:anywhere}
.product-price-line{margin:0;font-family:Impact,'Arial Narrow','Arial Black',sans-serif;font-size:1.8rem;letter-spacing:.01em}
.product-description{margin:0;color:#444;font-size:.9375rem;line-height:1.65;white-space:pre-line}
.product-description:empty{display:none}
.option-group{margin:0;padding:0;border:0;min-width:0}
.option-group legend{padding:0;margin-bottom:10px;font:800 .75rem Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.options{display:flex;flex-wrap:wrap;gap:8px}
.option{position:relative;display:block}
.option input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chip{display:flex;align-items:center;justify-content:center;gap:8px;min-width:48px;min-height:44px;padding:0 14px;border:1px solid #111;background:#fff;font-weight:700;text-transform:uppercase}
.option input:checked+.chip{background:#111;color:#fff}
.option input:focus-visible+.chip{outline:2px solid #111;outline-offset:3px}
.option input:disabled{cursor:not-allowed}
.option input:disabled+.chip{opacity:.4;text-decoration:line-through}
.swatch{flex:none;width:16px;height:16px;border:1px solid #111;background:var(--swatch,#ccc)}
.option input:checked+.chip .swatch{border-color:#fff}
.qty-row{display:flex;align-items:center;gap:16px}
.qty-label{font:800 .75rem Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.stepper{display:inline-flex;border:1px solid #111;background:#fff}
.stepper button{width:44px;height:44px;font-size:1.25rem;line-height:1}
.stepper button:disabled{opacity:.3;cursor:not-allowed}
.stepper output{display:grid;place-items:center;min-width:44px;border-inline:1px solid #111;font-weight:700}
.stock-note{min-height:1.4em;margin:0;font-family:'Courier New',monospace;font-size:.8125rem}
.add-button{width:100%}
.add-button:disabled,#open-checkout:disabled,#place-order:disabled{background:#999;color:#fff;cursor:not-allowed}

/* ---------- bag line items (inside the existing drawer) */
.bag-lines-wrap{flex:1;min-height:0;overflow-y:auto}
.drawer.has-lines .drawer-bottom{margin-top:18px}
.bag-notice{margin:14px 0 0;padding:10px 12px;border-left:3px solid #111;background:#fff;font-size:.8125rem;font-weight:700}
.bag-lines{margin:0;padding:0;list-style:none}
.bag-line{display:grid;grid-template-columns:76px 1fr auto;gap:14px;padding:16px 0;border-bottom:1px solid #ccc}
.bag-line-thumb{width:76px;height:92px;background:#e8e8e8;border:1px solid #111;overflow:hidden}
.bag-line-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.bag-line-name{margin:0;font-size:.875rem;font-weight:700;text-transform:uppercase;overflow-wrap:anywhere}
.bag-line-meta{margin:2px 0 8px;color:#555;font-size:.8125rem;line-height:1.4}
.bag-line-warning{margin:0 0 8px;font-size:.8125rem;font-weight:700}
.bag-line-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.bag-line .stepper button{width:36px;height:36px}
.bag-line .stepper output{min-width:36px}
.bag-line-remove{min-height:36px;font-size:.8125rem;text-decoration:underline;text-underline-offset:3px}
.bag-line-total{font-weight:800;white-space:nowrap}
.bag-summary{display:grid;gap:12px;margin-top:8px;padding-top:16px;border-top:2px solid #111}
.summary-row{display:flex;justify-content:space-between;gap:16px;font-size:.9375rem}
.summary-row.total{padding-top:12px;border-top:1px solid #111;font-size:1.1rem}
.summary-note{margin:0;color:#555;font-size:.8125rem}
.bag-summary .button{width:100%}

/* ---------- checkout drawer */
.checkout-form{display:flex;flex-direction:column;flex:1;min-height:0}
.checkout-scroll{flex:1;min-height:0;overflow-y:auto;display:grid;gap:16px;align-content:start;padding:20px 2px 8px}
.field label{display:block;margin-bottom:6px;font:800 .75rem Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.field input,.field select,.field textarea{display:block;width:100%;min-height:48px;padding:12px;border:1px solid #111;border-radius:0;background:#fff;color:#111;font:inherit}
.field textarea{resize:vertical}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid #111;outline-offset:2px}
.field [aria-invalid=true]{border-width:2px}
.field-error{display:block;margin-top:6px;font-size:.8125rem;font-weight:700}
.field-error:empty{display:none}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* totals, the cash-on-delivery note, errors and the order button stay pinned together at the bottom, so the amount to pay is always in view */
.checkout-footer{display:grid;gap:10px;padding-top:14px;border-top:2px solid #111}
.checkout-summary{display:grid;gap:6px}
.cod-note{margin:0;padding:8px 12px;border:1px solid #111;background:#fff;font-family:'Courier New',monospace;font-size:.75rem}
.form-error{margin:0;padding:8px 12px;border-left:3px solid #111;background:#fff;font-size:.875rem;font-weight:700}
#place-order{width:100%}
.order-done{margin:auto 0;padding:35px 0;text-align:center}
.order-confirmation-logo{display:block;width:172px;height:172px;max-width:100%;object-fit:contain;margin:0 auto;mix-blend-mode:multiply}
.order-done:not([hidden]) .order-confirmation-logo{animation:order-logo-reveal .65s cubic-bezier(.16,1,.3,1) both}
@keyframes order-logo-reveal{from{opacity:0;transform:translateY(9px);clip-path:inset(0 100% 0 0)}to{opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0)}}
@media(prefers-reduced-motion:reduce){.order-done .order-confirmation-logo{animation:none}}
.order-done h3{margin:15px 0 10px;font-family:Impact,'Arial Black',sans-serif;font-size:2.8rem;line-height:1;text-transform:uppercase}
.order-number-label{margin:0;color:#555;font-size:.8125rem}
.order-number{display:inline-block;margin:6px 0 14px;padding:10px 18px;border:2px solid #111;background:#fff;font-family:'Courier New',monospace;font-size:1.6rem;font-weight:700;letter-spacing:.08em}
.order-done-note{max-width:300px;margin:0 auto 10px;font-size:.875rem}
.order-done-total{margin:0 0 26px;font-weight:800}

@media(max-width:800px){
  .product-dialog{width:100%;max-height:100dvh;height:100dvh;border:0}
  .product-detail{grid-template-columns:1fr}
  .product-gallery{border-right:0;border-bottom:1px solid #111}
  .product-stage{aspect-ratio:4/4.4}
  .product-info{padding:26px 20px 30px}
  .product-card .product-caption{flex-direction:column;gap:6px;padding:15px 12px}
}

/* Delivery method (home / Stop Desk). Shown only when the chosen wilaya offers Stop Desk. Each choice is a full-width box,
   black when chosen, like the size and colour choices. */
.delivery-choice{min-width:0;margin-inline:0;padding:0;border:0}
.delivery-choice legend{padding:0;margin-bottom:6px;font:800 .75rem Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.delivery-choice .delivery-option{position:relative;display:block;margin:0;font:inherit;letter-spacing:normal;text-transform:none}
.delivery-choice .delivery-option+.delivery-option{margin-top:8px}
.delivery-choice .delivery-option input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.delivery-option .dm{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 12px;border:1px solid #111;background:#fff;color:#111;line-height:1.3}
.delivery-option input:checked+.dm{background:#111;color:#fff}
.delivery-option input:focus-visible+.dm{outline:2px solid #111;outline-offset:2px}
.delivery-option .dm-fee{flex:none;font-weight:800;white-space:nowrap}
.field-hint{display:block;margin-top:6px;font-size:.8125rem;line-height:1.4;color:#555}
