/* Happoya Netshop — "モダン (2025)" template.
   Clean, airy, Apple/Shopify-modern aesthetic. Same HTML as the default theme;
   colours come from the --accent / --accent-dark / --price variables (still
   customisable from AMS), the rest of the look is defined here. */
:root {
    --accent: #0071e3;        /* customisable */
    --accent-dark: #0058b0;   /* customisable */
    --price: #1d1d1f;         /* customisable */
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #e8e8ed;
    --bg: #ffffff;
    --soft: #f5f5f7;
    --radius: 18px;
    --shadow: 0 2px 12px rgba(0,0,0,.05);
    --shadow-lg: 0 18px 44px rgba(0,0,0,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro JP", "SF Pro Text",
                 "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                 "Inter", "Noto Sans JP", Meiryo, "Yu Gothic", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header — translucent, blurred, sticky (Apple-like) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { flex: 0 0 auto; font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.logo span { display: block; font-size: .6rem; color: var(--muted); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.logo-img { height: 34px; width: auto; display: block; }
.search { flex: 1; display: flex; min-width: 0; position: relative; align-items: center; }
.search input { flex: 1; min-width: 0; border: 1px solid transparent; background: var(--soft); border-radius: 999px; padding: 11px 48px 11px 18px; font-size: .92rem; transition: border-color .15s, background .15s; }
.search input:focus { outline: none; background: #fff; border-color: var(--accent); }
.search button { position: absolute; right: 5px; border: none; background: var(--accent); color: #fff; width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.header-actions a:hover { color: var(--accent); }
.header-actions .cart { position: relative; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; }
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1; }
.ha-ico { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.ha-ico:hover { color: var(--accent); }
.ha-ico .material-symbols-outlined { font-size: 24px; }
.ha-label, .ha-text-link { font-size: .85rem; }
.search button .material-symbols-outlined { font-size: 20px; }
.lang-switch { display: inline-flex; gap: 2px; font-size: .72rem; font-weight: 600; }
.lang-switch a { padding: 3px 7px; border-radius: 7px; color: var(--muted); }
.lang-switch a.on { background: var(--accent); color: #fff; }
/* Mobile: search drops to its own full-width row; actions become icons only */
@media (max-width: 640px) {
    .header-inner { min-height: 0; padding: 10px 0; row-gap: 10px; }
    .logo { order: 1; font-size: 1.15rem; }
    .logo-img { height: 26px; }
    .header-actions { order: 2; margin-left: auto; gap: 14px; }
    .search { order: 3; flex: 1 1 100%; }
    .ha-label, .ha-text-link { display: none; }
    .lang-switch { font-size: .66rem; }
}
.cart { position: relative; }
.cart-badge { position: absolute; top: -7px; right: -10px; background: var(--accent); color: #fff; font-size: .64rem; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 999px; padding: 0 5px; font-weight: 700; }

/* Category nav — pill chips */
.cat-nav { background: #fff; }
.cat-nav-inner { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; max-width: 1180px; margin: 0 auto; }
.cat-nav a { padding: 7px 16px; font-size: .82rem; font-weight: 500; color: var(--ink); border-radius: 999px; background: var(--soft); white-space: nowrap; transition: background .15s, color .15s; }
.cat-nav a:hover { background: var(--accent); color: #fff; }
/* Utility links (groups / calendar) read as tools, not product categories. */
.cat-nav a.cat-nav-groups, .cat-nav a.cat-nav-calendar { background: transparent; color: var(--accent); border: 1px solid var(--accent); font-weight: 600; }
.cat-nav a.cat-nav-groups:hover, .cat-nav a.cat-nav-calendar:hover { background: var(--accent); color: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.subcats a { padding: 7px 15px; background: var(--soft); border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--ink); transition: background .15s, color .15s; }
.subcats a:hover { background: var(--accent); color: #fff; }
.cat-count { font-size: .82rem; color: var(--muted); font-weight: 400; }

/* Hero — big, soft, editorial; subtle brand-colour wash */
.hero { margin: 24px 0; padding: clamp(40px, 7vw, 76px) clamp(24px, 5vw, 56px); border-radius: 28px; color: var(--ink); background: var(--soft); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, #fff), var(--soft)); }
.hero-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.85rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.14; }
.hero-lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; line-height: 1.85; }
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-note { display: inline-block; margin-top: 20px; font-size: .8rem; font-weight: 600; color: var(--accent); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }
.search-head { margin: 20px 0 4px; }
.search-filter { margin: 8px 0 2px; }
.search-filter label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); cursor: pointer; }
@media (max-width: 600px) { .hero-br { display: none; } }

/* Notices */
.notice { padding: 22px; border-radius: var(--radius); background: var(--soft); margin: 18px 0; text-align: center; color: var(--muted); }
.notice.error { background: #fff1f0; color: #c0362c; }
.notice.ok { background: #edf9f0; color: #1c7c43; }
.notice.pending { padding: 48px 22px; }

/* Home promotional banners — auto-layout by count */
.banners { display: grid; gap: 16px; margin: 22px 0; grid-template-columns: 1fr; }
.banners-2 { grid-template-columns: repeat(2, 1fr); }
.banners-3 { grid-template-columns: repeat(3, 1fr); }
.banners-4 { grid-template-columns: repeat(2, 1fr); }
.banners-5, .banners-6 { grid-template-columns: repeat(3, 1fr); }
.banner { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--soft); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.banner:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .banners-3, .banners-4, .banners-5, .banners-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .banners, .banners-2, .banners-3, .banners-4, .banners-5, .banners-6 { grid-template-columns: 1fr; } }

/* TOP page お知らせ (AMS ショップ情報) */
.shop-announce { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--soft); color: var(--ink); line-height: 1.85; font-size: .95rem; }
.shop-announce > :first-child { margin-top: 0; }
.shop-announce > :last-child { margin-bottom: 0; }
.shop-announce a { color: var(--accent); }

/* Product grid — borderless cards, hover zoom */
.home-section { margin: 34px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.section-h { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.section-head .section-h { margin: 0; }
.section-ic { font-size: 1.1em; line-height: 1; }
.period-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.period-tab { font-size: .82rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; background: #fff; transition: all .15s ease; }
.period-tab:hover { border-color: var(--accent); color: var(--accent); }
.period-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.home-section .card-extra { display: none; }
.home-section.expanded .card-extra { display: flex; }
.see-more-wrap { text-align: center; margin: 18px 0 4px; }
.see-more { background: #fff; border: 1px solid var(--line); color: var(--accent); border-radius: 999px; padding: 10px 32px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.see-more:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.product-grid { display: grid; gap: 18px; margin: 22px 0; grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 1/1; background: #f7f8fa; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.06); }

/* Stock status badge on listing cards */
.card-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    font-size: .72rem; font-weight: 700; line-height: 1; letter-spacing: .02em;
    padding: 6px 10px; border-radius: 6px; color: #fff;
}
.card-badge.soldout { background: rgba(192,54,44,.92); }
.card-badge.low { background: rgba(183,110,0,.95); }
.card.is-soldout .card-img img { opacity: .5; filter: grayscale(.35); }
.card.is-soldout .card-price { color: var(--muted); }
.noimg { color: #c7c7cc; font-size: .8rem; letter-spacing: .12em; }
.card-body { padding: 14px 6px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: .9rem; color: var(--ink); line-height: 1.5; height: 3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-price { color: var(--price); font-weight: 600; font-size: 1.1rem; margin-top: auto; letter-spacing: -.01em; }
.card-price .tax { color: var(--muted); font-weight: 400; font-size: .68rem; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 32px 0 48px; }
.pagination a { padding: 10px 22px; background: var(--soft); color: var(--ink); border-radius: 999px; font-size: .9rem; font-weight: 500; transition: background .15s; }
.pagination a:hover { background: var(--accent); color: #fff; }
.page-info { color: var(--muted); font-size: .85rem; }

/* Footer */
.site-footer { background: var(--soft); margin-top: 56px; padding: 36px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; font-size: .82rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 16px; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: filter .15s, transform .15s; }
.footer-social a:hover { filter: brightness(.95); transform: translateY(-1px); }
.footer-social a svg { width: 21px; height: 21px; fill: currentColor; }
.footer-social .ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.footer-social .yt { background: #FF0000; }
.footer-pay { margin-top: 20px; text-align: center; }
.footer-pay-label { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 9px; }
.footer-pay-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px; font-size: .8rem; font-weight: 600; color: var(--ink, #1d1d1f); }
.pay-badge .material-symbols-outlined { font-size: 18px; color: var(--accent); }
.pay-badge.pay-amazon { color: #232F3E; font-weight: 700; }
.pay-brand { height: 28px; width: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* FAQ */
.faq-search { margin: 4px 0 22px; }
.faq-search input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; box-sizing: border-box; }
.faq-search input:focus { outline: none; border-color: var(--accent); }
.faq-group { margin-bottom: 26px; }
.faq-group-title { font-size: 1.05rem; color: var(--accent); border-bottom: 2px solid var(--line); padding-bottom: 8px; margin: 0 0 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-q { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 600; font-size: .95rem; list-style: none; position: relative; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "＋"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.faq-item[open] .faq-q::after { content: "－"; }
.faq-a { padding: 2px 18px 16px; color: var(--muted); line-height: 1.9; font-size: .9rem; }
.faq-a p { margin: 0 0 8px; }
.faq-countries { margin: 6px 0 0; padding-left: 1.1em; }
.faq-countries li { margin-bottom: 4px; }
.faq-empty, .faq-noresult { color: var(--muted); padding: 20px 0; }
.review-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.review-images img { height: 84px; width: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* Shared bits */
.breadcrumb { font-size: .8rem; color: var(--muted); margin: 18px 0 10px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 20px; }
.btn-link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: .9rem; font-weight: 500; }

/* CMS pages */
.cms-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 14px 0 48px; }
.cms-body { font-size: .92rem; color: var(--ink); line-height: 1.95; }
.cms-body h3 { font-size: 1.05rem; margin: 22px 0 10px; font-weight: 700; }
.cms-body p { margin: 10px 0; }
.cms-body table { width: 100%; border-collapse: collapse; margin: 12px 0; border-radius: 12px; overflow: hidden; }
.cms-body th, .cms-body td { border-bottom: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top; font-size: .9rem; }
.cms-body th { background: var(--soft); white-space: nowrap; width: 34%; font-weight: 600; }
.cms-body h2 { font-size: 1.2rem; font-weight: 800; margin: 28px 0 12px; letter-spacing: -.01em; }
.cms-body ol, .cms-body ul { margin: 10px 0 16px; padding-left: 1.5em; }
.cms-body li { margin: 6px 0; }
.cms-body .cms-lead { color: var(--muted); }
.cms-body .cms-meta { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Product detail */
.pdp { display: grid; gap: 28px; margin: 8px 0 36px; }
.pdp-main { background: var(--soft); border-radius: 24px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.noimg.big { font-size: 1rem; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdp-thumbs .thumb { width: 64px; height: 64px; border: 2px solid transparent; border-radius: 14px; padding: 0; overflow: hidden; cursor: pointer; background: var(--soft); }
.pdp-thumbs .thumb.active { border-color: var(--accent); }
.pdp-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.pdp-part { color: var(--muted); font-size: .82rem; margin: 10px 0; }
.pdp-price { color: var(--price); font-weight: 600; font-size: 2rem; letter-spacing: -.02em; margin: 16px 0; }
.pdp-price .tax { font-size: .8rem; color: var(--muted); font-weight: 400; }
.pdp-price .excl { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.pdp-stock { font-size: .9rem; margin: 12px 0 20px; font-weight: 600; }
.pdp-stock.in { color: #1c7c43; }
.pdp-stock.out { color: #c0362c; }
.pdp-stock .low { color: #b76e00; font-weight: 500; }
.pdp-buy { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.pdp-buy label { font-size: .8rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.pdp-buy input { width: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; }
.btn-cart { flex: 1; min-width: 200px; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 16px 28px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s; }
.btn-cart:hover { background: var(--accent-dark); transform: scale(1.015); }
.pdp-restock { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.pdp-restock p { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.pdp-restock label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.pdp-restock input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.btn-restock { width: 100%; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 14px; font-size: .95rem; font-weight: 600; cursor: pointer; }
.pdp-desc { margin-top: 32px; }
.pdp-desc h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.desc-body { font-size: .92rem; color: var(--ink); line-height: 1.85; word-break: break-word; }
.desc-body img { height: auto; margin: 10px 0; border-radius: 10px; }
.desc-body a { color: var(--accent); text-decoration: underline; }
.desc-body table { width: 100% !important; border-collapse: collapse; margin: 12px 0; font-size: .9rem; border-radius: 12px; overflow: hidden; }
.desc-body td, .desc-body th { border-bottom: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.desc-body th { background: var(--soft); }
.desc-body h2, .desc-body h3, .desc-body h4 { margin: 18px 0 10px; font-size: 1.05rem; font-weight: 700; }

/* Favourite button */
.pdp-fav { margin: 6px 0 16px; }
.pdp-fav .fav { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: .85rem; font-weight: 500; cursor: pointer; transition: border-color .15s; }
.pdp-fav .fav .material-symbols-outlined { font-size: 20px; }
.pdp-fav .fav.on { border-color: var(--accent); color: var(--accent); background: #f0f7ff; }

/* Reviews */
.reviews { margin: 12px 0 48px; }
.reviews-h { font-size: 1.25rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.reviews-avg { font-size: .9rem; color: var(--muted); font-weight: 400; }
.reviews-avg strong { color: var(--ink); font-size: 1.1rem; }
.stars { color: #ff9f0a; letter-spacing: 1px; }
.reviews-note { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.reviews-note a { color: var(--accent); }
.review-form { background: var(--soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 580px; }
.review-form .rf-row { display: flex; align-items: center; gap: 12px; }
.review-form select, .review-form input, .review-form textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; font-family: inherit; background: #fff; }
.review-form textarea { resize: vertical; }
.review-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.review-author { color: var(--ink); font-weight: 600; }
.review-vp { background: #edf9f0; color: #1c7c43; border-radius: 999px; padding: 2px 10px; font-size: .7rem; }
.review-title { font-weight: 700; font-size: .95rem; margin: 4px 0; }
.review-body { font-size: .92rem; line-height: 1.75; }
.review-reply { margin-top: 12px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: .86rem; color: var(--ink); }
.review-reply strong { color: var(--accent); }

/* Cart */
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .noimg { font-size: .56rem; color: var(--muted); }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-name { font-size: .95rem; color: var(--ink); font-weight: 500; }
.cart-part { font-size: .74rem; color: var(--muted); }
.cart-unit { font-size: .8rem; color: var(--muted); }
.cart-qty input { width: 60px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.cart-line { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-del button { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.cart-summary { margin: 24px 0 48px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cart-total { font-size: 1.1rem; }
.cart-total strong { color: var(--ink); font-size: 1.5rem; letter-spacing: -.02em; }
.btn-checkout { display: inline-block; background: var(--accent); color: #fff; padding: 16px 44px; border-radius: 999px; font-weight: 600; transition: transform .15s, background .15s; }
.btn-checkout:hover { background: var(--accent-dark); transform: scale(1.015); }

/* Checkout */
.co-grid { display: grid; gap: 24px; margin: 8px 0 48px; }
.co-h { font-size: 1.1rem; font-weight: 700; margin: 22px 0 14px; }
.co-h:first-child { margin-top: 0; }
.co-fields label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.co-fields input, .co-fields select, .co-fields textarea { padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
.co-fields select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e6e73' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 11px; }
.co-fields .req { color: var(--accent); font-size: .68rem; }
/* Opt-in / register checkboxes: checkbox sits in front of the sentence, larger & easier to tap */
.co-fields label.co-register { flex-direction: row; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--ink); margin-top: 2px; cursor: pointer; }
.co-fields label.co-register input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; border-radius: 6px; accent-color: var(--accent); cursor: pointer; }
.co-fields label.co-register span { flex: 1; line-height: 1.6; }
.co-fields label.co-register a { color: var(--accent); }
.co-radio { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: .95rem !important; color: var(--ink) !important; background: var(--soft); padding: 14px 16px; border-radius: 12px; }
.co-note { font-size: .8rem; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.co-summary { background: var(--soft); border-radius: var(--radius); padding: 22px; align-self: start; }
.co-items { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.co-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: .85rem; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.co-it-q { color: var(--muted); }
.co-it-p { color: var(--ink); font-weight: 600; white-space: nowrap; }
.co-totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-bottom: 18px; font-size: .9rem; }
.co-totals dt { color: var(--muted); }
.co-totals dd { text-align: right; }
.co-totals .co-grand { font-weight: 700; font-size: 1.2rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; letter-spacing: -.02em; }
.co-submit { width: 100%; text-align: center; border: none; cursor: pointer; margin-bottom: 12px; }
.co-done { padding: 48px 24px; }
.co-done h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.co-done-no { font-size: 1.05rem; margin: 12px 0; }
.co-promo { margin-bottom: 14px; }
.co-promo-row { display: flex; gap: 8px; }
.co-promo-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; background: #fff; }
.co-promo-row button { background: var(--ink); color: #fff; border: none; border-radius: 10px; padding: 0 16px; font-weight: 600; cursor: pointer; font-size: .85rem; white-space: nowrap; }
.co-promo-ok { color: #1c7c43; font-size: .8rem; margin-top: 6px; }
.co-promo-err { color: #c0362c; font-size: .8rem; margin-top: 6px; }
.co-promo-bal { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.co-minus { color: #1c7c43; }
.co-pending { color: var(--muted); font-size: .8rem; font-weight: 400; }
.co-earn { font-size: .82rem; color: var(--accent); margin: -4px 0 12px; }
.co-methods { margin-bottom: 14px; }
.co-mh { font-size: .92rem; font-weight: 700; margin: 14px 0 8px; }
.co-method { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: .9rem; background: #fff; }
.co-method:has(input:checked) { border-color: var(--accent); background: #f0f7ff; }
.co-method input { margin: 0; flex: 0 0 auto; }
.co-method-name { flex: 1; display: flex; flex-direction: column; }
.co-method-name small { color: var(--muted); font-size: .72rem; }
.co-method-fee { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Auth forms */
.auth-form { max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; margin: 8px 0; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--muted); }
.auth-form input { padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; }
.auth-form .req { color: var(--accent); font-size: .68rem; }
.btn-primary { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 15px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 6px; transition: background .15s, transform .15s; }
.btn-primary:hover { background: var(--accent-dark); transform: scale(1.01); }
.auth-alt { font-size: .85rem; color: var(--muted); margin: 16px 0 48px; }
.auth-alt a { color: var(--accent); }

/* Account */
.account-greeting { margin: 6px 0 18px; font-size: 1.05rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.account-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; transition: transform .2s, box-shadow .2s; }
.account-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.account-tile .ico { font-size: 1.5rem; }
.account-tile small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.account-tile.disabled { color: #c7c7cc; }
.account-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 40px; }
.account-info h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.account-info dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; font-size: .9rem; }
.account-info dt { color: var(--muted); }
.acct-empty { color: var(--muted); font-size: .9rem; }
.order-history { width: 100%; border-collapse: collapse; font-size: .88rem; }
.order-history th, .order-history td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.order-history th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.ostat { border-radius: 999px; padding: 3px 12px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.ostat.st-pend { background: #fff4e0; color: #b76e00; }
.ostat.st-paid { background: #e8f1ff; color: #0058b0; }
.ostat.st-done { background: #edf9f0; color: #1c7c43; }
.ostat.st-cancel { background: #fdecea; color: #c0362c; }
.point-banner { display: flex; align-items: center; justify-content: space-between; background: var(--soft); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 18px; }
.pb-label { font-size: .85rem; color: var(--muted); }
.pb-value { font-size: 1.6rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.pb-value small { font-size: .9rem; }
.pt-plus { color: #1c7c43; font-weight: 600; }
.pt-minus { color: #c0362c; font-weight: 600; }
.oh-link { color: var(--accent); font-weight: 600; }

/* Order detail */
.od-head { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.od-head .od-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.od-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.od-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: transform .15s, box-shadow .15s; }
.od-item:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.od-item-img { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.od-item-img img { width: 100%; height: 100%; object-fit: cover; }
.od-item-img .noimg { font-size: .56rem; color: var(--muted); }
.od-item-info { flex: 1; min-width: 0; }
.od-item-name { font-size: .92rem; font-weight: 600; margin: 0 0 3px; }
.od-item-part { font-size: .74rem; color: var(--muted); margin: 0 0 3px; }
.od-item-qty { font-size: .8rem; color: var(--muted); margin: 0; }
.od-item-line { font-weight: 700; white-space: nowrap; }
.od-totals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: .9rem; }
.od-totals dt { color: var(--muted); }
.od-totals dd { text-align: right; margin: 0; font-weight: 600; }
.od-totals .od-minus { color: #c0362c; }
.od-totals .od-grand { font-size: 1.1rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; }
.od-totals .od-grand small { font-size: .7rem; color: var(--muted); font-weight: 400; }
.od-meta { display: grid; gap: 14px; margin-bottom: 20px; }
.od-meta-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.od-meta-box h2 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.od-meta-box dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: .88rem; }
.od-meta-box dt { color: var(--muted); }
.od-meta-box p { font-size: .9rem; line-height: 1.7; }

/* Tablet / desktop */
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); } .account-grid { grid-template-columns: repeat(4, 1fr); } .od-head { grid-template-columns: repeat(3, 1fr); } .od-meta { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .pdp { grid-template-columns: 1fr 1fr; align-items: start; } .co-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
