:root {
    --primary-color: #ff6b00;
    --secondary-color: #111;
    --border-color: #e5e7eb;
    --bg-color: #f9fafb;
    --text-color: #333;
}

/* Page Container */
.category-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Header */
.category-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.category-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.category-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Product Section */
.product-section {
    padding: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.card-info {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

/* No Products Found */
.no-products-found {
    background: #fff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    grid-column: 1 / -1;
}

.no-products-found i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-products-found h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-products-found p {
    color: #666;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-page-container {
        padding: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* ================= PAGE ================= */
    .category-page-container {
        padding: 10px;
    }

    /* ================= HEADER ================= */
    .category-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .category-header h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .category-header p {
        font-size: 14px;
    }

    /* ================= CATEGORY (PERFECT FIX) ================= */
    .cat-scroll {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding-bottom: 30px;
        justify-items: center;
    }

    .cat-item {
        text-align: center;
    }

    .cat-circle {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 6px;
        border-radius: 50%;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        overflow: hidden;
    }

    .cat-circle img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* 🔥 NO IMAGE CUT */
    }

    .cat-item p {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    /* ================= PRODUCTS ================= */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .product-image {
        height: 180px;
        padding: 10px;
    }

    .product-card .product-image img {
        object-fit: contain;
    }

    .product-card .card-info {
        padding: 12px;
    }

    .product-card .card-info h3 {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .price {
        gap: 6px;
    }

    .current-price {
        font-size: 16px;
    }

    .original-price {
        font-size: 12px;
    }

    .offer-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }

    /* ================= NO PRODUCTS ================= */
    .no-products-found {
        padding: 50px 20px;
    }

    .no-products-found i {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .no-products-found h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .no-products-found p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .category-page-container {
        padding: 8px;
    }
    
    .category-header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .category-header h1 {
        font-size: 20px;
    }
    
    .category-header p {
        font-size: 13px;
    }
    
    .product-grid {
        gap: 10px;
    }
    
    .product-card .product-image {
        height: 150px;
        padding: 8px;
    }
    
    .product-card .card-info {
        padding: 10px;
    }
    
    .product-card .card-info h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .original-price {
        font-size: 11px;
    }
    
    .offer-badge {
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        font-size: 9px;
    }
    
    .no-products-found {
        padding: 40px 15px;
    }
    
    .no-products-found i {
        font-size: 35px;
    }
    
    .no-products-found h2 {
        font-size: 18px;
    }
    
    .no-products-found p {
        font-size: 13px;
    }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 360px) {
    .product-grid {
        gap: 8px;
    }
    
    .product-card .product-image {
        height: 130px;
    }
}