/* Shop Styles - MG Tire Center */

.shop-section {
    padding: 3rem 0;
    background: var(--gray-light);
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.shop-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    font-size: 1rem;
    border: 2px solid var(--navy);
    border-radius: 30px;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
}

.shop-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 78, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-quick-view:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-price {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: var(--navy-light);
}

.shop-loading,
.shop-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

/* Cart Icon in Nav */
.cart-nav-item {
    position: relative;
}

.cart-icon-btn {
    background: var(--gold);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}
