/* =====================================================================
   SHOP / STORE  —  "Modern neutral dark" pilot
   Cool near-black, crisp white type, ONE restrained red accent.
   No gold, no serif, no glows. Scoped to .shop-page.
   ===================================================================== */

.shop-page {
    --sp-bg: #0a0a0b;
    --sp-surface: #141416;
    --sp-line: rgba(255,255,255,0.09);
    --sp-line-2: rgba(255,255,255,0.20);
    --sp-text: #f5f5f7;
    --sp-muted: #8a8a92;
    --sp-faint: #5f5f66;
    --sp-accent: #e85a6b;      /* brand red, brightened for near-black */
    --sp-accent-dim: #cb4154;
    background: var(--sp-bg);
    font-family: var(--font-primary);
}

/* flatten any inherited buttons on shop pages */
.shop-page .btn {
    box-shadow: none; background-image: none; text-transform: none;
    letter-spacing: 0; font-weight: 600; border-radius: 9px;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.shop-page .btn:hover { transform: none; box-shadow: none; filter: none; }
.shop-page .btn-primary { background: var(--sp-accent); border: 1px solid var(--sp-accent); color: #fff; }
.shop-page .btn-primary:hover { background: #d94857; border-color: #d94857; }
.shop-page .btn-ghost { background: transparent; border: 1px solid var(--sp-line-2); color: var(--sp-text); }
.shop-page .btn-ghost:hover { border-color: var(--sp-accent); }

.shop-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- hero: depth, not flat black — one soft red glow over a dark gradient ---- */
.shop-hero {
    padding: 152px 0 60px; position: relative;
    background:
        radial-gradient(ellipse 80% 72% at 50% -14%, rgba(232,90,107,0.14), transparent 60%),
        radial-gradient(circle at 90% 128%, rgba(203,65,84,0.06), transparent 46%),
        linear-gradient(180deg, #121316 0%, var(--sp-bg) 72%);
    border-bottom: 1px solid var(--sp-line);
}
.shop-hero .eyebrow {
    display: inline-block; color: var(--sp-muted); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 24px;
}
.shop-hero h1 {
    font-family: var(--font-primary); font-weight: 800;
    font-size: clamp(2.7rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em;
    color: var(--sp-text); margin: 0 0 24px; max-width: 15ch;
}
.shop-hero h1 em {
    font-style: normal;
    background: linear-gradient(92deg, #ef6a79, #cb4154);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.shop-hero p { color: var(--sp-muted); font-size: 1.1rem; line-height: 1.6; max-width: 52ch; margin: 0; }
.hero-benefits { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; }
.hero-benefits li { display: flex; align-items: center; gap: 9px; color: var(--sp-muted); font-size: 0.9rem; font-weight: 500; }
.hero-benefits li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-accent); flex-shrink: 0; }

/* ---- section rhythm ---- */
.shop-section { padding: 28px 0 104px; }
.shop-head { margin-bottom: 44px; }
.shop-head .eyebrow {
    display: block; color: var(--sp-muted); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.shop-head h2 {
    font-family: var(--font-primary); font-weight: 800; letter-spacing: -0.015em;
    font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--sp-text); margin: 0; line-height: 1.12;
}

/* ---- breadcrumb (minimal, product page) ---- */
.sbreadcrumb { font-size: 0.85rem; color: var(--sp-faint); margin-bottom: 40px; }
.sbreadcrumb a { color: var(--sp-muted); text-decoration: none; }
.sbreadcrumb a:hover { color: var(--sp-text); }
.sbreadcrumb .sep { margin: 0 9px; opacity: 0.5; }

/* ---- filter: quiet text tabs, red underline on active ---- */
.shop-filters {
    display: flex; flex-wrap: wrap; gap: 4px 30px; align-items: center;
    padding-bottom: 20px; margin-bottom: 48px; border-bottom: 1px solid var(--sp-line);
}
.shop-filter {
    background: none; border: none; padding: 8px 0; cursor: pointer; position: relative;
    color: var(--sp-muted); font-family: var(--font-primary); font-weight: 600;
    font-size: 0.95rem; transition: color .16s ease;
}
.shop-filter:hover { color: var(--sp-text); }
.shop-filter.active { color: var(--sp-text); }
.shop-filter.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--sp-accent);
}

/* ---- product grid: flat, hairline, no glow/zoom ---- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 22px; }
.product-card {
    background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--sp-line-2); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #0f0f10; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }

/* badge ONLY for exceptions; in-stock shows nothing */
.product-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    background: rgba(10,10,11,0.8); backdrop-filter: blur(4px);
}
.badge-low { color: #e7b24d; border: 1px solid rgba(231,178,77,0.45); }
.badge-out { color: var(--sp-muted); border: 1px solid var(--sp-line-2); }

.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-weight: 700; font-size: 1rem; color: var(--sp-text); line-height: 1.3; margin: 0 0 5px; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--sp-accent); }
.product-meta { color: var(--sp-muted); font-size: 0.85rem; line-height: 1.45; margin: 0 0 22px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-price { font-weight: 700; font-size: 1.2rem; color: var(--sp-text); letter-spacing: -0.01em; }
.product-price span { font-size: 0.72rem; font-weight: 500; color: var(--sp-faint); letter-spacing: 0; }

.padd {
    background: transparent; border: 1px solid var(--sp-line-2); color: var(--sp-text);
    padding: 9px 16px; border-radius: 8px; font-family: var(--font-primary); font-weight: 600;
    font-size: 0.82rem; cursor: pointer; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease;
}
.padd:hover { background: var(--sp-accent); border-color: var(--sp-accent); }
.padd:disabled { opacity: 0.35; cursor: not-allowed; }
.padd:disabled:hover { background: transparent; border-color: var(--sp-line-2); }
.product-card.is-out .product-media img { opacity: 0.4; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 104px; }
.product-main { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--sp-line); background: #0f0f10; }
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.product-thumb {
    width: 74px; height: 74px; border-radius: 10px; overflow: hidden; padding: 0;
    border: 1px solid var(--sp-line); cursor: pointer; background: #0f0f10; transition: border-color .16s ease;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.active { border-color: var(--sp-accent); }
.product-thumb:hover { border-color: var(--sp-line-2); }

.product-info { padding-top: 4px; }
.product-info .eyebrow {
    display: block; color: var(--sp-muted); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; font-size: 0.74rem; margin-bottom: 16px;
}
.product-info h1 {
    font-family: var(--font-primary); font-weight: 800; letter-spacing: -0.02em;
    font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--sp-text); line-height: 1.06; margin: 0 0 24px;
}
.price-row {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--sp-line);
}
.price-row .product-price { font-size: 1.9rem; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.86rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.stock-in { color: #68c285; } .stock-in::before { background: #68c285; }
.stock-low { color: #e7b24d; } .stock-low::before { background: #e7b24d; }

.product-lead { color: var(--sp-muted); line-height: 1.75; margin: 0 0 28px; font-size: 1rem; }
.product-key { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 13px; }
.product-key li { display: flex; gap: 13px; color: var(--sp-text); font-size: 0.93rem; line-height: 1.5; }
.product-key li::before { content: "\2014"; color: var(--sp-accent); font-weight: 700; flex-shrink: 0; }

.buybox-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 24px; }
.qty { display: flex; align-items: center; border: 1px solid var(--sp-line-2); border-radius: 9px; overflow: hidden; }
.qty button { width: 44px; background: transparent; border: none; color: var(--sp-text); font-size: 1.2rem; cursor: pointer; transition: background-color .15s ease; }
.qty button:hover { background: rgba(255,255,255,0.06); }
.qty input {
    width: 44px; text-align: center; background: transparent; border: none; color: var(--sp-text);
    font-family: var(--font-primary); font-weight: 700; font-size: 1rem; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add { flex: 1; min-width: 190px; padding: 14px 24px; font-size: 0.95rem; }

.buynote { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--sp-line); }
.buynote p { display: flex; gap: 12px; align-items: center; color: var(--sp-muted); font-size: 0.86rem; margin: 0; }
.buynote .ic { color: var(--sp-muted); width: 18px; text-align: center; flex-shrink: 0; }

/* spec table — borderless, hairline rows */
.spec-table { width: 100%; border-collapse: collapse; max-width: 720px; }
.spec-table td { padding: 16px 0; border-bottom: 1px solid var(--sp-line); color: var(--sp-text); font-size: 0.93rem; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--sp-muted); font-weight: 600; width: 38%; padding-right: 24px; }

/* related — flat cards */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rel-card {
    display: block; text-decoration: none; background: var(--sp-surface);
    border: 1px solid var(--sp-line); border-radius: 14px; padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.rel-card:hover { border-color: var(--sp-line-2); transform: translateY(-4px); }
.rel-card h3 { color: var(--sp-text); font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; }
.rel-card p { color: var(--sp-muted); font-size: 0.89rem; line-height: 1.6; margin: 0 0 16px; }
.rel-card .go { color: var(--sp-accent); font-weight: 600; font-size: 0.87rem; }

/* FAQ — minimal hairline accordion */
.sfaq { max-width: 820px; }
.sfaq-item { border-bottom: 1px solid var(--sp-line); }
.sfaq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0;
    color: var(--sp-text); font-family: var(--font-primary); font-weight: 600; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.sfaq-q .pm { color: var(--sp-muted); font-size: 1.4rem; font-weight: 300; transition: transform .22s ease; flex-shrink: 0; line-height: 1; }
.sfaq-item.open .sfaq-q .pm { transform: rotate(45deg); color: var(--sp-accent); }
.sfaq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.sfaq-a-inner { padding: 0 0 24px; color: var(--sp-muted); line-height: 1.75; font-size: 0.93rem; max-width: 68ch; }

/* calm CTA band */
.shop-cta { border-top: 1px solid var(--sp-line); padding: 92px 0; text-align: center; }
.shop-cta h2 { font-family: var(--font-primary); font-weight: 800; letter-spacing: -0.015em; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--sp-text); margin: 0 0 14px; }
.shop-cta p { color: var(--sp-muted); font-size: 1.05rem; line-height: 1.6; max-width: 46ch; margin: 0 auto 30px; }
.shop-cta .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* toast */
.shop-toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(170%);
    background: #1a1b1c; color: #fff; border: 1px solid var(--sp-accent); padding: 14px 22px;
    border-radius: 11px; box-shadow: 0 18px 44px rgba(0,0,0,0.55); z-index: 3000;
    transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); font-size: 0.9rem; max-width: 90%; text-align: center;
}
.shop-toast.show { transform: translateX(-50%) translateY(0); }

/* ---- responsive ---- */
@media (max-width: 860px) {
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery { position: static; }
    .shop-hero { padding: 120px 0 48px; }
    .shop-section { padding: 20px 0 72px; }
}
@media (max-width: 560px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
    .product-body { padding: 15px; }
    .product-name { font-size: 0.92rem; }
    .product-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .shop-filters { gap: 2px 22px; }
}