/* Modern Store Styles */
/* CSS Variables are defined dynamically in design-vars.php */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Wrapper for sticky footer */
.content-wrapper {
    flex: 1 0 auto;
}

/* Header */
.store-header {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.city-selector:hover {
    background: var(--bg-page);
}

.city-selector i.bi-geo-alt {
    color: var(--accent-primary);
}

.city-change-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s;
}

.city-change-btn:hover {
    color: var(--accent-primary);
    transform: rotate(180deg);
}

.header-contacts {
    display: flex;
    gap: 1rem;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--accent-primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.header-center {
    flex: 2;
    max-width: 600px;
}

.search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i.bi-search,
.search-input-group .search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--accent-primary);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 2.5rem !important;
    border: 2px solid var(--border-default);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-clear:hover {
    background: var(--bg-page);
    color: var(--text-primary);
}

/* ========== LIVE SEARCH ========== */
.live-search-container {
    position: relative;
    width: 100%;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 2000;
}

.live-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
}

.live-search-items {
    display: flex;
    flex-direction: column;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.search-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item-image i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.search-item-no-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.search-item-no-image i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.live-search-item img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.search-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-item-title,
.search-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-brand {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.search-item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
}

.search-item-price .price {
    font-weight: 700;
    color: var(--accent-primary);
}

.search-item-price .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-item-price .discount-badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.in-stock-badge {
    color: #10b981;
    font-size: 1.2rem;
}

.out-stock-badge {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.live-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.live-search-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ========== CITY NOTIFICATION ========== */
.city-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.city-notification-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.city-notification-content i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.city-notification-content button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.city-notification-content button:hover {
    filter: brightness(0.9);
}

.city-notification-content button:last-child {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.city-notification-content button:last-child:hover {
    background: var(--bg-page);
}

/* Responsive для поиска */
@media (max-width: 768px) {
    .live-search-results {
        max-height: 400px;
    }

    .search-item-title {
        font-size: 0.9rem;
    }

    .header-top-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--bg-page);
    color: #f56565;
}

.header-right {
    display: flex;
    align-items: center;
}

.store-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.store-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0;
}

/* Кликабельное название магазина */
.header-left a:hover .store-title {
    color: var(--accent-secondary);
    transition: color 0.2s ease;
}

.header-left a {
    cursor: pointer;
}

/* ========== MOBILE HEADER ELEMENTS ========== */
/* Hamburger menu button */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile top buttons container */
.mobile-top-buttons {
    display: none;
    /* Hidden by default, shown on mobile */
    gap: 0.5rem;
}

/* Mobile search button */
.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-search-toggle:hover {
    background: var(--accent-primary);
    color: white;
}

/* Mobile phone button */
.mobile-phone-button {
    width: 40px;
    height: 40px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-phone-button:hover {
    background: var(--accent-primary);
    color: white;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 1rem;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-search-close {
    width: 40px;
    height: 40px;
    background: var(--bg-page);
    border: none;
    border-radius: 10px;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.mobile-live-search-container {
    position: relative;
    width: 100%;
}

.mobile-search-form {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.mobile-search-input {
    flex: 1;
    padding: 1rem;
    padding-right: 3rem;
    border: 2px solid var(--border-default);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-page);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.mobile-search-clear {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-search-clear:hover {
    background: var(--bg-page);
    color: var(--text-primary);
}

.mobile-search-submit {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-search-submit:hover {
    opacity: 0.9;
}

/* Mobile live search results */
.mobile-live-search-results {
    margin-top: 1rem;
    background: var(--bg-page);
    border-radius: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* ========== MOBILE SIDE MENU ========== */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
}

.mobile-side-menu.active {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: var(--bg-card);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-side-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
    background: var(--bg-page);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.mobile-menu-item.active {
    background: var(--bg-page);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.mobile-menu-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 1.5rem;
}

/* Mobile menu list - вертикальный список */
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: var(--bg-page);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.mobile-menu-item.active {
    background: var(--bg-page);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.mobile-menu-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile dropdown */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-toggle {
    justify-content: space-between;
}

.mobile-dropdown-toggle i.bi-chevron-down,
.mobile-dropdown-toggle i.bi-chevron-up {
    font-size: 1rem;
    margin-left: auto;
    transition: transform 0.2s;
}

.mobile-dropdown-toggle.active i.bi-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu {
    background: var(--bg-page);
    padding-left: 2rem;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-submenu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.mobile-submenu-item i {
/* Account & Login Styles */
.login-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-primary-rgb, 102, 126, 234), 0.1);
    border-radius: 8px;
    color: var(--accent-primary, #667eea);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.login-link:hover {
    background: rgba(var(--accent-primary-rgb, 102, 126, 234), 0.2);
    color: var(--accent-primary, #667eea);
}

.login-link i {
    font-size: 1.2rem;
}

.account-dropdown {
    position: relative;
    margin-right: 1rem;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-primary-rgb, 102, 126, 234), 0.1);
    border-radius: 8px;
    color: var(--accent-primary, #667eea);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.account-button:hover {
    background: rgba(var(--accent-primary-rgb, 102, 126, 234), 0.2);
    color: var(--accent-primary, #667eea);
}

.account-button i {
    font-size: 1.5rem;
}

.account-name {
    white-space: nowrap;
}

.account-dropdown:hover .account-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.account-dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary, #667eea), var(--accent-secondary, #764ba2));
    color: white;
}

.account-dropdown-header strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.account-dropdown-header small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.account-dropdown-content .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.2s ease;
}

.account-dropdown-content .dropdown-item:hover {
    background: #f7fafc;
}

.account-dropdown-content .dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.account-dropdown-content .dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.account-dropdown-content .dropdown-item.text-danger {
    color: #f56565 !important;
}

.account-dropdown-content .dropdown-item.text-danger:hover {
    background: #fff5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .account-name {
        display: none;
    }
    
    .login-link span {
        display: none;
    }
    
    .login-link {
        padding: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .account-button {
        padding: 0.5rem;
    }
    
    .account-dropdown {
        margin-right: 0.5rem;
    }
}

    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f56565;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(245, 101, 101, 0.4);
}

/* Cart Dropdown */
.cart-dropdown {
    position: relative;
}

.cart-dropdown:hover .cart-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.05);
}

.cart-dropdown-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-dropdown-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-dropdown-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 300px;
}

.cart-dropdown-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 0.5rem;
}

.cart-dropdown-item:hover {
    background: var(--bg-page);
}

.cart-dropdown-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg-page);
    padding: 0.25rem;
    flex-shrink: 0;
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-dropdown-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.cart-dropdown-item-quantity {
    color: var(--text-muted);
}

.cart-dropdown-item-price {
    font-weight: 600;
    color: var(--accent-primary);
}

/* Новые стили для обновленной корзины */
.cart-item-image-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--bg-page);
    padding: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-image-small i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-title-small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-item-total-small {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-primary);
    white-space: nowrap;
}

.cart-dropdown-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.cart-dropdown-empty i {
    font-size: 3rem;
    color: var(--border-light);
    margin-bottom: 1rem;
}

.cart-dropdown-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-page);
    border-radius: 0 0 12px 12px;
}

.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cart-dropdown-total span:last-child {
    color: var(--accent-primary);
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Navigation */
.store-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}

.store-nav .container {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
}

.nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    text-decoration: none;
}

.nav-link.active {
    background: var(--accent-primary);
    color: white;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-item-dropdown .nav-link {
    cursor: pointer;
}

.nav-item-dropdown .dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 0;
    padding: 0.5rem 0;
    z-index: 1000;
    animation: dropdownFadeIn 0.3s ease;
    /* Увеличиваем область наведения */
    padding-top: 0.75rem;
}

/* Псевдоэлемент для безопасной зоны наведения */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: var(--bg-page);
    color: var(--accent-primary);
    text-decoration: none;
}

.nav-dropdown-item i {
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-dropdown-item:hover i {
    color: var(--accent-primary);
}

.nav-dropdown-item.active {
    background: var(--bg-page);
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-dropdown-item.active i {
    color: var(--accent-primary);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-item-dropdown {
        width: 100%;
    }

    .nav-dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        border: none;
        box-shadow: none;
        background: var(--bg-page);
        border-radius: 0 0 10px 10px;
        padding: 0.25rem 0;
    }

    .nav-item-dropdown:hover .nav-dropdown-content {
        display: none;
        /* Отключаем hover на мобильных */
    }

    .nav-item-dropdown.mobile-open .nav-dropdown-content {
        display: block;
        /* Показываем по клику */
    }

    .nav-dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--bg-card);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ========== FEATURED PRODUCTS CAROUSEL ========== */
.featured-section-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.featured-section-wrapper .container {
    position: relative;
    z-index: 1;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.featured-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.featured-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0 0 0;
}

.featured-nav {
    display: flex;
    gap: 0.75rem;
}

.featured-nav-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-nav-btn:hover:not(:disabled) {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.featured-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.featured-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.featured-products-wrapper {
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.featured-product-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.featured-product-item.visible {
    display: block;
    opacity: 1;
}

/* Адаптация под разные экраны */
@media (min-width: 1024px) {
    .featured-products-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .featured-products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 639px) {
    .featured-products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .featured-section-wrapper {
        padding: 2rem 0;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-subtitle {
        font-size: 0.875rem;
    }

    .featured-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .featured-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .featured-products-wrapper {
        padding: 1rem;
    }
}

/* Индикаторы страниц */
.featured-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.featured-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.featured-indicator.active {
    width: 32px;
    border-radius: 5px;
    background: white;
}

/* Улучшаем карточки товаров в карусели */
.featured-section-wrapper .product-card {
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-section-wrapper .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* OLD Featured Slider Section - DEPRECATED */
.featured-section {
    margin-bottom: 3rem;
    display: none;
    /* Скрываем старую версию */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header .section-title {
    margin-bottom: 0;
    flex: 1;
}

.slider-nav {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    transform: none;
    border-color: var(--border-light);
    background: white;
    color: var(--text-primary);
}

.featured-slider {
    overflow: visible;
}

.featured-slider .swiper-slide {
    height: auto;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Filters and Sort Bar */
.filters-bar {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters-section {
    display: flex;
    gap: 0.75rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-page);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-toggle:hover {
    border-color: var(--accent-primary);
    background: white;
}

.filter-toggle.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-section label {
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.sort-select {
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Filters Panel */
.filters-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.price-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.brand-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.brand-checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.brand-checkbox:hover {
    background: var(--bg-page);
}

.brand-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.btn-apply-filters {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-reset-filters {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-muted);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-reset-filters:hover {
    border-color: #f56565;
    color: #f56565;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--bg-card);
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

/* ========== PRODUCT BADGES - STACKED VERSION ========== */

/* Контейнер для бейджей */
.product-badges-container {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.18rem !important;
    max-width: 35% !important;
}

/* Позиции контейнера */
.product-badges-container.product-badges-top-left {
    top: 8px;
    left: 8px;
    align-items: flex-start;
}

.product-badges-container.product-badges-top-right {
    top: 8px;
    right: 8px;
    align-items: flex-end;
}

.product-badges-container.product-badges-bottom-left {
    bottom: 8px;
    left: 8px;
    align-items: flex-start;
}

.product-badges-container.product-badges-bottom-right {
    bottom: 8px;
    right: 8px;
    align-items: flex-end;
}

/* Бейдж скидки - отдельный элемент */
.product-badge-discount {
    position: absolute;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%) !important;
    color: white !important;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: var(--badge-discount-size, 0.7rem);
    z-index: 11;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3) !important;
    line-height: 1;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap;
}

/* Позиции для бейджа скидки */
.product-badge-discount.product-badge-top-left {
    top: 8px;
    left: 8px;
}

.product-badge-discount.product-badge-top-right {
    top: 8px;
    right: 8px;
}

.product-badge-discount.product-badge-bottom-left {
    bottom: 8px;
    left: 8px;
}

.product-badge-discount.product-badge-bottom-right {
    bottom: 8px;
    right: 8px;
}

/* Универсальный стиль для всех бейджей */
.product-badge {
    padding: 0.12rem 0.35rem !important;
    border-radius: 3px !important;
    font-size: var(--badge-regular-size, 0.52rem);
    font-weight: 600 !important;
    text-transform: uppercase !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    line-height: 1.1 !important;
    backdrop-filter: blur(4px) !important;
    letter-spacing: 0.15px !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Цвета для разных типов бейджей */
.product-badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-size: var(--badge-regular-size, 0.52rem) !important;
}

.product-badge-hit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    font-size: var(--badge-regular-size, 0.52rem) !important;
}

.product-badge-featured {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
    font-size: var(--badge-regular-size, 0.52rem) !important;
}

.product-badge-stock {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-size: var(--badge-regular-size, 0.52rem) !important;
}

/* Адаптивность для мобильных */
@media (max-width: 639px) {
    .product-badges-container {
        gap: 0.25rem;
        max-width: 60%;
    }

    .product-badges-container.product-badges-top-left,
    .product-badges-container.product-badges-bottom-left {
        left: 6px;
    }

    .product-badges-container.product-badges-top-right,
    .product-badges-container.product-badges-bottom-right {
        right: 6px;
    }

    .product-badges-container.product-badges-top-left,
    .product-badges-container.product-badges-top-right {
        top: 6px;
    }

    .product-badges-container.product-badges-bottom-left,
    .product-badges-container.product-badges-bottom-right {
        bottom: 6px;
    }

    .product-badge-discount {
        padding: 0.15rem 0.35rem;
        font-size: 0.65rem;
        border-radius: 4px;
    }

    .product-badge {
        padding: 0.15rem 0.35rem;
        font-size: 0.6rem;
        border-radius: 3px;
    }

    .product-badge-discount.product-badge-top-left,
    .product-badge-discount.product-badge-top-right {
        top: 6px;
    }

    .product-badge-discount.product-badge-top-left {
        left: 6px;
    }

    .product-badge-discount.product-badge-top-right {
        right: 6px;
    }
}

/* OLD BADGE STYLES - DEPRECATED - Удалим старые стили */

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    border: none !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    color: #94a3b8 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    padding: 0;
}

.btn-wishlist:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #f43f5e !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2) !important;
}

.btn-wishlist.active {
    background: #f43f5e !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35) !important;
}

/* SVG иконка сердца */
.wishlist-icon {
    display: block;
    width: 18px;
    height: 18px;
    transition: all 0.25s ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.btn-wishlist:hover .wishlist-icon {
    transform: scale(1.05);
}

.btn-wishlist.active .wishlist-icon {
    transform: scale(1);
}

.btn-wishlist.active .wishlist-icon path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.btn-quick-view {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.product-card:hover .btn-quick-view {
    opacity: 1;
}

.btn-quick-view:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Lazy loading states */
.lazy-image {
    opacity: 0;
    filter: blur(5px);
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

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

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border-light);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 240px;
    overflow: visible;
}

.product-brand {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-prices {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1.2;
    opacity: 0.8;
    display: block !important;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-price {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--accent-primary) !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.product-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fef5e7;
    color: #d68910;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.btn-add-cart {
    width: 100%;
    padding: var(--button-padding-y, 0.875rem) var(--button-padding-x, 1rem);
    background: var(--btn-primary-bg);
    border: none;
    border-radius: var(--button-radius, 10px);
    color: var(--btn-primary-text);
    font-weight: var(--button-font-weight, 600);
    font-size: var(--button-font-size, 0.95rem);
    cursor: pointer;
    transition: var(--button-transition, all 0.3s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-add-cart i {
    font-size: 1.1rem;
}

/* Footer */
.store-footer {
    flex-shrink: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-info {
    background: #ebf8ff;
    color: #2c5282;
    border: 1px solid #bee3f8;
}

.alert i {
    font-size: 1.25rem;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.quick-view-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.quick-view-modal.active .quick-view-content {
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-page);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-size: 1.2rem;
}

.quick-view-close:hover {
    background: #f56565;
    color: white;
    transform: rotate(90deg);
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.quick-view-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    border-radius: 12px;
    padding: 2rem;
}

.quick-view-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.quick-view-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-view-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.quick-view-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.quick-view-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.quick-view-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.btn-view-details {
    padding: 0.875rem 1.5rem;
    background: var(--bg-page);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view-details:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #48bb78;
    color: #48bb78;
}

.toast-error {
    border-left: 4px solid #f56565;
    color: #f56565;
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
    color: var(--accent-primary);
}

.toast-notification i {
    font-size: 1.5rem;
}

/* ========== CART NOTIFICATION (Mobile) ========== */
.cart-notification-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.cart-notification-mobile.show {
    transform: translateY(0);
}

.cart-notif-content {
    padding: 1.5rem;
}

.cart-notif-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cart-notif-icon i {
    font-size: 3rem;
    color: #48bb78;
    animation: checkmark-pop 0.3s ease-out;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cart-notif-body {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 12px;
}

.cart-notif-image,
.cart-notif-image-placeholder {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.cart-notif-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1.5rem;
}

.cart-notif-info {
    flex: 1;
    min-width: 0;
}

.cart-notif-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cart-notif-product {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-notif-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.cart-notif-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-notif-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-notif-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cart-notif-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.cart-notif-btn-secondary {
    background: var(--bg-page);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.cart-notif-btn-secondary:hover {
    background: var(--bg-card);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-button {
    height: 44px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ========== MOBILE RESPONSIVE (≤768px) ========== */
@media (max-width: 768px) {

    /* ===== HEADER ===== */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .header-top-bar {
        padding: 0.75rem 0;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
    }

    .city-selector {
        font-size: 0.8rem;
        flex: 1;
    }

    .mobile-top-buttons {
        display: flex !important;
        gap: 0.5rem;
    }

    .header-contacts {
        display: none;
        /* Hide on mobile, use button instead */
    }

    .header-content {
        gap: 0.75rem;
        padding: 1rem 0;
        position: relative;
    }

    .header-left {
        flex: 1;
        min-width: 0;
        order: 2;
    }

    .header-left a {
        gap: 0.5rem;
    }

    .store-logo {
        height: 36px;
    }

    .store-title {
        font-size: 1rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Show mobile elements */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        flex-shrink: 0;
    }

    /* Hide desktop search */
    .header-center {
        display: none !important;
    }

    .header-right {
        order: 5;
        flex-shrink: 0;
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .cart-button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        border-radius: 10px !important;
    }

    .cart-badge {
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* ===== NAVIGATION ===== */
    /* Hide desktop nav on mobile, show in hamburger instead */
    .store-nav {
        display: none !important;
    }

    /* Dropdown styles (for use inside hamburger menu) */
    .nav-item-dropdown {
        position: relative;
        flex-shrink: 0;
    }

    .nav-item-dropdown .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        max-width: none;
        min-width: 90px;
        text-align: center;
    }

    .nav-item-dropdown .nav-link span {
        display: block;
    }

    .nav-item-dropdown .dropdown-arrow {
        display: block;
        margin-left: 0;
        margin-top: 0.125rem;
    }

    .nav-dropdown-content {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        bottom: auto !important;
        min-width: 180px !important;
        width: auto !important;
        max-width: 90vw !important;
        max-height: 300px !important;
        overflow-y: auto !important;
        border-radius: 12px !important;
        padding: 0.5rem !important;
        display: none !important;
        grid-template-columns: 1fr !important;
        gap: 0.25rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        z-index: 9999 !important;
    }

    .nav-item-dropdown.active .nav-dropdown-content,
    .nav-item-dropdown:hover .nav-dropdown-content {
        display: block !important;
    }

    .nav-dropdown-item {
        padding: 0.625rem 1rem !important;
        text-align: left !important;
        border-radius: 8px !important;
        background: transparent !important;
        font-size: 0.875rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        display: block !important;
    }

    .nav-dropdown-item:hover,
    .nav-dropdown-item:active {
        background: var(--bg-page) !important;
        color: var(--accent-primary) !important;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.375rem;
        padding: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .nav-links {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 0.5rem;
    }

    .nav-link {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        white-space: normal;
        text-align: center;
        flex-shrink: 0;
        min-width: fit-content;
        max-width: 120px;
    }

    .nav-link span {
        display: block;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .nav-link i {
        font-size: 0.95rem;
    }

    .nav-item-dropdown .nav-link {
        max-width: 100px;
    }

    .footer-links {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .sort-select {
        min-width: auto;
        width: 100%;
    }

    .filter-actions {
        flex-direction: column;
    }

    .price-inputs {
        flex-wrap: wrap;
    }

    .quick-view-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .quick-view-image img {
        max-height: 250px;
    }

    .toast-notification {
        right: 10px;
        top: 10px;
        left: 10px;
        width: auto;
    }

    .slider-nav {
        display: none;
    }

    /* Hide sidebar on mobile - it's now in hamburger menu */
    .store-sidebar {
        display: none !important;
    }

    /* Remove sidebar spacing when hidden */
    .page-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ========== INFINITE SCROLL ========== */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.infinite-scroll-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ========== PAGE LAYOUT WITH SIDEBAR ========== */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.page-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.page-content {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Custom page styles */
.custom-page {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.custom-page .page-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.custom-page .page-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.custom-page .page-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.custom-page .page-body p {
    margin-bottom: 1rem;
}

.custom-page .page-body ul,
.custom-page .page-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.custom-page .page-body li {
    margin-bottom: 0.5rem;
}

.custom-page .page-body a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.custom-page .page-body a:hover {
    text-decoration: none;
}

.custom-page .page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive layout */
@media (max-width: 991px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ========== SIDEBAR MENU ========== */
.store-sidebar {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-header {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.sidebar-menu,
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-submenu {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    display: none;
}

.sidebar-submenu.open {
    display: block;
}

.sidebar-menu>li {
    margin-bottom: 0.5rem;
}

.sidebar-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateX(4px);
}

.sidebar-menu-link.active {
    background: var(--accent-primary);
    color: white;
}

.menu-item-with-children {
    display: flex;
    align-items: center;
}

.menu-item-with-children .sidebar-menu-link {
    flex: 1;
}

.submenu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.submenu-toggle:hover {
    color: var(--accent-primary);
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

.submenu-toggle i {
    display: block;
}

/* Responsive sidebar */
@media (max-width: 991px) {
    .store-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
}

/* ========== EXTRA SMALL DEVICES (< 480px) ========== */
@media (max-width: 479px) {
    .nav-links {
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
        flex: 0 0 auto;
        width: 70px;
    }

    .nav-link span {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    .nav-link i {
        font-size: 0.9rem;
    }

    /* Dropdown на очень маленьких экранах */
    .nav-item-dropdown .nav-link {
        width: 75px;
        padding: 0.5rem 0.5rem;
    }

    .nav-item-dropdown .dropdown-arrow {
        font-size: 0.65rem;
    }

    .nav-dropdown-content {
        min-width: 150px !important;
        max-width: 85vw !important;
    }

    .nav-dropdown-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .store-title {
        font-size: 0.875rem;
    }

    .store-logo {
        height: 28px;
    }

    .city-selector {
        font-size: 0.8rem;
    }

    .header-contacts {
        flex-wrap: wrap;
    }

    .contact-link {
        font-size: 0.8rem;
    }

    .search-input {
        padding: 0.5rem 2rem 0.5rem 2rem;
        font-size: 0.8rem;
    }

    .cart-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
    }

    .nav-dropdown-content {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }

    .nav-dropdown-item {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.7rem !important;
    }

    .section-title {
        font-size: 1.125rem;
        padding: 0.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-image {
        height: 100px;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-rating {
        font-size: 0.65rem;
    }
}

/* ===== CART PAGE STYLES ===== */
/* Фикс для кнопки корзины - компактный размер везде */
.header-right .cart-button,
a.cart-button {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    border-radius: 11px !important;
}

/* Ещё меньше на мобильных */
@media (max-width: 768px) {

    .header-right .cart-button,
    a.cart-button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        border-radius: 10px !important;
    }
}

.cart-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty i {
    font-size: 5rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.cart-empty h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #718096;
    margin-bottom: 2rem;
}

.cart-empty .btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cart-empty .btn-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.cart-empty .btn-catalog i {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.cart-item-title:hover {
    color: var(--primary);
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f7fafc;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a5568;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #edf2f7;
}

.quantity-value {
    padding: 0.5rem 1rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    white-space: nowrap;
}

.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-of-type {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

.delivery-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.delivery-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

/* Стили только для селектора города в форме доставки */
.delivery-section .city-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-section .city-selector input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.delivery-section .city-selector button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.delivery-section .city-selector button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: var(--primary);
}

.delivery-option.selected {
    border-color: var(--primary);
    background: #f0f4ff;
}

.delivery-option input[type="radio"] {
    margin-right: 0.75rem;
}

.delivery-info {
    flex: 1;
}

.delivery-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.delivery-period {
    font-size: 0.85rem;
    color: #718096;
}

.delivery-price {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.delivery-loading {
    text-align: center;
    padding: 1rem;
    color: #718096;
}

.delivery-error {
    padding: 0.75rem;
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    color: #c53030;
    font-size: 0.9rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 0;
    color: #1a1a1a;
}

.checkout-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #4a5568;
    text-decoration: none;
}

.continue-shopping:hover {
    color: var(--primary);
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.checkout-modal.active {
    display: flex;
}

.checkout-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkout-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.order-summary-modal {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.order-summary-modal h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.submit-order-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.submit-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Delete Modal */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-modal.active {
    opacity: 1;
    visibility: visible;
}

.delete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.delete-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-align: center;
}

.delete-modal.active .delete-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.delete-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.delete-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.delete-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.delete-modal-text {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.delete-modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-cancel,
.btn-delete {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel {
    background: #f7fafc;
    color: #4a5568;
}

.btn-cancel:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.2s both;
}

.success-icon i {
    font-size: 3.5rem;
    color: white;
}

.success-modal h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.order-details {
    background: #f8fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-details p {
    margin: 0.5rem 0;
    color: #4a5568;
    font-size: 1rem;
}

.order-details strong {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.success-message {
    color: #718096 !important;
    font-size: 0.95rem !important;
}

.btn-success-continue {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-success-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Стили для скидок */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f56565 0%, #ef4444 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.savings-row {
    color: #10b981;
    font-weight: 600;
}

.savings-row i {
    color: #10b981;
}

.savings-amount {
    color: #10b981;
    font-weight: 700;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-items {
        padding: 0.75rem;
        border-radius: 12px;
        margin: 0 -0.25rem;
    }

    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
        max-width: 100%;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        max-height: 200px;
        object-fit: contain;
        border-radius: 8px;
    }

    .cart-item-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .cart-item-title {
        font-size: 0.95rem;
        line-height: 1.4;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cart-item-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0.25rem 0;
    }

    .cart-item-total {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1a1a1a;
        text-align: right;
        margin-top: 0.5rem;
    }

    .cart-item-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .quantity-controls {
        display: inline-flex;
        align-items: center;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        overflow: hidden;
        background: #f7fafc;
    }

    .quantity-btn {
        background: transparent;
        border: none;
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
        color: #4a5568;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
    }

    .quantity-value {
        padding: 0.4rem;
        font-weight: 600;
        min-width: 32px;
        text-align: center;
        font-size: 0.9rem;
        background: white;
    }

    .remove-btn {
        background: none;
        border: none;
        color: #f56565;
        font-size: 1.4rem;
        padding: 0.4rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .old-price {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .discount-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }

    .cart-summary {
        position: relative !important;
        top: auto !important;
        margin-bottom: 0;
        margin-top: 1.5rem;
    }

    .cart-page {
        padding-bottom: 6rem;
        /* Space for footer */
    }

    .container.cart-page {
        margin-bottom: 4rem;
    }
}

/* ===== CATALOG PAGE STYLES ===== */
.catalog-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu>li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.category-link:hover {
    background: #f7fafc;
    color: #2d3748;
}

.category-link.active {
    background: <?=htmlspecialchars($store['primary_color'] ?? '#4f46e5') ?>;
    color: white;
    font-weight: 500;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

.subcategories {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.subcategories .category-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.catalog-content {
    flex: 1;
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumbs a {
    color: #4a5568;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: <?=htmlspecialchars($store['primary_color'] ?? '#4f46e5') ?>;
}

.breadcrumb-separator {
    color: #cbd5e0;
}

.catalog-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.catalog-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.catalog-info {
    color: #718096;
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.no-products i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .catalog-container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        flex: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* ===== CHECKOUT PAGE STYLES ===== */
body {
    background-color: var(--bg-primary, #f8f9fa);
}

.checkout-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #212529);
}

.delivery-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: var(--accent-primary, #007bff);
}

.delivery-option.selected {
    border-color: var(--accent-primary, #007bff);
    background-color: rgba(var(--accent-primary-rgb, 0, 123, 255), 0.05);
}

.delivery-option input[type="radio"] {
    margin-right: 0.75rem;
}

.delivery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-name {
    font-weight: 500;
}

.delivery-period {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.delivery-price {
    font-weight: 600;
    color: var(--accent-primary, #007bff);
}

.order-summary {
    position: sticky;
    top: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #212529);
}

border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-quantity {
    font-size: 0.875rem;
    color: #6c757d;
}

.cart-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.btn-submit-order {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--accent-primary, #007bff);
    border: none;
    color: white;
}

.btn-submit-order:hover {
    background: var(--accent-secondary, #0056b3);
}

.city-search {
    position: relative;
}

.city-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.city-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.city-result-item:hover {
    background-color: #f8f9fa;
}

.city-result-item:last-child {
    border-bottom: none;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 991px) {
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* ===== PRODUCT PAGE STYLES ===== */

.product-page {
    padding: 2rem 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumbs a {
    color: #4a5568;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: #cbd5e0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



.main-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.main-image::after {
    content: '🔍';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image:hover::after {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

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

.product-details h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-brand {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.category-badge:hover {
    background: var(--primary);
    color: white;
}

.price-section {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.old-price {
    font-size: 1.5rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.discount-badge {
    background: #f56565;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.add-to-cart-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f7fafc;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a5568;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #edf2f7;
}

.quantity-value {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
}

.product-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.product-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description p {
    color: #4a5568;
    line-height: 1.7;
}

.product-specs {
    margin-top: 1.5rem;
}

.spec-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-label {
    flex: 0 0 150px;
    color: #718096;
    font-weight: 500;
}

.spec-value {
    color: #1a1a1a;
}

.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.image-modal-close:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .add-to-cart-section {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
}

/* ===== CHECKOUT PAGE STYLES ===== */
body {
    background-color: var(--bg-primary, #f8f9fa);
}

.checkout-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #212529);
}

.delivery-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: var(--accent-primary, #007bff);
}

.delivery-option.selected {
    border-color: var(--accent-primary, #007bff);
    background-color: rgba(var(--accent-primary-rgb, 0, 123, 255), 0.05);
}

.delivery-option input[type="radio"] {
    margin-right: 0.75rem;
}

.delivery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-name {
    font-weight: 500;
}

.delivery-period {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.delivery-price {
    font-weight: 600;
    color: var(--accent-primary, #007bff);
}

.order-summary {
    position: sticky;
    top: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #212529);
}

border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-quantity {
    font-size: 0.875rem;
    color: #6c757d;
}

.cart-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.btn-submit-order {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--accent-primary, #007bff);
    border: none;
    color: white;
}

.btn-submit-order:hover {
    background: var(--accent-secondary, #0056b3);
}

.city-search {
    position: relative;
}

.city-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.city-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.city-result-item:hover {
    background-color: #f8f9fa;
}

.city-result-item:last-child {
    border-bottom: none;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 991px) {
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* ===== PRODUCT PAGE STYLES ===== */

.product-page {
    padding: 2rem 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumbs a {
    color: #4a5568;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: #cbd5e0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



.main-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.main-image::after {
    content: '🔍';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image:hover::after {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

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

.product-details h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-brand {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.category-badge:hover {
    background: var(--primary);
    color: white;
}

.price-section {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.old-price {
    font-size: 1.5rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.discount-badge {
    background: #f56565;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.add-to-cart-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f7fafc;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a5568;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #edf2f7;
}

.quantity-value {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
}

.product-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.product-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description p {
    color: #4a5568;
    line-height: 1.7;
}

.product-specs {
    margin-top: 1.5rem;
}

.spec-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-label {
    flex: 0 0 150px;
    color: #718096;
    font-weight: 500;
}

.spec-value {
    color: #1a1a1a;
}

.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.image-modal-close:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .add-to-cart-section {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
}
/* Account Button - в стиле корзины */
.account-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-right: 0.75rem;
    white-space: nowrap;
}

.account-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.account-button i {
    font-size: 1.5rem;
}

.account-button .account-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mobile: только иконка */
@media (max-width: 768px) {
    .account-button {
        width: 48px;
        padding: 0;
        justify-content: center;
    }
    
    .account-button .account-name {
        display: none;
    }
}
