:root {
    --red: #E30019;
    --red-dark: #b80014;
    --black: #111111;
    --ink: #202124;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f5f6f8;
    --white: #ffffff;
    --cyan: #00b8d9;
    --shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
    --shadow-soft: 0 8px 20px rgba(17, 17, 17, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f2f3f5;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: var(--black);
    color: var(--white);
    font-size: 13px;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.header-main {
    min-height: 82px;
    display: grid;
    grid-template-columns: 230px minmax(280px, 1fr) 250px;
    align-items: center;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark,
.admin-brand span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(227, 0, 25, 0.28);
}

.brand-logo strong {
    display: block;
    font-size: 24px;
    color: var(--black);
    letter-spacing: 0;
}

.brand-logo small {
    color: var(--muted);
    font-weight: 700;
}

.header-search {
    height: 46px;
    display: grid;
    grid-template-columns: 1fr 120px;
    border: 2px solid var(--red);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.header-search input {
    border: 0;
    padding: 0 16px;
    font-size: 15px;
    outline: 0;
}

.header-search button {
    border: 0;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.header-action {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--black);
    background: #f6f7f9;
    transition: 0.3s ease;
    position: relative;
}

.header-user {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: #f6f7f9;
    color: var(--black);
}

.logout-form {
    margin: 0;
}

.logout-form button {
    border: 0;
    border-radius: 6px;
    background: #fff1f3;
    color: var(--red);
    font-weight: 900;
    cursor: pointer;
    padding: 6px 8px;
}

.header-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.action-icon {
    min-width: 34px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    font-weight: 900;
}

.main-nav {
    background: var(--red);
    color: var(--white);
}

.nav-inner {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-inner > a,
.nav-item > a {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.nav-inner > a:hover,
.nav-item:hover > a {
    background: rgba(0, 0, 0, 0.18);
}

.admin-shortcut {
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 0;
    top: 48px;
    width: 360px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.nav-item:hover .dropdown-panel {
    display: grid;
}

.category-menu a {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 10px;
    border-radius: var(--radius);
    transition: 0.3s ease;
}

.category-menu a:hover {
    background: #fff1f3;
    transform: translateX(4px);
}

.category-menu span {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.category-menu small {
    color: var(--muted);
}

.menu-text-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 22px;
    margin-right: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 10px;
    font-weight: 900;
}

.hero-shell {
    background: #101010;
}

.hero-slider {
    width: min(1440px, 100%);
    min-height: 430px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: calc((100% - min(1200px, calc(100% - 32px))) / 2);
    top: 50%;
    width: min(560px, calc(100% - 40px));
    transform: translateY(-50%);
    color: var(--white);
}

.hero-copy span,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 10px 0 12px;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy p {
    width: min(520px, 100%);
    margin: 0 0 22px;
    color: #f2f2f2;
    font-size: 17px;
}

.slider-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    color: var(--red);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.3s ease;
}

.slider-btn:hover {
    background: var(--red);
    color: var(--white);
}

.slider-btn.prev {
    left: 24px;
}

.slider-btn.next {
    right: 24px;
}

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 14px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-soft);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: var(--red-dark);
}

.btn-outline {
    border-color: var(--line);
    background: var(--white);
    color: var(--black);
}

.btn-large {
    min-height: 48px;
    padding: 12px 22px;
}

.btn-block {
    width: 100%;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.category-strip a {
    min-height: 92px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: 0.3s ease;
}

.category-strip a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-strip span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--black);
    color: var(--white);
    font-weight: 900;
    font-size: 12px;
}

.product-section {
    margin-top: 34px;
}

.section-heading,
.page-title-row,
.admin-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2,
.page-title-row h1,
.admin-card-head h2 {
    margin: 4px 0 0;
    color: var(--black);
    font-size: 28px;
    letter-spacing: 0;
}

.section-heading a,
.admin-card-head a {
    color: var(--red);
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 215px;
    display: grid;
    place-items: center;
    position: relative;
    background: #f9fafb;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge,
.detail-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.product-body {
    padding: 14px;
}

.product-name {
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--black);
    font-weight: 800;
}

.product-body p {
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0 14px;
}

.price-row strong,
.detail-price strong,
.price-cell {
    color: var(--red);
    font-size: 20px;
    font-weight: 900;
}

.price-row del,
.detail-price del {
    color: #9ca3af;
    font-size: 14px;
}

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

.promo-band {
    margin-top: 42px;
    padding: 36px 0;
    background: linear-gradient(135deg, #111111, #222831 58%, #043b46);
    color: var(--white);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: center;
}

.promo-grid h2 {
    margin: 6px 0 8px;
    font-size: 32px;
}

.promo-grid p {
    color: #d9dde4;
    margin: 0;
}

.promo-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.promo-metrics strong,
.promo-metrics span {
    display: block;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.promo-metrics strong {
    color: var(--red);
    font-size: 30px;
}

.site-footer {
    margin-top: 46px;
    padding: 38px 0;
    background: var(--black);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #cfd4dc;
}

.catalog-hero,
.contact-hero {
    padding: 48px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--black), #2a2f38 60%, #064e5a);
}

.catalog-hero h1,
.contact-hero h1 {
    margin: 8px 0;
    font-size: 38px;
}

.catalog-hero p,
.contact-hero p {
    max-width: 680px;
    margin: 0;
    color: #d9dde4;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    margin-top: 24px;
}

.filter-sidebar,
.contact-form,
.contact-card,
.auth-card,
.spec-card,
.review-article,
.reviews-panel,
.admin-card {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-sidebar {
    align-self: start;
    position: sticky;
    top: 150px;
    padding: 18px;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.filter-head h3 {
    margin: 0;
    font-size: 22px;
}

.filter-head a {
    color: var(--red);
    font-weight: 800;
    font-size: 13px;
}

.filter-label,
.contact-form label,
.review-form label,
.auth-card label,
.admin-form label {
    display: block;
    margin: 12px 0 6px;
    color: var(--black);
    font-weight: 800;
}

.form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    padding: 10px 12px;
    font: inherit;
    outline: 0;
    transition: 0.3s ease;
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 0, 25, 0.08);
}

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

.filter-group {
    padding-top: 8px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #374151;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.toolbar-pills {
    display: flex;
    gap: 8px;
}

.toolbar-pills span,
.info-chips span,
.commitment-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.detail-page,
.compare-page,
.review-page,
.auth-page {
    margin-top: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--red);
    font-weight: 800;
}

.detail-shell {
    display: grid;
    grid-template-columns: 48% 1fr;
    gap: 22px;
}

.gallery-panel,
.product-info-panel {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.main-image-frame {
    height: 480px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: #f7f8fb;
    overflow: hidden;
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.thumb-btn {
    height: 90px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    overflow: hidden;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.product-info-panel {
    position: relative;
}

.product-info-panel h1 {
    margin: 38px 0 10px;
    font-size: 32px;
    line-height: 1.2;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f59e0b;
    font-weight: 900;
}

.detail-rating small {
    color: var(--muted);
}

.detail-desc {
    color: var(--muted);
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.price-label {
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-price strong {
    font-size: 34px;
}

.info-chips,
.commitment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    margin-right: 6px;
    border-radius: 6px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 11px;
    font-weight: 900;
}

.buy-box {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
    margin: 22px 0;
}

.btn-buy {
    min-height: 50px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    margin-top: 22px;
}

.review-article,
.spec-card,
.reviews-panel {
    padding: 22px;
}

.review-article h2,
.spec-card h2,
.reviews-panel h2 {
    margin: 4px 0 14px;
    font-size: 26px;
}

.review-article p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 16px;
}

.spec-list {
    display: grid;
    gap: 8px;
}

.spec-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: #f7f8fa;
}

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

.reviews-panel {
    margin-top: 22px;
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
}

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

.review-item {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.review-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.review-item span {
    color: var(--muted);
    font-size: 13px;
}

.stars {
    color: #f59e0b;
    letter-spacing: 0;
    font-weight: 900;
}

.review-form {
    align-self: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fafafa;
}

.review-form h3 {
    margin: 0 0 10px;
}

.related-section {
    margin-bottom: 10px;
}

.compare-table-wrap,
.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.compare-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td,
.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.compare-table th,
.admin-table th {
    background: #fafafa;
    color: var(--black);
    font-size: 13px;
    text-transform: uppercase;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.admin-product-cell img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #f5f6f8;
}

.admin-product-cell strong {
    display: block;
    color: var(--black);
}

.admin-product-cell span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.summary-total strong {
    color: var(--red);
    font-size: 22px;
}

.compare-table th:first-child,
.compare-table td:first-child {
    width: 150px;
    color: var(--black);
    font-weight: 900;
    background: #fafafa;
}

.compare-table th img {
    width: 160px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.compare-table th strong {
    display: block;
    min-width: 220px;
}

.compare-table td .btn {
    margin: 4px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    margin-top: 24px;
}

.contact-form,
.contact-card,
.auth-card {
    padding: 24px;
}

.contact-form h2,
.contact-card h2,
.auth-card h1 {
    margin-top: 0;
}

.contact-card div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contact-card strong,
.contact-card span {
    display: block;
}

.contact-card span {
    color: var(--muted);
}

.map-placeholder {
    height: 220px;
    display: grid;
    place-items: center;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: repeating-linear-gradient(45deg, #f4f5f7, #f4f5f7 12px, #e9edf2 12px, #e9edf2 24px);
    color: var(--red);
    font-weight: 900;
}

.alert-success,
.alert-error,
.validation-summary {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.alert-success {
    background: #ecfdf3;
    color: #027a48;
}

.alert-error,
.validation-summary,
.field-error {
    color: var(--red);
}

.alert-error {
    background: #fff1f3;
}

.field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.empty-state {
    padding: 34px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.auth-page {
    min-height: 520px;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(430px, 100%);
}

.register-card {
    width: min(540px, 100%);
}

.auth-switch,
.auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--red);
    font-weight: 900;
}

.forbidden-card {
    text-align: center;
}

.admin-user-box {
    padding: 8px 12px;
    border-radius: var(--radius);
    background: #f6f7f9;
    text-align: right;
}

.admin-user-box span,
.admin-user-box strong {
    display: block;
}

.admin-user-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-user-box strong {
    color: var(--black);
}

.inline-filter {
    min-width: min(420px, 100%);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #eef0f4;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px;
    background: #111111;
    color: var(--white);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    padding: 12px;
    border-radius: var(--radius);
    color: #d1d5db;
    font-weight: 800;
    transition: 0.3s ease;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: var(--red);
    color: var(--white);
}

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

.admin-topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.admin-topbar span,
.admin-card-head p {
    display: block;
    color: var(--muted);
}

.admin-topbar strong {
    display: block;
    font-size: 22px;
}

.admin-content {
    padding: 24px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.admin-stat-grid article {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.admin-stat-grid span {
    color: var(--muted);
    font-weight: 800;
}

.admin-stat-grid strong {
    display: block;
    color: var(--red);
    font-size: 34px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-card {
    padding: 20px;
}

.admin-card-head {
    align-items: center;
}

.admin-card-head p {
    margin: 4px 0 0;
}

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

.admin-product-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-product-list img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #f7f8fa;
}

.admin-product-list strong,
.admin-product-list span {
    display: block;
}

.admin-product-list span {
    color: var(--muted);
}

.admin-actions {
    white-space: nowrap;
}

.admin-actions a {
    display: inline-flex;
    margin: 3px;
    padding: 7px 10px;
    border-radius: var(--radius);
    background: #f3f4f6;
    font-weight: 800;
}

.admin-actions a.danger {
    background: #fff1f3;
    color: var(--red);
}

.admin-form {
    margin-top: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group.wide {
    grid-column: 1 / -1;
}

.checkbox-group {
    display: flex;
    align-items: flex-end;
}

.checkbox-group label {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.delete-preview {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
}

.delete-preview img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #f7f8fa;
}

.delete-warning {
    padding: 12px;
    border-radius: var(--radius);
    background: #fff1f3;
    color: var(--red);
    font-weight: 800;
}

@media (max-width: 1100px) {
    .header-main {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .category-strip,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-grid,
    .detail-shell,
    .detail-content-grid,
    .review-layout,
    .contact-layout,
    .catalog-layout,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .topbar-inner,
    .nav-inner,
    .section-heading,
    .page-title-row,
    .admin-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-inner {
        height: auto;
        padding: 8px 0;
    }

    .nav-inner > a,
    .nav-item > a {
        height: 38px;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
    }

    .header-search {
        grid-template-columns: 1fr 96px;
    }

    .hero-slider,
    .hero-slide img {
        min-height: 520px;
        height: 520px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .category-strip,
    .product-grid,
    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid,
    .promo-metrics,
    .buy-box,
    .thumb-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .main-image-frame {
        height: 340px;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 20px, 1200px);
    }

    .category-strip,
    .product-grid,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }

    .hero-copy {
        left: 20px;
    }

    .slider-btn {
        display: none;
    }
}
