:root {
    --black: #050505;
    --black-soft: #0c0c0c;
    --panel-dark: #121212;
    --white: #ffffff;
    --paper: #f6f6f4;
    --paper-strong: #eeeeeb;
    --ink: #151515;
    --muted: #777;
    --line-dark: rgba(255, 255, 255, 0.13);
    --line-light: rgba(0, 0, 0, 0.12);
    --green: #25d366;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow-dark: 0 18px 60px rgba(0, 0, 0, 0.48);
    --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.11);
    --font: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body.no-scroll {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 78px;
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 0 22px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.34);
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brand-mark__main {
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    padding-left: 0.24em;
}

.brand-mark__sub {
    margin-top: 5px;
    font-size: 0.56rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.72);
}

.header-back,
.header-menu {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    transition: color var(--transition), transform var(--transition);
}

.header-back:hover,
.header-menu:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.header-menu {
    justify-self: end;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.header-spacer {
    justify-self: end;
    width: 80px;
}

/* Intro */
.intro-curtain {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    pointer-events: none;
}

.intro-curtain::before,
.intro-curtain::after {
    content: "";
    width: 50%;
    height: 100%;
    background: #000;
    transition: transform 900ms cubic-bezier(.77, 0, .175, 1);
}

.intro-curtain__text {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    width: min(90%, 640px);
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    transition: opacity 350ms ease;
}

.intro-curtain__text strong {
    display: block;
    margin-top: 12px;
    font-size: clamp(1.45rem, 5vw, 2.35rem);
    letter-spacing: 0.12em;
}

body.ready .intro-curtain::before {
    transform: translateX(-100%);
}

body.ready .intro-curtain::after {
    transform: translateX(100%);
}

body.ready .intro-curtain__text {
    opacity: 0;
}

/* Home */
.home-page {
    color: var(--white);
    background:
        radial-gradient(circle at 50% 12%, #202020 0, #0b0b0b 34%, #050505 72%),
        #050505;
}

.home-main {
    min-height: 100vh;
    padding: 118px 20px 72px;
}

.home-hero {
    width: min(1120px, 100%);
    margin: 0 auto 34px;
    text-align: center;
}

.home-eyebrow {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.home-title {
    margin-top: 12px;
    font-size: clamp(2rem, 7vw, 4.4rem);
    line-height: 0.98;
    font-weight: 300;
    letter-spacing: -0.045em;
}

.home-title strong {
    font-weight: 750;
}

.home-copy {
    width: min(680px, 100%);
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.75;
    font-size: 0.92rem;
}

.home-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.77);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.74rem;
}

.home-toolbar {
    position: sticky;
    top: 78px;
    z-index: 800;
    width: min(1180px, 100%);
    margin: 0 auto 24px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    background: rgba(9, 9, 9, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.home-search,
.catalog-search {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.home-search:focus {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.085);
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.64);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: var(--transition);
}

.category-tab:hover,
.category-tab.is-active {
    color: #050505;
    background: #fff;
    border-color: #fff;
}

.brand-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.brand-card {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.brand-card::before {
    content: "";
    position: absolute;
    inset: -60% auto auto -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    filter: blur(12px);
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.46);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.028));
}

.brand-card__name {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.25;
}

.brand-card__total {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.brand-card__categories {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}

.brand-pill {
    padding: 6px 9px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.56);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

/* Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 2000;
    width: min(88vw, 360px);
    padding: 110px 22px 30px;
    color: #fff;
    background: #0d0d0d;
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.77, 0, .175, 1);
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-nav {
    display: grid;
    gap: 10px;
}

.drawer-link {
    width: 100%;
    padding: 15px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

/* Brand/catalog page */
.catalog-page {
    background: var(--paper);
}

.catalog-main {
    min-height: 100vh;
    padding: 106px 0 64px;
}

.catalog-hero {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto 20px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
    text-align: center;
}

.catalog-hero__eyebrow {
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.67rem;
    font-weight: 750;
}

.catalog-title {
    margin-top: 7px;
    font-size: clamp(1.8rem, 6vw, 3rem);
    line-height: 1.05;
    font-weight: 350;
}

.catalog-subtitle {
    margin-top: 11px;
    color: #747474;
    font-size: 0.82rem;
}

.catalog-controls-wrap {
    position: sticky;
    top: 78px;
    z-index: 700;
    padding: 0 16px;
}

.catalog-controls {
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr) minmax(150px, .7fr) minmax(145px, .6fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line-light);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.catalog-search {
    color: var(--ink);
    background: #f7f7f5;
    border-color: #deded9;
}

.catalog-search:focus {
    background: #fff;
    border-color: #111;
}

.catalog-select {
    min-height: 46px;
    padding: 0 38px 0 14px;
    color: #282828;
    background: #f7f7f5;
    border: 1px solid #deded9;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.catalog-filter-bar {
    width: min(1160px, calc(100% - 32px));
    margin: 12px auto 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.catalog-filter-bar::-webkit-scrollbar {
    display: none;
}

.catalog-filter-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    color: #666;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.66rem;
    font-weight: 750;
    transition: var(--transition);
}

.catalog-filter-btn:hover,
.catalog-filter-btn.is-active {
    color: #fff;
    background: #000;
    border-color: #000;
}

.catalog-meta {
    width: min(1160px, calc(100% - 32px));
    margin: 20px auto 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #777;
    font-size: 0.75rem;
}

.products-grid {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 10px 16px 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    color: inherit;
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 13px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.035);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #cacaca;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.product-media,
.modal-media,
.fullscreen-media {
    position: relative;
    background:
        radial-gradient(circle at center, #fff 0, #f5f5f3 72%),
        #f4f4f1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.product-media {
    width: 100%;
    aspect-ratio: 1;
}

.media-placeholder::after {
    content: "RP";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    color: #d3d3cf;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.media-protection {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    cursor: pointer;
}

.product-info {
    padding: 12px 13px 14px;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.product-badge {
    padding: 4px 7px;
    color: #777;
    background: #f4f4f1;
    border-radius: 999px;
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-title {
    min-height: 2.5em;
    overflow: hidden;
    color: #242424;
    font-size: 0.79rem;
    line-height: 1.25;
    font-weight: 560;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-top: 8px;
    color: #000;
    font-size: 0.92rem;
    font-weight: 780;
}

.product-price-button {
    width: 100%;
    min-height: 38px;
    margin-top: 10px;
    padding: 0 12px;
    color: #fff;
    background: #111;
    border: 1px solid #111;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform var(--transition), background var(--transition);
}

.product-price-button:hover {
    background: #25d366;
    border-color: #25d366;
    transform: translateY(-1px);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 20px 50px;
}

.load-more {
    min-width: 220px;
    min-height: 46px;
    padding: 0 22px;
    color: #fff;
    background: #000;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 760;
    transition: transform var(--transition), opacity var(--transition);
}

.load-more:hover {
    transform: translateY(-2px);
}

.load-more[hidden] {
    display: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.product-modal {
    width: min(1050px, 100%);
    max-height: min(88vh, 820px);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    transform: translateY(14px) scale(.985);
    transition: transform var(--transition);
}

.modal-overlay.is-open .product-modal {
    transform: translateY(0) scale(1);
}

.modal-gallery {
    position: relative;
    min-height: 560px;
    background: #f1f1ef;
}

.modal-media {
    width: 100%;
    height: 100%;
}

.modal-arrow,
.modal-close,
.fullscreen-close,
.fullscreen-arrow {
    position: absolute;
    z-index: 12;
    display: grid;
    place-items: center;
    color: #111;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}

.modal-arrow {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.modal-arrow--prev {
    left: 14px;
}

.modal-arrow--next {
    right: 14px;
}

.modal-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
}

.modal-counter {
    position: absolute;
    z-index: 11;
    inset: auto auto 15px 50%;
    transform: translateX(-50%);
    padding: 7px 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    font-size: 0.68rem;
}

.modal-details {
    min-height: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-kicker {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.64rem;
    font-weight: 750;
}

.modal-title {
    margin-top: 10px;
    padding-right: 34px;
    font-size: clamp(1.3rem, 4vw, 1.85rem);
    line-height: 1.22;
    font-weight: 430;
}

.modal-price {
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-description {
    margin-top: 22px;
    padding-top: 20px;
    color: #666;
    border-top: 1px solid #e8e8e4;
    font-size: 0.88rem;
    line-height: 1.7;
    white-space: pre-line;
    user-select: text;
}

.whatsapp-button {
    margin-top: auto;
    min-height: 52px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: var(--green);
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 780;
    box-shadow: 0 7px 18px rgba(37, 211, 102, 0.27);
}

.fullscreen-viewer {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    background: #000;
}

.fullscreen-viewer.is-open {
    display: block;
}

.fullscreen-media {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.fullscreen-close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    color: #fff;
    background: rgba(30, 30, 30, .82);
    border-color: rgba(255, 255, 255, .18);
}

.fullscreen-arrow {
    top: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    background: rgba(30, 30, 30, .72);
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-50%);
}

.fullscreen-arrow--prev {
    left: 18px;
}

.fullscreen-arrow--next {
    right: 18px;
}

/* Request modal + WhatsApp */
.request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.simple-modal {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.simple-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.simple-modal__card {
    width: min(520px, 100%);
    padding: 32px;
    color: #fff;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    box-shadow: var(--shadow-dark);
    text-align: center;
}

.simple-modal__card h2 {
    font-size: 1.35rem;
    font-weight: 520;
}

.simple-modal__card p {
    margin-top: 15px;
    color: rgba(255, 255, 255, .67);
    line-height: 1.7;
    font-size: .86rem;
}

.simple-modal__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.simple-modal__action {
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.simple-modal__action--wa {
    background: var(--green);
    border-color: var(--green);
}

.whatsapp-float {
    position: fixed;
    z-index: 1500;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 7px 25px rgba(0, 0, 0, .28);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.status-message {
    width: min(1160px, calc(100% - 32px));
    margin: 30px auto;
    padding: 28px;
    color: #777;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 1080px) {
    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 0 15px;
    }

    .home-toolbar {
        grid-template-columns: 1fr;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-controls {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-controls .catalog-search {
        grid-column: 1 / -1;
    }

    .product-modal {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-gallery {
        min-height: 52vh;
    }

    .modal-details {
        min-height: 330px;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: 72px;
        grid-template-columns: 82px auto 82px;
    }

    .brand-mark__main {
        font-size: 1.45rem;
    }

    .brand-mark__sub {
        font-size: .48rem;
    }

    .header-back {
        font-size: .62rem;
    }

    .home-main {
        padding: 104px 13px 60px;
    }

    .home-toolbar {
        top: 72px;
        padding: 9px;
        border-radius: 15px;
    }

    .brand-grid {
        gap: 9px;
    }

    .brand-card {
        min-height: 166px;
        padding: 16px;
        border-radius: 14px;
    }

    .brand-card__name {
        font-size: .9rem;
    }

    .brand-pill {
        font-size: .54rem;
    }

    .catalog-main {
        padding-top: 92px;
    }

    .catalog-hero {
        width: calc(100% - 20px);
        padding: 22px 14px;
        border-radius: 16px;
    }

    .catalog-controls-wrap {
        top: 72px;
        padding: 0 8px;
    }

    .catalog-controls {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 9px;
        border-radius: 14px;
    }

    .catalog-controls .catalog-search {
        grid-column: auto;
    }

    .catalog-filter-bar,
    .catalog-meta {
        width: calc(100% - 18px);
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 8px 22px;
    }

    .product-info {
        padding: 9px;
    }

    .product-title {
        font-size: .69rem;
    }

    .product-price {
        font-size: .8rem;
    }

    .product-badge {
        font-size: .49rem;
    }

    .modal-overlay {
        padding: 7px;
    }

    .product-modal {
        border-radius: 13px;
    }

    .modal-gallery {
        min-height: 48vh;
    }

    .modal-details {
        padding: 22px 18px;
    }

    .modal-arrow {
        width: 39px;
        height: 39px;
    }

    .fullscreen-arrow {
        width: 43px;
        height: 43px;
    }
}
