:root {
    --shop-black: #000000;
    --shop-ink: #0b0b0b;
    --shop-text: #111111;
    --shop-muted: rgba(0, 0, 0, .60);
    --shop-faint: rgba(0, 0, 0, .10);
    --shop-canvas: #f0eeed;
    --shop-canvas-2: #f7f7f7;
    --shop-white: #ffffff;
    --shop-red: #ef3340;
    --shop-green: #157f3d;
    --shop-radius: 18px;
}

html { scroll-behavior: smooth; }
body,
body.home-mode {
    margin: 0;
    background: var(--shop-white);
    color: var(--shop-text);
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

.announcement {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--shop-black);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    text-align: center;
}
.announcement a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.topbar,
.home-mode .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 76px;
    border-bottom: 1px solid var(--shop-faint);
    background: rgba(255,255,255,.96);
    box-shadow: none;
    backdrop-filter: blur(16px);
}
.topbar .wrap,
.home-mode .topbar .wrap {
    width: 100%;
    max-width: none;
    height: 76px;
    margin: 0 auto;
    padding: 0 clamp(20px, 2.2vw, 48px);
    display: flex;
    align-items: center;
    gap: 34px;
}
.brand,
.home-mode .brand {
    min-width: 210px;
    gap: 11px;
    color: var(--shop-black);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}
.brand-mark,
.home-mode .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--shop-black);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}
.nav { gap: 2px; }
.nav a,
.home-mode .nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    color: #202020;
    font-size: 14px;
    font-weight: 500;
}
.nav a.active,
.nav a:hover,
.home-mode .nav a.active,
.home-mode .nav a:hover {
    background: var(--shop-canvas);
    color: var(--shop-black);
}
.header-search {
    width: min(300px, 24vw);
    min-width: 220px;
    height: 42px;
    padding: 3px 3px 3px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--shop-canvas-2);
}
.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--shop-text);
}
.header-search .btn {
    min-height: 34px;
    height: 34px;
    padding: 0 15px;
}
.userbar,
.home-mode .userbar {
    margin-left: auto;
    color: var(--shop-text);
}
.userbar > span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-menu-trigger { display: none; }

.wrap {
    width: 100%;
    max-width: none;
    padding-left: clamp(20px, 2.2vw, 48px);
    padding-right: clamp(20px, 2.2vw, 48px);
}
main.wrap {
    min-height: 62vh;
    padding-top: 30px;
    padding-bottom: 80px;
}
.site-main-home {
    min-height: 0;
    background: #fff;
}

.btn,
.home-mode .userbar .btn,
.market-shell .btn,
.catalog-actions .btn {
    min-height: 42px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 999px;
    background: #fff;
    color: var(--shop-black);
    box-shadow: none;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover,
.market-shell .btn:hover,
.catalog-actions .btn:hover {
    transform: none;
    border-color: var(--shop-black);
    box-shadow: none;
}
.btn.primary,
.home-mode .userbar .btn.primary,
.market-shell .btn.primary,
.catalog-actions .btn.primary {
    border-color: var(--shop-black);
    background: var(--shop-black);
    color: #fff;
    box-shadow: none;
}
.btn.primary:hover { background: #292929; }
.btn.small {
    min-height: 36px;
    height: 36px;
    padding: 0 15px;
    font-size: 13px;
}
.btn.danger {
    border-color: rgba(239,51,64,.24);
    background: #fff;
    color: var(--shop-red);
}
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0,0,0,.22);
    outline-offset: 2px;
}

.shop-footer {
    margin-top: 0;
    padding: 68px 0 26px;
    background: #f0f0f0;
    border-top: 1px solid rgba(0,0,0,.08);
}
.footer-grid {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 2.2vw, 48px) 52px;
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 1fr));
    gap: 52px;
}
.footer-brand strong {
    display: block;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 900;
}
.footer-brand p,
.footer-col a {
    color: var(--shop-muted);
    font-size: 13px;
    line-height: 1.8;
}
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col strong { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
    width: 100%;
    margin: 0 auto;
    padding: 22px clamp(20px, 2.2vw, 48px) 0;
    border-top: 1px solid rgba(0,0,0,.10);
    color: var(--shop-muted);
    font-size: 12px;
}

.commerce-home {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px clamp(20px, 2.2vw, 48px) 0;
}
.home-command {
    display: grid;
    grid-template-columns: 242px minmax(0,1fr);
    align-items: stretch;
}
.hero-category-menu {
    min-height: 530px;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    background: var(--shop-black);
    color: #fff;
}
.hero-category-title {
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.18);
}
.hero-category-title strong { font-size: 18px; }
.hero-category-title span { color: rgba(255,255,255,.48); font-size: 10px; }
.hero-category-links { display: grid; }
.hero-category-links button {
    min-height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: transparent;
    color: rgba(255,255,255,.82);
    text-align: left;
}
.hero-category-links button:hover { color: #fff; }
.hero-category-links small { color: rgba(255,255,255,.38); font-size: 10px; }
.hero-category-menu > a {
    min-height: 42px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.commerce-hero {
    min-height: 530px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
    overflow: hidden;
    border-radius: 0;
    background: var(--shop-canvas);
}
.home-command .commerce-hero { grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); }
.home-command .commerce-hero-copy { padding: 54px 30px 46px 42px; }
.home-command .commerce-hero h1 { font-size: clamp(46px, 4.4vw, 64px); }
.commerce-hero-copy {
    padding: 66px 34px 52px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.commerce-eyebrow {
    margin-bottom: 18px;
    color: var(--shop-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.commerce-hero h1 {
    max-width: 650px;
    margin: 0;
    color: var(--shop-black);
    font-size: clamp(48px, 5.3vw, 74px);
    line-height: .98;
    font-weight: 900;
}
.commerce-hero-copy > p {
    max-width: 610px;
    margin: 24px 0 28px;
    color: var(--shop-muted);
    font-size: 16px;
    line-height: 1.65;
}
.commerce-search {
    max-width: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
}
.commerce-search input,
.search {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #fff;
    color: var(--shop-text);
}
.commerce-search .btn { height: 50px; }
.commerce-metrics {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.commerce-metric {
    min-height: 62px;
    padding: 0 24px;
    border-left: 1px solid rgba(0,0,0,.12);
}
.commerce-metric:first-child {
    padding-left: 0;
    border-left: 0;
}
.commerce-metric strong {
    display: block;
    color: var(--shop-black);
    font-size: 28px;
    line-height: 1.1;
}
.commerce-metric span {
    display: block;
    margin-top: 5px;
    color: var(--shop-muted);
    font-size: 12px;
}
.commerce-visual {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    background: #e7e4e2;
}
.commerce-visual-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.visual-product {
    position: absolute;
    width: 142px;
    padding: 8px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
}
.visual-product.one { left: 26px; bottom: 28px; }
.visual-product.two { right: 26px; top: 28px; }
.visual-product img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}
.visual-product span {
    display: block;
    padding-top: 7px;
    color: var(--shop-text);
    font-size: 11px;
    font-weight: 700;
}
.service-strip {
    min-height: 116px;
    margin-bottom: 68px;
    padding: 24px 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    background: var(--shop-black);
    color: #fff;
}
.service-item { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.18); }
.service-item:first-child { border-left: 0; padding-left: 0; }
.service-item strong { display: block; font-size: 17px; }
.service-item span { display: block; margin-top: 7px; color: rgba(255,255,255,.58); font-size: 12px; }

.home-section { margin-bottom: 76px; }
.home-section-heading,
.catalog-head {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}
.home-section-heading h2,
.catalog-head h2 {
    margin: 0;
    color: var(--shop-black);
    font-size: 38px;
    line-height: 1.08;
    font-weight: 900;
}
.home-section-heading p,
.catalog-head .muted,
.catalog-band .muted { margin: 7px 0 0; color: var(--shop-muted); }
.category-showcase {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.category-chip,
.market-categories .category-chip {
    min-height: 72px;
    padding: 14px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--shop-canvas);
    color: var(--shop-text);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}
.category-chip:hover,
.market-categories .category-chip:hover { background: #e3e0df; }
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.featured-grid .showcase-card:nth-child(n+5) { display: none; }
.showcase-card,
.showcase-card.wide,
.catalog-band .product-card,
.product-card {
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--shop-text);
    box-shadow: none;
}
.showcase-card.wide { grid-row: auto; }
.showcase-media,
.catalog-band .product-image,
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    border-radius: var(--shop-radius);
    background: var(--shop-canvas);
}
.showcase-media img,
.showcase-card.wide .showcase-media img,
.product-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform .25s ease;
}
.showcase-card:hover .showcase-media img,
.product-card:hover .product-image { transform: scale(1.025); }
.showcase-badge { display: none; }
.showcase-info,
.product-body { padding: 14px 0 0; gap: 8px; }
.showcase-title,
.showcase-card.wide .showcase-title,
.product-title,
.catalog-band .product-title {
    min-height: 0;
    color: var(--shop-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.42;
}
.showcase-row { align-items: baseline; }
.showcase-price,
.price,
.catalog-band .price {
    color: var(--shop-black);
    font-size: 22px;
    font-weight: 900;
}
.showcase-specs { gap: 6px; color: var(--shop-muted); }
.showcase-specs span,
.showcase-card.wide .showcase-specs span {
    min-height: 25px;
    padding: 3px 8px;
    border: 0;
    border-radius: 5px;
    background: var(--shop-canvas-2);
    color: var(--shop-muted);
}
.catalog-band {
    padding: 0;
    background: #fff;
    border-top: 0;
}
.catalog-band .grid,
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 20px;
}
.catalog-band .product-card:hover,
.product-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}
.catalog-band .pill,
.pill {
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 5px;
    background: var(--shop-canvas-2);
    color: var(--shop-muted);
    font-size: 11px;
    font-weight: 600;
}
.product-card .spec-grid,
.product-card .product-actions,
.product-card > .product-body > .meta-line:last-of-type { display: none; }
.catalog-toolbar {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}
.catalog-toolbar .search {
    height: 48px;
    border-color: rgba(0,0,0,.10);
    background: var(--shop-canvas-2);
}
.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.catalog-filter {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border: 1px solid var(--shop-faint);
    border-radius: var(--shop-radius);
    background: #fff;
}
.filter-title {
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--shop-faint);
}
.filter-title strong { font-size: 18px; }
.filter-title span { color: var(--shop-muted); font-size: 12px; }
.filter-group {
    padding: 18px;
    border-bottom: 1px solid var(--shop-faint);
}
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { margin: 0 0 13px; font-size: 14px; }
.catalog-filter-categories { display: grid; }
.catalog-filter-categories .category-chip {
    min-height: 38px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-radius: 0;
    background: transparent;
    color: var(--shop-muted);
    font-size: 13px;
    font-weight: 500;
}
.catalog-filter-categories .category-chip:last-child { border-bottom: 0; }
.catalog-filter-categories .category-chip:hover { background: transparent; color: var(--shop-black); }
.price-filter {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 7px;
}
.price-filter input {
    width: 100%;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--shop-faint);
    border-radius: 8px;
    background: var(--shop-canvas-2);
}
.filter-group .btn { width: 100%; }
.filter-copy { display: grid; gap: 9px; color: var(--shop-muted); font-size: 12px; }
.filter-copy span { padding-left: 10px; border-left: 2px solid var(--shop-black); }
.catalog-results { min-width: 0; }
.catalog-result-bar {
    min-height: 58px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.catalog-result-bar > div { display: flex; align-items: baseline; gap: 10px; }
.catalog-result-bar > div strong { font-size: 22px; }
.catalog-result-bar > div span { color: var(--shop-muted); font-size: 12px; }
.catalog-result-bar label { display: flex; align-items: center; gap: 8px; color: var(--shop-muted); font-size: 12px; }
.catalog-result-bar select {
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--shop-faint);
    border-radius: 999px;
    background: #fff;
    color: var(--shop-text);
}
.catalog-results .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.page-kicker {
    margin-bottom: 10px;
    color: var(--shop-muted);
    font-size: 13px;
}
.purchase-steps {
    margin-bottom: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    border-bottom: 1px solid var(--shop-faint);
}
.purchase-step {
    min-height: 58px;
    display: flex;
    align-items: center;
    color: rgba(0,0,0,.34);
    font-size: 13px;
    font-weight: 700;
}
.purchase-step span { padding-bottom: 16px; }
.purchase-step.done { color: var(--shop-muted); }
.purchase-step.active { color: var(--shop-black); border-bottom: 3px solid var(--shop-black); }
.title-row {
    min-height: 0;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.title-row h1 {
    margin: 0;
    color: var(--shop-black);
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
}
.title-row .muted { margin-top: 8px; }

.detail-page { gap: 24px; }
.detail-toolbar {
    min-height: 24px;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}
.detail-toolbar .btn {
    min-height: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--shop-muted);
}
.detail {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
    gap: 44px;
}
.product-gallery {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
}
.gallery-thumbs { display: grid; align-content: start; gap: 12px; }
.gallery-thumb {
    width: 96px;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--shop-canvas);
}
.gallery-thumb.active { border-color: var(--shop-black); }
.gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-image {
    width: 100%;
    aspect-ratio: 1;
    border: 0;
    border-radius: var(--shop-radius);
    background: var(--shop-canvas);
    box-shadow: none;
}
.detail-panel {
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.detail-panel h1 {
    margin: 12px 0 10px;
    color: var(--shop-black);
    font-size: 40px;
    line-height: 1.05;
    font-weight: 900;
}
.detail-merchant {
    margin: 18px 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--shop-faint);
    border-bottom: 1px solid var(--shop-faint);
}
.detail-merchant span { color: var(--shop-muted); font-size: 13px; }
.detail-panel .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spec,
.catalog-band .spec {
    min-height: 58px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--shop-canvas-2);
    color: var(--shop-muted);
}
.spec strong,
.catalog-band .spec strong { color: var(--shop-text); font-size: 14px; }
.purchase-bar {
    margin-top: 18px;
    padding-top: 18px;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    gap: 12px;
    border-top: 1px solid var(--shop-faint);
}
.purchase-bar .btn { height: 48px; }
.qty {
    height: 48px;
    grid-template-columns: 44px 58px 44px;
    border: 0;
    border-radius: 999px;
    background: var(--shop-canvas-2);
}
.qty button { background: transparent; font-size: 18px; }
.qty input {
    width: 58px;
    border: 0;
    background: transparent;
    font-weight: 700;
}
.detail-content {
    margin-top: 60px;
    border-top: 1px solid var(--shop-faint);
}
.detail-tabs {
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--shop-faint);
}
.detail-tabs span {
    display: grid;
    place-items: center;
    color: var(--shop-muted);
    font-size: 14px;
}
.detail-tabs span.active { color: var(--shop-black); border-bottom: 2px solid var(--shop-black); }
.detail-description {
    padding: 32px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.detail-description h3 { margin: 0 0 12px; font-size: 20px; }
.detail-description p { margin: 0; color: var(--shop-muted); line-height: 1.8; }
.info-table {
    width: 100%;
    margin: 12px 0;
    border: 1px solid var(--shop-faint);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: none;
}
.info-table td { padding: 13px 14px; border-top: 1px solid var(--shop-faint); }
.info-table tr:first-child td { border-top: 0; }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}
.cart-stack { display: grid; gap: 16px; }
.cart-group {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--shop-faint);
    border-radius: var(--shop-radius);
    background: #fff;
}
.merchant-band {
    min-height: 36px;
    height: auto;
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--shop-text);
}
.merchant-band span { color: var(--shop-muted); }
.cart-items { display: grid; }
.cart-item {
    display: grid;
    grid-template-columns: 28px minmax(260px, 1fr) 110px 160px 110px 70px;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--shop-faint);
}
.cart-item:first-child { border-top: 0; }
.thumb {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 12px;
    background: var(--shop-canvas);
}
.line-item { min-width: 0; gap: 14px; }
.line-item > div { min-width: 0; }
.line-item > div > div:first-child {
    color: var(--shop-text);
    font-size: 14px;
    font-weight: 700;
}
.cart-price,
.cart-subtotal { font-weight: 800; }
.cart-summary,
.checkout-summary {
    position: sticky;
    top: 104px;
    padding: 24px;
    border: 1px solid var(--shop-faint);
    border-radius: var(--shop-radius);
    background: #fff;
}
.cart-summary h2,
.checkout-summary h2 { margin: 0 0 18px; font-size: 21px; }
.summary-row {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--shop-muted);
}
.summary-row strong { color: var(--shop-text); }
.summary-row.total {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--shop-faint);
    color: var(--shop-text);
    font-size: 18px;
}
.summary-row.total strong { font-size: 24px; }
.cart-summary .btn,
.checkout-summary .btn { width: 100%; height: 50px; margin-top: 18px; }

.checkout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
}
.checkout-main { display: grid; gap: 18px; }
.panel {
    padding: 24px;
    border: 1px solid var(--shop-faint);
    border-radius: var(--shop-radius);
    background: #fff;
    box-shadow: none;
}
.panel h2 { margin: 0 0 18px; color: var(--shop-text); font-size: 20px; }
.checkout > aside.panel { position: sticky; top: 104px; }
.address-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.address {
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--shop-faint);
    border-radius: 12px;
    background: #fff;
}
.address:hover { border-color: rgba(0,0,0,.34); box-shadow: none; }
.address.active {
    border-color: var(--shop-black);
    background: #fff;
    box-shadow: inset 4px 0 0 var(--shop-black);
}
.checkout-items { display: grid; gap: 12px; }
.checkout-merchant { padding: 14px 0; border-top: 1px solid var(--shop-faint); }
.checkout-merchant:first-child { border-top: 0; }
.checkout-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 70px 100px;
    gap: 12px;
    padding: 10px 0;
    color: var(--shop-muted);
    font-size: 13px;
}
.checkout-line strong { color: var(--shop-text); }
.pay-tabs { gap: 10px; }
.pay-tabs button { min-height: 50px; }
.pay-tabs button.active {
    border-color: var(--shop-black);
    background: var(--shop-black);
    color: #fff;
}

.order-filter {
    margin-bottom: 22px;
    display: flex;
    gap: 8px;
    overflow: auto;
}
.order-filter .btn.active { background: var(--shop-black); color: #fff; border-color: var(--shop-black); }
.order-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--shop-faint);
    border-radius: var(--shop-radius);
    background: #fff;
    box-shadow: none;
}
.order-head {
    min-height: 56px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--shop-faint);
    background: var(--shop-canvas-2);
}
.order-body { padding: 18px; }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.order-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--shop-faint); }
.account-layout {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 28px;
    align-items: start;
}
.account-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--shop-faint);
    border-radius: var(--shop-radius);
    background: #fff;
}
.account-sidebar > strong { padding: 20px; border-bottom: 1px solid var(--shop-faint); font-size: 18px; }
.account-sidebar a,
.account-sidebar button {
    min-height: 46px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-radius: 0;
    background: #fff;
    color: var(--shop-muted);
    font-size: 13px;
    text-align: left;
}
.account-sidebar a:last-child { border-bottom: 0; }
.account-sidebar a:hover,
.account-sidebar button:hover,
.account-sidebar button.active { background: var(--shop-canvas-2); color: var(--shop-black); }
.account-sidebar span { font-size: 11px; }
.account-content { min-width: 0; }

.modal-mask {
    padding: 24px;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(8px);
}
.modal {
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    border: 0;
    border-radius: var(--shop-radius);
    background: #fff;
    box-shadow: 0 34px 100px rgba(0,0,0,.28);
}
.modal.auth-modal { width: min(900px, 100%); }
.modal-head {
    height: 62px;
    padding: 0 22px;
    border-bottom: 1px solid var(--shop-faint);
    background: #fff;
    color: var(--shop-text);
}
.modal-head .btn {
    min-height: 34px;
    height: 34px;
    padding: 0 14px;
    border-color: var(--shop-faint);
    background: #fff;
    color: var(--shop-text);
}
.modal-body { padding: 24px; }
.auth-modal .modal-head { display: none; }
.auth-modal .modal-body { padding: 0; }
.auth-shell {
    min-height: 590px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
}
.auth-brand {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--shop-radius) 0 0 var(--shop-radius);
    background: var(--shop-black) url('/static/images/supply-demo/product-1.jpg') center 68% / 100% auto no-repeat;
    color: #fff;
}
.auth-brand strong { font-size: 28px; font-weight: 900; }
.auth-brand p { max-width: 300px; color: rgba(255,255,255,.70); line-height: 1.6; }
.auth-brand span { color: rgba(255,255,255,.62); font-size: 12px; }
.auth-form-panel { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-panel h2 { margin: 0 0 8px; font-size: 30px; }
.auth-form-panel > p { margin: 0 0 24px; color: var(--shop-muted); line-height: 1.6; }
.auth-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.form-grid { gap: 14px; }
.field { gap: 7px; }
.field label,
.field span { color: var(--shop-text); font-size: 13px; font-weight: 700; }
.field input,
.field textarea,
.field select {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--shop-faint);
    border-radius: 10px;
    background: #fff;
    color: var(--shop-text);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.search:focus {
    border-color: var(--shop-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.empty {
    min-height: 250px;
    border: 1px dashed rgba(0,0,0,.16);
    border-radius: var(--shop-radius);
    background: var(--shop-canvas-2);
    color: var(--shop-muted);
    box-shadow: none;
}
.toast { border-radius: 999px; background: var(--shop-black); }

@media (max-width: 1100px) {
    .topbar .wrap,
    .home-mode .topbar .wrap { gap: 18px; }
    .brand { min-width: auto; }
    .nav a { padding: 0 10px; }
    .header-search { display: none; }
    .commerce-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); }
    .home-command { grid-template-columns: 210px minmax(0,1fr); }
    .home-command .commerce-hero { grid-template-columns: minmax(0,1fr) minmax(300px,.78fr); }
    .hero-category-menu { padding-left: 15px; padding-right: 15px; }
    .commerce-hero-copy { padding-left: 38px; }
    .featured-grid,
    .catalog-band .grid,
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cart-item { grid-template-columns: 28px minmax(240px, 1fr) 94px 150px 88px; }
    .cart-item .cart-remove { grid-column: 2; justify-self: start; }
}

@media (min-width: 1600px) {
    .home-command { grid-template-columns: 280px minmax(0,1fr); }
    .hero-category-menu { padding-left: 22px; padding-right: 22px; }
    .home-command .commerce-hero { grid-template-columns: minmax(0,1.05fr) minmax(620px,.95fr); }
    .home-command .commerce-hero-copy { padding-left: 56px; padding-right: 48px; }
    .home-command .commerce-hero h1 { font-size: 68px; }
    .category-showcase { grid-template-columns: repeat(10, minmax(0,1fr)); }
    .featured-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .catalog-layout { grid-template-columns: 290px minmax(0,1fr); gap: 34px; }
    .catalog-results .grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 820px) {
    .announcement { min-height: 32px; font-size: 10px; }
    .topbar,
    .home-mode .topbar { height: auto; }
    .topbar .wrap,
    .home-mode .topbar .wrap {
        height: auto;
        min-height: 62px;
        padding: 10px 16px 8px;
        flex-wrap: wrap;
    }
    .brand { width: auto; min-width: 0; font-size: 20px; }
    .brand-mark { width: 32px; height: 32px; }
    .nav {
        position: static;
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        margin-top: 8px;
        padding: 7px 0 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        border-top: 1px solid var(--shop-faint);
        background: transparent;
        overflow-x: auto;
    }
    .nav a {
        min-height: 42px;
        padding: 0 3px;
        justify-content: center;
        border-radius: 7px;
        font-size: 11px;
    }
    .userbar { margin-left: auto; }
    .userbar > span { display: none; }
    .userbar .btn { min-height: 34px; height: 34px; padding: 0 12px; font-size: 12px; }
    body { padding-bottom: 0; }
    .wrap,
    .footer-grid,
    .footer-bottom { padding-left: 16px; padding-right: 16px; }
    main.wrap { padding-top: 22px; padding-bottom: 50px; }
    .commerce-home { padding: 12px 0 0; }
    .home-command { grid-template-columns: 1fr; }
    .hero-category-menu { display: none; }
    .commerce-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 0;
    }
    .home-command .commerce-hero { grid-template-columns: 1fr; }
    .home-command .commerce-hero-copy { padding: 34px 16px 28px; }
    .home-command .commerce-hero h1 { font-size: 42px; }
    .commerce-hero-copy { padding: 34px 16px 28px; }
    .commerce-hero h1 { font-size: 42px; }
    .commerce-hero-copy > p { margin: 18px 0 22px; font-size: 14px; }
    .commerce-search { grid-template-columns: 1fr; }
    .commerce-search .btn { width: 100%; }
    .commerce-metrics { margin-top: 28px; }
    .commerce-metric { padding: 0 12px; }
    .commerce-metric strong { font-size: 22px; }
    .commerce-visual { min-height: 390px; }
    .visual-product { width: 116px; }
    .service-strip {
        margin-bottom: 44px;
        padding: 22px 16px;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 0;
    }
    .service-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .home-section,
    .catalog-band { padding-left: 16px; padding-right: 16px; }
    .home-section { margin-bottom: 48px; }
    .home-section-heading,
    .catalog-head { align-items: flex-start; flex-direction: column; }
    .home-section-heading h2,
    .catalog-head h2 { font-size: 30px; }
    .category-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-grid,
    .catalog-band .grid,
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
    .showcase-title,
    .product-title { font-size: 13px; }
    .showcase-price,
    .price,
    .catalog-band .price { font-size: 18px; }
    .showcase-row .muted,
    .product-card .meta-line { display: none; }
    .showcase-specs span:nth-child(n+3) { display: none; }
    .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filter { position: static; }
    .catalog-filter-categories { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
    .catalog-results .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .catalog-result-bar { align-items: flex-start; flex-direction: column; }
    .purchase-steps { margin-bottom: 24px; }
    .purchase-step { min-height: 48px; font-size: 11px; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar {
        position: static;
        grid-template-columns: repeat(5, minmax(100px,1fr));
        overflow-x: auto;
        border-radius: 12px;
    }
    .account-sidebar > strong { display: none; }
    .account-sidebar a,
    .account-sidebar button { padding: 0 12px; justify-content: center; white-space: nowrap; border-bottom: 0; border-right: 1px solid rgba(0,0,0,.06); }
    .title-row h1 { font-size: 32px; }
    .detail { grid-template-columns: 1fr; gap: 26px; }
    .product-gallery { grid-template-columns: 1fr; }
    .gallery-thumbs { order: 2; grid-template-columns: repeat(4, 70px); overflow: auto; }
    .gallery-thumb { width: 70px; }
    .detail-panel h1 { font-size: 30px; }
    .detail-description { grid-template-columns: 1fr; }
    .cart-layout,
    .checkout { grid-template-columns: 1fr; }
    .cart-group { padding: 12px; }
    .cart-item {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
    }
    .cart-item .line-item { align-items: flex-start; }
    .cart-item .thumb { width: 76px; height: 76px; }
    .cart-item .cart-price { grid-column: 2; }
    .cart-item .qty { grid-column: 2; }
    .cart-item .cart-subtotal { grid-column: 3; grid-row: 3; align-self: center; }
    .cart-item .cart-remove { grid-column: 3; grid-row: 1; }
    .cart-summary,
    .checkout-summary,
    .checkout > aside.panel { position: static; }
    .address-list { grid-template-columns: 1fr; }
    .checkout-line { grid-template-columns: minmax(0, 1fr) auto; }
    .checkout-line .checkout-qty,
    .checkout-line .checkout-unit { display: none; }
    .auth-shell { min-height: 0; grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form-panel { padding: 34px 22px 26px; }
    .modal-mask { padding: 12px; }
    .modal { max-height: calc(100vh - 24px); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 430px) {
    .brand span:last-child { font-size: 18px; }
    .category-showcase { grid-template-columns: 1fr 1fr; }
    .category-chip { min-height: 62px; font-size: 12px; }
    .featured-grid,
    .catalog-band .grid,
    .grid { grid-template-columns: 1fr 1fr; }
    .commerce-hero h1 { font-size: 38px; }
    .commerce-metric span { font-size: 10px; }
    .detail-panel .spec-grid { grid-template-columns: 1fr 1fr; }
    .purchase-bar { grid-template-columns: 1fr; }
    .purchase-bar .qty { width: 100%; grid-template-columns: 1fr 58px 1fr; }
}
