/* ===== PIZZA NAPOLI DELIVERY - MAIN STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

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

/* ===== DARK THEME (default) ===== */
:root {
    --color-primary: #ff2e55;
    --color-primary-hover: #ff1a44;
    --color-primary-active: #e60033;
    --color-primary-light: rgba(255, 46, 85, 0.1);
    --gradient-primary: linear-gradient(135deg, #ff2e55 0%, #ff6b6b 100%);
    
    --color-bg-dark: #1A1A1A;
    --color-bg-card: #242424;
    --color-bg-card-hover: #2C2C2C;
    --glass-dark: rgba(36, 36, 36, 0.7);
    --border-subtle: #2A2A2A;
    --border-strong: #404040;
    
    --color-text-primary: #E8D5C4;
    --color-text-secondary: #DDCBB8;
    --color-text-heading: #F5EBE0;
    --color-text-inverse: #1A1A1A;
    
    --shadow-glow: 0 4px 20px rgba(255, 46, 85, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 46, 85, 0.1);
    --shadow-card-hover: 0 25px 40px -15px rgba(255, 46, 85, 0.35), 0 0 0 1px rgba(255, 46, 85, 0.2);
    --gradient-hero: linear-gradient(145deg, #1A1A1A 0%, #2A1A1F 50%, #1A1A1A 100%);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --color-bg-dark: #FCF8F3;
    --color-bg-card: rgba(255, 255, 255, 0.85);
    --color-bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass-dark: rgba(255, 255, 255, 0.6);
    
    --border-subtle: rgba(255, 46, 85, 0.15);
    --border-strong: rgba(255, 46, 85, 0.3);
    
    --color-text-primary: #2E2A27;
    --color-text-secondary: #5F5A57;
    --color-text-heading: #1F1B18;
    --color-text-inverse: #FFFFFF;
    
    --color-primary-light: rgba(255, 46, 85, 0.2);
    
    --shadow-glow: 0 8px 25px rgba(255, 46, 85, 0.25);
    --shadow-card: 0 15px 35px -12px rgba(0, 0, 0, 0.1),
                   0 0 0 1px rgba(255, 46, 85, 0.1),
                   inset 0 1px 0 rgba(255,255,255,0.6);
    --shadow-card-hover: 0 25px 40px -15px rgba(255, 46, 85, 0.35),
                         0 0 0 1px rgba(255, 46, 85, 0.3),
                         inset 0 1px 0 rgba(255,255,255,0.8);
    --gradient-hero: linear-gradient(125deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(255,245,250,0.9) 40%, 
        rgba(255,255,255,0.9) 100%);
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.2s;
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку страницы */
}

/* Header */
.header {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 40px;
    position: sticky;
   top: 0;
    z-index: 100;
    box-shadow: var(--shadow-card);
  display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
  max-width: 1600px; /* Ограничиваем ширину как у контента */
  margin: 0 auto; /* Центрируем */
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.site-description {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.search-mini {
    padding: 10px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 14px;
    width: 280px;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    transition: all 0.3s;
}

.search-mini:focus {
    outline: none;
    border-color: var(--color-primary);
    width: 320px;
}

.cart-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.cart-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 46, 85, 0.45);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--color-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
    transition: 0.3s;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.02);
}

.theme-toggle i {
    font-size: 16px;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.theme-toggle-mobile {
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--color-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
    transition: 0.3s;
    font-size: 14px;
}

.theme-toggle-mobile:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.02);
}

/* Main Layout */
.main-container {
  display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
  max-width: 1600px;
  margin: 0 auto;
    width: 100%;
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
}

/* Sidebar Navigation */
.sidebar {
    background: var(--color-bg-card);
    padding: 30px 20px;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
    border-right: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

/* Скроллбар для sidebar - тонкий и незаметный */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

.nav-category {
    padding: 14px 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--color-text-primary);
    font-weight: 800;
    font-size: 18px;
}

.nav-category:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.nav-category.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Content Area */
.content {
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
    height: calc(100vh - 80px);
}

/* Скроллбар для content - тонкий и незаметный */
.content::-webkit-scrollbar {
    width: 4px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-strong);
}

.category-icon {
    font-size: 32px;
}

.category-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-heading);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-bg-card-hover);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 36px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-primary);
}

.product-weight {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.add-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 46, 85, 0.45);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(255, 46, 85, 0.4);
    align-items: center;
    justify-content: center;
}

.burger-icon {
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
}

.burger-icon:before,
.burger-icon:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.burger-icon:before {
    top: -7px;
}

.burger-icon:after {
    bottom: -7px;
}

.mobile-menu-btn.active .burger-icon {
    background: transparent;
}

.mobile-menu-btn.active .burger-icon:before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .burger-icon:after {
    bottom: 0;
    transform: rotate(-45deg);
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: var(--color-bg-dark);
    z-index: 999;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-sidebar.active {
    display: block;
}

.mobile-sidebar-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-sidebar-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 8px;
}

.mobile-sidebar-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.mobile-nav-group {
    margin-bottom: 24px;
}

.mobile-group-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mobile-nav-category {
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--color-text-primary);
    font-weight: 800;
}

.mobile-nav-category:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.mobile-nav-category.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.cart-modal {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card-hover);
}

.cart-modal h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 20px;
}

#cart-items {
    margin-bottom: 20px;
}

.cart-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.btn-secondary {
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--border-strong);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 46, 85, 0.4);
}

/* ===== ADDITIONAL CLASSES FROM app-delivery.js ===== */
.category-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.nav-count,
.mobile-nav-count {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.contact-card {
    background: var(--color-bg-card);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid var(--border-subtle);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
}

.contact-card-lazy {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

.contact-card-lazy.loaded {
    opacity: 1;
    transform: translateY(0);
}

.contact-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 12px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 14px;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.contact-icon {
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 16px;
}

.map-pin {
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.location-1,
.location-2 {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.opening-badge,
.opening-soon {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.mobile-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

.mobile-group-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.load-more-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 46, 85, 0.4);
}

.lazy-load-more {
    text-align: center;
    padding: 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important; /* Принудительно показываем бургер */
    }
    
    .header {
        padding: 12px 20px;
        flex-wrap: nowrap; /* Не переносить */
        align-items: center;
    }
    
    .logo-link {
        flex: 0 0 auto; /* Не растягивать */
        min-width: 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .site-description {
        font-size: 11px;
        display: block; /* Показываем на мобильных */
    }
    
    .header-actions {
        flex: 0 0 auto; /* Не растягивать */
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-top: 0;
        gap: 8px;
    }
    
    .cart-mini {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .content {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-title {
        font-size: 24px;
    }
}

/* ===== PRODUCT MODAL - VERTICAL LAYOUT v2.0 ===== */

/* Modal Overlay */
.modal-overlay {
   position: fixed;
  top: 0;
  left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
  display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(5px);
}

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

/* Modal Content - Vertical Layout */
#product-modal-content {
    background: var(--color-bg-card);
  border-radius: 24px;
  max-width: 600px;
    width: 100%;
  max-height: 90vh;
    overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
  to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Vertical Container */
.product-modal-vertical {
  display: flex;
    flex-direction: column;
}

/* Top Image Section */
.product-modal-image-top {
  position: relative;
    width: 100%;
    height: 320px;
    flex-shrink: 0;
    padding: 40px 30px 30px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.product-modal-image-top-img {
    width: 100%;
    height: 100%;
  object-fit: contain;
    transition: transform 0.4s;
}

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

/* Close Button in Image */
.product-modal-close-btn {
    position: absolute;
  top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 28px;
    cursor: pointer;
  display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 0;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-modal-close-btn:hover {
    background: var(--color-primary);
    border-color: transparent;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 46, 85, 0.5);
}

.product-modal-close-btn:active {
    transform: scale(0.95);
}

.product-modal-close-btn:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Modal Content */
#product-modal-content {
    background: var(--color-bg-card);
  border-radius: 20px;
  max-width: 900px;
    width: 100%;
  max-height: 90vh;
    overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
  to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Grid Layout */
.product-modal-grid {
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

/* Container for image (without button) */
.product-modal-image-container {
  position: relative;
    height: 100%;
    min-height: 400px;
  display: flex;
    align-items: center;
    justify-content: center;
   background: transparent;
    padding: 30px;
}

.product-modal-image {
    width: 100%;
    height: 100%;
  object-fit: contain;
    transition: transform 0.4s;
    border-radius: 12px;
}

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

/* Close Button - Positioned outside image area */
.product-modal-close-btn {
    position: absolute;
  top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 28px;
    cursor: pointer;
  display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    padding: 0;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-modal-close-btn:hover {
    background: var(--color-primary);
    border-color: transparent;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 46, 85, 0.5);
}

.product-modal-close-btn:active {
    transform: scale(0.95);
}

.product-modal-close-btn:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Right Column - Info */
.product-modal-info {
    padding: 40px;
  display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Title */
.product-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-heading);
    line-height: 1.3;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* Description */
.product-modal-description {
    font-size: 15px;
    line-height: 1.7;
  color: var(--color-text-secondary);
    margin-top: 8px;
}

/* Price & Weight Blocks */
.price-weight-blocks {
  display: flex;
    align-items: center;
    gap: 16px;
  margin: 12px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.price-block {
  display: flex;
    align-items: center;
}

.price-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.product-modal-weight {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 500;
    background: var(--color-bg-card-hover);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Addons */
.addons-block {
    padding: 16px;
    background: var(--color-bg-card-hover);
  border-radius: 12px;
  margin: 8px 0;
}



.addons-list {
  display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.addon-item {
    padding: 6px 12px;
    background: var(--color-bg-card);
  border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-primary);
  border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.addon-item:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Add Button */
.product-modal-add-btn {
  margin-top: auto;
    padding: 18px 32px;
    background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  display: flex;
   justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
  box-shadow: var(--shadow-glow);
}

.product-modal-add-btn:hover {
    transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 46, 85, 0.45);
}

.product-modal-add-btn:active {
    transform: translateY(0);
}

/* Scrollbar for modal */
#product-modal-content::-webkit-scrollbar {
    width: 6px;
}

#product-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

#product-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
  border-radius: 3px;
}

#product-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    #product-modal-content {
      max-width: 100%;
      max-height: 90vh;
      border-radius: 20px 20px 0 0;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
        }
      to {
            transform: translateY(0);
        }
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .product-modal-image-container {
        min-height: 250px;
      max-height: 250px;
    }
    
    .product-modal-info {
        padding: 24px;
        gap: 16px;
    }
    
    .product-modal-title {
        font-size: 24px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .product-modal-add-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .product-modal-close-btn {
      top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
