/* ============================================
   Shop Styles for TopMoment
   ============================================ */

/* Сброс стилей */
.shop-container,
.shop-container * {
    box-sizing: border-box;
}

/* Основной контейнер магазина */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок секции магазина */
.shop-section-title {
    font-size: 2rem;
    color: #2eabd1;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #2eabd1;
}

.shop-section-title i {
    margin-right: 10px;
}

/* Сетка категорий */
.shop-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.shop-category-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #e0e0e0;
}

.shop-category-card:hover {
    transform: translateY(-5px);
    border-color: #2eabd1;
    box-shadow: 0 8px 20px rgba(46, 171, 209, 0.2);
}

.shop-category-card i {
    font-size: 3rem;
    color: #2eabd1;
    margin-bottom: 15px;
    display: block;
}

.shop-category-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.shop-category-card p {
    color: #888;
    font-size: 0.9rem;
}

/* Сетка товаров */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.shop-product-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.shop-product-card:hover {
    transform: translateY(-5px);
    border-color: #2eabd1;
    box-shadow: 0 8px 20px rgba(46, 171, 209, 0.2);
}

.shop-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #1a1a1a;
}

.shop-product-imagePlaceholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #444;
    font-size: 4rem;
}

.shop-product-content {
    padding: 20px;
}

.shop-product-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.shop-product-content .product-short-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.shop-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.shop-product-price {
    color: #4caf50;
    font-size: 1.4rem;
    font-weight: 700;
}

.shop-product-price .old-price {
    color: #888;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-right: 8px;
}

.shop-product-actions {
    display: flex;
    gap: 10px;
}

.btn-shop {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2eabd1;
    color: #ffffff;
}

.btn-primary:hover {
    background: #5ec2e8;
}

.btn-secondary {
    background: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #444;
}

/* Детальная страница товара */
.product-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.product-detail-info h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 2rem;
    color: #4caf50;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-detail-price .old-price {
    color: #888;
    font-size: 1.2rem;
    text-decoration: line-through;
    margin-right: 12px;
}

.product-detail-description {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-detail-features {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.product-detail-features h4 {
    color: #2eabd1;
    margin-bottom: 15px;
}

.product-detail-features ul {
    list-style: none;
    padding: 0;
}

.product-detail-features li {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #e0e0e0;
}

.product-detail-features li:last-child {
    border-bottom: none;
}

.product-detail-features li i {
    color: #2eabd1;
    margin-right: 10px;
}

/* Форма заказа */
.order-form {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.order-form h3 {
    color: #2eabd1;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2eabd1;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Корзина */
.shopping-cart {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

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

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

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

.cart-item-info h4 {
    color: #ffffff;
    margin-bottom: 8px;
}

.cart-item-info .cart-item-price {
    color: #4caf50;
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quantity {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #2eabd1;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quantity:hover {
    background: #5ec2e8;
}

.btn-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f44336;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #d32f2f;
}

.cart-summary {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #2a2a2a;
}

.cart-summary h3 {
    color: #2eabd1;
    margin-bottom: 20px;
}

.cart-summary .total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 25px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    border-radius: 12px;
}

.empty-state i {
    font-size: 5rem;
    color: #333;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    font-size: 1rem;
}

.empty-state .btn-empty {
    margin-top: 20px;
}

/* Уведомления и сообщения */
.shop-notification {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.notification-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.notification-info {
    background: rgba(46, 171, 209, 0.1);
    border: 1px solid #2eabd1;
    color: #2eabd1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .shop-section-title {
        font-size: 1.5rem;
    }

    .shop-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .shop-container {
        padding: 15px;
    }

    .shop-section-title {
        font-size: 1.3rem;
    }

    .shop-category-card i {
        font-size: 2.5rem;
    }

    .shop-category-card h3 {
        font-size: 1rem;
    }

    .shop-product-image,
    .shop-product-imagePlaceholder {
        height: 160px;
    }

    .shop-product-price {
        font-size: 1.2rem;
    }

    .btn-shop {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .order-form {
        padding: 20px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-product-card,
.shop-category-card {
    animation: fadeIn 0.4s ease;
}

/* Вступительная секция магазина */
.shop-intro-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 0px 20px;
    margin-bottom: 60px;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.shop-intro-section .container {
    max-width: 800px;
}

.shop-intro-section .section-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.shop-intro-section .section-title i {
    color: #2eabd1;
    margin-right: 15px;
}

.shop-intro-section .section-description {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-shop-primary {
    background: #2eabd1;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 171, 209, 0.4);
}

.btn-shop-primary:hover {
    background: #5ec2e8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 171, 209, 0.6);
}

.btn-shop-primary i {
    margin-right: 10px;
}
