.shop-main { padding: 0 5%; }

.page-title {
    text-align: center;
    padding: 2rem;
    color: var(--accent-color);
    font-size: 2.5rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.product-card:hover { transform: translateY(-8px); }

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.2rem;
}

.product-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.product-info .category-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--secondary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
}

.product-info .desc {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.buy-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.buy-btn:hover { opacity: 0.9; }

.product-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;
}

.product-modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body { padding: 2rem; }
.modal-body img { width: 100%; border-radius: 10px; }
.modal-body h2 { margin: 1rem 0 0.5rem; }
.modal-body .price { color: var(--primary-color); font-size: 1.5rem; }
