* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--soft) 80%, white), transparent 34%),
        linear-gradient(180deg, var(--bg), #fff 64%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shop-shell {
    width: min(1480px, calc(100% - 50px));
    margin: 56px auto;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(28, 48, 96, .14);
    overflow: hidden;
}

.topbar {
    min-height: 94px;
    display: grid;
    grid-template-columns: 190px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 38px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(130, 150, 190, .16);
}

.brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 48px;
    border-radius: 5px;
    color: #fff;
    background: #d81324;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: 0;
}

.search-bar {
    height: 56px;
    display: grid;
    grid-template-columns: auto auto minmax(160px, 1fr) 70px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(40, 68, 130, .08);
    overflow: hidden;
}

.category-chip,
.city-chip,
.search-btn {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border: 0;
    border-right: 1px solid rgba(130, 150, 190, .16);
    color: var(--ink);
    background: transparent;
    font-weight: 800;
    white-space: nowrap;
}

.city-chip {
    color: #34446b;
    font-weight: 700;
}

.city-chip svg {
    color: #ef3b2d;
}

.search-bar input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: var(--ink);
    background: transparent;
    font-size: 16px;
}

.search-btn {
    justify-content: center;
    border-right: 0;
    border-left: 1px solid rgba(130, 150, 190, .16);
    cursor: pointer;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-actions select {
    width: 150px;
    height: 52px;
    padding: 0 10px;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font-weight: 700;
}

.theme-link,
.cart-button {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent);
    cursor: pointer;
}

.user-card {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid rgba(130, 150, 190, .22);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

.user-card small,
.cart-head span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
}

.cart-button {
    position: relative;
}

.cart-button span {
    position: absolute;
    top: -6px;
    left: -4px;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.subnav {
    height: 66px;
    display: flex;
    align-items: center;
    gap: 44px;
    padding-left: 330px;
    background: rgba(255, 255, 255, .66);
    border-bottom: 1px solid rgba(130, 150, 190, .12);
}

.subnav a {
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

.layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    padding: 12px 28px 48px;
}

.category-sidebar {
    transform: translateY(-56px);
    position: relative;
    z-index: 30;
}

.category-main {
    width: 280px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-left: 10px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent);
    font-size: 20px;
    font-weight: 800;
}

.category-list {
    margin-top: 14px;
    padding: 12px;
    background: #fff;
    border-radius: 14px 0 0 14px;
    border: 1px solid rgba(130, 150, 190, .16);
    border-right: 0;
    box-shadow: 0 18px 48px rgba(45, 62, 106, .12);
}

.category-menu-wrap {
    position: relative;
}

.category-list button,
.category-list a {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: 34px 1fr 24px;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.category-list button.active,
.category-list button:hover,
.category-list a:hover,
.category-list a.mega-active {
    background: color-mix(in srgb, var(--accent) 13%, white);
}

.category-list svg {
    color: var(--primary);
}

.mega-menu {
    position: absolute;
    top: var(--mega-top, 14px);
    left: 100%;
    z-index: 20;
    width: min(920px, calc(100vw - 430px));
    min-height: var(--mega-min-height, 560px);
    max-height: min(760px, calc(100vh - 76px));
    display: none;
    padding: 22px;
    border: 1px solid rgba(130, 150, 190, .18);
    border-radius: 0 18px 18px 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 22px 24px 60px rgba(35, 50, 90, .16);
    overflow: auto;
    opacity: 0;
    transform: translateX(-6px);
    pointer-events: none;
    transition: top .14s ease, opacity .14s ease, transform .14s ease;
}

.mega-menu.open {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.mega-menu::before {
    display: none;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

.mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.mega-panel-head span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mega-panel-head h3 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.mega-panel-head button,
.mega-panel-head .mega-cta,
.mega-card button,
.mega-card a {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.mega-panel-head button,
.mega-panel-head .mega-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-weight: 850;
    white-space: nowrap;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mega-card {
    min-height: 190px;
    padding: 18px 20px;
    border: 1px solid rgba(130, 150, 190, .22);
    border-radius: 12px;
    background: #fff;
}

.mega-card button,
.mega-card a,
.mega-card span {
    display: block;
    width: 100%;
    padding: 5px 0;
    text-align: left;
    line-height: 1.25;
}

.mega-card .mega-title {
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 950;
}

.mega-card button:not(.mega-title),
.mega-card a:not(.mega-title) {
    color: #203150;
    font-size: 15px;
}

.mega-card .mega-depth-1 { padding-left: 12px; color: var(--muted); }
.mega-card .mega-depth-2 { padding-left: 24px; color: var(--muted); font-size: 14px; }
.mega-card .mega-depth-3,
.mega-card .mega-depth-4 { padding-left: 36px; color: var(--muted); font-size: 13px; }

.mega-card button:hover,
.mega-card a:hover {
    color: var(--primary);
}

.mega-card span {
    color: var(--muted);
    font-size: 14px;
}

.main-content {
    min-width: 0;
}

.notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
}

.banner-slider {
    position: relative;
    margin-bottom: 18px;
}

.banner-track {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 16px;
}

.hero-card {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) 340px;
    align-items: center;
    gap: 18px;
    padding: 34px 88px 34px 42px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(115deg, var(--banner-from, var(--primary)), var(--banner-to, #22c55e));
    color: var(--banner-text, #fff);
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: grid;
    opacity: 0;
    transform: translateX(22px) scale(.985);
    pointer-events: none;
    transition: opacity .55s ease, transform .55s ease;
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 38%, rgba(255,255,255,.55), transparent 24%),
        linear-gradient(90deg, transparent 42%, rgba(255,255,255,.38));
}

.hero-copy,
.hero-art {
    position: relative;
    z-index: 1;
}

.hero-copy {
    min-width: 0;
}

.hero-copy h1 {
    margin: 0;
    max-width: 560px;
    color: var(--banner-text, #fff);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 500px;
    color: rgba(255,255,255,.92);
    font-size: 17px;
    line-height: 1.4;
    margin: 14px 0;
}

.banner-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-actions,
.hero-tags,
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-actions {
    margin-top: 18px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    font-weight: 850;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: var(--accent);
}

.btn-light {
    color: var(--primary);
    background: rgba(255,255,255,.88);
}

.hero-tags {
    margin-top: 16px;
}

.hero-tags span,
.quick-tags button,
.quick-tags a {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: color-mix(in srgb, var(--primary) 76%, #0b2450);
    background: rgba(255,255,255,.7);
    font-weight: 750;
}

.hero-art {
    min-height: 188px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    right: 24px;
    bottom: 0;
    max-width: 330px;
    max-height: 232px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(19, 32, 68, .18));
}

.banner-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 24px rgba(19, 32, 68, .12);
    opacity: 0;
    transform: translateY(-50%) scale(.92);
    cursor: pointer;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.banner-slider:hover .banner-nav,
.banner-slider:focus-within .banner-nav {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.banner-nav.prev { left: 16px; }
.banner-nav.next { right: 16px; }

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.banner-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    cursor: pointer;
}

.banner-dots button.active {
    width: 24px;
    background: #fff;
}

.box-stack span {
    position: absolute;
    display: block;
    width: 88px;
    height: 74px;
    border-radius: 5px;
    background: linear-gradient(135deg, #d99149, #f4c17e);
    box-shadow: 0 18px 40px rgba(103, 61, 20, .18);
}

.box-stack span:nth-child(1) { right: 52px; bottom: 106px; }
.box-stack span:nth-child(2) { right: 130px; bottom: 58px; width: 106px; height: 88px; }
.box-stack span:nth-child(3) { right: 12px; bottom: 36px; width: 116px; height: 98px; }

.supply-pack {
    position: absolute;
    left: 10px;
    bottom: 34px;
    width: 130px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 18px 48px rgba(19, 32, 68, .12);
}

.supply-pack img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.supply-pack svg {
    width: 58px;
    height: 58px;
    color: var(--primary);
}

.quick-tags {
    margin: 22px 30px 42px;
    padding: 20px 28px;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 38px rgba(39, 58, 106, .08);
}

.quick-tags button,
.quick-tags a {
    cursor: pointer;
}

.catalog,
.info-grid {
    padding: 0 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}

.section-head p {
    margin: 0 0 6px;
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-head h2 {
    margin: 0;
    font-size: 34px;
}

.section-head select {
    width: 210px;
    height: 46px;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    color: var(--ink);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card,
.info-grid article {
    background: #fff;
    border: 1px solid rgba(130, 150, 190, .16);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(35, 50, 90, .08);
    overflow: hidden;
}

.product-image {
    height: 190px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--soft), #fff);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image svg {
    width: 70px;
    height: 70px;
    color: var(--primary);
}

.product-body {
    padding: 16px;
}

.product-body small {
    color: var(--muted);
    font-weight: 800;
}

.product-body h3 {
    min-height: 48px;
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.product-body p {
    min-height: 44px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.4;
}

.product-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.notice.success {
    color: #166534;
    background: #dcfce7;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.product-badges {
    min-height: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.product-badges span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--soft);
    font-size: 12px;
    font-weight: 850;
}

.card-old-price {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.link-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--primary);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.link-button:hover {
    color: var(--accent);
}

.price {
    font-size: 20px;
    font-weight: 950;
}

.stock {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.product-more {
    display: inline-flex;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 850;
}

.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(130, 150, 190, .18);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(35, 50, 90, .08);
}

.compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(130, 150, 190, .16);
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: var(--soft);
}

.compare-table td:first-child,
.compare-table th:first-child {
    width: 180px;
    font-weight: 850;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.info-grid article {
    padding: 22px;
}

.info-grid svg {
    color: var(--primary);
}

.info-grid b,
.info-grid span {
    display: block;
}

.info-grid b {
    margin-top: 12px;
    font-size: 18px;
}

.info-grid span {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    background: rgba(19, 32, 68, .46);
}

.cart-backdrop.show {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: min(440px, 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -18px 0 60px rgba(20, 34, 68, .18);
    transform: translateX(105%);
    transition: transform .22s ease;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-head {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(130, 150, 190, .16);
}

.cart-head b {
    font-size: 22px;
}

.cart-head button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    color: var(--ink);
}

.cart-items {
    flex: 1;
    overflow: auto;
    padding: 16px 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(130, 150, 190, .14);
}

.cart-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 8px;
    background: #fff;
}

.order-form {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(130, 150, 190, .16);
}

.order-form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.order-form input,
.order-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 10px;
    padding: 10px 12px;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
}

.cart-total b {
    font-size: 26px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    min-width: 280px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    background: var(--ink);
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: .2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.shop-page-shell {
    overflow: visible;
}

.shop-page {
    padding: 28px;
}

.shop-subnav {
    padding-left: 38px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:last-child {
    color: var(--ink);
    font-weight: 800;
}

.page-hero {
    margin-bottom: 24px;
    padding: 34px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, #4f8dff), color-mix(in srgb, var(--soft) 70%, white));
    color: #fff;
}

.page-hero.compact {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.page-hero p {
    margin: 0 0 8px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
}

.page-hero span {
    display: block;
    max-width: 720px;
    margin-top: 10px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
    line-height: 1.45;
}

.catalog-sort select,
.buy-row input,
.cart-line input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
}

.market-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.filter-panel,
.checkout-summary,
.product-details,
.cart-lines,
.checkout-form,
.account-grid a,
.order-list article {
    border: 1px solid rgba(130, 150, 190, .16);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(35, 50, 90, .08);
}

.filter-panel {
    align-self: start;
    display: grid;
    gap: 18px;
    padding: 18px;
}

.filter-panel h3 {
    margin: 0 0 8px;
}

.catalog-filters,
.filter-links {
    display: grid;
    gap: 10px;
}

.catalog-filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.catalog-filters input,
.catalog-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(130, 150, 190, .24);
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: var(--ink);
}

.catalog-filters .check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
}

.catalog-filters .check-row input {
    width: 18px;
    min-height: 18px;
}

.property-filter {
    display: grid;
    gap: 7px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(130, 150, 190, .16);
}

.property-filter b {
    color: var(--ink);
    font-size: 14px;
}

.property-filter small {
    color: var(--muted);
}

.brand-hero img {
    max-width: 180px;
    max-height: 110px;
    object-fit: contain;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.9);
}

.filter-panel a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 750;
}

.filter-panel a:hover {
    background: var(--soft);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(130, 150, 190, .2);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 850;
}

.pagination span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.category-tiles a,
.account-grid a {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.category-tiles a {
    border: 1px solid rgba(130, 150, 190, .16);
    border-radius: 12px;
    background: #fff;
    font-weight: 850;
}

.product-page {
    display: grid;
    grid-template-columns: minmax(300px, 480px) minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.product-gallery {
    position: relative;
    min-height: 440px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(130, 150, 190, .16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(35, 50, 90, .08);
}

.product-gallery img {
    max-width: 92%;
    max-height: 400px;
    object-fit: contain;
}

.product-gallery svg {
    width: 110px;
    height: 110px;
    color: var(--primary);
}

.product-gallery-wrap {
    min-width: 0;
}

.gallery-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-badges span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumbs button {
    aspect-ratio: 1;
    border: 1px solid rgba(130, 150, 190, .2);
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    cursor: pointer;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
    border-color: var(--primary);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 10px 0;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.product-code {
    color: var(--muted);
    font-weight: 700;
}

.product-rating {
    color: var(--accent);
    font-weight: 850;
}

.product-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(130, 150, 190, .18);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

.product-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.product-info h1 {
    margin: 10px 0;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.08;
}

.product-info p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.spec-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.spec-preview span {
    min-height: 64px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(130, 150, 190, .16);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}

.spec-preview b {
    color: var(--muted);
    font-size: 12px;
}

.purchase-card {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(130, 150, 190, .16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(35, 50, 90, .12);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 24px 0 8px;
}

.product-price-row strong {
    font-size: 30px;
    font-weight: 800;
}

.product-price-row del {
    color: var(--muted);
    font-size: 18px;
}

.buy-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    margin-top: 22px;
}

.buy-row .btn-light {
    grid-column: 1 / -1;
}

.purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.purchase-benefits {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(130, 150, 190, .16);
}

.purchase-benefits span {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
}

.purchase-benefits svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--soft);
}

.purchase-benefits b,
.purchase-benefits small {
    display: block;
}

.purchase-benefits small {
    color: var(--muted);
    line-height: 1.35;
}

.stock-in {
    color: #15803d;
    font-weight: 850;
}

.stock-out {
    color: #dc2626;
    font-weight: 850;
}

.product-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
}

.product-details {
    margin-top: 34px;
    padding: 24px;
}

.related-products {
    margin-top: 36px;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 16px 0 0;
}

.spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(130, 150, 190, .16);
}

.spec-list dt {
    color: var(--muted);
}

.spec-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    text-align: right;
}

.cart-page,
.checkout-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.checkout-page.narrow {
    grid-template-columns: minmax(300px, 540px);
    justify-content: center;
}

.cart-lines {
    overflow: hidden;
}

.cart-line {
    display: grid;
    grid-template-columns: 1fr 120px 100px 130px 42px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(130, 150, 190, .14);
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #ef4444;
}

.checkout-summary {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.checkout-summary span {
    color: var(--muted);
}

.checkout-summary strong {
    font-size: 22px;
}

.checkout-summary strong:last-of-type {
    font-size: 34px;
}

.coupon-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.checkout-form {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.checkout-form h1 {
    margin: 0 0 6px;
}

.checkout-form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 850;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.account-grid svg {
    color: var(--primary);
}

.account-grid b,
.account-grid span {
    display: block;
}

.account-grid span {
    color: var(--muted);
}

.order-list {
    display: grid;
    gap: 12px;
}

.order-list article {
    display: grid;
    grid-template-columns: 1fr 160px 160px;
    gap: 14px;
    padding: 16px;
}

.empty-state {
    padding: 24px;
    border: 1px dashed rgba(130, 150, 190, .36);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255,255,255,.7);
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 38px;
    border-top: 1px solid rgba(130, 150, 190, .14);
    background: rgba(255,255,255,.78);
}

.shop-footer span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .shop-shell {
        width: calc(100% - 24px);
        margin: 16px auto;
        border-radius: 20px;
    }

    .topbar {
        grid-template-columns: 1fr;
    }

    .search-bar {
        grid-template-columns: 1fr 54px;
    }

    .category-chip,
    .city-chip {
        display: none;
    }

    .subnav {
        padding-left: 28px;
        overflow-x: auto;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        transform: none;
        z-index: 1;
    }

    .category-main {
        width: 100%;
        margin-left: 0;
    }

    .mega-menu {
        position: static;
        width: 100%;
        min-height: 0;
        max-height: none;
        margin-top: 12px;
        border-radius: 14px;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .mega-menu::before {
        display: none;
    }

    .mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-card {
        grid-template-columns: 1fr;
        min-height: 240px;
        padding-right: 56px;
    }

    .hero-art {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-layout,
    .product-page,
    .product-content-grid,
    .cart-page,
    .checkout-page {
        grid-template-columns: 1fr;
    }

    .purchase-card {
        position: static;
    }

    .category-tiles,
    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shop-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .topbar,
    .layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-actions {
        flex-wrap: wrap;
    }

    .user-card {
        display: none;
    }

    .hero-card {
        min-height: 260px;
        padding: 34px 52px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .product-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .category-tiles,
    .account-grid,
    .spec-list,
    .order-list article,
    .cart-line,
    .buy-row {
        grid-template-columns: 1fr;
    }

    .shop-page {
        padding: 16px 14px;
    }

    .page-hero.compact,
    .shop-footer {
        display: grid;
    }

    .mega-grid {
        grid-template-columns: 1fr;
    }

    .catalog,
    .info-grid,
    .quick-tags {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
