* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.main-content {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}



button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

button:hover::before {
    left: 100%;
}

#reset-filters {
    background: #6c757d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #667eea;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.product-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.product-card:hover .product-category {
    transform: scale(1.05);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.pagination button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close {
    color: #6c757d;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 25px;
    top: 20px;
    z-index: 1001;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.close:hover {
    color: #e74c3c;
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#modal-main-image:hover {
    transform: scale(1.02);
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.product-details h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-details .price {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.product-specs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-specs h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Comprehensive Mobile Optimization for Products Page */
@media (max-width: 768px) {
    /* Filters Mobile */
    .filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
        align-items: stretch;
        margin-bottom: 2rem;
    }
    
    .filter-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .filter-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* Search Bar Mobile */
    .search-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-bar input {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    /* Products Grid Mobile */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .product-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .product-card img {
        height: 200px;
        border-radius: 10px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem;
    }
    
    .product-card .price {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .product-card .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Modal Mobile */
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    #modal-main-image {
        height: 220px;
        border-radius: 10px;
    }
    
    .product-details h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .product-details .price {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .product-details p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Pagination Mobile */
    .pagination {
        gap: 0.5rem;
        margin-top: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination button {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Loading and Error States */
    .loading,
    .error {
        padding: 1.5rem;
        font-size: 1rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    /* Ultra Mobile Optimization */
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .filters {
        padding: 1rem;
        margin-bottom: 2rem;
        gap: 0.8rem;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .search-bar {
        padding: 0.8rem;
    }
    
    .search-bar input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .product-card {
        max-width: none;
        padding: 1rem;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card h3 {
        font-size: 1rem;
    }
    
    .product-card .price {
        font-size: 1.2rem;
    }
    
    .product-card .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    #modal-main-image {
        height: 180px;
    }
    
    .product-details h2 {
        font-size: 1.4rem;
    }
    
    .product-details .price {
        font-size: 1.6rem;
    }
    
    .pagination button {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

/* Стили для кнопки "В корзину" */
.btn-add-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-add-cart i {
    font-size: 16px;
}

/* Стили для модального окна корзины */
.cart-modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.cart-modal-body {
    padding: 2rem;
}

.cart-modal-body h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.cart-items {
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.3rem;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.cart-total {
    border-top: 2px solid #667eea;
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
}

.order-form {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.order-form h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Специальные стили для select социальной сети */
.form-group select[name="socialNetwork"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    position: relative;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23667eea" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group select[name="socialNetwork"]:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group select[name="socialNetwork"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Стили для опций select */
.form-group select[name="socialNetwork"] option {
    padding: 12px;
    font-weight: 500;
    color: #2c3e50;
    background: white;
}

.form-group select[name="socialNetwork"] option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Анимация для лейбла социальной сети */
.form-group label[for="social-network"] {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-group label[for="social-network"]::before {
    content: "📱";
    font-size: 1.1em;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.form-group:focus-within label[for="social-network"]::before {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Стили для поля ввода контакта социальной сети */
.form-group input[name="socialContact"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-group input[name="socialContact"]:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group input[name="socialContact"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.form-group input[name="socialContact"]::placeholder {
    color: #6c757d;
    font-style: italic;
    font-weight: 400;
}

/* Анимация для лейбла поля контакта */
.form-group label[for="social-contact"] {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.form-group label[for="social-contact"]::before {
    content: "🔗";
    font-size: 1.1em;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.form-group:focus-within label[for="social-contact"]::before {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Анимация появления поля контакта */
#social-contact-group {
    transition: all 0.4s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
}

#social-contact-group[style*="block"] {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit-order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-continue-shopping {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-cart h3 {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Cart Mobile Optimization */
@media (max-width: 768px) {
    .cart-modal-content {
        margin: 2% auto;
        width: 95%;
        border-radius: 15px;
    }
    
    .cart-modal-body {
        padding: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-details .price {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .quantity-controls {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .quantity-controls button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .quantity-controls input {
        width: 60px;
        padding: 8px;
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-submit-order,
    .btn-continue-shopping {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    .empty-cart {
        padding: 2rem 1rem;
    }
    
    .empty-cart i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .cart-modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .cart-modal-body {
        padding: 1rem;
    }
    
    .cart-item {
        padding: 0.8rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-details h4 {
        font-size: 0.9rem;
    }
    
    .cart-item-details .price {
        font-size: 1.1rem;
    }
    
    .quantity-controls button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .quantity-controls input {
        width: 50px;
        padding: 6px;
        font-size: 12px;
    }
    
    .btn-submit-order,
    .btn-continue-shopping {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .empty-cart {
        padding: 1.5rem 0.5rem;
    }
    
    .empty-cart i {
        font-size: 2.5rem;
    }
    
    .empty-cart h3 {
        font-size: 1.2rem;
    }
}