/* ===== PAGE ===== */
.products-page {
    padding: 40px 60px;
    background: #fff;
    font-family: 'Inter', sans-serif;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid #3b82f6;
    color: #2563eb;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: none;
}

.sort-box select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    min-width: 180px;
}

/* ===== GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* ===== CARD ===== */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
}

/* ===== BADGES ===== */
.badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.badge {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}

.badge.green { background: #22c55e; }
.badge.red { background: #ef4444; }

/* ===== WISHLIST ===== */
.wishlist {
    position: absolute;
    top: 50px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    transition: 0.3s;
}

.wishlist:hover {
    transform: scale(1.1);
}

/* ===== IMAGE ===== */
.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* ===== TEXT ===== */
.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0 4px;
    color: #1f2937;
}

.product-sub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* ===== PRICE + CART ===== */
.price-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-weight: 700;
    color: #2563eb;
    font-size: 16px;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
}

/* ===== BUTTON ===== */
.add-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    transition: 0.3s;
}

.add-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
.rating-stock{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.rating i{ color:#facc15; }
.rating span{ font-size:13px; color:#555; }


/* ===== RESPONSIVE - 1024px (Tablet Landscape) ===== */
@media (max-width: 1024px) {
    .products-page {
        padding: 30px 40px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .filter-bar {
        gap: 15px;
    }

    .category-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 7px 15px;
        font-size: 13px;
    }
}

/* ===== RESPONSIVE - 768px (Tablet Portrait) ===== */
@media (max-width: 768px) {
    .products-page {
        padding: 25px 30px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .category-filters {
        justify-content: flex-start;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .sort-box {
        width: 100%;
    }

    .sort-box select {
        width: 100%;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-img {
        height: 160px;
    }
}

/* ===== RESPONSIVE - 426px (Mobile Large) ===== */
@media (max-width: 426px) {
    .products-page {
        padding: 20px 15px;
    }

    .filter-bar {
        margin-bottom: 25px;
    }

    .category-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 12px;
        border-radius: 12px;
    }

    .product-img {
        height: 140px;
    }

    .product-title {
        font-size: 13px;
        margin: 8px 0 3px;
    }

    .product-sub {
        font-size: 11px;
    }

    .price {
        font-size: 14px;
    }

    .old-price {
        font-size: 12px;
    }

    .add-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .wishlist {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 45px;
    }
}

/* ===== RESPONSIVE - 320px (Mobile Small) ===== */
@media (max-width: 320px) {
    .products-page {
        padding: 15px 10px;
    }

    .filter-bar {
        margin-bottom: 20px;
    }

    .category-filters {
        gap: 5px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        padding: 10px;
    }

    .product-img {
        height: 160px;
    }

    .product-title {
        font-size: 14px;
    }

    .price {
        font-size: 15px;
    }

    .add-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
}