* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a1a, #000);
    border-bottom: 2px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 
        0 0 10px #ff6b35,
        0 0 20px #ff6b35,
        0 0 30px #ff6b35;
    letter-spacing: 3px;
}

.cart-icon {
    position: relative;
    font-size: 2rem;
    cursor: pointer;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px #ff6b35;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff6b35;
    color: #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Main Content */
.main {
    padding: 40px 0;
}

.products h2 {
    font-size: 2rem;
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
    margin: 40px 0 20px 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    border-color: #ff6b35;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.3),
        inset 0 0 20px rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #333, #555);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.fallback-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 5px #ff6b35;
    margin-bottom: 10px;
}

.retail-price {
    font-size: 1.5rem;
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 5px #ff6b35;
    margin-bottom: 5px;
}

.wholesale-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wholesale-price {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: normal;
    text-shadow: none;
    background: rgba(255, 107, 53, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}


/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.cart-overlay.active {
    display: flex;
    justify-content: flex-end;
}

.cart-sidebar {
    width: 400px;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-left: 2px solid #ff6b35;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.cart-header h3 {
    color: #ff6b35;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #ff6b35;
}

.close-cart {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-cart:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ff6b35;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #ff6b35;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #ff6b35;
    color: #000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.quantity {
    color: #fff;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #ff6666;
    transform: scale(1.05);
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ff6b35;
}

.total-price {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 10px #ff6b35;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid #ff6b35;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: scale(1);
    opacity: 1;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.product-modal-header h3 {
    color: #ff6b35;
    font-size: 1.8rem;
    text-shadow: 0 0 10px #ff6b35;
}

.close-product-modal {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-product-modal:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ff6b35;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.product-modal-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #333, #555);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ff6b35;
    text-shadow: 0 0 15px #ff6b35;
    overflow: hidden;
    position: relative;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-modal.active .product-modal-image {
    transform: scale(0.6);
    opacity: 1;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transform: scale(1.3);
    transition: transform 0.4s ease;
}

.product-modal.active .product-modal-image img {
    transform: scale(1.2);
}

.product-modal-image:hover img {
    transform: scale(1.4);
}

.product-modal-image:hover {
    transform: scale(0.7);
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.product-modal.active .product-modal-info {
    transform: translateY(0);
    opacity: 1;
}

.product-modal-price {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #555;
}

.product-modal-price .retail-price {
    font-size: 2rem;
    color: #ff6b35;
    font-weight: bold;
    text-shadow: 0 0 10px #ff6b35;
    margin-bottom: 15px;
}

.product-modal-price .wholesale-prices h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #ff6b35;
}

.product-modal-price .wholesale-price {
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    margin-bottom: 5px;
    color: #ccc;
}

.product-colors {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #555;
}

.product-colors h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #ff6b35;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.color-item {
    background: rgba(255, 107, 53, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-item:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}

.color-item.selected {
    background: rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transform: scale(1.05);
}

.product-quantity {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #555;
}

.product-quantity h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #ff6b35;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.quantity-selector .quantity-btn {
    background: #ff6b35;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.quantity-selector .quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.quantity-selector input {
    background: #555;
    border: 1px solid #777;
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    width: 80px;
}

.quantity-selector input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.cart-item-color {
    color: #ccc;
    font-size: 0.9rem;
    margin: 5px 0;
    font-style: italic;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-per-item {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: bold;
}

.total-price {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}

.product-modal-actions {
    margin-top: 20px;
}

.add-to-cart-modal {
    width: 100%;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.add-to-cart-modal:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.checkout-modal.active {
    display: flex;
}

.checkout-content {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid #ff6b35;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.checkout-header h3 {
    color: #ff6b35;
    font-size: 1.8rem;
    text-shadow: 0 0 10px #ff6b35;
}

.close-checkout {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-checkout:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ff6b35;
}

.order-summary {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #555;
}

.order-summary h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #ff6b35;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #fff;
}

.summary-total {
    border-top: 1px solid #555;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
    color: #ff6b35;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ff6b35;
    margin-bottom: 5px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff6b35;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.phone-hint {
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.form-group input:invalid {
    border-color: #ff4444;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.form-group input:valid {
    border-color: #44ff44;
    box-shadow: 0 0 5px rgba(68, 255, 68, 0.3);
}

.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.copy-order-btn,
.telegram-btn {
    flex: 1;
    padding: 15px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.copy-order-btn {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: #000;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.copy-order-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.telegram-btn {
    background: linear-gradient(45deg, #0088cc, #00aaff);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .checkout-content {
        width: 95%;
        padding: 20px;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Анимации */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px #ff6b35; }
    50% { text-shadow: 0 0 20px #ff6b35, 0 0 30px #ff6b35; }
}

.logo {
    animation: glow 2s ease-in-out infinite;
}

/* Стили для картриджей */
#cartridgesGrid .product-card {
    border: 2px solid #4CAF50;
    background: linear-gradient(145deg, #1a2a1a, #2a3a2a);
}

#cartridgesGrid .product-card:hover {
    border-color: #4CAF50;
    box-shadow: 
        0 0 20px rgba(76, 175, 80, 0.3),
        inset 0 0 20px rgba(76, 175, 80, 0.1);
}

#cartridgesGrid .product-card::before {
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
}

#cartridgesGrid .product-name {
    color: #4CAF50;
    text-shadow: 0 0 5px #4CAF50;
}

#cartridgesGrid .retail-price {
    color: #4CAF50;
    text-shadow: 0 0 5px #4CAF50;
}

#cartridgesGrid .wholesale-price {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #ccc;
}

#cartridgesGrid .min-order {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 5px 0;
    text-shadow: 0 0 5px #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Скрытие элементов */
.hidden {
    display: none !important;
}
