/* ============================================================
   CSB — Ctrl Shift B  |  style.css
   Aesthetic: Dark Tech / Industrial — Rajdhani + JetBrains Mono
   Accent: #FFFFFF (neon green)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg:          #080C0A;
    --bg-card:     #0E1512;
    --bg-elevated: #141C18;
    --border:      rgba(255,255,255,0.15);
    --border-dim:  rgba(255,255,255,0.07);
    --accent:      #FFFFFF;
    --accent-dim:  rgba(255,255,255,0.08);
    --accent-mid:  rgba(255,255,255,0.25);
    --text:        #E8F0EB;
    --text-muted:  #6B8070;
    --text-dim:    #3D5045;
    --white:       #FFFFFF;
    --red:         #FF4757;
    --font-main:   'Rajdhani', sans-serif;
    --font-mono:   'JetBrains Mono', monospace;
    --radius:      8px;
    --radius-lg:   14px;
    --shadow:      0 4px 24px rgba(0,0,0,0.6);
    --glow:        0 0 20px rgba(255,255,255,0.15);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-main); }
input, textarea, select { font-family: var(--font-main); }

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 72px;
    background: rgba(8,12,10,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: var(--text); }

.nav-pages {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-pages a {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}
.nav-pages a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.25s;
}
.nav-pages a:hover,
.nav-pages a.active { color: var(--text); }
.nav-pages a:hover::after,
.nav-pages a.active::after { width: 100%; }

.nav-auth {
    display: flex;
    gap: 14px;
    align-items: center;
}
.nav-auth a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.btn-ghost {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.btn-accent {
    padding: 8px 20px;
    background: var(--accent);
    border-radius: var(--radius);
    color: #000;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.btn-accent:hover { opacity: 0.88; box-shadow: var(--glow); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Mobile menu dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(8,12,10,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    z-index: 199;
}
.mobile-menu.open {
    max-height: 400px;
    padding: 24px;
}
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover { opacity: 0.88; box-shadow: var(--glow); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); }

.btn-danger {
    background: transparent;
    color: var(--red);
    border: 1px solid rgba(255,71,87,0.35);
}
.btn-danger:hover { background: rgba(255,71,87,0.1); }

.btn-sm { padding: 9px 22px; font-size: 14px; }

/* ============================================================
   FORMS (global)
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 120px; }

.password-hint {
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-top: 4px;
}

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-error   { background: rgba(255,71,87,0.1);  border: 1px solid rgba(255,71,87,0.3);  color: #FF6B78; }
.alert-success { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.20); color: var(--text); }
.alert-info    { background: rgba(0,150,255,0.08); border: 1px solid rgba(0,150,255,0.25); color: #4DB8FF; }

/* ============================================================
   PAGE HEADER (hero inside pages)
   ============================================================ */
.page-hero {
    padding: 80px 60px 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
}
.page-hero h1 em {
    font-style: normal;
    color: var(--accent);
}
.page-hero p {
    margin-top: 16px;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 36px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================================
   HERO / PROMOBLOCK (index)
   ============================================================ */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 60px;
    background: linear-gradient(135deg, #080C0A 0%, #0D1A12 50%, #080C0A 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 75% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.hero h1 {
    font-size: clamp(40px, 7vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--text); }
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero decorative right element */
.hero-deco {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}
.hero-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    text-align: center;
    min-width: 160px;
    backdrop-filter: blur(8px);
}
.hero-stat .num {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
}
.hero-stat .lbl {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ============================================================
   MINI CATALOG (index)
   ============================================================ */
.mini-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 0;
}
.mini-cat-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    overflow: hidden;
}
.mini-cat-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.mini-cat-item:hover { background: var(--bg-elevated); border-color: var(--border); }
.mini-cat-item:hover::before { transform: scaleX(1); }
.mini-cat-item img { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.mini-cat-item:hover img { transform: translateY(-6px); }
.mini-cat-item p {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
    margin: 2px 0;
    position: relative;
    background: linear-gradient(135deg, #0D1A12, #0A1A0D);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    gap: 40px;
}
.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(255,255,255,0.05), transparent);
}
.promo-content { position: relative; z-index: 1; }
.promo-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}
.promo-banner h2 {
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}
.promo-banner p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 28px;
}
.promo-img { position: relative; z-index: 1; flex-shrink: 0; }
.promo-img img { width: 340px; height: auto; object-fit: contain; filter: drop-shadow(0 0 40px rgba(255,255,255,0.12)); }

/* ============================================================
   PRODUCT CARDS (catalog grid)
   ============================================================ */
.catalog-section { padding: 80px 60px; }
.catalog-section + .catalog-section {
    padding-top: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}
.product-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.product-card-img {
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    height: 220px;
    position: relative;
    overflow: hidden;
}
.product-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .product-card-img::after { opacity: 1; }
.product-card-img img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
    transition: transform 0.3s;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.product-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}
.product-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-top: auto;
    padding-top: 12px;
}
.product-card-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

/* ============================================================
   PRODUCT PAGE (single)
   ============================================================ */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 60px;
    max-width: 1300px;
    margin: 0 auto;
}
.product-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    aspect-ratio: 1;
}
.product-gallery img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.7));
}
.product-info { display: flex; flex-direction: column; gap: 24px; }
.product-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--accent-dim);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    width: fit-content;
}
.product-info h1 {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.product-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
}
.product-price span { font-size: 20px; color: var(--text-muted); font-family: var(--font-main); }
.product-desc {
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   PROFILE / CART
   ============================================================ */
.profile-page { padding: 60px; max-width: 1200px; margin: 0 auto; }
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; margin-bottom: 60px; }

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}
.profile-avatar {
    width: 80px; height: 80px;
    background: var(--accent-dim);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}
.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}
.profile-email {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.profile-meta {
    font-size: 13px;
    color: var(--text-dim);
    padding-top: 16px;
    border-top: 1px solid var(--border-dim);
}
.profile-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.role-admin { background: rgba(255,71,87,0.12); color: var(--red); border: 1px solid rgba(255,71,87,0.3); }
.role-user  { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--border); }

/* Cart table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-dim);
}
.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-dim);
    font-size: 16px;
    color: var(--text);
    vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-table .item-img { width: 64px; height: 64px; object-fit: contain; background: var(--bg-elevated); border-radius: var(--radius); padding: 8px; }
.cart-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border-dim);
    margin-top: 8px;
}
.cart-total-label { font-size: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.cart-total-amount { font-size: 36px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 20% 20%, rgba(255,255,255,0.04), transparent),
        radial-gradient(ellipse 40% 50% at 80% 80%, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
}
.auth-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.auth-box h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.auth-box .auth-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
}
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.checkbox-group input[type=checkbox] {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-group a { color: var(--accent); text-decoration: underline; }

.pwd-rules {
    background: var(--bg-elevated);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pwd-rule {
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.pwd-rule.ok { color: var(--text); }
.pwd-rule::before { content: '✕'; font-size: 11px; }
.pwd-rule.ok::before { content: '✓'; }

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.reviews-page { padding: 60px; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s;
}
.review-card:hover { border-color: var(--border); }
.review-header { display: flex; align-items: center; gap: 14px; }
.review-avatar {
    width: 44px; height: 44px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-author { font-weight: 700; color: var(--white); font-size: 16px; }
.review-date { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.review-stars { display: flex; gap: 3px; }
.star { font-size: 18px; color: var(--text-dim); }
.star.filled { color: #FFD700; }
.review-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

.review-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 640px;
}
.review-form-box h2 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 28px; }
.star-picker { display: flex; gap: 8px; margin-bottom: 4px; }
.star-picker input { display: none; }
.star-picker label {
    font-size: 32px;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: #FFD700; }
.star-picker { flex-direction: row-reverse; justify-content: flex-end; }
.star-picker label:hover { transform: scale(1.2); }

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-page { padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
    width: 48px; height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-item h3 { font-size: 15px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item p, .contact-item a { font-size: 18px; color: var(--white); margin-top: 4px; }
.contact-item a:hover { color: var(--text); }

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-dim);
    height: 420px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; filter: invert(0.9) hue-rotate(155deg) saturate(0.5) brightness(0.7); }

.feedback-form {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.feedback-form h2 { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.feedback-form p.sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.feedback-fields { display: flex; flex-direction: column; gap: 18px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page { padding: 0 60px 80px; }
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-dim);
}
.about-section:last-child { border-bottom: none; }
.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }
.about-text h2 {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.about-text p { font-size: 17px; color: var(--text-muted); line-height: 1.8; }
.about-img {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}
.about-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04), transparent 70%);
}
.about-img img { width: 200px; height: 200px; object-fit: contain; position: relative; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.25s;
}
.advantage-card:hover { border-color: var(--border); }
.advantage-icon { font-size: 36px; }
.advantage-card h3 { font-size: 20px; font-weight: 700; color: var(--white); }
.advantage-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 72px);
}
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-dim);
    padding: 36px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}
.admin-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 24px 8px;
    margin-top: 20px;
}
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-nav-link:hover { color: var(--white); background: var(--bg-elevated); }
.admin-nav-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }

.admin-content { padding: 40px; }
.admin-content h1 { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.admin-content .sub { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-card .stat-value { font-size: 36px; font-weight: 700; color: var(--accent); font-family: var(--font-mono); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* Admin table */
.admin-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-dim);
}
.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-dim);
    font-size: 15px;
    color: var(--text);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-elevated); }
.admin-table .td-actions { display: flex; gap: 8px; }

/* Admin product form */
.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.admin-form h2 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-dim);
    padding: 60px 60px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-col p { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; }

.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
    width: 40px; height: 40px;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border-dim);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1440px; margin: 0 auto; width: 100%; }
.text-accent { color: var(--text); }
.text-muted  { color: var(--text-muted); }
.divider { height: 1px; background: var(--border-dim); margin: 0; }
.tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.tag-green { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--border); }
.tag-red   { background: rgba(255,71,87,0.1); color: var(--red); border: 1px solid rgba(255,71,87,0.25); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 40px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; opacity: 0.4; }
.empty-state h3 { font-size: 22px; font-weight: 700; color: var(--white); }
.empty-state p { font-size: 15px; max-width: 360px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-page { grid-template-columns: 1fr; }
    .feedback-form { grid-template-columns: 1fr; }
    .product-page { grid-template-columns: 1fr; gap: 40px; max-width: 700px; }
    .hero-deco { display: none; }
    .about-section { gap: 40px; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    header { padding: 0 32px; }
    .nav-pages { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { display: block; }
    .hero { padding: 60px 32px; }
    .mini-catalog { grid-template-columns: repeat(3, 1fr); }
    .promo-banner { flex-direction: column; padding: 40px 32px; }
    .promo-img img { width: 220px; }
    .catalog-section { padding: 60px 32px; }
    .profile-page { padding: 40px 32px; }
    .reviews-page { padding: 40px 32px; }
    .contacts-page { padding: 40px 32px; }
    .about-page { padding: 0 32px 60px; }
    .about-section { grid-template-columns: 1fr; }
    .about-section.reverse { direction: ltr; }
    .advantages-grid { grid-template-columns: 1fr 1fr; }
    footer { padding: 40px 32px 0; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-content { padding: 28px 20px; }
    .page-hero { padding: 60px 32px 40px; }
}

@media (max-width: 768px) {
    .mini-catalog { grid-template-columns: 1fr; gap: 2px; }
    .mini-cat-item { padding: 40px 24px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .auth-box { padding: 32px 24px; }
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { display: none; }
    .product-page { padding: 40px 24px; }
    .feedback-form { padding: 28px 24px; }
    .review-form-box { padding: 28px 24px; }
}

@media (max-width: 480px) {
    header { height: 60px; padding: 0 20px; }
    .mobile-menu { top: 60px; }
    .hero { padding: 40px 20px; min-height: auto; }
    .hero h1 { font-size: 36px; }
    .hero-actions { flex-direction: column; }
    .catalog-section { padding: 40px 20px; }
    .profile-page { padding: 24px 16px; }
    .reviews-page { padding: 24px 16px; }
    .contacts-page { padding: 24px 16px; }
    .about-page { padding: 0 16px 40px; }
    .page-hero { padding: 40px 20px 24px; }
    footer { padding: 32px 20px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .map-wrapper { height: 280px; }
    .promo-banner { padding: 28px 20px; }
    .promo-img { display: none; }
}

/* ============================================================
   ADMIN HEADER (reusable class)
   ============================================================ */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(8,12,10,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dim);
}
.admin-header .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}
