/* ============================================
   MINIMALIST MODERN AQUA SHOP STYLE
   Легкий декор, чистота, воздух
============================================ */

/* ----- БАЗОВЫЕ ПЕРЕМЕННЫЕ ----- */
:root {
    --color-primary: #1a3e50;
    --color-primary-light: #2c5a6e;
    --color-primary-dark: #0e2a38;
    --color-accent: #2c7a5e;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-border: #e8e8e8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 1px 1px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-alt);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ----- ТИПОГРАФИКА ----- */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 1.75rem;
    font-weight: 400;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== НАВИГАЦИЯ ===== */
.site-header {
    max-width: 1280px;
    margin: 0 auto 2rem auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header h1 {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.site-header h1 a {
    color: var(--color-primary);
    transition: var(--transition);
}

.site-header h1 a:hover {
    color: var(--color-accent);
}

/* Новая стильная навигация */
.site-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.85rem;
    font-weight: 450;
    letter-spacing: 0.3px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
}

/* Эффект подчёркивания при наведении */
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.25s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

.site-nav a:hover {
    color: var(--color-primary);
}

/* Активная ссылка (текущая страница) */
.site-nav a.active {
    color: var(--color-primary);
}

/* Корзина в шапке */
.cart-link {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    background: var(--color-bg-alt);
    padding: 0.4rem 1rem;
    border-radius: 40px;
}

.cart-link:hover {
    color: var(--color-primary);
    background: var(--color-border);
}

.cart-badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

/* Мобильное меню — бургер (скрыт на десктопе) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 1px solid var(--color-border);
        margin-top: 0.5rem;
    }
    
    .site-nav.open {
        display: flex;
    }
    
    .site-nav a {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .site-nav a::after {
        display: none;
    }
    
    .cart-link {
        margin-left: auto;
    }
}

/* ----- ОСНОВНОЙ КОНТЕЙНЕР ----- */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

/* ----- ПОИСК ----- */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin-bottom: 2rem;
}

.search-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--color-bg);
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.search-form button {
    padding: 0.6rem 1.2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--color-primary-dark);
}

.reset-link {
    font-size: 0.8rem;
    color: var(--color-text-light);
    align-self: center;
}

.reset-link:hover {
    color: var(--color-accent);
}

/* ----- КАТЕГОРИИ (простая линия) ----- */
.category-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.category-menu a {
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: var(--transition);
    padding: 0.25rem 0;
}

.category-menu a:hover {
    color: var(--color-primary);
}

.category-menu a.active {
    color: var(--color-primary);
    border-bottom: 1.5px solid var(--color-primary);
    margin-bottom: -0.75rem;
}

/* ----- ФИЛЬТРЫ И СОРТИРОВКА ----- */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--color-bg);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-inputs input {
    width: 85px;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
}

.price-inputs span {
    color: var(--color-text-light);
}

.filter-submit {
    padding: 0.5rem 1.2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-submit:hover {
    background: var(--color-primary-dark);
}

.reset-filters {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-left: 0.75rem;
}

.reset-filters:hover {
    color: var(--color-accent);
}

/* ----- АКТИВНЫЕ ФИЛЬТРЫ (теги) ----- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-tag {
    font-size: 0.75rem;
    color: var(--color-text-light);
    background: var(--color-bg);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.filter-tag a {
    margin-left: 0.5rem;
    color: var(--color-accent);
}

/* ----- СЕТКА КАРТОЧЕК ----- */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
    align-items: stretch;
}

/* ----- КАРТОЧКА ТОВАРА ----- */
/* КАРТОЧКА ТОВАРА с анимацией */
.product-card {
    background: var(--color-bg);
    position: relative;
    padding: 0;
    transition: var(--transition);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* Анимация появления */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease forwards;
}

/* Ключевые кадры анимации */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки для каждой карточки (чем дальше — тем позже появляется) */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.50s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.60s; }
.product-card:nth-child(13) { animation-delay: 0.65s; }
.product-card:nth-child(14) { animation-delay: 0.70s; }
.product-card:nth-child(15) { animation-delay: 0.75s; }
.product-card:nth-child(16) { animation-delay: 0.80s; }
.product-card:nth-child(17) { animation-delay: 0.85s; }
.product-card:nth-child(18) { animation-delay: 0.90s; }
.product-card:nth-child(19) { animation-delay: 0.95s; }
.product-card:nth-child(20) { animation-delay: 1.00s; }

/* При наведении карточка поднимается */
.product-card:hover {
    transform: translateY(-4px);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}

.product-card-no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.product-card h3 {
    margin: 0.75rem 0 0.35rem;
}

.product-card h3 a {
    color: var(--color-text);
    transition: var(--transition);
}

.product-card h3 a:hover {
    color: var(--color-primary);
}

.product-description {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* ----- МЕТКИ ТОВАРОВ (минималистичные) ----- */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: var(--color-bg);
    border-radius: 12px;
    font-weight: 400;
    backdrop-filter: blur(4px);
}

.badge-new {
    background: var(--color-accent);
    color: white;
}

.badge-hit {
    background: var(--color-primary);
    color: white;
}

.badge-sale {
    background: #e8a735;
    color: white;
}

.badge-discount {
    background: #c45c4a;
    color: white;
}

/* ----- ЦЕНА ----- */
.product-price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.old-price {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-weight: 400;
}

.current-price {
    color: var(--color-accent);
    font-weight: 500;
}

.discount-badge {
    font-size: 0.7rem;
    background: var(--color-accent);
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

/* ----- СТАТУС НАЛИЧИЯ ----- */
.stock-out {
    font-size: 0.7rem;
    color: #c45c4a;
    min-height: 24px;  
    margin: 0.25rem 0;
}

.stock-low {
    font-size: 0.7rem;
    color: #e8a735;
    min-height: 24px;  
    margin: 0.25rem 0;
}
/* ----- КНОПКИ (минимальные) ----- */
.buy-button {
    width: 100%;
    padding: 0.6rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 450;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    margin-bottom: 0;  /* добавили для уверенности */
}

.buy-button:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.buy-button:disabled {
    background: var(--color-border);
    cursor: not-allowed;
    color: var(--color-text-light);
}

/* ===== ДЕТАЛЬНАЯ СТРАНИЦА ===== */
.detail-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--color-primary);
}

.detail-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.detail-gallery {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.detail-main-image {
    flex: 2;
    min-width: 250px;
}

.detail-main-image img {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}

.detail-thumbnails {
    flex: 1;
    min-width: 80px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thumbnail-img {
    width: 100%;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.thumbnail-img.active {
    opacity: 1;
    outline: 1px solid var(--color-primary);
}

.thumbnail-img:hover {
    opacity: 1;
}

.detail-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.detail-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 1rem 0;
}

.detail-description {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.detail-description h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.detail-specs {
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.detail-specs table {
    width: 100%;
}

.detail-specs td {
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

/* ===== КОРЗИНА ===== */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.back-to-shop {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    font-size: 0.85rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-qty {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-qty:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.qty-value {
    font-weight: 500;
    min-width: 28px;
    text-align: center;
}

.remove-link {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-link:hover {
    color: #c45c4a;
}

.cart-item-total {
    font-weight: 500;
    color: var(--color-primary);
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.clear-cart-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--color-text-light);
    cursor: pointer;
}

.clear-cart-btn:hover {
    color: #c45c4a;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.empty-cart p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.pagination a, 
.pagination .current-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.pagination a {
    color: var(--color-text-light);
    background: var(--color-bg);
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
}

.pagination .current-page {
    background: var(--color-primary);
    color: white;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: default;
}

.page-info {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-left: 0.5rem;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.message-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.toast-message {
    background: var(--color-primary);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    animation: slideInRight 0.25s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ===== */
.inline-form {
    display: inline;
}

.stock-green {
    color: var(--color-accent);
}

.stock-red {
    color: #c45c4a;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .main-content {
        padding: 0 1rem 1.5rem;
    }
    
    .product-container {
        gap: 1rem;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .quantity-control {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .total-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Форсируем прижатие кнопки */
.product-card > form:last-child {
    margin-top: auto;
}

/* ============================================
   НОВАЯ ГЛАВНАЯ — полноэкранная, лаконичная
============================================ */

/* ----- Полноэкранное hero ----- */
.fullscreen-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #333333;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-center {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-brand {
    font-size: 4rem;
    font-weight: 350;
    letter-spacing: 4px;
    color: white;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-link {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
}

.hero-link:hover {
    opacity: 0.7;
    border-bottom-color: white;
}

/* ----- Блок с описанием ----- */
.about-section {
    padding: 5rem 1.5rem;
    background: var(--color-bg);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.4rem;
    font-weight: 350;
    line-height: 1.7;
    color: var(--color-text-light);
    letter-spacing: -0.2px;
}

/* ----- Карусель ----- */
.carousel-section {
    padding: 0 0 4rem 0;
    background: var(--color-bg-alt);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 350;
    letter-spacing: 2px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    width: fit-content;
    margin: 0 auto;
    backdrop-filter: blur(4px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 0;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1a3e50;
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-primary);
}

.carousel-dot:hover {
    background: var(--color-primary-light);
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-brand {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    
    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
    }
    
    .hero-links {
        gap: 1rem;
    }
    
    .hero-link {
        font-size: 0.7rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .carousel-slide img {
        height: 350px;
    }
    
    .slide-caption {
        font-size: 0.9rem;
        bottom: 1rem;
    }
    
    .carousel-arrow {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
}

/* ===== SKELETON LOADER ===== */
.skeleton-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skeleton-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-title {
    height: 18px;
    width: 70%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-price {
    height: 20px;
    width: 40%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-button {
    height: 38px;
    width: 100%;
    background: #e0e0e0;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Скрываем скелетон, когда контент загружен */
.skeleton-container.hide {
    display: none;
}

/* ===== МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    max-width: 400px;
    width: 90%;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.modal-message {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn-cancel {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.modal-btn-cancel:hover {
    background: var(--color-border);
}

.modal-btn-confirm {
    background: var(--color-accent);
    color: white;
}

.modal-btn-confirm:hover {
    background: #1e5f4a;
    transform: translateY(-1px);
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(0);
}

/* На мобильных кнопка чуть меньше и ближе к краю */
@media (max-width: 768px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.25rem;
    color: var(--color-border);
}

.breadcrumbs .current {
    color: var(--color-primary);
    font-weight: 500;
}

/* Убираем хлебные крошки на главной */
body.home-page .breadcrumbs {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .main-content {
        padding: 0 1rem 1.5rem;
    }
    
    .product-container {
        gap: 1rem;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Горизонтальная прокрутка для таблицы корзины */
    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .cart-table th,
    .cart-table td {
        white-space: normal;
        word-break: break-word;
    }
    
    /* Увеличенные кнопки для пальцев */
    .btn-qty {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .quantity-control {
        gap: 0.75rem;
    }
    
    .remove-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Увеличенная пагинация для пальцев */
    .pagination a,
    .pagination .current-page {
        min-width: 44px;
        height: 44px;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .pagination {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .page-info {
        font-size: 0.85rem;
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    /* Поля фильтра цены на всю ширину */
    .price-inputs {
        flex-direction: row;
        width: 100%;
    }
    
    .price-inputs input {
        width: 100%;
        min-width: 80px;
        padding: 10px 8px;
        font-size: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-submit {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }
    
    .reset-filters {
        display: inline-block;
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }
}
/* ===== AJAX ПОДСКАЗКИ ПОИСКА ===== */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: var(--color-text);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--color-bg-alt);
}

.suggestion-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.suggestion-sku {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.suggestion-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.suggestion-old-price {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-left: 6px;
}

.no-suggestions {
    padding: 16px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }
    
    .suggestion-item {
        padding: 12px;
    }
    
    .suggestion-image {
        width: 40px;
        height: 40px;
    }
    
    .suggestion-name {
        font-size: 0.8rem;
    }
}

/* ===== ГАЛЕРЕЯ-КАРУСЕЛЬ НА СТРАНИЦЕ ТОВАРА ===== */
.detail-main-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 0;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-prev {
    left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gallery-next {
    right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 10;
}

/* На мобильных кнопки крупнее */
@media (max-width: 768px) {
    .gallery-arrow {
        font-size: 2rem;
        padding: 0.75rem 1.2rem;
    }
    
    .gallery-counter {
        bottom: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}