:root {
    --primary: #111827;
    --secondary: #1d4ed8;
    --accent: #f59e0b;
    --bg: #f3f4f6;
    --surface: #fff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --green: #16a34a;
    --red: #dc2626;
    --shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.55;
}
.wrap {
    width: min(1400px, calc(100% - 40px));
    margin: auto;
}
a {
    color: inherit;
}
button,
input {
    font: inherit;
}
.announcement {
    min-height: 34px;
    display: grid;
    place-items: center;
    background: #020617;
    color: #fff;
    padding: 6px 16px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}
.promotion-strip {
    background: linear-gradient(135deg, #7c2d12, #c2410c);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.promotion-strip-inner {
    min-height: 70px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-block: 10px;
}
.promotion-strip-inner > strong {
    white-space: nowrap;
    font-size: 12px;
}
.promotion-strip-inner > small {
    color: #ffedd5;
    white-space: nowrap;
    font-size: 8px;
}
.promotion-strip-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.promotion-strip-list a {
    min-width: 190px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 9px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
}
.promotion-strip-list b {
    grid-row: 1/3;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fbbf24;
    color: #422006;
    font-size: 9px;
}
.promotion-strip-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 900;
}
.promotion-strip-list time {
    color: #fed7aa;
    font-size: 8px;
}
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 18px #02061730;
}
.header-main {
    min-height: 76px;
    display: grid;
    grid-template-columns: 230px minmax(300px, 1fr) auto;
    align-items: center;
    gap: 22px;
}
.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.brand-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 19px;
    font-weight: 900;
}
.brand small {
    display: block;
    color: #cbd5e1;
    font-size: 9px;
}
.search {
    height: 48px;
    display: flex;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 0 0 3px transparent;
}
.search:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 65%, transparent);
}
.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 17px;
    color: #111827;
}
.search button {
    width: 62px;
    border: 0;
    background: var(--accent);
    color: #111827;
    cursor: pointer;
}
.search svg {
    width: 22px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.support {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    text-decoration: none;
}
.support small {
    display: block;
    color: #cbd5e1;
    font-size: 8px;
}
.support strong {
    display: block;
    font-size: 11px;
}
.cart-button {
    height: 48px;
    border: 1px solid #ffffff30;
    border-radius: 9px;
    background: #ffffff12;
    color: #fff;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    cursor: pointer;
}
.cart-button:hover {
    border-color: var(--accent);
}
.cart-button svg {
    width: 23px;
}
.cart-count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #111827;
    font-size: 10px;
}
.catbar {
    background: color-mix(in srgb, var(--primary) 83%, #fff);
    border-top: 1px solid #ffffff14;
}
.cat-scroll {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: auto;
    scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar {
    display: none;
}
.cat-link {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}
.cat-link:hover,
.cat-link.active {
    background: #ffffff10;
    border-color: var(--accent);
}
.page {
    padding: 18px 0 52px;
}
.slider {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 17px;
    background: linear-gradient(115deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--shadow);
}
.slides {
    position: absolute;
    inset: 0;
    display: flex;
    direction: ltr;
    will-change: transform;
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    background: linear-gradient(115deg, var(--primary), var(--secondary));
}
html[dir='rtl'] .slide {
    direction: rtl;
}
html[dir='ltr'] .slide {
    direction: ltr;
}
.slide-bg {
    position: absolute;
    inset: 0;
}
.slide-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
@media (prefers-reduced-motion: reduce) {
    .slides {
        transition-duration: 0.01ms;
    }
}
.slide-bg:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--primary) 15%, transparent),
        color-mix(in srgb, var(--primary) 95%, transparent)
    );
    opacity: 0;
    pointer-events: none;
}
.slide-bg.has-overlay:after {
    opacity: 1;
}
.slide-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 48px 52px;
}
.official {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid #ffffff35;
    border-radius: 999px;
    background: #ffffff12;
    font-size: 10px;
    font-weight: 900;
}
.slide h1 {
    max-width: 760px;
    margin: 14px 0 10px;
    font-size: clamp(31px, 4.2vw, 56px);
    line-height: 1.2;
    letter-spacing: -1.2px;
}
.slide p {
    max-width: 650px;
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.9;
}
.slide-actions {
    display: flex;
    gap: 10px;
    margin-top: 23px;
}
.cta {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 20px;
    background: var(--accent);
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}
.cta.alt {
    border: 1px solid #ffffff50;
    background: #ffffff12;
    color: #fff;
}
.slide-visual {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 28px;
}
.feature-card {
    width: min(390px, 94%);
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    gap: 16px;
    padding: 19px;
    border-radius: 17px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 25px 55px #02061745;
    transform: rotate(-1.5deg);
    text-decoration: none;
    transition: 0.2s;
}
.feature-card:hover {
    transform: rotate(0) translateY(-3px);
}
.feature-card img,
.feature-placeholder {
    width: 140px;
    aspect-ratio: 1;
    border-radius: 13px;
    object-fit: cover;
    background: #e2e8f0;
}
.feature-placeholder {
    display: grid;
    place-items: center;
    padding: 10px;
    color: #64748b;
    text-align: center;
    font-weight: 900;
}
.feature-card small {
    color: var(--secondary);
    font-weight: 900;
}
.feature-card h2 {
    margin: 6px 0 9px;
    font-size: 16px;
}
.feature-price {
    color: #b45309;
    font-size: 18px;
    font-weight: 900;
}
.slider-controls {
    position: absolute;
    z-index: 6;
    right: 50%;
    bottom: 17px;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 7px;
}
.dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: #ffffff66;
    cursor: pointer;
}
.dot.active {
    width: 26px;
    border-radius: 99px;
    background: var(--accent);
}
.arrow {
    position: absolute;
    z-index: 6;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid #ffffff38;
    border-radius: 50%;
    background: #02061745;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.arrow.prev {
    right: 15px;
}
.arrow.next {
    left: 15px;
}
.benefits {
    margin: -1px 18px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0 0 15px 15px;
    background: var(--surface);
    box-shadow: 0 8px 24px #0f172a0d;
}
.benefit {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px;
    border-left: 1px solid var(--line);
}
.benefit:last-child {
    border: 0;
}
.benefit i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--secondary) 10%, #fff);
    font-style: normal;
}
.benefit strong {
    display: block;
    font-size: 11px;
}
.benefit small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}
.home-block {
    margin-top: 25px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 20px;
    box-shadow: 0 8px 25px #0f172a0a;
}
.home-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}
.home-head span {
    color: var(--secondary);
    font-size: 9px;
    font-weight: 900;
}
.home-head h2 {
    margin: 2px 0 0;
    font-size: 22px;
}
.home-head a {
    color: var(--secondary);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}
.category-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.category-tile {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--secondary) 4%, var(--surface));
    text-decoration: none;
    transition: 0.2s;
}
.category-tile:hover {
    border-color: color-mix(in srgb, var(--secondary) 45%, var(--line));
    transform: translateY(-2px);
}
.category-tile i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--secondary);
    color: #fff;
    font-style: normal;
    font-size: 17px;
    font-weight: 900;
    overflow: hidden;
}
.category-tile i img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-tile strong,
.category-tile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-tile strong {
    font-size: 11px;
}
.category-tile small {
    color: var(--muted);
    font-size: 8px;
}
.category-tile b {
    color: var(--secondary);
}
.deal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 1fr);
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
}
.deal-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
    scroll-snap-align: start;
}
.deal-media {
    min-height: 128px;
    display: grid;
    place-items: center;
    background: #f8fafc;
}
.deal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}
.deal-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 11px;
}
.deal-copy em {
    padding: 3px 6px;
    border-radius: 5px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}
.deal-copy strong {
    width: 100%;
    overflow: hidden;
    margin: 7px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}
.deal-copy b {
    margin-top: auto;
    color: #b45309;
    font-size: 14px;
}
.deal-copy b small,
.deal-copy del {
    color: var(--muted);
    font-size: 7px;
}
.layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 19px;
    margin-top: 25px;
}
.sidebar {
    position: sticky;
    top: 137px;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 6px 18px #0f172a0a;
}
.sidebar h2 {
    margin: 0;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.side-list {
    padding: 7px;
}
.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}
.side-link:hover,
.side-link.active {
    background: color-mix(in srgb, var(--secondary) 9%, #fff);
    color: var(--secondary);
}
.count {
    min-width: 22px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: #f1f5f9;
    font-size: 8px;
}
.help {
    margin: 10px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}
.help strong {
    font-size: 11px;
}
.help p {
    margin: 5px 0 8px;
    color: var(--muted);
    font-size: 9px;
}
.help a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}
.catalog-head {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}
.catalog-head h2 {
    margin: 0;
    font-size: 23px;
}
.catalog-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
}
.result {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    font-size: 10px;
    font-weight: 800;
}
.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}
.products-1 {
    grid-template-columns: minmax(0, 1fr);
}
.products-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.products-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 4px 14px #0f172a0a;
    transition: 0.22s;
}
.products-1 .card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 1.1fr);
    height: 360px;
    min-height: 0;
}
.products-1 .media {
    height: 360px;
    aspect-ratio: auto;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}
.products-1 .media img {
    object-fit: contain;
    padding: 18px;
}
.products-1 .card-body {
    height: 360px;
    padding: 30px;
}
.products-1 .category {
    font-size: 10px;
}
.products-1 .name {
    min-height: 0;
    margin: 8px 0 12px;
    font-size: 24px;
}
.products-1 .chips {
    min-height: 30px;
}
.products-1 .chip {
    padding: 5px 9px;
    font-size: 9px;
}
.products-1 .price-row {
    padding-top: 24px;
}
.products-1 .price {
    font-size: 27px;
}
.products-1 .old {
    font-size: 10px;
}
.products-1 .save {
    font-size: 9px;
}
.products-1 .actions {
    grid-template-columns: minmax(170px, 280px) 48px;
    margin-top: 20px;
}
.products-1 .add {
    min-height: 48px;
    font-size: 12px;
}
.card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 15px 30px #0f172a1a;
}
.media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
}
.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.card:hover .media img {
    transform: scale(1.035);
}
.placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #64748b;
    font-weight: 900;
}
.badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 900;
}
.discount {
    right: 9px;
    background: #dc2626;
    color: #fff;
}
.stock {
    left: 9px;
    background: #dcfce7;
    color: #166534;
}
.stock.out {
    background: #fee2e2;
    color: #991b1b;
}
.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px;
}
.category {
    color: var(--secondary);
    font-size: 8px;
    font-weight: 900;
}
.name {
    min-height: 44px;
    margin: 5px 0 8px;
    font-size: 13px;
    line-height: 1.65;
}
.name a {
    text-decoration: none;
}
.name a:hover {
    color: var(--secondary);
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 22px;
}
.chip {
    padding: 3px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #475569;
    font-size: 7px;
    font-weight: 800;
}
.price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}
.price {
    display: block;
    color: #b45309;
    font-size: 17px;
    font-weight: 900;
}
.price small {
    font-size: 8px;
}
.old {
    display: block;
    color: #94a3b8;
    font-size: 8px;
    text-decoration: line-through;
}
.save {
    color: #166534;
    font-size: 7px;
    font-weight: 900;
}
.actions {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 7px;
    margin-top: 11px;
}
.add {
    min-height: 39px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #111827;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.add:disabled {
    background: #e2e8f0;
    color: #94a3b8;
}
.details {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}
.empty {
    grid-column: 1/-1;
    padding: 65px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 17px;
    background: var(--surface);
    text-align: center;
    color: var(--muted);
}
.empty strong {
    display: block;
    color: var(--text);
    font-size: 17px;
}
.empty a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
}
.pager {
    padding: 28px 0;
}
.pager nav {
    display: flex;
    justify-content: center;
}
.footer {
    background: var(--primary);
    color: #cbd5e1;
}
.backtop {
    min-height: 48px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--primary) 82%, #fff);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
    padding: 40px 0;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand .logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}
.footer h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 12px;
}
.footer p {
    max-width: 390px;
    margin: 0;
    color: #94a3b8;
    font-size: 10px;
}
.footer-links {
    display: grid;
    gap: 8px;
}
.footer-links a,
.footer-links span {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 10px;
}
.copyright {
    padding: 15px 0;
    border-top: 1px solid #ffffff15;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #94a3b8;
    font-size: 9px;
}
.backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: none;
    background: #020617a6;
    backdrop-filter: blur(2px);
}
.backdrop.open {
    display: block;
}
.drawer {
    position: fixed;
    z-index: 71;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(450px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    transform: translateX(105%);
    transition: 0.27s;
    box-shadow: -25px 0 60px #02061740;
}
.drawer.open {
    transform: none;
}
.drawer-head {
    height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
    margin: 0;
    font-size: 18px;
}
.close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
}
.drawer-items {
    flex: 1;
    overflow: auto;
    padding: 7px 20px;
}
.cart-empty {
    padding: 60px 15px;
    text-align: center;
    color: var(--muted);
}
.cart-empty strong {
    display: block;
    color: var(--text);
}
.cart-line {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.cart-line img,
.cart-img {
    width: 68px;
    height: 68px;
    border-radius: 9px;
    object-fit: cover;
    background: #f1f5f9;
}
.cart-img {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 8px;
}
.cart-title {
    display: block;
    font-size: 11px;
}
.cart-unit {
    color: var(--muted);
    font-size: 8px;
}
.cart-options {
    display: block;
    margin-top: 3px;
    color: var(--secondary);
    font-size: 9px;
    font-weight: 800;
}
.qty {
    display: flex;
    margin-top: 7px;
}
.qty button,
.qty b {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 9px;
}
.qty button {
    cursor: pointer;
}
.remove {
    margin-top: 8px;
    border: 0;
    background: none;
    color: var(--red);
    font-size: 8px;
    cursor: pointer;
}
.line-total {
    white-space: nowrap;
    font-size: 10px;
}
.drawer-foot {
    padding: 17px 20px 20px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}
.summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 11px;
}
.summary strong {
    font-size: 17px;
}
.note {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 8px;
}
.checkout {
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}
.checkout.disabled {
    pointer-events: none;
    background: #cbd5e1;
    color: #64748b;
}
.continue {
    display: block;
    margin-top: 9px;
    text-align: center;
    color: #475569;
    text-decoration: none;
    font-size: 9px;
}
.toast {
    position: fixed;
    z-index: 80;
    right: 50%;
    bottom: 22px;
    transform: translate(50%, 120px);
    padding: 11px 15px;
    border-radius: 9px;
    background: #052e16;
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 10px;
    font-weight: 900;
    transition: 0.25s;
}
.toast.show {
    transform: translate(50%, 0);
}
@media (max-width: 1180px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .support {
        display: none;
    }
    .header-main {
        grid-template-columns: 200px minmax(260px, 1fr) auto;
    }
    .slide-copy {
        padding: 40px;
    }
    .feature-card {
        grid-template-columns: 1fr 120px;
    }
    .feature-card img,
    .feature-placeholder {
        width: 120px;
    }
}
@media (max-width: 900px) {
    .header-main {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 10px 0;
    }
    .search {
        grid-column: 1/-1;
        grid-row: 2;
    }
    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }
    .slide {
        grid-template-columns: 1fr;
    }
    .slide-copy {
        padding: 38px 28px;
    }
    .slide-visual {
        display: none;
    }
    .slider {
        min-height: 310px;
    }
    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefit:nth-child(2) {
        border-left: 0;
    }
    .benefit:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .sidebar h2,
    .help {
        display: none;
    }
    .side-list {
        display: flex;
        overflow: auto;
    }
    .side-link {
        white-space: nowrap;
    }
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .products-1 {
        grid-template-columns: minmax(0, 1fr);
    }
    .products-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .category-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .products-1 .card {
        grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
        height: 340px;
    }
    .products-1 .media,
    .products-1 .card-body {
        height: 340px;
    }
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
    .footer-grid > div:last-child {
        display: none;
    }
}
@media (max-width: 680px) {
    .wrap {
        width: min(100% - 20px, 1400px);
    }
    .announcement {
        font-size: 9px;
    }
    .logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .brand-name {
        font-size: 15px;
    }
    .brand small {
        display: none;
    }
    .cart-button {
        width: 46px;
        padding: 0;
        justify-content: center;
    }
    .cart-button > span:not(.cart-count) {
        display: none;
    }
    .cart-count {
        position: absolute;
        margin: -33px 0 0 -27px;
        min-width: 19px;
        height: 19px;
    }
    .page {
        padding-top: 10px;
    }
    .slider {
        min-height: 300px;
        border-radius: 12px;
    }
    .slide-copy {
        padding: 30px 21px;
    }
    .slide h1 {
        font-size: 30px;
    }
    .slide p {
        font-size: 11px;
    }
    .slide-actions {
        width: 100%;
    }
    .cta {
        flex: 1;
        padding: 0 10px;
    }
    .arrow {
        display: none;
    }
    .benefits {
        margin: 0;
        border-radius: 0 0 12px 12px;
    }
    .benefit {
        justify-content: flex-start;
        min-height: 63px;
        padding: 10px;
    }
    .benefit i {
        display: none;
    }
    .layout {
        margin-top: 16px;
    }
    .home-block {
        margin-top: 16px;
        padding: 14px;
    }
    .home-head h2 {
        font-size: 18px;
    }
    .category-tiles {
        grid-template-columns: 1fr;
    }
    .deal-rail {
        grid-auto-columns: minmax(245px, 82vw);
    }
    .catalog-head h2 {
        font-size: 19px;
    }
    .result {
        display: none;
    }
    .products,
    .products-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .products-1 {
        grid-template-columns: minmax(0, 1fr);
    }
    .products-1 .card {
        display: flex;
        height: auto;
        min-height: 0;
    }
    .products-1 .media {
        aspect-ratio: 16/11;
        height: auto;
    }
    .products-1 .media img {
        padding: 10px;
    }
    .products-1 .card-body {
        height: auto;
        padding: 16px;
    }
    .products-1 .name {
        font-size: 17px;
    }
    .products-1 .price {
        font-size: 20px;
    }
    .products-1 .actions {
        grid-template-columns: 1fr;
        margin-top: 13px;
    }
    .card-body {
        padding: 10px;
    }
    .name {
        min-height: 40px;
        font-size: 11px;
    }
    .price {
        font-size: 14px;
    }
    .chip:nth-child(n + 2) {
        display: none;
    }
    .actions {
        grid-template-columns: 1fr;
    }
    .details {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .copyright {
        flex-direction: column;
    }
    .drawer-items,
    .drawer-foot {
        padding-inline: 15px;
    }
}
@media (max-width: 390px) {
    .products {
        grid-template-columns: 1fr;
    }
    .card {
        display: grid;
        grid-template-columns: 125px 1fr;
    }
    .media {
        height: 100%;
        aspect-ratio: auto;
    }
    .benefits {
        grid-template-columns: 1fr;
    }
    .benefit {
        border-left: 0 !important;
        border-bottom: 1px solid var(--line);
    }
    .benefit:last-child {
        border: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid > div:first-child {
        grid-column: auto;
    }
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -2px 0 8px;
    font-size: 9px;
}
.card-rating span {
    color: #d97706;
    font-weight: 900;
}
.card-rating em {
    color: #64748b;
    font-style: normal;
}
.mini-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 7px;
    font-size: 8px;
}
.mini-rating span {
    color: #d97706;
    font-weight: 900;
}
.mini-rating em {
    color: #64748b;
    font-style: normal;
}

.wishlist-button {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #ffffff30;
    border-radius: 9px;
    background: #ffffff0d;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.wishlist-button:hover {
    border-color: #fb7185;
}
.wishlist-icon {
    color: #fb7185;
    font-size: 22px;
    line-height: 1;
}
.wishlist-count {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e11d48;
    color: #fff;
    font-size: 9px;
}
.card-wishlist,
.recent-wishlist {
    position: absolute;
    z-index: 4;
    top: 45px;
    left: 9px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fffffff2;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px #0f172a1a;
    transition: 0.2s;
}
.card-wishlist:hover,
.card-wishlist.active,
.recent-wishlist:hover,
.recent-wishlist.active {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
    transform: scale(1.06);
}
.product-wishlist.active {
    color: #e11d48;
}
.product-wishlist span {
    font-size: 17px;
}
.wishlist-drawer {
    width: min(520px, 100%);
}
.wishlist-continue {
    width: 100%;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.wishlist-line {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.wishlist-media,
.wishlist-line > img {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    text-decoration: none;
    font-size: 8px;
}
.wishlist-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wishlist-line strong,
.wishlist-line b {
    display: block;
}
.wishlist-line strong {
    margin-bottom: 5px;
    font-size: 12px;
}
.wishlist-line b {
    color: #b45309;
    font-size: 11px;
}
.wishlist-line > div > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}
.wishlist-line a,
.wishlist-line button {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--secondary);
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
}
.wishlist-line button[data-wishlist-cart] {
    background: var(--accent);
    color: #111827;
}
.wishlist-line button.remove {
    margin: 0;
    color: var(--red);
}
.wishlist-toast {
    background: #881337;
}
.recently-viewed {
    margin-top: 32px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 25px #0f172a0a;
}
.recently-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}
.recently-head span {
    color: var(--secondary);
    font-size: 9px;
    font-weight: 900;
}
.recently-head h2 {
    margin: 3px 0 0;
    font-size: 22px;
}
.recently-head button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 9px;
    cursor: pointer;
}
.recently-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 11px;
}
.recent-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}
.recent-media {
    height: 130px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #94a3b8;
    text-decoration: none;
    font-size: 8px;
}
.recent-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.recent-card > div {
    padding: 10px;
}
.recent-card h3 {
    min-height: 36px;
    overflow: hidden;
    margin: 0 0 7px;
    font-size: 10px;
    line-height: 1.7;
}
.recent-card h3 a {
    text-decoration: none;
}
.recent-card strong {
    color: #b45309;
    font-size: 10px;
}
.recent-wishlist {
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    font-size: 17px;
}
.filters-panel {
    border-top: 1px solid var(--line);
}
.filters-panel summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 17px;
    list-style: none;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.filters-panel summary::-webkit-details-marker {
    display: none;
}
.filters-panel summary::after {
    content: '⌄';
    margin-right: auto;
    color: #64748b;
    font-size: 13px;
}
.filters-panel[open] summary::after {
    transform: rotate(180deg);
}
.filters-panel summary b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: var(--secondary);
    color: #fff;
    font-size: 8px;
}
.filters-panel form {
    display: grid;
    gap: 13px;
    padding: 4px 14px 15px;
}
.filter-group {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}
.filter-group strong {
    font-size: 10px;
}
.filter-group label,
.discount-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}
.filter-group input[type='radio'],
.discount-filter input {
    accent-color: var(--secondary);
}
.price-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.price-filter input,
.filter-group select,
.sort-form select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 9px;
    outline: none;
}
.price-filter input {
    min-width: 0;
    padding: 0 8px;
}
.filter-group select,
.sort-form select {
    padding: 0 9px;
}
.price-filter input:focus,
.filter-group select:focus,
.sort-form select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 12%, transparent);
}
.apply-filters {
    min-height: 39px;
    border: 0;
    border-radius: 8px;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.clear-filters {
    color: #64748b;
    text-align: center;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}
.catalog-tools,
.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-form {
    min-width: 185px;
    padding: 5px 7px 5px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}
.sort-form label {
    color: #64748b;
    font-size: 8px;
    font-weight: 900;
}
.sort-form select {
    min-height: 30px;
    border: 0;
    font-weight: 800;
}
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: -2px 0 13px;
}
.active-filters > span {
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
}
.active-filters a {
    padding: 6px 9px;
    border: 1px solid color-mix(in srgb, var(--secondary) 18%, #e2e8f0);
    border-radius: 99px;
    background: color-mix(in srgb, var(--secondary) 6%, #fff);
    color: var(--secondary);
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
}
.active-filters a.reset {
    border-color: transparent;
    background: transparent;
    color: #dc2626;
}
@media (max-width: 1180px) {
    .recently-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .wishlist-button {
        position: relative;
        width: 46px;
        padding: 0;
        justify-content: center;
    }
    .wishlist-button > span:not(.wishlist-icon):not(.wishlist-count) {
        display: none;
    }
    .wishlist-count {
        position: absolute;
        top: -5px;
        left: -5px;
        min-width: 18px;
        height: 18px;
    }
    .recently-viewed {
        margin-top: 20px;
        padding: 14px;
    }
    .recently-head h2 {
        font-size: 18px;
    }
    .recently-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .recent-card {
        min-width: 155px;
        flex: 0 0 155px;
        scroll-snap-align: start;
    }
    .filters-panel summary {
        min-height: 42px;
    }
    .filters-panel form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .filter-group,
    .discount-filter {
        min-width: 0;
    }
    .apply-filters,
    .clear-filters {
        align-self: end;
    }
    .catalog-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .catalog-tools {
        width: 100%;
    }
    .catalog-tools .sort-form {
        width: 100%;
        min-width: 0;
    }
    .active-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
    }
    .active-filters a,
    .active-filters > span {
        flex: 0 0 auto;
    }
}
@media (max-width: 430px) {
    .filters-panel form {
        grid-template-columns: 1fr;
    }
}

/* Smart search and product comparison */
.smart-search {
    position: relative;
    overflow: visible;
}
.smart-search > input {
    border-radius: 0 9px 9px 0;
}
.smart-search > button {
    border-radius: 9px 0 0 9px;
}
.search-suggestions {
    position: absolute;
    z-index: 65;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    max-height: min(520px, 70vh);
    overflow-y: auto;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 60px #02061740;
}
.search-suggestions[hidden] {
    display: none;
}
.search-result {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    padding: 9px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    text-decoration: none;
}
.search-result:hover,
.search-result.selected {
    background: color-mix(in srgb, var(--secondary) 7%, #fff);
}
.search-result img,
.search-result-placeholder {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f1f5f9;
    object-fit: cover;
    color: #94a3b8;
    font-size: 8px;
}
.search-result-copy {
    min-width: 0;
}
.search-result-copy small,
.search-result-copy strong,
.search-result-copy span,
.search-result-price b,
.search-result-price del {
    display: block;
}
.search-result-copy small {
    color: var(--secondary);
    font-size: 8px;
    font-weight: 900;
}
.search-result-copy strong {
    margin: 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}
.search-result-copy span {
    color: #64748b;
    font-size: 8px;
}
.search-result-price {
    direction: ltr;
    text-align: left;
}
.search-result-price b {
    color: #b45309;
    font-size: 10px;
}
.search-result-price del {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 8px;
}
.search-all {
    width: 100%;
    min-height: 43px;
    border: 0;
    background: #f8fafc;
    color: var(--secondary);
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}
.search-loading,
.search-empty {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 9px;
}
.search-empty {
    flex-direction: column;
}
.search-empty strong {
    color: #111827;
    font-size: 11px;
}
.search-loading i {
    width: 18px;
    height: 18px;
    border: 2px solid #dbeafe;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: storefront-spin 0.75s linear infinite;
}
@keyframes storefront-spin {
    to {
        transform: rotate(360deg);
    }
}

.compare-button {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #ffffff30;
    border-radius: 9px;
    background: #ffffff0d;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.compare-button:hover {
    border-color: var(--accent);
}
.compare-button > span:first-child {
    color: var(--accent);
    font-size: 20px;
}
.compare-count {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #111827;
    font-size: 9px;
}
.card-compare,
.related-compare {
    position: absolute;
    z-index: 4;
    top: 84px;
    left: 9px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fffffff2;
    color: #475569;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 15px #0f172a1a;
    transition: 0.2s;
}
.card-compare:hover,
.card-compare.active,
.related-compare:hover,
.related-compare.active {
    border-color: color-mix(in srgb, var(--secondary) 30%, #e2e8f0);
    background: color-mix(in srgb, var(--secondary) 8%, #fff);
    color: var(--secondary);
    transform: scale(1.06);
}
.related-card {
    position: relative;
}
.related-compare {
    top: 9px;
    left: 9px;
}
.product-compare.active {
    color: var(--secondary);
}

.compare-panel {
    position: fixed;
    z-index: 72;
    right: 50%;
    bottom: 18px;
    width: min(1180px, calc(100% - 30px));
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 30px 90px #02061780;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 35px) scale(0.98);
    transition: 0.24s ease;
}
.compare-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(50%, 0) scale(1);
}
.compare-head {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
}
.compare-head span {
    color: var(--secondary);
    font-size: 8px;
    font-weight: 900;
}
.compare-head h2 {
    margin: 3px 0 0;
    font-size: 20px;
}
.compare-head h2 b {
    color: var(--secondary);
}
.compare-items {
    --compare-columns: 1;
    display: grid;
    grid-template-columns: repeat(var(--compare-columns), minmax(220px, 1fr));
    overflow: auto;
    padding: 18px;
    background: #f8fafc;
}
.compare-card {
    position: relative;
    min-width: 0;
    padding: 14px;
    border-left: 1px solid var(--line);
    background: var(--surface);
}
.compare-card:first-child {
    border-radius: 0 12px 12px 0;
}
.compare-card:last-child {
    border-left: 0;
    border-radius: 12px 0 0 12px;
}
.compare-remove {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
}
.compare-media {
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    text-decoration: none;
    font-size: 9px;
}
.compare-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.compare-card h3 {
    min-height: 42px;
    margin: 12px 0 4px;
    font-size: 13px;
}
.compare-card h3 a {
    color: var(--text);
    text-decoration: none;
}
.compare-price {
    display: block;
    margin-bottom: 11px;
    color: #b45309;
    font-size: 13px;
}
.compare-card dl {
    margin: 0;
    border-top: 1px solid var(--line);
}
.compare-card dl > div {
    min-height: 41px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-size: 8px;
}
.compare-card dt {
    color: #64748b;
}
.compare-card dd {
    margin: 0;
    font-weight: 800;
}
.compare-card dd.available {
    color: #15803d;
}
.compare-card dd.unavailable {
    color: #dc2626;
}
.compare-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
}
.compare-actions button,
.compare-actions a,
.compare-actions span {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--secondary);
    text-align: center;
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
}
.compare-actions button {
    border-color: var(--accent);
    background: var(--accent);
    color: #111827;
    cursor: pointer;
}
.compare-empty {
    grid-column: 1/-1;
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: #64748b;
}
.compare-empty > span {
    color: var(--secondary);
    font-size: 44px;
}
.compare-empty strong {
    color: var(--text);
    font-size: 16px;
}
.compare-empty p {
    margin: 0;
    font-size: 9px;
}
.compare-foot {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
}
.compare-foot button {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}
.compare-foot button:first-child {
    color: #dc2626;
}
.compare-toast {
    background: #1e3a8a;
}

@media (max-width: 1180px) {
    .compare-button > span:nth-child(2) {
        display: none;
    }
    .compare-button {
        padding: 0 9px;
    }
}
@media (max-width: 760px) {
    .search-suggestions {
        position: fixed;
        top: 132px;
        right: 12px;
        left: 12px;
        max-height: calc(100vh - 155px);
    }
    .compare-button {
        width: 46px;
        justify-content: center;
        padding: 0;
    }
    .compare-count {
        position: absolute;
        top: -5px;
        left: -5px;
        min-width: 18px;
        height: 18px;
    }
    .compare-panel {
        bottom: 0;
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }
    .compare-items {
        display: flex;
        padding: 12px;
        scroll-snap-type: x mandatory;
    }
    .compare-card {
        min-width: min(78vw, 285px);
        flex: 0 0 min(78vw, 285px);
        border-left: 1px solid var(--line);
        border-radius: 10px !important;
        scroll-snap-align: center;
    }
    .compare-head {
        min-height: 68px;
        padding: 10px 15px;
    }
    .compare-head h2 {
        font-size: 17px;
    }
}
@media (max-width: 520px) {
    .search-result {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    .search-result img,
    .search-result-placeholder {
        width: 52px;
        height: 52px;
    }
    .search-result-price {
        grid-column: 2;
        display: flex;
        gap: 8px;
    }
}

/* v1.76.14 — brand-scoped merchandising rails */
.merchandising-block {
    position: relative;
    overflow: hidden;
}
.merchandising-block::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--accent);
}
.merchandising-featured::before {
    background: var(--secondary);
}
.merchandising-best::before {
    background: var(--accent);
}
.merchandising-new::before {
    background: var(--green);
}
.merchandising-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, calc((100% - 63px) / 4));
    gap: 16px;
    overflow-x: auto;
    padding: 3px 2px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--secondary) 45%, transparent)
        transparent;
}
.merchandising-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.merchandising-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--secondary) 28%, var(--line));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}
.merchandising-media {
    height: 218px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg) 74%, #fff);
    text-decoration: none;
    color: var(--muted);
    font-weight: 900;
}
.merchandising-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.25s ease;
}
.merchandising-card:hover .merchandising-media img {
    transform: scale(1.035);
}
.merchandising-copy {
    padding: 15px;
}
.merchandising-copy > small {
    display: block;
    color: var(--secondary);
    font-size: 9px;
    font-weight: 900;
}
.merchandising-copy h3 {
    min-height: 44px;
    margin: 5px 0 8px;
    font-size: 15px;
    line-height: 1.45;
}
.merchandising-copy h3 a {
    text-decoration: none;
}
.merchandising-price {
    min-height: 48px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 9px 0 11px;
}
.merchandising-price strong {
    color: #b45309;
    font-size: 18px;
    font-weight: 950;
}
.merchandising-price strong small {
    font-size: 9px;
}
.merchandising-price del {
    color: #94a3b8;
    font-size: 10px;
}
.merchandising-badges {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
    left: 82px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    pointer-events: none;
}
.merchandising-label,
.merchandising-discount {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.14);
}
.merchandising-best .merchandising-label {
    background: var(--accent);
    color: #111827;
}
.merchandising-new .merchandising-label {
    background: var(--green);
}
.merchandising-discount {
    background: var(--red);
}
.merchandising-wishlist,
.merchandising-compare {
    position: absolute;
    z-index: 4;
    top: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #475569;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
}
.merchandising-wishlist {
    left: 10px;
    font-size: 19px;
}
.merchandising-compare {
    left: 47px;
    font-size: 13px;
}
.merchandising-wishlist.active {
    color: var(--red);
    border-color: #fecaca;
    background: #fff1f2;
}
.merchandising-compare.active {
    color: #fff;
    border-color: var(--secondary);
    background: var(--secondary);
}
.merchandising-actions {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 7px;
}
.merchandising-actions button,
.merchandising-actions a {
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #111827;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.merchandising-actions a {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}
.merchandising-actions a.add {
    border: 0;
    background: var(--accent);
    color: #111827;
}
.merchandising-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 980px) {
    .merchandising-rail {
        grid-auto-columns: minmax(225px, calc((100% - 32px) / 3));
    }
}
@media (max-width: 700px) {
    .promotion-strip-inner {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .promotion-strip-inner > small {
        display: none;
    }
    .merchandising-block {
        padding-right: 14px;
        padding-left: 14px;
    }
    .merchandising-head {
        align-items: flex-end;
    }
    .merchandising-rail {
        grid-auto-columns: minmax(220px, 76vw);
        margin-inline: -4px;
        padding-inline: 4px;
        scroll-snap-type: x mandatory;
    }
    .merchandising-media {
        height: 205px;
    }
}
