* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #ff6b35;
    --secondary: #7209b7;
    --dark: #1a1a2e;
    --light: #ffffff;
    --gray: #f5f5f5;
    --text: #333333;
}

body { background: var(--light); color: var(--text); line-height: 1.6; }

.top-header { background: white; border-bottom: 1px solid #e0e0e0; padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.header-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.logo { font-size: 2.2rem; font-weight: bold; color: var(--dark); text-decoration: none; }
.logo span { color: var(--primary); }
.top-nav { display: flex; gap: 2rem; list-style: none; }
.top-nav a { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s; padding: 0.5rem 1rem; border-radius: 5px; }
.top-nav a:hover { color: var(--primary); background: var(--gray); }
.header-phone { font-size: 1.1rem; font-weight: 600; color: var(--dark); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--primary); }

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white; padding: 6rem 0; text-align: center; min-height: 500px; display: flex; align-items: center; justify-content: center;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 3px 3px 6px rgba(0,0,0,0.7); }
.hero p { font-size: 1.4rem; margin-bottom: 2rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }

.btn { display: inline-block; padding: 1rem 2.5rem; background: var(--primary); color: white; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem; transition: all 0.3s; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

section { padding: 4rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--dark); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.1); transition: all 0.3s; border: 1px solid #e0e0e0; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.product-image { 
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
    position: relative;
}
.product-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info { padding: 1.5rem; }
.product-info h3 { color: var(--dark); margin-bottom: 0.5rem; font-size: 1.3rem; }
.product-info .price { color: var(--primary); font-size: 1.5rem; font-weight: bold; margin: 1rem 0; }
.product-info p { color: #666; margin-bottom: 1rem; }
.add-to-cart { width: 100%; padding: 0.8rem; background: var(--dark); color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.add-to-cart:hover { background: var(--primary); }

.pricing-section { background: var(--gray); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.pricing-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.08); }
.pricing-card h3 { color: var(--secondary); margin-bottom: 1rem; }
.pricing-card .price { font-size: 2rem; color: var(--primary); font-weight: bold; margin: 1rem 0; }
.pricing-card ul { list-style: none; margin-top: 1rem; }
.pricing-card ul li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }

.contacts-section { background: white; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h3 { color: var(--dark); margin-bottom: 1.5rem; }
.contact-item { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.contact-item .icon { font-size: 1.5rem; }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--primary); }
.messengers { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.messenger-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; color: white; font-weight: 500; transition: all 0.3s; }
.messenger-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.telegram { background: #0088cc; } .max { background: #0077ff; } .vk { background: #0077ff; } .whatsapp { background: #25d366; }
.map-container { border-radius: 10px; overflow: hidden; height: 400px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 100%; border: none; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid #e0e0e0; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 999; }
.bottom-nav ul { display: flex; justify-content: space-around; list-style: none; padding: 0.5rem 0; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; color: var(--text); text-decoration: none; padding: 0.5rem 1rem; font-size: 0.85rem; transition: color 0.3s; }
.bottom-nav a:hover { color: var(--primary); }
.bottom-nav .icon { font-size: 1.5rem; margin-bottom: 0.2rem; }

.cart-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    z-index: 1001;
    transition: all 0.3s;
}
.cart-btn:hover { transform: scale(1.1); }
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

footer { background: var(--dark); color: white; text-align: center; padding: 2rem 0; margin-bottom: 80px; }

.admin-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gray); border: 2px solid #e0e0e0; transition: all 0.3s; padding: 0; }
.admin-btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.admin-btn img { width: 24px; height: 24px; }

.cart-modal, .checkout-modal, .confirmation-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center; padding: 1rem; }
.cart-modal.active, .checkout-modal.active, .confirmation-modal.active { display: flex; }
.cart-content, .checkout-content, .confirmation-content { background: white; border-radius: 15px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative; }
.cart-close { position: absolute; top: 1rem; right: 1rem; background: #ef476f; color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; font-weight: bold; }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid #eee; gap: 1rem; }
.cart-item-info { flex-grow: 1; }
.cart-item-name { font-weight: bold; color: var(--dark); }
.cart-item-price { color: var(--primary); font-weight: bold; }
.quantity-controls { display: flex; align-items: center; gap: 0.5rem; }
.quantity-btn { background: var(--secondary); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: bold; }
.quantity { font-weight: bold; min-width: 30px; text-align: center; }
.remove-btn { background: #ef476f; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }
.cart-total { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--primary); text-align: right; font-size: 1.5rem; font-weight: bold; }
.cart-total span { color: var(--primary); }
.cart-empty { text-align: center; padding: 2rem; color: #666; }
.checkout-btn, .submit-order { width: 100%; margin-top: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input { width: 100%; padding: 0.8rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
.form-group input:focus { outline: none; border-color: var(--primary); }
.delivery-options, .payment-options { display: flex; flex-direction: column; gap: 0.8rem; }
.radio-label { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; cursor: pointer; }
.radio-label:hover { border-color: var(--primary); background: var(--gray); }
.order-summary { background: var(--gray); padding: 1.5rem; border-radius: 10px; margin: 1.5rem 0; }
.summary-item { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.order-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: bold; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--primary); }
.order-total span:last-child { color: var(--primary); }

.success-icon { font-size: 4rem; margin-bottom: 1rem; text-align: center; }
.confirmation-details { background: var(--gray); padding: 1.5rem; border-radius: 10px; margin: 1.5rem 0; text-align: left; }
.confirmation-note { color: #666; font-size: 0.95rem; margin-bottom: 1.5rem; text-align: center; }

.notification { position: fixed; top: 100px; right: 20px; background: var(--primary); color: white; padding: 1rem 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 3000; animation: slideIn 0.3s ease; }
.notification.error { background: #ef476f; }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.telegram-float-btn {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background: #0088cc;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,136,204,0.4);
    z-index: 1001;
    transition: all 0.3s;
    text-decoration: none;
}

.telegram-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,136,204,0.6);
}

/* Admin panel styles */
.admin-panel { padding: 2rem 0; }
.admin-header { background: var(--dark); color: white; padding: 2rem 0; margin-bottom: 2rem; }
.admin-section { background: white; padding: 2rem; border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 3px 15px rgba(0,0,0,0.1); }
.upload-area { border: 3px dashed var(--primary); border-radius: 10px; padding: 3rem; text-align: center; cursor: pointer; transition: all 0.3s; }
.upload-area:hover { background: var(--gray); border-color: var(--secondary); }
.upload-area.dragover { background: var(--gray); border-color: var(--secondary); }
.preview-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.preview-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.preview-item img { width: 100%; height: 200px; object-fit: cover; }
.preview-item .remove { position: absolute; top: 5px; right: 5px; background: #ef476f; color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.product-form input, .product-form select, .product-form textarea { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; }
.product-form button { background: var(--primary); color: white; border: none; padding: 1rem 2rem; border-radius: 8px; cursor: pointer; font-weight: bold; }
.products-list { display: grid; gap: 1rem; }
.product-list-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 8px; }
.product-list-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; }
.product-actions { display: flex; gap: 0.5rem; }
.btn-edit { background: var(--secondary); color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }
.btn-delete { background: #ef476f; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }

@media (max-width: 768px) {
    .top-nav { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .contacts-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
    .section-title { font-size: 1.8rem; }
    .cart-content, .checkout-content, .confirmation-content { padding: 1rem; }
    .cart-item { flex-direction: column; align-items: flex-start; }
    .cart-btn { bottom: 80px; right: 15px; width: 55px; height: 55px; font-size: 1.6rem; }
    .telegram-float-btn { bottom: 80px; left: 15px; width: 55px; height: 55px; }
    .product-image { height: 280px; }
    .admin-section { padding: 1rem; }
}