/* =========================================
   GEAR SHOP STYLING - shop.css
   ========================================= */

/* Category Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-btn {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.filter-btn:hover {
    background: #f8fafc;
    color: #2980b9;
    border-color: #cbd5e1;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2980b9 0%, #176394 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Category Badge inside Card */
.product-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.03em;
}

/* Product Image Wrapper */
.product-img-wrapper {
    width: 100%;
    height: 220px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

/* Product Details */
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ratings & Review */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars-container {
    display: flex;
    color: #fbbf24; /* yellow-400 */
}

.stars-container svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.rating-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.review-count {
    font-size: 0.8rem;
    color: #64748b;
}

/* Pricing and Info */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ea580c;
}

.price-note {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.product-description {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Highlighted Review Quote */
.review-quote-box {
    background: #f8fafc;
    border-left: 3px solid #2980b9;
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
}

.review-quote-author {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
    font-size: 0.75rem;
}

/* Buy Button */
.amazon-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.amazon-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
}

.amazon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Animations for Filtering */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .filter-bar {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
