/* Company storefronts (#4/#7). --primary / --accent come from each store's branding. */
:root { --ink: #1d1d1f; --muted: #66666e; --line: #e4e4e0; --bg: #f6f6f4; --radius: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent, #d7262d); }
img { max-width: 100%; display: block; }
.st-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.st-muted { color: var(--muted); }
.small { font-size: .85rem; }
.st-bar { background: #ff8a00; color: #1d1d1f; text-align: center; font-size: .8rem; font-weight: 700; padding: 4px; }

/* Header */
.st-top { background: var(--primary, #16161a); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.st-top-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.st-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; flex: 0 1 auto; min-width: 0; }
.st-brand img { height: 44px; max-width: 150px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.st-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-search { flex: 1; display: flex; justify-content: center; }
.st-search input { width: 100%; max-width: 420px; padding: 9px 14px; border-radius: 999px; border: 0; font: inherit; background: rgba(255,255,255,.15); color: #fff; }
.st-search input::placeholder { color: rgba(255,255,255,.7); }
.st-icons { display: flex; gap: 14px; }
.st-icons a { color: #fff; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.st-icons a:hover { background: rgba(255,255,255,.12); }
.st-cart-n { position: absolute; top: 2px; right: 0; background: var(--accent, #d7262d); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.st-nav { background: var(--accent, #d7262d); }
.st-nav .st-wrap { display: flex; gap: 6px; overflow-x: auto; }
.st-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.st-nav a[aria-current] { border-bottom-color: #fff; }
@media (max-width: 640px) { .st-search { display: none; } .st-brand span { max-width: 52vw; } }

/* Hero */
.st-hero { color: #fff; text-align: center; padding: 56px 0 50px; background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.45)), var(--banner, none) center / cover, linear-gradient(135deg, var(--primary, #16161a), color-mix(in srgb, var(--primary, #16161a) 70%, var(--accent, #d7262d))); }
.st-hero-logo { height: 96px; max-width: 260px; object-fit: contain; margin: 0 auto 14px; background: #fff; border-radius: 14px; padding: 8px; }
.st-hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.01em; }
.st-hero p { margin: 0 auto; max-width: 640px; opacity: .92; }

/* Shop layout */
.st-shop { display: grid; grid-template-columns: 230px 1fr; gap: 28px; margin-top: 28px; margin-bottom: 40px; }
@media (max-width: 860px) { .st-shop { grid-template-columns: 1fr; } .st-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; } }
.st-filter { margin-bottom: 22px; }
.st-flabel { display: block; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.st-filter input[type=search] { width: 100%; padding: 9px 12px; border: 1px solid #ccc; border-radius: 10px; font: inherit; }
.st-chip { display: flex; align-items: center; gap: 8px; margin: 4px 0; cursor: pointer; }
.st-fswatches { display: flex; flex-wrap: wrap; gap: 8px; }
.st-fswatches input, .st-fsizes input { display: none; }
.st-fswatches i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #bbb; box-shadow: inset 0 0 0 2px #fff; cursor: pointer; }
.st-fswatches input:checked + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.st-fsizes { display: flex; flex-wrap: wrap; gap: 6px; }
.st-fsizes span { display: block; min-width: 40px; text-align: center; padding: 5px 8px; border: 1px solid #ccc; border-radius: 8px; background: #fff; font-size: .85rem; cursor: pointer; }
.st-fsizes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.st-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); }
.st-toolbar select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid #ccc; background: #fff; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.st-card { background: #fff; border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.st-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.st-card[hidden] { display: none; }
.st-card-body { display: grid; gap: 2px; padding: 12px 14px 16px; }
.st-card-price { font-weight: 600; }
.st-dots { display: flex; gap: 5px; margin-top: 6px; }
.st-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ccc; }
.st-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.st-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent, #d7262d); cursor: pointer; text-decoration: underline; }
.st-recent { margin-top: 36px; }
.st-recent h3 { font-size: 1rem; }
.st-recent-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.st-recent-item { flex: 0 0 120px; color: inherit; text-decoration: none; font-size: .85rem; }
.st-recent-item img { border-radius: 10px; background: #fff; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: contain; }

/* Mockups */
.mock { position: relative; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.mock-img { width: 100%; height: 100%; object-fit: contain; }
.mock-logo { position: absolute; height: auto; object-fit: contain; pointer-events: none; }

/* Product page */
.st-crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0; }
.st-crumbs a { color: var(--muted); }
.st-product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .st-product { grid-template-columns: 1fr; } }
.mock-lg { border-radius: 18px; border: 1px solid var(--line); }
.st-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.st-thumbs button { width: 84px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; }
.st-thumbs button.on { border-color: var(--primary, #16161a); }
.st-info h1 { margin: 0 0 4px; font-size: 1.9rem; }
.st-price { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.st-label { font-weight: 700; margin: 18px 0 8px; font-size: .9rem; }
.st-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.st-swatches button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #bbb; box-shadow: inset 0 0 0 2px #fff; cursor: pointer; padding: 0; }
.st-swatches button.on { outline: 2px solid var(--primary, #16161a); outline-offset: 2px; }
.st-sizegrid fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 16px 0 0; background: #fff; }
.st-sizegrid fieldset.na { opacity: .5; }
.st-sizegrid legend { font-weight: 700; padding: 0 6px; }
.st-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.st-sizes label { display: grid; gap: 4px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.st-sizes input { width: 100%; padding: 8px 4px; text-align: center; border: 1px solid #ccc; border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink); }
.st-sizes input:focus { outline: 2px solid var(--accent, #d7262d); border-color: transparent; }
.st-na { color: #8f1c1c; margin: 8px 0 0; }
.st-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 1.05rem; }
.st-btn { margin-top: 14px; width: 100%; padding: 14px; border: 0; border-radius: 999px; background: var(--accent, #d7262d); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.st-btn:hover { filter: brightness(1.06); }
.st-btn:disabled { opacity: .5; cursor: not-allowed; }
.st-tabs { margin: 40px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.st-tabs [role=tablist] { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.st-tabs [role=tab] { background: none; border: 0; padding: 14px 18px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.st-tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent, #d7262d); }
.st-tabs [data-panel] { padding: 18px 22px; }
.st-overview h3 { margin: 6px 0; font-size: 1rem; }
.st-overview ul { margin: 6px 0 14px; padding-left: 20px; }
.st-chart-wrap { overflow-x: auto; }
.st-chart { border-collapse: collapse; font-size: .9rem; min-width: 100%; }
.st-chart th, .st-chart td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: center; white-space: nowrap; }
.st-chart tbody th, .st-chart thead th:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.st-chart thead th { background: #fafaf8; }

/* Pages */
.st-page { max-width: 820px; margin: 36px auto 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.st-page h1 { margin-top: 0; }
.st-page h2 { font-size: 1.1rem; margin: 22px 0 6px; }
.st-faq dt { font-weight: 700; margin-top: 16px; }
.st-faq dd { margin: 4px 0 0; color: #333; }
.st-form { display: grid; gap: 12px; margin: 18px 0; }
.st-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.st-form input, .st-form textarea { font: inherit; padding: 10px 12px; border: 1px solid #ccc; border-radius: 10px; }
.st-hp { position: absolute; left: -9999px; }
.st-ok, .st-err { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.st-ok { background: #e7f6ec; color: #1e6b3a; }
.st-err { background: #fdecec; color: #9b1c1c; }
.st-chart-block { margin-bottom: 18px; }
.st-sitemap li { margin: 4px 0; }
.st-cart-lines { display: grid; gap: 10px; margin: 10px 0; }
.st-line { display: grid; grid-template-columns: 64px 1fr 70px 80px auto; gap: 12px; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.st-line img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: contain; background: #fff; }
.st-line input { width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 8px; text-align: center; font: inherit; }
@media (max-width: 560px) { .st-line { grid-template-columns: 56px 1fr 60px; } .st-line span, .st-line button { grid-column: 2 / -1; } }

/* Trust strip + footer */
.st-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; margin-bottom: 28px; }
.st-trust div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.st-trust span { color: var(--muted); font-size: .9rem; }
.st-foot { background: #2b2b30; color: rgba(255,255,255,.8); padding: 36px 0 20px; }
.st-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.st-foot h4 { margin: 0 0 10px; color: #fff; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.st-foot a { display: block; color: rgba(255,255,255,.8); text-decoration: none; margin: 6px 0; font-size: .92rem; }
.st-foot a:hover { color: #fff; }
.st-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.55); }
.st-copy a { display: inline; color: rgba(255,255,255,.75); }
.st-msg { max-width: 520px; margin: 15vh auto; text-align: center; padding: 0 20px; }
.st-cart-n[hidden], [hidden] { display: none !important; }

/* Decoration method picker (#32) */
.st-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; align-items: center; }
.st-methods .st-label { width: 100%; margin: 0; }
.st-method { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d9d9df; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.st-method:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.st-method input { accent-color: var(--primary); margin: 0; }
