/* static/style.css */
:root {
    --teal: #008080;
    --teal-light: #20B2AA;
    --teal-dark: #006666;
    --yellow: #FFD700;
    --yellow-dark: #FFC107;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray: #E0E0E0;
    --gray-border: #D0D5DD;
    --text-dark: #1a1a2e;
    --text-gray: #6B7280;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,128,128,0.15);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--gray-light);
    line-height: 1.5;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== ШАПКА ========== */
.header {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--teal);
    border: 2px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--teal-light);
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-badge {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-phone {
    font-weight: 600;
    font-size: 15px;
}

.callback-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--yellow);
    color: var(--yellow);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.callback-btn:hover {
    background: var(--yellow);
    color: #000;
}

/* ========== ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ========== */
.user-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
}

.bonus-badge {
    background: #FFD700;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
}

.logout-link {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 11px;
    transition: 0.3s;
}

.logout-link:hover {
    color: #ff4444;
    text-decoration: underline;
}

/* ========== ПОИСК ========== */
.search-bar {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-border);
}

.search-form {
    position: relative;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input {
    flex: 1;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #D0D5DD;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.search-form input:focus {
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0,128,128,0.08);
}

.search-icon-btn {
    padding: 12px 18px;
    background: #008080;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.search-icon-btn:hover {
    background: #006666;
    transform: scale(1.05);
}

.search-btn {
    padding: 12px 24px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: var(--teal-dark);
}

.search-info {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

/* ========== ПОИСК С ПОДСКАЗКАМИ ========== */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D0D5DD;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    transition: 0.2s;
}

.search-item:hover {
    background: #f0fafafa;
}

.search-item small {
    color: #888;
    white-space: nowrap;
}

.search-item.all-results {
    justify-content: center;
    color: #008080;
    font-weight: 700;
    background: #f0fafafa;
}

/* ========== ОСНОВНОЙ ЛЭЙАУТ ========== */
.main-layout {
    padding: 25px 0 50px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
    align-items: start;
}

/* ========== САЙДБАР С ПРОКРУТКОЙ ========== */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #008080 #f0f0f0;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #008080;
    border-radius: 3px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
    color: var(--teal-dark);
}

.category-menu {
    list-style: none;
}

.category-menu li {
    margin: 2px 0;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-menu li a {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    flex: 1;
    border-radius: 8px;
}

.category-menu li:hover {
    background: #f0fafafa;
}

.category-menu li.active {
    background: #e0f5f5;
}

.category-menu li.active a {
    font-weight: 700;
    color: var(--teal-dark);
}

.cat-count {
    font-size: 11px;
    color: var(--text-gray);
    padding-right: 10px;
    white-space: nowrap;
}

.reset-filter {
    display: block;
    margin-top: 12px;
    padding: 8px;
    text-align: center;
    background: #FFF3CD;
    color: #856404;
    border-radius: 8px;
    font-size: 13px;
    transition: 0.3s;
}

.reset-filter:hover {
    background: #FFE69C;
}

/* ========== КАТЕГОРИИ В САЙДБАРЕ ========== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 5px;
}

.cat-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a2e;
    transition: 0.2s;
}

.cat-main:hover {
    background: #e0f5f5;
}

.cat-main.active {
    background: #008080;
    color: white;
}

.cat-count {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.cat-main.active .cat-count {
    background: rgba(255,255,255,0.3);
    color: white;
}

.subcat-list {
    margin-left: 16px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cat-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    color: #555;
    transition: 0.2s;
}

.cat-sub:hover {
    background: #f5f5f5;
}

.cat-sub.active {
    background: #e0f5f5;
    color: #008080;
    font-weight: 600;
}

.cat-sub .cat-count {
    font-size: 10px;
}

/* ========== КОНТЕНТ ========== */
.content {
    min-height: 400px;
}

.breadcrumbs {
    font-size: 13px;
    margin-bottom: 15px;
    color: #888;
}

.breadcrumbs a {
    color: #008080;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 5px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.sort-select:focus {
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0,128,128,0.08);
}

.results-count {
    font-size: 14px;
    color: var(--text-gray);
    background: var(--white);
    padding: 5px 14px;
    border-radius: 20px;
}

/* ========== СЕТКА ТОВАРОВ ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--teal-light);
}

.product-image {
    position: relative;
    height: 200px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.no-image {
    font-size: 48px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--teal);
    color: var(--yellow);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-body {
    padding: 10px 12px 12px;
}

.product-category {
    font-size: 10px;
    color: #008080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.product-article {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
}

.product-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #1a1a2e;
    min-height: 30px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #006666;
    white-space: nowrap;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #D0D5DD;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    color: #1a1a2e;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #008080;
    color: white;
}

.qty-input {
    width: 35px;
    height: 28px;
    text-align: center;
    border: none;
    border-left: 1px solid #D0D5DD;
    border-right: 1px solid #D0D5DD;
    font-size: 13px;
    font-weight: 600;
    background: white;
}

.add-to-cart-btn {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, #008080, #006666);
    color: #FFD700;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #006666;
    transform: scale(1.02);
}

.order-btn {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--yellow);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.order-btn:hover {
    background: var(--teal-dark);
    transform: scale(1.02);
}

/* ========== СТРАНИЦА ТОВАРА ========== */
.product-page {
    padding: 30px 0;
    min-height: 60vh;
}

.product-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.product-detail-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-detail-image {
    background: #fafafa;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.product-detail-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-detail-category {
    font-size: 13px;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--teal-dark);
    margin-bottom: 20px;
}

.product-detail-article {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.product-detail-article span {
    font-weight: 600;
    color: var(--text-dark);
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.product-detail-actions .qty-control {
    border: 2px solid var(--teal);
    border-radius: 8px;
}

.product-detail-actions .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.product-detail-actions .qty-input {
    width: 50px;
    height: 40px;
    font-size: 16px;
}

.product-detail-actions .add-to-cart-btn {
    width: auto;
    padding: 12px 30px;
    font-size: 16px;
}

.product-detail-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
}

.product-detail-description h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--teal-dark);
}

.product-detail-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

.back-to-catalog {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--gray-light);
    color: var(--teal);
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.back-to-catalog:hover {
    background: var(--teal);
    color: var(--white);
}

/* ========== ПУСТОЕ СОСТОЯНИЕ ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.empty-state p {
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-state a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
}

.hint {
    font-size: 14px;
    color: var(--text-gray);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 92%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 15px;
    color: var(--teal-dark);
}

.modal-product-name {
    background: #f0fafafa;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 14px;
    border-left: 4px solid var(--teal);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
}

.order-info-box {
    background: #FFFDE7;
    border: 1px solid #FFE082;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
}

.order-info-box p {
    margin: 4px 0;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,128,128,0.3);
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    display: none;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.notification.success {
    background: #10B981;
}

.notification.error {
    background: #EF4444;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== КОРЗИНА В ШАПКЕ ========== */
.cart-link {
    background: #008080;
    color: #FFD700;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.cart-link:hover {
    background: #006666;
}

.mini-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 500;
    display: none;
    padding: 15px;
}

.mini-cart.show { display: block; }

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
}

.mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 12px;
}

.mini-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.cart-page-btn {
    background: var(--teal);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cart-page-btn:hover {
    background: var(--teal-dark);
}

/* ========== СТРАНИЦА КОРЗИНЫ ========== */
.cart-page { 
    padding: 30px 0; 
    min-height: 60vh; 
}

.cart-items { 
    background: white; 
    border-radius: 10px; 
    padding: 15px; 
}

.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.cart-item-name { 
    flex: 2; 
    font-size: 14px; 
    min-width: 150px; 
}

.cart-item-qty { 
    flex: 0.5; 
    text-align: center; 
}

.cart-item-price { 
    flex: 1; 
    text-align: right; 
}

.cart-item-subtotal { 
    flex: 1; 
    text-align: right; 
    font-weight: 700; 
}

.remove-btn { 
    background: none; 
    border: none; 
    color: red; 
    cursor: pointer; 
    font-size: 18px; 
    transition: 0.3s;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-total { 
    text-align: right; 
    font-size: 20px; 
    padding: 15px; 
    background: white; 
    border-radius: 10px; 
    margin-top: 10px; 
}

.checkout-form { 
    background: white; 
    border-radius: 10px; 
    padding: 20px; 
    margin-top: 15px; 
}

.min-order-warning { 
    background: #FFF3CD; 
    padding: 20px; 
    border-radius: 10px; 
    text-align: center; 
    font-size: 16px; 
}

.empty-cart { 
    text-align: center; 
    padding: 60px; 
    font-size: 20px; 
}

.back-link { 
    color: #FFD700; 
    text-decoration: none; 
    font-weight: 600; 
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.page-btn:hover { 
    background: #f0f0f0; 
}

.page-btn.active {
    background: #008080;
    color: white;
    border-color: #008080;
}

.page-dots { 
    padding: 8px 4px; 
    color: #888; 
}

/* ========== ФУТЕР ========== */
.footer {
    background: linear-gradient(135deg, #0f0f1a, #16213e);
    color: #ccc;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--yellow);
}

.footer-col h4 {
    color: var(--yellow);
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col p {
    margin: 6px 0;
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    font-size: 12px;
    color: #666;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        order: -1;
    }
    
    .category-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .category-menu li {
        flex: initial;
    }
    
    .category-menu li a {
        padding: 7px 12px;
        background: #f0f0f0;
        border-radius: 20px;
        font-size: 12px;
    }
    
    .cat-count {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .product-detail-header {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        min-height: 300px;
    }
    
    .user-badge {
        align-items: center;
    }
    
    .search-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-name {
        font-size: 11px;
    }
    
    .price-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-detail-actions .add-to-cart-btn {
        width: 100%;
    }
    
    .search-icon-btn {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sort-select {
        width: 100%;
    }
}