:root {
    --ink: #191714;
    --muted: #716b63;
    --line: #e4ded4;
    --paper: #fffaf1;
    --panel: #ffffff;
    --brand: #176b5b;
    --brand-dark: #0f4d43;
    --accent: #d94830;
    --accent-soft: #ffe5de;
    --gold: #b7791f;
    --gold-soft: #fff1cc;
    --shadow: 0 18px 48px rgba(25, 23, 20, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(140deg, rgba(23, 107, 91, 0.12), transparent 36%),
        linear-gradient(320deg, rgba(217, 72, 48, 0.10), transparent 32%),
        var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

button,
.whatsapp-button,
.ghost-button,
.floating-whatsapp {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:active,
.whatsapp-button:active,
.ghost-button:active,
.floating-whatsapp:active {
    transform: translateY(1px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 44px);
    background: rgba(255, 250, 241, 0.88);
    border-bottom: 1px solid rgba(228, 222, 212, 0.8);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 8px;
}

.admin-link {
    color: var(--brand-dark);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

main {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 18px clamp(14px, 4vw, 36px) 92px;
}

.hero {
    --hero-photo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%23176b5b'/%3E%3Cpath d='M35 520c160-130 290-175 445-121 160 55 282 15 403-91 106-92 200-103 290-52v444H35z' fill='%23d94830' opacity='.62'/%3E%3Cpath d='M0 410c124-62 242-66 354-12 190 91 332 22 506-83 137-82 245-88 340-26v411H0z' fill='%23f5d07a' opacity='.38'/%3E%3Ccircle cx='928' cy='168' r='96' fill='%23fffaf1' opacity='.16'/%3E%3C/svg%3E");
    display: grid;
    gap: 14px;
    min-height: 134px;
    align-items: center;
    padding: 22px clamp(18px, 5vw, 42px);
    color: #fff;
    background: var(--hero-photo);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-hero {
    min-height: 218px;
    align-items: end;
    background: var(--hero-photo);
    background-size: cover;
    background-position: center;
}

.hero h1,
.admin-heading h1,
.login-panel h1 {
    margin: 6px 0 0;
    max-width: 760px;
    font-size: clamp(2rem, 8vw, 3.45rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero h1 {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.compact-hero h1 {
    margin: 0;
}

.home-hero h1 {
    max-width: 560px;
    font-size: clamp(2.45rem, 10vw, 4.4rem);
}

.hero-copy {
    max-width: 560px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2.5vw, 1.18rem);
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f5d07a;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.hero-stats strong {
    font-size: 1.35rem;
}

.catalog-tools {
    position: sticky;
    top: 63px;
    z-index: 15;
    display: grid;
    gap: 12px;
    margin: 16px 0 26px;
    padding: 12px;
    background: rgba(255, 250, 241, 0.9);
    border: 1px solid rgba(228, 222, 212, 0.9);
    border-radius: 8px;
    backdrop-filter: blur(18px);
}

.search-wrap input,
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.search-wrap input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.12);
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tabs a {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 10px;
    color: var(--brand-dark);
    background: rgba(23, 107, 91, 0.10);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.tabs a.active {
    color: #fff;
    background: var(--brand);
}

.tabs-only {
    display: block;
}

.tabs-only .tabs {
    width: 100%;
}

.catalog-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.catalog-tabs a {
    min-height: 34px;
    padding: 7px 4px;
    color: #332d27;
    background: #fffaf1;
    border: 1px solid #ded5c9;
    border-bottom: 3px solid #c8bbaa;
    border-radius: 6px;
    font-family: "Arial Black", Impact, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0;
}

.catalog-tabs a.active {
    color: #fff;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    border-bottom-color: #f0c15a;
}

.audience-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: -10px 0 20px;
}

.audience-switch a {
    display: grid;
    min-height: 40px;
    place-items: center;
    padding: 9px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.audience-switch a.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.audience-sections {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.gender-entry-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.gender-entry {
    position: relative;
    display: grid;
    min-height: 142px;
    place-items: center;
    padding: 18px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 193, 90, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(25, 23, 20, 0.98), rgba(25, 23, 20, 0.82)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 12px);
    border: 1px solid rgba(25, 23, 20, 0.22);
    border-left: 7px solid #2f7df6;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(25, 23, 20, 0.08);
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gender-entry::before {
    content: "";
    position: absolute;
    inset: auto -20px 18px auto;
    width: 124px;
    height: 20px;
    background: #2f7df6;
    transform: rotate(-14deg);
    opacity: 0.9;
}

.gender-entry::after {
    content: "";
    position: absolute;
    inset: 12px auto auto 14px;
    width: 42px;
    height: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.gender-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(25, 23, 20, 0.38);
    box-shadow: 0 18px 38px rgba(25, 23, 20, 0.12);
}

.gender-entry span {
    position: relative;
    z-index: 1;
    font-family: "Arial Black", Impact, Haettenschweiler, system-ui, sans-serif;
    font-size: clamp(2.55rem, 12vw, 4.6rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow:
        3px 3px 0 rgba(217, 72, 48, 0.82),
        0 10px 24px rgba(0, 0, 0, 0.38);
}

.women-entry {
    background:
        radial-gradient(circle at 18% 18%, rgba(226, 86, 114, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(45, 40, 38, 0.98), rgba(25, 23, 20, 0.82)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 12px);
    border-left-color: #e25672;
}

.women-entry::before {
    background: #e25672;
}

.audience-panel {
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(25, 23, 20, 0.07);
}

.audience-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.audience-heading h2 {
    margin: 2px 0 0;
    font-size: clamp(1.7rem, 8vw, 2.7rem);
    line-height: 0.95;
}

.audience-heading span {
    max-width: 190px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
}

.catalog-window-grid {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.window-grid {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.nav-card {
    display: grid;
    gap: 8px;
    min-height: 128px;
    align-content: end;
    padding: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(25, 23, 20, 0.08);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 107, 91, 0.35);
    box-shadow: 0 18px 38px rgba(25, 23, 20, 0.12);
}

.nav-card strong {
    font-size: clamp(1.2rem, 5.4vw, 2.05rem);
    line-height: 1;
}

.nav-card small {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 800;
}

.accent-card {
    background: linear-gradient(145deg, #fff, #fff4ee);
}

.section-block {
    margin-top: 30px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title h2,
.admin-products h2 {
    margin: 3px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 5.6vw, 2.15rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.promo-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 320px);
    gap: 14px;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.promo-grid {
    display: grid;
    gap: 14px;
}

.promo-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(25, 23, 20, 0.08);
    scroll-snap-align: start;
}

.promo-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #eadfce;
}

.promo-card h3,
.product-card h3,
.admin-product h3 {
    margin: 8px 0 3px;
    font-size: 1.12rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.promo-card p,
.product-card p,
.admin-product p {
    margin: 4px 0;
    color: var(--muted);
}

.product-list {
    display: grid;
    gap: 12px;
}

.product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(25, 23, 20, 0.07);
}

.product-card > img {
    width: 112px;
    height: 132px;
    object-fit: cover;
    border-radius: 8px;
    background: #eadfce;
}

.photo-button {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    color: inherit;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
}

.photo-button:hover {
    background: transparent;
    box-shadow: none;
}

.photo-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #eadfce;
    transition: transform 180ms ease;
}

.photo-button:hover img {
    transform: scale(1.03);
}

.product-card > .photo-button {
    width: 112px;
    height: 132px;
}

.promo-card > .photo-button {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.gallery-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-grid;
    min-height: 26px;
    place-items: center;
    padding: 4px 8px;
    color: #fff;
    background: rgba(15, 18, 17, 0.72);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.product-info {
    min-width: 0;
}

.product-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-topline h3 {
    margin: 0;
    overflow-wrap: anywhere;
}

.model,
.description {
    overflow-wrap: anywhere;
}

.sizes {
    font-weight: 800;
}

.sizes span {
    color: var(--muted);
    font-weight: 700;
}

.product-meta,
.admin-badges,
.admin-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.price {
    color: var(--brand-dark);
    font-size: 1.08rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.1;
}

.instant-pill {
    color: var(--brand-dark);
    background: rgba(23, 107, 91, 0.13);
}

.order-pill {
    color: #695018;
    background: var(--gold-soft);
}

.promo-pill {
    color: #7a2d16;
    background: var(--accent-soft);
}

.muted-pill {
    color: #5d5750;
    background: #ece6dc;
}

.whatsapp-button,
button {
    display: inline-grid;
    place-items: center;
    padding: 0 16px;
    color: #fff;
    background: var(--brand);
    font-weight: 900;
}

.whatsapp-button {
    margin-top: 8px;
}

.floating-whatsapp {
    position: fixed;
    right: clamp(12px, 4vw, 28px);
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    align-items: center;
    justify-items: center;
    width: 48px;
    min-height: 48px;
    padding: 0;
    color: #fff;
    background: #128c7e;
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(18, 140, 126, 0.34);
    font-weight: 950;
    text-decoration: none;
}

.floating-whatsapp-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    fill: currentColor;
}

.whatsapp-button:hover,
.floating-whatsapp:hover,
button:hover {
    background: var(--brand-dark);
    box-shadow: 0 10px 18px rgba(23, 107, 91, 0.16);
}

.empty-state,
.setup-error,
.login-panel,
.admin-form,
.admin-products {
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.empty-state {
    color: var(--muted);
    text-align: center;
}

.hidden {
    display: none !important;
}

.setup-error {
    width: min(720px, calc(100% - 28px));
    margin: 40px auto;
}

.setup-error h1 {
    margin-top: 0;
}

.setup-error code {
    display: block;
    padding: 12px;
    overflow-x: auto;
    background: #f2eadf;
    border-radius: 8px;
}

.admin-shell {
    width: min(1180px, 100%);
}

.login-panel {
    width: min(460px, 100%);
    margin: 54px auto;
    box-shadow: var(--shadow);
}

.login-panel h1,
.admin-heading h1 {
    color: var(--ink);
    font-size: clamp(1.9rem, 8vw, 3.2rem);
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 18px;
}

.admin-grid {
    display: grid;
    gap: 18px;
}

.admin-left {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-form {
    display: grid;
    gap: 14px;
    align-content: start;
    box-shadow: 0 12px 28px rgba(25, 23, 20, 0.07);
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

.admin-form textarea {
    min-height: 92px;
    resize: vertical;
}

.settings-form h2 {
    margin: 3px 0 0;
    font-size: 1.45rem;
    line-height: 1;
}

.form-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.form-row {
    display: grid;
    gap: 12px;
}

.switches {
    display: grid;
    gap: 8px;
}

.check-row {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px !important;
    min-height: 42px;
    padding: 10px 12px;
    background: #f7f1e8;
    border-radius: 8px;
}

.check-row input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--brand);
}

.current-photo {
    width: 128px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.file-field {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px !important;
    min-height: 1px !important;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 8px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.file-picker span {
    display: inline-grid;
    min-height: 34px;
    place-items: center;
    padding: 0 12px;
    color: #fff;
    background: var(--brand);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 900;
}

.file-picker small {
    min-width: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-field:focus-within .file-picker {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.12);
}

.admin-gallery {
    display: grid;
    gap: 10px;
}

.admin-gallery p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gallery-admin-item {
    display: grid !important;
    gap: 7px !important;
    padding: 8px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-admin-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-admin-item span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8f2318;
    font-size: 0.78rem;
    font-weight: 900;
}

.gallery-admin-item input {
    width: 16px;
    min-height: 16px;
    accent-color: #a83224;
}

.ghost-button,
.danger-button {
    display: inline-grid;
    min-height: 40px;
    place-items: center;
    padding: 0 13px;
    font-size: 0.9rem;
    font-weight: 900;
}

.ghost-button {
    color: var(--brand-dark);
    background: rgba(23, 107, 91, 0.10);
}

.danger-button {
    color: #8f2318;
    background: #ffe2dd;
}

.danger-button:hover {
    color: #fff;
    background: #a83224;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.alert.success {
    color: var(--brand-dark);
    background: rgba(23, 107, 91, 0.12);
}

.alert.error {
    color: #8f2318;
    background: #ffe2dd;
}

.admin-products {
    min-width: 0;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-product {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-product img {
    width: 86px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-product h3 {
    margin-top: 0;
}

.admin-actions {
    margin-top: 10px;
}

.compact-form {
    margin-top: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.modal-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    padding: 14px;
    color: #fff;
    background: rgba(11, 13, 12, 0.92);
}

.gallery-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    width: min(980px, 100%);
    max-height: 100%;
    margin: auto;
}

.gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.gallery-head strong {
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-head span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    font-weight: 800;
}

.gallery-close {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.gallery-main {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    min-height: 54px;
    padding: 0;
    color: #fff;
    background: rgba(15, 18, 17, 0.62);
    transform: translateY(-50%);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 70px;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
}

.gallery-thumbs button {
    min-height: 70px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
}

.gallery-thumbs button.active {
    border-color: #fff;
}

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

@media (min-width: 720px) {
    .catalog-tools {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .tabs {
        width: 360px;
    }

    .catalog-tabs {
        width: 520px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .audience-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .product-card {
        grid-template-columns: 136px minmax(0, 1fr);
        padding: 12px;
    }

    .product-card > img {
        width: 136px;
        height: 158px;
    }

    .product-card > .photo-button {
        width: 136px;
        height: 158px;
    }

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

@media (min-width: 980px) {
    .hero {
        min-height: 190px;
    }

    .home-hero {
        grid-template-columns: 1fr auto;
        min-height: 315px;
    }

    .compact-hero {
        min-height: 210px;
    }

    .admin-grid {
        grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }

    .admin-products {
        position: sticky;
        top: 92px;
        max-height: calc(100vh - 112px);
        overflow: auto;
    }
}

@media (max-width: 390px) {
    .product-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .product-card > img {
        width: 96px;
        height: 124px;
    }

    .product-card > .photo-button {
        width: 96px;
        height: 124px;
    }

    .pill {
        font-size: 0.7rem;
    }
}
