/* ===== СТРАНИЦА ФИТО-МАГАЗИНА (shop.css) ===== */

.shop-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/artania-fon.jpg') center/cover!important;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.shop-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.shop-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Категории товаров */
.categories-section {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--amber);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green), var(--turquoise));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Фильтры и сортировка */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.8rem 2rem;
    border: 2px solid var(--green);
    border-radius: 50px;
    background: white;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

.filter-select:focus {
    outline: none;
    border-color: var(--amber);
}

.sort-select {
    padding: 0.8rem 2rem;
    border: 2px solid var(--green);
    border-radius: 50px;
    background: white;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

/* Активные фильтры */
.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-tag {
    background: var(--amber);
    color: var(--dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    margin-left: 5px;
}

/* Сетка товаров */
.products-section {
    padding: 2rem 0 5rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-count {
    color: #666;
    font-size: 0.95rem;
}

.products-count span {
    color: var(--green);
    font-weight: 700;
    font-size: 1.1rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.view-btn:hover {
    border-color: var(--amber);
}

/* Сетка товаров (грид) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Сетка товаров (лист) */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.products-grid.list-view .product-image {
    height: 150px;
}

.products-grid.list-view .product-info {
    text-align: left;
    padding: 1rem;
}

.products-grid.list-view .product-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Карточка товара */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--amber);
    color: var(--dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.sale {
    background: var(--terracotta);
    color: white;
}

.product-badge.new {
    background: var(--green);
    color: white;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    color: var(--amber);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--green);
    font-family: var(--font-title);
}

.product-price {
    color: var(--terracotta);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.product-rating {
    color: var(--amber);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-rating span {
    color: #999;
    margin-left: 5px;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.product-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.page-item:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.page-item.active {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Корзина */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    background: var(--green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-family: var(--font-title);
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--green);
}

.cart-item-price {
    color: var(--terracotta);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.cart-footer {
    padding: 2rem;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total span:last-child {
    color: var(--terracotta);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Быстрый просмотр товара */
.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    z-index: 3000;
    display: none;
    overflow-y: auto;
}

.quick-view-modal.active {
    display: block;
}

.modal-content {
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }
    
    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-group {
        width: 100%;
    }
    
    .filter-select,
    .sort-select {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-image {
        height: 200px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
