/* ============================================================================
 * acgshop storefront styles.
 *
 * DESIGN TOKENS (below) mirror the WP-admin design system for visual consistency.
 * They are the single place to retheme: when the graphic designer's files arrive,
 * remap these variables (and, if needed, the component rules) — templates/markup
 * and class names stay stable, so nothing in PHP/JS has to change.
 * ========================================================================== */
:root {
  --acg-accent:#2271b1;  --acg-accent-d:#135e96;
  --acg-ok:#008a20;      --acg-no:#d63638;
  --acg-ink:#1d2327;     --acg-muted:#646970;
  --acg-border:#dcdcde;  --acg-border-2:#c3c4c7;
  --acg-bg:#f6f7f7;      --acg-card:#fff;
  --acg-radius:8px;      --acg-radius-sm:6px;
  --acg-shadow:0 1px 2px rgba(0,0,0,.05);
}

/* ── shared components (admin-consistent) ─────────────────────────────────── */
.acgshop-btn{display:inline-block;background:var(--acg-accent);color:#fff;border:1px solid var(--acg-accent);
  border-radius:var(--acg-radius-sm);padding:9px 16px;font-size:14px;line-height:1.2;cursor:pointer;text-decoration:none}
.acgshop-btn:hover{background:var(--acg-accent-d);border-color:var(--acg-accent-d);color:#fff}
.acgshop-btn[disabled]{opacity:.5;cursor:default}
.acgshop-btn--ghost{background:var(--acg-card);color:var(--acg-accent)}
.acgshop-btn--ghost:hover{background:var(--acg-bg);color:var(--acg-accent-d)}
.acgshop-linkbtn{background:none;border:0;padding:0;color:var(--acg-accent);font-size:inherit;cursor:pointer;text-decoration:underline}
.acgshop-linkbtn:hover{color:var(--acg-accent-d)}
.acgshop-panel{background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius);
  padding:18px;box-shadow:var(--acg-shadow);margin-bottom:16px}
.acgshop-panel h3{margin:0 0 12px;font-size:15px}
.acgshop-table{width:100%;border-collapse:collapse;margin:12px 0}
.acgshop-table th,.acgshop-table td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--acg-border)}
.acgshop-table thead th{background:var(--acg-bg);font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--acg-muted)}
.acgshop-dim{color:var(--acg-muted)}
.acgshop-err{color:var(--acg-no)}
.acgshop input,.acgshop select,.acgshop textarea{font:inherit}
input[data-na],[data-co] select,[data-co] input,.acgshop-login input,.acgshop-addcart input,.acgshop-co__addr input{
  border:1px solid var(--acg-border);border-radius:var(--acg-radius-sm);padding:8px 10px;box-sizing:border-box}

/* ── catalog grid / product / nav ─────────────────────────────────────────── */
.acgshop-grid{list-style:none;margin:0;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.acgshop-card{border:1px solid var(--acg-border);border-radius:var(--acg-radius);padding:.85rem;background:var(--acg-card);
  box-shadow:var(--acg-shadow);display:flex;flex-direction:column;gap:.4rem}
.acgshop-card__link{display:flex;flex-direction:column;gap:.5rem;text-decoration:none;color:inherit}
.acgshop-card__img{width:100%;height:auto;object-fit:contain;aspect-ratio:1/1}
.acgshop-card__name{font-weight:600;line-height:1.25}
.acgshop-card__mfr{font-size:.85em;color:var(--acg-muted)}
.acgshop-card__price{font-weight:700;color:var(--acg-ink)}
.acgshop-count{color:var(--acg-muted);margin:.5rem 0}
.acgshop-pager{display:flex;gap:1rem;align-items:center;margin-top:1.25rem}
.acgshop-pager__pos{color:var(--acg-muted)}
.acgshop-catnav{list-style:none;margin:0;padding-left:1rem}
.acgshop-categories>.acgshop-catnav{padding-left:0}
.acgshop-catnav li{margin-bottom:.4em}
.acgshop-catnav a{text-decoration:none;color:var(--acg-accent);line-height:1.15;display:inline-block}
.acgshop-pricebreaks{border-collapse:collapse;margin:1rem 0}
.acgshop-pricebreaks th,.acgshop-pricebreaks td{border:1px solid var(--acg-border);padding:.35rem .75rem;text-align:left}
.acgshop-pricebreaks th{background:var(--acg-bg)}
.acgshop-product__sku{color:var(--acg-muted)}
.acgshop-product__img{max-width:360px;height:auto;border:1px solid var(--acg-border);border-radius:var(--acg-radius)}
.acgshop-error{padding:.6rem .8rem;border-radius:var(--acg-radius-sm);background:#fff4f4;border:1px solid #f0c0c0;color:#8a1f1f}
.acgshop-error--admin{background:#fff8e5;border-color:#e6cf8a;color:#6b5300}
.acgshop-empty{color:var(--acg-muted);font-style:italic}

/* ── selftest ─────────────────────────────────────────────────────────────── */
.acgshop-selftest{margin:1rem 0}
.acgshop-selftest__overall{font-size:.7em;padding:.15rem .5rem;border-radius:4px;margin-left:.5rem;vertical-align:middle}
.acgshop-selftest__overall.is-ok{background:#e6f6e6;color:#1d6b1d}
.acgshop-selftest__overall.is-fail{background:#fbe6e6;color:#8a1f1f}
.acgshop-selftest__endpoint{color:var(--acg-muted);font-size:.9em}
.acgshop-selftest__table{border-collapse:collapse;margin:.5rem 0;width:100%;max-width:720px}
.acgshop-selftest__table th,.acgshop-selftest__table td{border:1px solid var(--acg-border);padding:.4rem .7rem;text-align:left}
.acgshop-selftest__table tr.is-ok td{background:#fbfffb}
.acgshop-selftest__table tr.is-fail td{background:#fff6f6}
.acgshop-selftest__note{color:var(--acg-muted);font-style:italic;font-size:.9em}

/* ── storefront layout ────────────────────────────────────────────────────── */
.acgshop-crumbs{font-size:.9em;color:var(--acg-muted)}
.acgshop-crumbs a{text-decoration:none;color:var(--acg-accent)}
/* Page-level container: fill parent container width; the theme's own
   container (site-content / .container / etc.) handles horizontal bounds. */
.acgshop-page{width:100%;padding:16px 20px;box-sizing:border-box}

/* Breadcrumbs (all storefront pages): centered, pipe-separated, muted grey
   with the current page in FPD green. No underlines. */
.acgshop-crumbs{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:8px;color:#6B6B6B;font-size:15px;line-height:1.4;margin:25px 0}
.acgshop-crumbs__item{color:#6B6B6B;text-decoration:none}
a.acgshop-crumbs__item:hover,a.acgshop-crumbs__item:focus{color:#004B97;text-decoration:none}
.acgshop-crumbs__item + .acgshop-crumbs__item::before{content:"|";margin-right:8px;color:#6B6B6B}
.acgshop-crumbs__current{color:#39B34A}

.acgshop-shop__body{display:grid;grid-template-columns:minmax(180px,240px) 1fr;gap:1.5rem;align-items:start}
.acgshop-shop__body--no-nav{grid-template-columns:1fr}
.acgshop-shop__nav{font-size:.92em}
.acgshop-shop__main{min-width:0}
.acgshop-cathead{margin-bottom:1rem}
.acgshop-cathead__name{margin:0 0 .25rem}
.acgshop-cathead__desc{color:var(--acg-muted);margin-bottom:.5rem}
.acgshop-subcats{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:0;margin:.5rem 0}
.acgshop-subcats a{text-decoration:none;padding:.2rem .5rem;background:var(--acg-bg);border-radius:4px;color:var(--acg-accent)}
@media(max-width:640px){.acgshop-shop__body{grid-template-columns:1fr}.acgshop-shop__nav{display:none}}

/* ── dealer sign-in / account ─────────────────────────────────────────────── */
.acgshop-signin{max-width:400px;margin:2em auto}
.acgshop-signin__form{padding:28px;border:1px solid var(--acg-border);border-radius:var(--acg-radius);background:var(--acg-card);box-shadow:var(--acg-shadow);display:flex;flex-direction:column;gap:14px}
.acgshop-signin__title{margin:0;font-size:22px}
.acgshop-signin__sub{margin:0;color:var(--acg-muted);font-size:14px}
.acgshop-signin__error{margin:0;color:var(--acg-no);background:#fcebec;padding:8px 12px;border-radius:var(--acg-radius-sm);font-size:14px}
.acgshop-signin__submit{margin-top:6px;padding:10px 18px}

/* Account header + tab strip */
.acgshop-account__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:0 0 18px}
.acgshop-account__hello{margin:0 0 4px;font-size:22px;font-weight:600}
.acgshop-account__meta{color:var(--acg-muted);font-size:14px;display:flex;flex-wrap:wrap;gap:6px}
.acgshop-account__logout{margin:0}
.acgshop-account__tabs{display:flex;gap:2px;border-bottom:1px solid var(--acg-border);margin:0 0 18px;overflow-x:auto}
.acgshop-tab{background:transparent;border:0;padding:10px 16px;font:inherit;color:var(--acg-muted);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}
.acgshop-tab:hover{color:var(--acg-ink)}
.acgshop-tab.is-active{color:var(--acg-accent);border-bottom-color:var(--acg-accent);font-weight:600}
a.acgshop-tab,.acgshop-tab--link{text-decoration:none;margin-left:auto}
a.acgshop-tab::after{content:" \2192";opacity:.6;font-size:.9em}

/* Account cards + form fields */
.acgshop-account [data-acg-tabpanel]{display:flex;flex-direction:column;gap:16px}
.acgshop-account .acgshop-card{padding:0;overflow:hidden}
.acgshop-card__head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:14px 18px;border-bottom:1px solid var(--acg-border);background:var(--acg-bg)}
.acgshop-card__head h2,.acgshop-card__head h3{margin:0;font-size:15px}
.acgshop-card__body{padding:16px 18px}
.acgshop-card__actions{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}
.acgshop-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:600px){.acgshop-grid2{grid-template-columns:1fr}}
.acgshop-field{display:flex;flex-direction:column;gap:4px}
.acgshop-field--wide{grid-column:1/-1}
.acgshop-field__label{font-size:12px;font-weight:600;color:var(--acg-muted);text-transform:uppercase;letter-spacing:.03em}
.acgshop-field__input{width:100%;padding:8px 10px;border:1px solid var(--acg-border);border-radius:var(--acg-radius-sm);background:#fff;font:inherit}
.acgshop-field__input:focus{outline:none;border-color:var(--acg-accent);box-shadow:0 0 0 3px rgba(0,120,212,.12)}

/* Inline messages next to Save buttons */
.acgshop-msg{font-size:13px;color:var(--acg-muted)}
.acgshop-msg--ok{color:var(--acg-ok,#1b7f37)}
.acgshop-msg--err{color:var(--acg-no)}

/* Status pills (orders + address types) */
.acgshop-pill{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--acg-bg);border:1px solid var(--acg-border);font-size:12px;color:var(--acg-muted);white-space:nowrap}
.acgshop-pill--ok{background:#e8f5ec;border-color:#b7dfc2;color:#1b6b32}
.acgshop-pill--warn{background:#fff4e0;border-color:#f0d29a;color:#8a5a06}

/* Orders table + expandable detail row */
.acgshop-table--orders{margin-top:0}
.acgshop-acct__detailrow>td{background:var(--acg-bg);padding:12px 18px}
.acgshop-order__detail{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.acgshop-order__detail ul{margin:4px 0 0;padding-left:18px}
@media(max-width:640px){.acgshop-order__detail{grid-template-columns:1fr}}
.acgshop-pager{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:8px 0}

/* ── Order History (Farrier Products style) ───────────────────────────────
 * Palette local to this block — deliberately hardcoded to match the
 * marketing site rather than the neutral admin theme. Overrides Bootstrap
 * table + link defaults if a theme brings them in.
 * --oh-navy  : deep blue used for pill title text
 * --oh-pill  : light-blue pill background behind the title
 * --oh-red   : magenta/red for the surcharge note
 * --oh-green : brand green used for headers, links, and CTA button
 */
.acgshop-oh{--oh-navy:#0b3e91;--oh-pill:#e5f0fd;--oh-red:#e21f6d;--oh-green:#4cbe4a;--oh-green-d:#3ea83c;--oh-row:#eaecef;color:var(--acg-ink)}
.acgshop-oh__head{text-align:center;margin:0 0 22px}
.acgshop-oh__title{display:inline-block;margin:0 auto 14px;font:800 20px/1 "Nunito","Helvetica Neue",Arial,sans-serif;letter-spacing:.03em}
.acgshop-oh__title span{display:inline-block;padding:14px 44px;color:var(--oh-navy);background:var(--oh-pill);border-radius:999px}
.acgshop-oh__note{margin:0;color:var(--oh-red);font-size:15px;line-height:1.35}

.acgshop-oh__toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 10px;flex-wrap:wrap}
.acgshop-oh__company{font-weight:700;font-size:17px}
.acgshop-oh__search{position:relative;flex:0 1 340px}
.acgshop-oh__search input{width:100%;padding:9px 14px 9px 40px;border:1px solid #dcdcde;border-radius:999px;background:#f6f7f7;font-size:13px;letter-spacing:.05em;text-transform:uppercase;color:var(--acg-muted)}
.acgshop-oh__search input:focus{outline:none;border-color:var(--oh-navy);background:#fff;color:var(--acg-ink)}
.acgshop-oh__searchicon{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:14px;color:var(--acg-muted);pointer-events:none}
.acgshop-oh__cta{background:var(--oh-green);color:#fff;border:0;border-radius:999px;padding:10px 22px;font-weight:800;font-size:12px;letter-spacing:.06em;cursor:pointer;line-height:1}
.acgshop-oh__cta:hover{background:var(--oh-green-d);color:#fff}

.acgshop-oh__years{margin:14px 0 12px;font-weight:700;font-size:14px}
.acgshop-oh__year{color:var(--acg-muted);text-decoration:none;padding:0 6px}
.acgshop-oh__year:hover{color:var(--oh-green-d)}
.acgshop-oh__year.is-active{color:var(--oh-green);font-size:18px}
.acgshop-oh__yearsep{color:#c9ccd1;margin:0 2px}

.acgshop-oh__table{width:100%;border-collapse:collapse;margin:12px 0 0;background:#fff}
.acgshop-oh__table thead th{color:var(--oh-green);font-weight:800;font-size:13px;text-align:left;padding:10px 14px;border-bottom:1px solid var(--oh-row);text-transform:none;letter-spacing:0;background:transparent}
.acgshop-oh__table tbody td{padding:14px;border-bottom:1px solid var(--oh-row);vertical-align:middle}
.acgshop-oh__table .acgshop-oh__id{width:120px;color:var(--acg-ink)}
.acgshop-oh__table .acgshop-oh__amount{width:180px}
.acgshop-oh__table .acgshop-oh__date{color:var(--acg-ink)}
.acgshop-oh__table .acgshop-oh__actions{width:170px;text-align:right}
.acgshop-oh__po{font-size:12px;color:var(--acg-muted);margin-top:2px}
.acgshop-oh__action{color:var(--oh-green);font-weight:800;font-size:13px;letter-spacing:.04em;text-decoration:none}
.acgshop-oh__action:hover{color:var(--oh-green-d);text-decoration:underline}
.acgshop-oh__empty{text-align:center;color:var(--acg-muted);padding:24px 14px}
.acgshop-oh__detailrow>td{background:#fafbfc;padding:14px 18px}
.acgshop-order__detailact{margin-top:12px;text-align:right}

@media(max-width:640px){
  .acgshop-oh__toolbar{flex-direction:column;align-items:stretch}
  .acgshop-oh__search{flex:1 1 auto}
  .acgshop-oh__table thead{display:none}
  .acgshop-oh__table tbody td{display:block;width:auto!important;text-align:left;padding:6px 14px;border:0}
  .acgshop-oh__table tbody tr{display:block;padding:10px 0;border-bottom:1px solid var(--oh-row)}
  .acgshop-oh__table .acgshop-oh__actions{text-align:left;padding-top:8px}
}

/* ── Itemized History (per-product rollup) ───────────────────────────────
 * Shares palette + toolbar/pill styles with .acgshop-oh above.
 * Each category group is a collapsible section with its own table + CTA.
 */
.acgshop-ih{--oh-navy:#0b3e91;--oh-pill:#e5f0fd;--oh-red:#e21f6d;--oh-green:#4cbe4a;--oh-green-d:#3ea83c;--oh-row:#eaecef;color:var(--acg-ink)}
.acgshop-ih__group{margin:0 0 22px}
.acgshop-ih__grouphead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 4px;border-bottom:2px solid var(--oh-navy);cursor:pointer;user-select:none}
.acgshop-ih__grouphead:hover{background:#f7faff}
.acgshop-ih__path{font-size:14px;color:var(--acg-muted);font-weight:600}
.acgshop-ih__path::first-line{color:var(--acg-muted)}
/* Mockup emphasis: the leaf segment (after the last |) shows in navy bold */
.acgshop-ih__grouphead .acgshop-ih__path{white-space:pre-wrap}
.acgshop-ih__caret{color:var(--oh-navy);font-size:12px}

.acgshop-ih__groupbody{padding-top:4px}
.acgshop-ih__table{width:100%;border-collapse:collapse;background:#fff;margin:6px 0 0}
.acgshop-ih__table thead th{color:var(--oh-green);font-weight:800;font-size:12px;text-align:left;padding:8px 10px;border-bottom:1px solid var(--oh-row);background:transparent;vertical-align:top;text-transform:none;letter-spacing:0}
.acgshop-ih__table tbody td{padding:10px;border-bottom:1px solid var(--oh-row);vertical-align:top;font-size:14px}
.acgshop-ih__table .acgshop-ih__code{width:88px;font-weight:700}
.acgshop-ih__table .acgshop-ih__unit{width:56px}
.acgshop-ih__table .acgshop-ih__price{width:170px;line-height:1.35}
.acgshop-ih__table .acgshop-ih__lastqty,
.acgshop-ih__table .acgshop-ih__lastdate,
.acgshop-ih__table .acgshop-ih__total{width:90px;white-space:nowrap}
.acgshop-ih__table .acgshop-ih__addqty{width:90px;text-align:right}
.acgshop-ih__qty{width:70px;padding:6px 8px;border:1px solid var(--acg-border);border-radius:4px;text-align:right;font:inherit}
.acgshop-ih__nap{color:var(--acg-muted);font-style:italic}
.acgshop-ih__groupfoot{display:flex;justify-content:flex-end;padding:12px 0 0}

@media(max-width:800px){
  .acgshop-ih__table thead{display:none}
  .acgshop-ih__table tbody tr{display:grid;grid-template-columns:1fr 90px;gap:2px 10px;padding:10px 0;border-bottom:1px solid var(--oh-row)}
  .acgshop-ih__table tbody td{display:block;padding:2px 4px;width:auto!important;border:0}
  .acgshop-ih__table .acgshop-ih__addqty{grid-column:2/3;grid-row:1/6;align-self:start;text-align:right}
}

/* Address book cards */
.acgshop-addrlist{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.acgshop-addrcard{display:flex;flex-direction:column;justify-content:space-between;padding:14px;border:1px solid var(--acg-border);border-radius:var(--acg-radius);background:var(--acg-card)}
.acgshop-addrcard__nick{font-weight:600;margin-bottom:6px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.acgshop-addrcard__actions{margin-top:10px;font-size:14px}

/* ── cart + add-to-cart ───────────────────────────────────────────────────── */
.acgshop-checkout__title{font-size:20px;margin:0 0 12px}
.acgshop-addcart{display:flex;gap:10px;align-items:center;margin:14px 0}
.acgshop-addcart input{width:70px}

/* cart page — polished two-column layout */
.acgshop-cart{max-width:1100px;margin:0 auto;color:var(--acg-ink)}
.acgshop-cart__header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 18px;flex-wrap:wrap}
.acgshop-cart__title{font-size:26px;font-weight:700;margin:0;letter-spacing:-.01em}
.acgshop-cart__continue{color:var(--acg-accent);text-decoration:none;font-size:14px}
.acgshop-cart__continue:hover{color:var(--acg-accent-d);text-decoration:underline}
.acgshop-cart__loading{padding:40px;text-align:center;color:var(--acg-muted);background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius)}

.acgshop-cart__login{background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius);
  padding:28px;text-align:center;box-shadow:var(--acg-shadow)}
.acgshop-cart__login p{margin:0 0 14px;color:var(--acg-muted)}

.acgshop-cart__empty{background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius);
  padding:56px 24px;text-align:center;box-shadow:var(--acg-shadow)}
.acgshop-cart__empty-icon{font-size:44px;margin-bottom:10px;opacity:.6}
.acgshop-cart__empty h3{margin:0 0 6px;font-size:18px}
.acgshop-cart__empty p{margin:0 0 18px;color:var(--acg-muted)}

.acgshop-cart__grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
@media (max-width:820px){.acgshop-cart__grid{grid-template-columns:1fr}}

.acgshop-cart__items{background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius);
  box-shadow:var(--acg-shadow);overflow:hidden;transition:opacity .15s}
.acgshop-cart.is-busy .acgshop-cart__items,.acgshop-cart.is-busy .acgshop-cart__summary{opacity:.6;pointer-events:none}
.acgshop-cart__list{list-style:none;margin:0;padding:0}
.acgshop-cart__line{display:grid;grid-template-columns:72px 1fr auto auto 32px;gap:14px;align-items:center;
  padding:16px;border-bottom:1px solid var(--acg-border);position:relative}
.acgshop-cart__line:last-child{border-bottom:0}
.acgshop-cart__line--na{opacity:.6}
@media (max-width:640px){
  .acgshop-cart__line{grid-template-columns:64px 1fr 32px;grid-template-areas:"img info rm" "img qty total";row-gap:10px}
  .acgshop-cart__thumb{grid-area:img}
  .acgshop-cart__info{grid-area:info}
  .acgshop-cart__qty{grid-area:qty;justify-self:start}
  .acgshop-cart__linetotal{grid-area:total;justify-self:end}
  .acgshop-cart__remove{grid-area:rm}
}

.acgshop-cart__thumb{width:72px;height:72px;object-fit:contain;border:1px solid var(--acg-border);
  border-radius:var(--acg-radius-sm);background:var(--acg-bg);padding:4px;box-sizing:border-box}
.acgshop-cart__thumb--empty{background:linear-gradient(135deg,var(--acg-bg) 25%,#eceded 25%,#eceded 50%,var(--acg-bg) 50%,var(--acg-bg) 75%,#eceded 75%);background-size:12px 12px}

.acgshop-cart__info{min-width:0}
.acgshop-cart__name{font-weight:600;font-size:15px;line-height:1.3;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.acgshop-cart__sku{color:var(--acg-muted);font-size:12px;margin-top:2px;letter-spacing:.02em}
.acgshop-cart__unit{color:var(--acg-muted);font-size:13px;margin-top:4px}
.acgshop-cart__unit span{opacity:.75}
.acgshop-cart__badge{display:inline-block;background:#fdecec;color:var(--acg-no);border:1px solid #f5c2c2;
  font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:2px 6px;border-radius:999px}

.acgshop-cart__qty{display:inline-flex;align-items:center;border:1px solid var(--acg-border);
  border-radius:var(--acg-radius-sm);background:var(--acg-card);overflow:hidden}
.acgshop-cart__qty input{width:48px;text-align:center;border:0;padding:8px 4px;font-size:14px;background:transparent;
  -moz-appearance:textfield;appearance:textfield}
.acgshop-cart__qty input::-webkit-outer-spin-button,.acgshop-cart__qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.acgshop-cart__qty input:focus{outline:2px solid var(--acg-accent);outline-offset:-2px}
.acgshop-qtybtn{width:32px;height:36px;background:var(--acg-bg);border:0;color:var(--acg-ink);font-size:16px;
  line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .12s}
.acgshop-qtybtn:hover{background:#eceded}

.acgshop-cart__linetotal{font-weight:700;font-size:15px;min-width:80px;text-align:right;color:var(--acg-ink)}
.acgshop-cart__remove{width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:var(--acg-muted);
  font-size:20px;line-height:1;cursor:pointer;transition:background .12s,color .12s;display:inline-flex;
  align-items:center;justify-content:center}
.acgshop-cart__remove:hover{background:#fdecec;color:var(--acg-no)}

.acgshop-cart__summary{background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius);
  box-shadow:var(--acg-shadow);padding:20px;position:sticky;top:20px;transition:opacity .15s}
.acgshop-cart__summary h3{margin:0 0 14px;font-size:16px;font-weight:700}
.acgshop-cart__totals{margin:0 0 16px;display:grid;grid-template-columns:1fr auto;gap:8px 12px;font-size:14px}
.acgshop-cart__totals dt{color:var(--acg-muted);margin:0}
.acgshop-cart__totals dd{margin:0;font-weight:600;text-align:right}
.acgshop-cart__totals dt:nth-last-of-type(2),.acgshop-cart__totals dd:nth-last-of-type(1){font-size:16px;
  padding-top:10px;border-top:1px solid var(--acg-border);color:var(--acg-ink)}
.acgshop-cart__note{grid-column:1/-1;font-size:12px;color:var(--acg-muted);font-weight:400;text-align:left;border:0!important;padding-top:2px!important}
.acgshop-cart__checkout{display:block;width:100%;text-align:center;padding:12px 16px;font-weight:600;font-size:15px;box-sizing:border-box}

/* ── checkout ─────────────────────────────────────────────────────────────── */
.acgshop-co{display:grid;grid-template-columns:1fr 300px;gap:24px;margin-top:12px}
@media(max-width:800px){.acgshop-co{grid-template-columns:1fr}}
.acgshop-co h3{margin:16px 0 8px;font-size:15px}
.acgshop-co__main label{display:block;font-weight:600;margin-bottom:4px}
.acgshop-co__main select,.acgshop-co__main [data-co="po"],.acgshop-co__main [data-co="instr"]{width:100%;max-width:420px}
.acgshop-co__summary{background:var(--acg-bg);border:1px solid var(--acg-border);border-radius:var(--acg-radius);padding:16px;align-self:start}
.acgshop-co__summary h3{margin-top:0}
.acgshop-co__summary-title{color:#000;font-weight:700;text-align:center}
/* Sticky summary on desktop — matches the .acgshop-co single-column breakpoint at 800px.
 * top offset clears the theme's sticky-md-top #masthead; --acg-sticky-top can be overridden
 * by theme CSS if the header height changes. */
@media(min-width:801px){.acgshop-co__summary{position:sticky;top:var(--acg-sticky-top,210px);max-height:calc(100vh - var(--acg-sticky-top,210px) - 16px);overflow-y:auto}}
.acgshop-co__totals{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:0 0 12px}
.acgshop-co__totals dt{color:var(--acg-muted)}.acgshop-co__totals dd{margin:0;text-align:right}
.acgshop-co__t{font-weight:700;border-top:2px solid var(--acg-border-2);padding-top:6px}
.acgshop-co__addr{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.acgshop-co__done{background:#edf7ee;border:1px solid var(--acg-ok);border-radius:var(--acg-radius);padding:20px}

/* Sectioned checkout form (per-role ship/bill blocks). */
.acgshop-co__section{background:var(--acg-card);border:1px solid var(--acg-border);
  border-radius:var(--acg-radius);padding:16px 18px;margin-bottom:14px;box-shadow:var(--acg-shadow)}
.acgshop-co__section h3{margin:0 0 12px;font-size:15px;font-weight:700}
.acgshop-co__pick{display:block;margin:0 0 12px}
.acgshop-co__pick span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--acg-muted);margin-bottom:4px;font-weight:600}
.acgshop-co__pick select{width:100%;max-width:520px;padding:8px 10px;border:1px solid var(--acg-border);border-radius:var(--acg-radius-sm);background:var(--acg-card)}
.acgshop-co__form{border-top:1px dashed var(--acg-border);margin-top:8px;padding-top:12px}
.acgshop-co__form[hidden]{display:none}
.acgshop-co__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px}
.acgshop-co__field{display:flex;flex-direction:column;gap:4px;grid-column:span 3;min-width:0}
.acgshop-co__field--xs{grid-column:span 1}
.acgshop-co__field--sm{grid-column:span 2}
.acgshop-co__field--md{grid-column:span 3}
.acgshop-co__field span{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--acg-muted);font-weight:600}
.acgshop-co__field input{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid var(--acg-border);border-radius:var(--acg-radius-sm);font:inherit}
/* Inline label variant: fixed-width label on the left so adjacent inputs line up. */
.acgshop-co__field--inline{flex-direction:row;align-items:center;gap:12px;margin-bottom:12px;max-width:420px}
.acgshop-co__field--inline > span{flex:0 0 110px;text-align:right}
@media(max-width:640px){.acgshop-co__field--inline{flex-direction:column;align-items:stretch}.acgshop-co__field--inline > span{flex:none;text-align:left}}
@media(max-width:640px){.acgshop-co__grid{grid-template-columns:1fr}.acgshop-co__field,.acgshop-co__field--xs,.acgshop-co__field--sm,.acgshop-co__field--md{grid-column:span 1}}
.acgshop-co__save{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:14px;font-weight:400;cursor:pointer}
.acgshop-co__save input{margin:0}
.acgshop-co__nick{display:flex;flex-direction:column;gap:4px;margin-top:8px;max-width:340px}
.acgshop-co__nick[hidden]{display:none}
.acgshop-co__nick span{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--acg-muted);font-weight:600}
.acgshop-co__nick input{padding:8px 10px;border:1px solid var(--acg-border);border-radius:var(--acg-radius-sm);font:inherit}
.acgshop-co__radios{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 8px}
.acgshop-co__radios label{font-weight:500;display:inline-flex;align-items:center;gap:6px;margin:0}
.acgshop-co__radios--stack{flex-direction:column;gap:6px}
.acgshop-co__ship-instr{margin:0 0 12px;font-size:14px;line-height:1.4}
.acgshop-co__instr{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid var(--acg-border);border-radius:var(--acg-radius-sm);font:inherit;resize:vertical}
.acgshop-co__summary button + button{margin-top:8px}
.acgshop-co__summary .acgshop-btn{width:100%}
.acgshop-btn--modify{text-align:center;margin-bottom:8px}
.acgshop-btn--place{background:#2FAA47;border-color:#2FAA47;text-transform:uppercase;letter-spacing:.05em;font-weight:700}
.acgshop-btn--place:hover{background:#268939;border-color:#268939}

/* Unavailable products (stock != Y): greyed, non-purchasable. */
.acgshop-card--unavailable { opacity: .55; }
.acgshop-card--unavailable .acgshop-card__img { filter: grayscale(1); }
.acgshop-card__badge {
  display: inline-block; margin-top: 4px; padding: 1px 8px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  color: #fff; background: #8a8a8a; border-radius: 999px;
}
.acgshop-unavailable { color: #8a8a8a; font-style: italic; }

/* ── category/shoes: subcategory-block layout (FPD dealer) ─────────────────
   Used by templates/custom/fpddealer/category/shoes.php. */
.acgshop-cat-shoes,
.acgshop-product--fpd { --shoe-green:#63b74a; --shoe-green-d:#4d9138;
                        --shoe-blue:#1f4e9a; --shoe-tab-bg:#eef3fb;
                        --shoe-tab-active:var(--shoe-blue); }

.acgshop-cat-shoes__banner{background:var(--acg-card);padding:18px;margin:8px 0 22px}
.acgshop-cat-shoes__banner-row{display:flex;gap:20px;align-items:flex-start}
.acgshop-cat-shoes__banner-img{flex:0 0 150px;max-width:150px}
.acgshop-cat-shoes__banner-img img{width:100%;height:auto;display:block;border-radius:var(--acg-radius-sm)}
.acgshop-cat-shoes__banner-body{flex:1;min-width:0}
.acgshop-cat-shoes__title{margin:0 auto 8px;color:var(--shoe-blue);
  font-size:26px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;text-align:center}
.acgshop-cat-shoes__desc{color:var(--acg-ink);font-size:18px;line-height:1.5}
.acgshop-cat-shoes__desc p{margin:0 0 8px}
.acgshop-cat-shoes__empty{padding:24px;text-align:center;color:var(--acg-muted)}

.acgshop-shoe-block{background:var(--acg-card);padding:16px 18px 18px;margin:0 0 20px}
.acgshop-shoe-block__title{margin:0 0 10px;font-size:24px;font-weight:400;color:#004B97}

/* Tab bar: single row, blue underline highlights the active tab. */
.acgshop-shoe-block__tabs{display:flex;flex-wrap:wrap;gap:2px;
  border-bottom:1px solid #004B97}
.acgshop-shoe-block__tab{appearance:none;border:0;background:#989898;
  color:#fff;font-size:16px;font-weight:400;letter-spacing:.04em;text-transform:uppercase;
  padding:9px 14px;cursor:pointer;border-radius:0;border-right:1px solid #fff}
.acgshop-shoe-block__tab:hover{background:#7f7f7f}
.acgshop-shoe-block__tab[aria-expanded="true"]{background:var(--shoe-tab-active);color:#fff}
/* Panel: collapsed by default (max-height:0, overflow clipped). Adding
   .is-open animates it down; removing animates it back up. When switching
   tabs while one is already open, JS drops a .no-anim class on the block
   to swap instantly without any transition. */
.acgshop-shoe-block__panel{max-height:0;overflow:hidden;
  transition:max-height .3s ease;margin-bottom:12px}
.acgshop-shoe-block__panel.is-open{box-shadow:0 4px 8px #EDEDED}
.acgshop-shoe-block.no-anim .acgshop-shoe-block__panel{transition:none}
.acgshop-shoe-block__panel-inner{position:relative;background:#fff;
  border-bottom:2px solid #F4F3EE;
  padding:12px 14px 26px;font-size:16px;line-height:1.5;color:var(--acg-ink)}
.acgshop-shoe-block__panel-inner::after{content:"";display:block;clear:both}
/* Close triangle: 35×18 pointing up, sits centered on the bottom border.
   Uses CSS-triangle borders — no image needed. */
.acgshop-shoe-block__panel-close{position:absolute;left:50%;bottom:-2px;
  transform:translateX(-50%);
  width:0;height:0;padding:0;background:transparent;border:0;cursor:pointer;
  border-left:17.5px solid transparent;border-right:17.5px solid transparent;
  border-bottom:18px solid #CFCDC4}
.acgshop-shoe-block__panel-close:hover{border-bottom-color:#b3b1a8}

/* Body: table left, product photo right. */
.acgshop-shoe-block__body{display:grid;grid-template-columns:1fr 180px;gap:18px;
  align-items:start;margin-top:14px}
.acgshop-shoe-block__body--solo{grid-template-columns:1fr}
@media(max-width:720px){.acgshop-shoe-block__body{grid-template-columns:1fr}
  .acgshop-shoe-block__photo{max-width:180px;margin:0 auto}}
.acgshop-shoe-block__photo img{width:100%;height:auto;display:block}

.acgshop-shoe-block__table{width:100%;border-collapse:collapse;font-size:18px; font-family:proxima-nova-condensed;}
.acgshop-shoe-block__table thead th{background:transparent;color:#004B97;
  font-size:18px;font-weight:400;text-transform:uppercase;letter-spacing:.04em;
  text-align:left;padding:8px 10px;border:0;white-space:nowrap}
.acgshop-shoe-block__table thead th:nth-child(3),
.acgshop-shoe-block__table thead th:nth-child(4),
.acgshop-shoe-block__table thead th:nth-child(5),
.acgshop-shoe-block__table thead th:nth-child(6){text-align:right}
.acgshop-shoe-block__table tbody td{padding:7px 10px;border-bottom:1px solid var(--acg-border)}
.acgshop-shoe-block__table tbody td:nth-child(3),
.acgshop-shoe-block__table tbody td:nth-child(4),
.acgshop-shoe-block__table tbody td:nth-child(5),
.acgshop-shoe-block__table tbody td:nth-child(6){text-align:right}
/* Null-template blocks prepend a thumbnail column, shifting every cell one
   column right. Force Product (now col 3) back to left, and right-align the
   new col 7 (Quantity). */
.acgshop-shoe-block__table thead th.acgshop-shoe-block__thumb-th ~ th:nth-child(3),
.acgshop-shoe-block__table tbody td.acgshop-shoe-block__thumb-td ~ td:nth-child(3){text-align:left}
.acgshop-shoe-block__table thead th.acgshop-shoe-block__thumb-th ~ th:nth-child(7),
.acgshop-shoe-block__table tbody td.acgshop-shoe-block__thumb-td ~ td:nth-child(7){text-align:right}
.acgshop-shoe-block__sku{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;color:var(--acg-ink)}
/* Product-name / Stock-ID links in the block table: no underline or color
   shift until hovered — inherit the cell's color/font at rest. */
.acgshop-shoe-block__plink{color:inherit;text-decoration:none}
.acgshop-shoe-block__plink:hover,
.acgshop-shoe-block__plink:focus{color:#004B97;text-decoration:underline}
.acgshop-shoe-block__row--na{opacity:.55}
.acgshop-shoe-block__qty{width:60px;text-align:right;padding:3px 6px;
  border:1px solid var(--acg-border-2);border-radius:var(--acg-radius-sm);font-size:13px}
.acgshop-shoe-block__na{color:var(--acg-muted)}

.acgshop-shoe-block__actions{display:flex;justify-content:flex-end;margin-top:10px}
.acgshop-shoe-block__action-th,.acgshop-shoe-block__action-td{white-space:nowrap;text-align:right !important;padding-left:12px}
.acgshop-shoe-block--info .acgshop-shoe-block__body{grid-template-columns:1fr}

/* Mobile: collapse the 6-column table into stacked labeled cards per row.
   Uses data-label on each td (set in the template) as the field label. */
@media(max-width:600px){
  .acgshop-shoe-block__table,
  .acgshop-shoe-block__table thead,
  .acgshop-shoe-block__table tbody,
  .acgshop-shoe-block__table tr,
  .acgshop-shoe-block__table td{display:block;width:100%}
  .acgshop-shoe-block__table thead{position:absolute;left:-9999px;top:-9999px}
  .acgshop-shoe-block__table tbody tr{border:1px solid var(--acg-border);
    border-radius:var(--acg-radius-sm);padding:8px 10px;margin-bottom:10px;background:#fff}
  .acgshop-shoe-block__table tbody td{border:0;padding:4px 0;text-align:left;
    display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}
  .acgshop-shoe-block__table tbody td:nth-child(3),
  .acgshop-shoe-block__table tbody td:nth-child(4),
  .acgshop-shoe-block__table tbody td:nth-child(5),
  .acgshop-shoe-block__table tbody td:nth-child(6){text-align:left}
  .acgshop-shoe-block__table tbody td::before{content:attr(data-label);
    font-weight:600;color:#004B97;text-transform:uppercase;letter-spacing:.04em;
    font-size:12px;flex:0 0 auto}
  .acgshop-shoe-block__table tbody td:nth-child(1)::before,
  .acgshop-shoe-block__table tbody td:nth-child(2)::before{display:none}
  .acgshop-shoe-block__table tbody td:nth-child(1){font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:12px;color:var(--acg-ink)}
  .acgshop-shoe-block__table tbody td:nth-child(2){font-size:16px;font-weight:600}
  .acgshop-shoe-block__qty{width:80px}
  .acgshop-shoe-block__actions{justify-content:stretch}
  .acgshop-shoe-block__actions .acgshop-btn{width:100%}
  .acgshop-shoe-block__action-td{width:100%;white-space:normal;padding-left:0}
  .acgshop-shoe-block__action-td::before{display:none}
  .acgshop-shoe-block__action-td .acgshop-btn{width:100%}
}
.acgshop-shoe-block .acgshop-btn{background:var(--shoe-green);border-color:var(--shoe-green);
  border-radius:999px;padding:10px 22px;text-transform:uppercase;letter-spacing:.05em;
  font-weight:700;font-size:12px}
.acgshop-shoe-block .acgshop-btn:hover{background:var(--shoe-green-d);border-color:var(--shoe-green-d)}

/* Tab-panel content: photos grid, meta list, video row. */
.acgshop-shoe-block__panel-empty{margin:0;color:var(--acg-muted)}
.acgshop-shoe-block__photos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.acgshop-shoe-block__photo-item{display:flex;flex-direction:column;gap:8px;margin:0;
  padding:0;background:transparent;border:0;cursor:pointer;text-align:center;color:inherit;font:inherit}
.acgshop-shoe-block__photo-thumb{display:block;width:100%;overflow:hidden;border:1px solid var(--acg-border)}
.acgshop-shoe-block__photo-item img{width:100%;height:auto;display:block;transition:transform .2s ease}
.acgshop-shoe-block__photo-item:hover img{transform:scale(1.03)}
.acgshop-shoe-block__photo-title{align-self:center;display:inline-block;
  background:var(--shoe-green);color:#fff;border-radius:999px;
  padding:8px 18px;font-size:12px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;text-align:center;line-height:1.2;max-width:100%}
.acgshop-shoe-block__photo-item:hover .acgshop-shoe-block__photo-title{background:var(--shoe-green-d)}
.acgshop-shoe-block__meta-heading{margin:12px 0 4px;color:#004B97;font-size:16px;font-weight:600}
.acgshop-shoe-block__meta{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0 0 8px}
.acgshop-shoe-block__meta dt{font-weight:600}
.acgshop-shoe-block__meta dd{margin:0}
/* Videos row: horizontal scroll strip of thumbnails, click opens modal. */
.acgshop-shoe-block__videos-row{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;
  scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.acgshop-shoe-block__video-item{flex:0 0 220px;display:flex;flex-direction:column;gap:6px;
  padding:0;background:transparent;border:0;cursor:pointer;text-align:left;color:inherit;font:inherit}
.acgshop-shoe-block__video-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;
  background:#000;overflow:hidden;border:1px solid var(--acg-border)}
.acgshop-shoe-block__video-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.acgshop-shoe-block__video-thumb--placeholder{display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;color:#fff;font-size:28px}
.acgshop-shoe-block__video-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:38px;text-shadow:0 2px 8px rgba(0,0,0,.6);pointer-events:none;
  transition:transform .15s ease}
.acgshop-shoe-block__video-item:hover .acgshop-shoe-block__video-play{transform:scale(1.15)}
.acgshop-shoe-block__video-title{align-self:center;display:inline-block;
  background:var(--shoe-green);color:#fff;border-radius:999px;
  padding:8px 18px;font-size:12px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;text-align:center;line-height:1.2;max-width:100%}
.acgshop-shoe-block__video-item:hover .acgshop-shoe-block__video-title{background:var(--shoe-green-d)}
/* Dealer Product Info files: horizontal-scroll slider of image/PDF cards. */
.acgshop-shoe-block__files-row{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;
  scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.acgshop-shoe-block__file-item{flex:0 0 180px;display:flex;flex-direction:column;gap:6px;
  padding:0;margin:0;border:0;background:transparent;text-align:center;color:inherit;
  text-decoration:none;font:inherit;cursor:pointer}
.acgshop-shoe-block__file-thumb{display:flex;align-items:center;justify-content:center;
  width:100%;height:200px;background:transparent;overflow:hidden;position:relative}
.acgshop-shoe-block__file-thumb img{width:100%;height:100%;object-fit:contain;
  display:block;transition:transform .2s ease}
.acgshop-shoe-block__file-item:hover .acgshop-shoe-block__file-thumb img{transform:scale(1.03)}
.acgshop-shoe-block__file-cap{position:absolute;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.65);color:#fff;font-size:12px;line-height:1.3;
  padding:6px 8px;text-align:center;opacity:0;transition:opacity .2s ease;
  pointer-events:none}
.acgshop-shoe-block__file-item:hover .acgshop-shoe-block__file-cap,
.acgshop-shoe-block__file-item:focus-visible .acgshop-shoe-block__file-cap{opacity:1}
.acgshop-shoe-block__file-icon{position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;color:#8c8f94}
.acgshop-shoe-block__file-icon svg{display:block}
.acgshop-shoe-block__file-badge{position:absolute;bottom:14%;left:50%;transform:translateX(-50%);
  background:#b32d2e;color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;
  padding:2px 6px;border-radius:2px;line-height:1}
.acgshop-shoe-block__file-title{align-self:center;display:inline-block;
  background:var(--shoe-green);color:#fff;border-radius:999px;
  padding:8px 18px;font-size:12px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;text-align:center;line-height:1.2;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acgshop-shoe-block__file-item:hover .acgshop-shoe-block__file-title{background:var(--shoe-green-d)}
/* Modal overlay for the video player. */
.acgshop-video-modal{position:fixed;inset:0;z-index:9999;display:none;
  align-items:center;justify-content:center;background:rgba(0,0,0,.85);padding:24px}
.acgshop-video-modal.is-open{display:flex}
.acgshop-video-modal__frame{position:relative;width:min(960px,100%);aspect-ratio:16/9;background:#000}
/* !important + absolute positioning: the FPD theme applies iframe{height:auto},
   which would collapse the embed to its intrinsic 150px. */
.acgshop-video-modal__frame iframe,
.acgshop-video-modal__frame video{position:absolute!important;inset:0;
  width:100%!important;height:100%!important;max-width:none!important;border:0;display:block}
.acgshop-video-modal__close{position:absolute;top:-40px;right:0;background:transparent;border:0;
  color:#fff;font-size:32px;line-height:1;cursor:pointer;padding:0 6px}
/* Photo modal — same overlay pattern as the video modal but sized to the image. */
.acgshop-photo-modal{position:fixed;inset:0;z-index:9999;display:none;
  align-items:center;justify-content:center;background:rgba(0,0,0,.85);padding:48px 24px 24px}
.acgshop-photo-modal.is-open{display:flex}
.acgshop-photo-modal__frame{position:relative;max-width:min(1200px,100%);max-height:100%;
  display:flex;flex-direction:column;align-items:center;gap:10px}
.acgshop-photo-modal__frame img{max-width:100%;max-height:calc(100vh - 140px);height:auto;width:auto;display:block}
.acgshop-photo-modal__caption{color:#fff;font-size:14px;text-align:center;max-width:100%}
.acgshop-photo-modal__close{position:absolute;top:-40px;right:0;background:transparent;border:0;
  color:#fff;font-size:32px;line-height:1;cursor:pointer;padding:0 6px}

/* ── FPD product detail (per-account override) ────────────────────────────
   Used by templates/custom/fpddealer/product/default.php. */
/* Scoped block-style overrides for the FPD product page (leave the shared
   shoe-block styling alone for the category/shoes template). */
.acgshop-product--fpd .acgshop-shoe-block--info{background:#F9F9F6;padding-top:0;padding-bottom:0}
.acgshop-product--fpd .acgshop-shoe-block--info__body{grid-template-columns:1fr}
.acgshop-product--fpd .acgshop-shoe-block--info__table thead th{color:#39B34A}
.acgshop-product--fpd .acgshop-shoe-block--info__table tbody td,
.acgshop-product--fpd .acgshop-shoe-block--info__table tbody .acgshop-shoe-block__sku{border-bottom:0;color:#000}

.acgshop-product-specs{margin:24px 0}
.acgshop-product-specs__body{display:grid;grid-template-columns:2fr 1fr;gap:24px;align-items:start}
@media(max-width:767px){
  .acgshop-product-specs__body{grid-template-columns:1fr}
  .acgshop-product-specs__photo{order:0}
  .acgshop-product-specs__list{order:1}
}
.acgshop-product-specs__title{margin:0 0 10px;color:#004B97;font-size:20px;font-weight:400}
.acgshop-product-specs__items{list-style:none;margin:0;padding:0;font-size:18px;line-height:1.5}
.acgshop-product-specs__items li{padding:6px 0;border-bottom:1px solid #989898}
.acgshop-product-specs__items li:last-child{border-bottom:0}
.acgshop-product-specs__k{color:#39B34A;margin-right:4px}
.acgshop-product-specs__v{color:#000}
.acgshop-product-specs__photo img{width:100%;height:auto;display:block}

/* Full-width product description, sits below specs+photo. */
.acgshop-product h1.acgshop-product__name{background:#004B97!important;color:#fff!important;border:0!important}
.acgshop-product__desc{margin:24px 0}
.acgshop-product__desc-title{margin:0 0 10px;color:#004B97;font-size:20px;font-weight:400}
.acgshop-product__desc-body{font-size:16px;line-height:1.55;color:#000}
.acgshop-product__desc-body p{margin:0 0 .75em}
.acgshop-product__desc-body p:last-child{margin-bottom:0}

/* ── Product photo carousel (FPD product page) ────────────────────────────── */
.acgshop-photocar{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.acgshop-photocar__viewport{overflow:hidden;width:100%;height:350px}
.acgshop-photocar__track{display:flex;height:100%;transform:translateX(0);
  transition:transform .4s ease;will-change:transform}
.acgshop-photocar__slide{flex:0 0 100%;max-width:100%;min-width:0;height:100%;
  opacity:0;transition:opacity .4s ease;position:relative}
.acgshop-photocar__slide.is-current{opacity:1}
.acgshop-photocar__slide img{width:100%;height:100%;object-fit:contain;display:block;cursor:zoom-in}
.acgshop-photocar__slide a img{cursor:pointer}
.acgshop-photocar__cap{position:absolute;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.65);color:#fff;font-size:13px;line-height:1.35;
  padding:8px 12px;text-align:center;opacity:0;transition:opacity .2s ease;
  pointer-events:none}
.acgshop-photocar__slide:hover .acgshop-photocar__cap{opacity:1}
.acgshop-photocar__nav{display:flex;justify-content:center;align-items:center;gap:32px}
.acgshop-photocar__arrow{appearance:none;background:transparent;border:0;padding:0;cursor:pointer;
  width:0;height:0}
.acgshop-photocar__arrow--prev{border-top:9px solid transparent;border-bottom:9px solid transparent;
  border-right:14px solid #CFCDC4}
.acgshop-photocar__arrow--next{border-top:9px solid transparent;border-bottom:9px solid transparent;
  border-left:14px solid #CFCDC4}
.acgshop-photocar__arrow--prev:hover{border-right-color:#39B34A}
.acgshop-photocar__arrow--next:hover{border-left-color:#39B34A}

/* Modal: dark backdrop, image sized to viewport, click backdrop or ESC to close. */
.acgshop-photomodal{position:fixed;inset:0;background:rgba(0,0,0,.85);
  display:none;align-items:center;justify-content:center;z-index:99999;padding:24px;cursor:zoom-out}
.acgshop-photomodal.is-open{display:flex}
.acgshop-photomodal img{max-width:min(100%,1400px);max-height:calc(100vh - 80px);height:auto;display:block;
  box-shadow:0 8px 40px rgba(0,0,0,.4)}
.acgshop-photomodal__frame{display:flex;flex-direction:column;align-items:center;gap:10px;
  max-width:min(100%,1400px);cursor:default}
.acgshop-photomodal__cap{color:#fff;font-size:14px;line-height:1.4;text-align:center;
  max-width:100%;padding:0 8px}
.acgshop-photomodal__cap:empty{display:none}
.acgshop-photomodal__close{position:absolute;top:14px;right:20px;background:transparent;border:0;
  color:#fff;font-size:32px;line-height:1;cursor:pointer;padding:4px 10px}

/* ---- Product slider (block + shortcode) ---- */
.acgshop-slider{margin:1.5rem 0;font-family:inherit}
.acgshop-slider__head{display:flex;justify-content:center;margin-bottom:1rem}
.acgshop-slider__label{display:inline-block;background:#f2f4f7;color:#0d3b7a;
  font-weight:800;letter-spacing:.05em;padding:.55rem 2rem;border-radius:999px;
  font-size:1.05rem;text-transform:uppercase}
.acgshop-slider__viewport{position:relative;display:flex;align-items:stretch;gap:.5rem}
.acgshop-slider__track{list-style:none;margin:0;padding:.25rem;display:flex;gap:1rem;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;flex:1 1 auto;
  scrollbar-width:none}
.acgshop-slider__track::-webkit-scrollbar{display:none}
.acgshop-slider__card{flex:0 0 calc((100% - 3rem) / 4);
  scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;
  text-align:center;padding:.75rem .5rem 1rem;border:1px solid var(--acg-border,#e5e7eb);
  border-radius:var(--acg-radius,10px);background:#fff}
.acgshop-slider__link{display:flex;flex-direction:column;align-items:center;gap:.35rem;
  color:inherit;text-decoration:none;width:100%}
.acgshop-slider__imgwrap{position:relative;width:100%;height:200px;display:flex;
  align-items:center;justify-content:center;overflow:hidden}
.acgshop-slider__img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
@media (max-width:900px){.acgshop-slider__imgwrap{height:170px}}
@media (max-width:640px){.acgshop-slider__imgwrap{height:150px}}
.acgshop-slider__badge{position:absolute;left:8px;bottom:8px;background:#f26722;color:#fff;
  font-weight:800;font-size:.75rem;padding:.15rem .5rem;border-radius:3px;letter-spacing:.03em}
.acgshop-slider__name{font-weight:700;font-size:.9rem;line-height:1.2;margin-top:.5rem}
.acgshop-slider__price{color:#374151;font-size:.85rem}
.acgshop-slider__view{margin-top:.6rem;background:#2ecc71;border-color:#2ecc71;
  border-radius:999px;padding:.35rem 1.6rem;font-weight:700;letter-spacing:.05em}
.acgshop-slider__view:hover{background:#27ae60;border-color:#27ae60}
.acgshop-slider__arrow{flex:0 0 auto;align-self:center;background:transparent;border:0;
  color:#c9ccd1;font-size:1.5rem;line-height:1;cursor:pointer;padding:.5rem .25rem}
.acgshop-slider__arrow:hover:not(:disabled){color:#6b7280}
.acgshop-slider__arrow:disabled{opacity:.35;cursor:default}
@media (max-width:900px){.acgshop-slider__card{flex-basis:calc((100% - 2rem) / 3)}}
@media (max-width:640px){.acgshop-slider__card{flex-basis:calc((100% - 1rem) / 2)}}
.acgshop-slider-placeholder{border:1px dashed #c9ccd1;border-radius:8px;padding:1.5rem;
  text-align:center;color:#6b7280;background:#fafafa}

/* ── /shop/resume — abandoned cart sessions ─────────────────────────────── */
.acgshop-resume{max-width:1100px;margin:0 auto;color:var(--acg-ink)}
.acgshop-resume__header{margin:0 0 18px}
.acgshop-resume__title{font-size:26px;font-weight:700;margin:0 0 6px;letter-spacing:-.01em}
.acgshop-resume__lead{color:var(--acg-muted);margin:0;font-size:14px;max-width:70ch}
.acgshop-resume__loading{padding:40px;text-align:center;color:var(--acg-muted);
  background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius)}
.acgshop-resume__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.acgshop-resume__row{display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:center;
  background:var(--acg-card);border:1px solid var(--acg-border);border-radius:var(--acg-radius);
  padding:16px 18px;box-shadow:var(--acg-shadow)}
@media (max-width:720px){.acgshop-resume__row{grid-template-columns:1fr;gap:12px}}
.acgshop-resume__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.acgshop-resume__when{display:flex;flex-direction:column;gap:2px;min-width:0}
.acgshop-resume__label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--acg-muted)}
.acgshop-resume__val{font-size:14px;font-weight:500}
.acgshop-resume__totals{display:flex;gap:20px;font-size:14px;color:var(--acg-ink);white-space:nowrap}
.acgshop-resume__totals strong{font-size:16px}
.acgshop-resume__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

/* ── Files Footer (Updates / Price Files / Sales Aids) ─────────────────── */
.fpd-files-footer{background:#fff;padding:40px 0 30px;border-top:1px solid #e5e7eb}
.fpd-files-footer__inner{max-width:1140px;margin:0 auto;padding:0 20px;
  display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;align-items:start}
.fpd-files-col{display:flex;flex-direction:column;align-items:center;gap:16px}
.fpd-files-col__head{width:100%;display:flex;justify-content:center;margin-bottom:8px}
.fpd-files-heading{background:#F4F3EE;border:1px solid #CFCDC4;border-radius:999px;
  padding:2px 20px;width:max-content;max-width:100%;margin:0 auto 30px;text-align:center;
  font-weight:900;color:#004B97;white-space:nowrap}
.fpd-files-updates{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;width:100%}
.fpd-files-update{display:flex;flex-direction:column;align-items:center;gap:10px;
  flex:0 1 200px;text-align:center}
.fpd-files-update__label{color:#0d3b7a;font-weight:800;line-height:1.2;font-size:.95rem;
  text-transform:uppercase;display:flex;flex-direction:column;gap:2px}
.fpd-files-update__prefix,
.fpd-files-update__name{display:block}
.fpd-files-update__thumb{width:100%;max-width:150px;height:194px;display:flex;
  align-items:center;justify-content:center}
.fpd-files-update__thumb img{max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;display:block;border:1px solid #e5e7eb;background:#fff}
.fpd-files-btn{display:inline-block;background:#2ecc71;color:#fff !important;text-decoration:none;
  font-weight:700;padding:.55rem 1rem;border-radius:999px;letter-spacing:.05em;
  border:1px solid #2ecc71;text-align:center;line-height:1.2;font-size:14px}
.fpd-files-btn:hover{background:#27ae60;border-color:#27ae60;color:#fff}
.fpd-files-btn--pill{width:100%;max-width:240px;padding:.6rem 1rem}
.fpd-files-btn--empty{background:#9ca3af;border-color:#9ca3af;cursor:default}
.fpd-files-btn--empty:hover{background:#9ca3af;border-color:#9ca3af}
.fpd-files-pills{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;
  gap:12px;align-items:center;width:100%}
.fpd-files-pills li{width:100%;display:flex;justify-content:center}
@media (max-width:900px){
  .fpd-files-footer__inner{grid-template-columns:1fr 1fr;gap:30px}
  .fpd-files-col--updates{grid-column:1 / -1}
}
