/* New shop functions in the visual language of the current public shop.
   Load after the original public styles and the local functional styles. */
:root,
body.shop-product-page {
  --paper:#faf9f5;
  --neutral:#efeeea;
  --ink:#251e1b;
  --muted:#655e59;
  --line:#d9d5cd;
  --yellow:#f4cc3c;
  --red:#a81932;
  --condensed:Impact,'Arial Narrow',sans-serif;
  --body:Arial,Helvetica,sans-serif;
}
body { background:var(--paper); color:var(--ink); }
button,input,select,textarea { font-family:var(--body); }
select,textarea { max-width:100%; }

/* The public header and branding remain the source of their presentation. */
.desktop-nav .current-header-cart,
.desktop-nav .header-cart { white-space:nowrap; }
[data-local-cart-count] { font-variant-numeric:tabular-nums; }
.header .header-cart,
.header .current-header-cart { display:inline-flex; align-items:center; gap:6px; }
.header .mobile-cart { display:none; }
.footer-company {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  gap:20px 40px;
  border-top:1px solid #ffffff35;
  margin-top:28px;
  padding-top:24px;
  color:#ded5ce;
  font:12px/1.8 var(--body);
}
.footer-company p { min-width:0; overflow-wrap:anywhere; }
.footer-company strong { color:var(--paper); }
.footer-company a { text-decoration:underline; text-underline-offset:3px; }
.footer a:focus-visible { outline:3px solid var(--red); outline-offset:4px; }

/* The updated list has actual prices and options instead of legacy references. */
.current-product-grid,
.catalog .current-product-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px 24px;
}
.current-product-grid .current-product,
.current-product-grid .current-product:first-child {
  display:block;
  grid-column:auto;
  grid-row:auto;
  min-width:0;
  margin:0;
}
.current-product-grid .current-product .product-photo,
.current-product-grid .current-product:first-child .product-photo {
  display:block;
  aspect-ratio:1;
  width:100%;
  border-radius:0;
  background:var(--neutral);
}
.current-product .current-photo.current-photo-has-image {
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  background:var(--neutral);
}
.current-product .current-photo::after { display:none; }
.current-product .current-photo .current-ai-image {
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
  object-position:center;
  margin:0;
  padding:0;
  opacity:1;
}
.current-product-grid .current-product .product-meta,
.current-product-grid .current-product .product-meta>div,
.current-product-grid .current-product:first-child .product-meta {
  display:block;
}
.current-product-grid .current-product .product-meta { padding-top:15px; min-height:0; }
.current-product-grid .current-product .product-meta>div>p:first-child {
  display:block;
  margin:0 0 6px;
  font:700 9px/1.5 var(--body);
  letter-spacing:.1em;
}
.current-product-grid .current-product .product-meta h3 {
  margin:0;
  font:700 18px/1.35 var(--body);
  letter-spacing:0;
}
.current-card-note,
.catalog-stock {
  display:block;
  color:var(--muted);
  font:12px/1.6 var(--body);
  margin-top:8px;
  overflow-wrap:anywhere;
}
.current-card-price {
  display:block;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--ink);
  font:700 18px/1.35 var(--body);
  white-space:normal;
}
.catalog .current-card-price {
  margin-top:8px;
  padding-top:8px;
}
.current-ai-badge {
  color:var(--ink);
  background:#faf9f5ed;
  border-radius:0;
}
.catalog-note { line-height:1.8; }
.catalog-disclosure { margin-top:20px; border-top:1px solid var(--line); }
.catalog-disclosure summary { padding:15px 0; min-height:44px; cursor:pointer; font-weight:700; }
.catalog-disclosure p { max-width:850px; font:13px/1.8 var(--body); color:var(--muted); }

/* The existing form layout and all commerce hooks are retained. */
.shop-product-page .product-purchase-panel h1 {
  font-family:var(--condensed);
  font-size:clamp(42px,4.6vw,58px);
  font-weight:400;
  line-height:1.03;
  letter-spacing:.005em;
}
.shop-product-page .product-media .current-photo,
.shop-product-page .product-extra-option,
.shop-product-page .product-extra-field input,
.shop-product-page .product-select-field input,
.shop-product-page .product-select-field select,
.shop-product-page .product-add-button { border-radius:0; }
.shop-product-page .product-media .current-photo { border-color:var(--line); background:var(--neutral); }
.shop-product-page .product-extra-option { background:var(--neutral); }
.shop-product-page .product-extra-field input,
.shop-product-page .product-select-field input,
.shop-product-page .product-select-field select {
  background:var(--paper);
  border-color:var(--line);
  color:var(--ink);
}
.shop-product-page .product-add-button {
  background:var(--ink);
  border-color:var(--ink);
  font-weight:600;
}
.shop-product-page .product-add-button:hover { background:var(--red); border-color:var(--red); }
.shop-product-page .product-related-heading h2 {
  font:400 34px/1.08 var(--condensed);
  letter-spacing:.005em;
}
.shop-product-page .product-related .current-product-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.shop-product-page .product-price-row .current-detail-price { font-weight:700; }

/* New pages have no public predecessor; use its typography, paper and actions. */
.shop-test-main h1,
.operator-main h1,
.withdrawal-main h1,
.legal-title h1 {
  font-family:var(--condensed);
  font-size:clamp(40px,4.5vw,56px);
  font-weight:400;
  line-height:1.05;
  letter-spacing:.005em;
}
.shop-test-main h2:not(.cart-line-title),
.operator-main h2,
.withdrawal-main h2,
.legal-card h2,
.legal-section h2,
.legal-local-note h2,
.legal-missing>h2,
.legal-sources h2 {
  font-family:var(--condensed);
  font-weight:400;
  line-height:1.15;
  letter-spacing:.005em;
}
.test-panel,
.test-result,
.cart-line-image,
.test-field input,
.test-field select,
.test-field textarea,
.cart-quantity input,
.test-mode-option,
.test-banner,
.test-message,
.operator-card,
.operator-main input,
.operator-main select,
.operator-main textarea,
.legal-card,
.legal-tabs a,
.legal-local-note,
.legal-draft-notice,
.withdrawal-panel,
.withdrawal-field input,
.withdrawal-field select,
.withdrawal-field textarea,
.withdrawal-secondary,
.local-document-copy-button,
.local-document-copy-status { border-radius:0; }
.test-panel,
.test-result,
.operator-card,
.operator-main input,
.operator-main select,
.operator-main textarea,
.operator-order-row,
.withdrawal-panel,
.local-document-copy-button { background:var(--paper); }
.test-summary,
.operator-order-row:hover { background:var(--neutral); }
.operator-order-row[aria-pressed=true] { background:#f5eee4; }
.shop-test-main .button,
.operator-main .button,
.withdrawal-main .button { border-radius:0; }
.shop-test-main .button.dark,
.operator-main .button.dark,
.withdrawal-main .button.dark { background:var(--ink); border-color:var(--ink); color:#fff; }
.shop-test-main .button.dark:hover,
.operator-main .button.dark:hover,
.withdrawal-main .button.dark:hover { background:var(--red); border-color:var(--red); }
.test-summary { top:112px; }
.operator-order-detail { top:112px; }
.shop-test-main .cart-line-title { font-family:var(--body); }
.shop-test-main .test-order-items,
.operator-detail-id,
.withdrawal-order-id,
.local-document-copy-path { overflow-wrap:anywhere; }

@media(max-width:900px) {
  .shop-product-page .product-purchase-panel h1 { font-size:44px; }
}
@media(max-width:700px) {
  .current-product-grid,
  .catalog .current-product-grid { gap:28px 12px; }
  .current-product-grid .current-product .product-meta h3 { font-size:16px; }
  .current-product-grid .current-product .product-meta>div>p:first-child { font-size:8px; }
  .current-card-note,.catalog-stock { font-size:11px; line-height:1.55; }
  .current-card-price { font-size:17px; padding-top:10px; margin-top:12px; }
  .current-product-grid .current-product .product-meta { padding-top:12px; }
  .shop-product-page .product-purchase-panel h1 { font-size:40px; line-height:1.08; }
  .shop-product-page .product-related-heading h2 { font-size:28px; }
  .shop-test-main h1,.operator-main h1,.withdrawal-main h1,.legal-title h1 { font-size:38px; }
  .footer-company { grid-template-columns:minmax(0,1fr); gap:18px; font-size:11px; }
  .footer-company p { margin:0; }
  .test-summary,.operator-order-detail { position:static; }
  .shop-product-page .product-select-field input,
  .shop-product-page .product-select-field select,
  .shop-product-page .product-extra-field input { min-width:0; }
}
@media(prefers-reduced-motion:reduce) {
  .current-product .current-ai-image { transition:none; }
}

/* Shared local shop access; authentication is handled by the existing login. */
.footer .footer-shop-access{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.footer .footer-shop-access .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 20px;border:1px solid var(--red,#a82232);background:var(--red,#a82232);color:#fff;font:600 12px/1.4 var(--body,system-ui,sans-serif);text-decoration:none}.footer .footer-shop-access .button:hover{background:#fff;color:var(--red,#a82232)}.footer .footer-shop-access .button:focus-visible{outline:2px solid var(--yellow,#e2b537);outline-offset:4px}

/* Compact footer: company details, contacts and access share the available width. */
.footer{padding-top:28px;padding-bottom:20px}
.footer .footer-top{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 22px}
.footer .footer-top nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;grid-column:auto;max-width:none;min-width:0;font:12px/1.5 var(--body)}
.footer .footer-content{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,.85fr);gap:32px;border-top:1px solid #ffffff35;padding:22px 0}
.footer .footer-company{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px 24px;margin:0;padding:0;border:0;font-size:11px;line-height:1.7}
.footer .footer-company p{margin:0;min-width:0;overflow-wrap:anywhere}
.footer .footer-tools{display:flex;flex-direction:column;gap:14px;min-width:0}
.footer .footer-content nav{grid-column:auto;min-width:0}
.footer .footer-documents{margin:0;border:1px solid #ffffff40;padding:0 14px}
.footer .footer-documents summary{min-height:44px;padding:12px 0;cursor:pointer;font:600 12px/1.6 var(--body)}
.footer .footer-documents summary::marker{color:var(--yellow,#f4cc3c)}
.footer .footer-documents summary:focus-visible{outline:2px solid var(--yellow,#f4cc3c);outline-offset:4px}
.footer .footer-documents-note{font:10px/1.5 var(--body);color:#ded5ce;margin:0 0 10px}
.footer .footer-documents nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:0 0 14px;font:11px/1.5 var(--body)}
.footer .footer-documents nav a{display:flex;align-items:center;min-height:32px;overflow-wrap:anywhere}
.footer .footer-shop-access{margin:0}
.footer .footer-shop-access .button{width:100%}
.footer .footer-bottom{margin:0;padding-top:14px;font-size:10px;line-height:1.6}
@media(max-width:960px){.footer .footer-company{grid-template-columns:1fr}.footer .footer-content{grid-template-columns:minmax(0,1fr) minmax(220px,.75fr);gap:24px}}
@media(max-width:700px){.footer .footer-top{flex-direction:column;align-items:flex-start;gap:16px;padding-bottom:18px}.footer .footer-top nav{gap:10px 16px;font-size:11px}.footer .footer-content{grid-template-columns:minmax(0,1fr);gap:20px;padding:20px 0}.footer .footer-company{gap:14px}.footer .footer-bottom{display:flex;flex-wrap:wrap;gap:6px 20px}.footer .footer-bottom>span{margin:0}}

/* Visible cart and confirmation after a verified addition — 2026-11-11. */
.header .desktop-nav .header-cart,
.header .desktop-nav .current-header-cart,
.header .mobile-cart {
  align-items:center; justify-content:center; gap:8px; min-height:46px;
  padding:10px 14px; border:1px solid var(--red); background:var(--paper);
  color:var(--red); font:700 14px/1.25 var(--body); text-decoration:none;
  white-space:nowrap; flex-shrink:0;
}
.header .header-cart::before,
.header .current-header-cart::before,
.header .mobile-cart::before {
  content:""; width:20px; height:20px; flex-shrink:0; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h3l2.5 12h11l2-8H6M8 19a1 1 0 1 0 0 .01M18 19a1 1 0 1 0 0 .01' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h3l2.5 12h11l2-8H6M8 19a1 1 0 1 0 0 .01M18 19a1 1 0 1 0 0 .01' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.header .desktop-nav .header-cart::after,
.header .desktop-nav .current-header-cart::after { display:none; }
.header .header-cart [data-local-cart-count],
.header .current-header-cart [data-local-cart-count],
.header .mobile-cart [data-local-cart-count] {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; min-height:22px; padding:2px 5px; margin:0;
  border:0; border-radius:50%; background:var(--yellow); color:var(--ink);
  font:700 12px/1 var(--body); font-variant-numeric:tabular-nums;
}
.header .desktop-nav .has-cart-items,
.header .desktop-nav .header-cart:hover,
.header .desktop-nav .current-header-cart:hover,
.header .mobile-cart.has-cart-items,
.header .mobile-cart:hover { background:var(--red); color:#fff; }
.header .header-cart:focus-visible,
.header .current-header-cart:focus-visible,
.header .mobile-cart:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.shop-product-page .product-purchase-meta .current-cart-link {
  display:inline-flex; align-items:center; justify-content:space-between;
  gap:20px; min-height:44px; padding:11px 15px; margin:0;
  border:1px solid var(--red); color:var(--red); background:var(--paper);
  font:700 14px/1.4 var(--body); text-decoration:none;
}
.shop-product-page .product-purchase-meta .current-cart-link:hover {
  background:var(--red); color:#fff; text-decoration:none;
}
.shop-product-page .cart-added-panel {
  margin:16px 0 0; padding:20px; border:1px solid var(--line);
  border-left:4px solid var(--red); background:#fffdf5; color:var(--ink);
  scroll-margin-top:110px; overflow-wrap:anywhere;
}
.shop-product-page .cart-added-panel[hidden] { display:none; }
.shop-product-page .cart-added-panel h2 {
  display:flex; align-items:center; gap:10px; margin:0 0 16px;
  font:700 20px/1.35 var(--body); letter-spacing:0;
}
.shop-product-page .cart-added-panel h2>span {
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; flex-shrink:0; border-radius:50%;
  background:var(--yellow); color:var(--ink); font-size:17px;
}
.shop-product-page .cart-added-item { display:flex; align-items:center; gap:14px; }
.shop-product-page .cart-added-item img {
  width:72px; height:72px; object-fit:contain; flex-shrink:0;
  border:1px solid var(--line); background:var(--neutral);
}
.shop-product-page .cart-added-item>div { min-width:0; }
.shop-product-page .cart-added-item strong { display:block; font:700 15px/1.5 var(--body); }
.shop-product-page .cart-added-item p { margin:4px 0 0; color:var(--muted); font:12px/1.55 var(--body); }
.shop-product-page .cart-added-total {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  flex-wrap:wrap; margin:16px 0; padding-top:14px; border-top:1px solid var(--line);
  font:12px/1.5 var(--body);
}
.shop-product-page .cart-added-total>span { display:flex; align-items:baseline; gap:10px; }
.shop-product-page .cart-added-total strong { font-size:18px; white-space:nowrap; }
.shop-product-page .cart-added-actions { display:grid; gap:8px; }
.shop-product-page .cart-added-primary,
.shop-product-page .cart-added-secondary {
  display:flex; align-items:center; justify-content:center; gap:24px;
  min-height:48px; padding:13px 18px; text-align:center;
  font:700 15px/1.4 var(--body); text-decoration:none;
}
.shop-product-page .cart-added-primary { background:var(--red); color:#fff; border:1px solid var(--red); }
.shop-product-page .cart-added-primary>span { font-size:23px; line-height:1; }
.shop-product-page .cart-added-primary:hover { background:var(--ink); border-color:var(--ink); }
.shop-product-page .cart-added-secondary { background:transparent; color:var(--ink); border:1px solid var(--line); font-size:13px; }
.shop-product-page .cart-added-secondary:hover { border-color:var(--ink); background:var(--neutral); }
@media(max-width:700px) {
  .header {
    display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px;
    height:auto; min-height:72px; padding:10px 4vw;
  }
  .header .brand { min-width:0; gap:6px; }
  .header .brand>span { display:none; }
  .header .brand .club-crest { width:24px; height:auto; flex-shrink:0; }
  .header .brand .brand-name { font-size:clamp(17px,5.3vw,21px); gap:2px; white-space:nowrap; }
  .header .brand .brand-name small { font-size:8px; }
  .header .mobile-cart { display:inline-flex; min-height:44px; padding:10px; gap:6px; font-size:12px; }
  .header .mobile-cart::before { width:18px; height:18px; }
  .header .mobile-cart [data-local-cart-count] { min-width:20px; min-height:20px; font-size:11px; }
  .header .menu-toggle { display:flex; align-items:center; justify-content:center; gap:0; width:44px; height:44px; padding:0; font-size:0; }
  .header .menu-toggle>span { font-size:20px; }
  .shop-product-page .product-purchase-meta .current-cart-link { width:100%; }
  .shop-product-page .cart-added-panel { padding:16px; scroll-margin-top:90px; }
  .shop-product-page .cart-added-panel h2 { font-size:18px; }
  .shop-product-page .cart-added-total { align-items:flex-start; }
  .shop-product-page .cart-added-total>span { width:100%; justify-content:space-between; }
}
@media(max-width:360px) {
  .header { gap:5px; padding-right:12px; padding-left:12px; }
  .header .brand { gap:5px; }
  .header .brand .club-crest { width:22px; }
  .header .brand .brand-name { font-size:17px; }
  .header .mobile-cart { gap:5px; padding:10px 8px; font-size:11px; }
  .header .mobile-cart::before { width:16px; height:16px; }
}