/* ✅ FULL SCREEN CENTER EMPTY CATEGORY */
.empty-category-wrapper {
    min-height: calc(100vh - 260px); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-category-content {
    text-align: center;
}

.empty-category-content h3 {
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.empty-category-content p {
    color: #ffffff;
    font-size: 1rem;
}

 
 /* Category Header - Wooden / Gradient Style */
.category-header {
    background: linear-gradient(135deg, rgba(139,69,19,0.9), rgba(160,82,45,0.8));
    color: #fff;
    border: 3px solid #5a2d0c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 1rem;
}

.category-header h2 {
    font-weight: bold;
    margin: 0;
}

/* Decorative nails */
.nail {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #555;
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px #000;
}

.nail.left { top: 10px; left: 10px; }
.nail.right { top: 10px; right: 10px; }

/* --- GRID LAYOUT --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 30px 0;
}

/* --- PRODUCT CARD --- */
.product_card {
    background: #ffffffcd;
    border-radius: 15px;
    box-shadow: 0 15px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    padding-bottom: 15px;
}
.product_card:hover {
    transform: translateY(-5px);
}

.product_img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.pc_content {
    padding: 20px;
}

.pc_content h2 {
    font-size: 1.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.pcc_in {
    font-size: 1.5rem;
    color: #666;
}

.pcc_price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
    margin-top: 5px;
}

.pcc_stock {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

/* --- BUTTONS --- */
.pcc_btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

/* --- SAME COLOR (as browse product) --- */
.viewbtn {
    background-color: #111;
    color: #fff;
}
.viewbtn:hover {
    background-color: #333;
}

/* --- RESPONSIVE --- */
/* Desktop - 5 columns (1400px and above) */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* Large screens - 4 columns (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.3rem;
    }
}

/* Tablet - 3 columns (769px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .product_img {
        height: 200px;
    }
    
    .pc_content h2 {
        font-size: 1.5rem;
    }
    
    .pcc_in {
        font-size: 1.2rem;
    }
    
    .pcc_price {
        font-size: 1.2rem;
    }
}

/* Mobile - 2 columns (max 768px) */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 20px 0;
    }
    
    .product_card {
        padding-bottom: 10px;
    }
    
    .product_img {
        height: 180px;
    }
    
    .pc_content {
        padding: 15px;
    }
    
    .pc_content h2 {
        font-size: 1.3rem;
    }
    
    .pcc_in {
        font-size: 1rem;
    }
    
    .pcc_price {
        font-size: 1.1rem;
    }
    
    .pcc_stock {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Small Mobile - 2 columns (max 480px) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin: 15px 0;
    }
    
    .product_card {
        border-radius: 10px;
        padding-bottom: 8px;
    }
    
    .product_img {
        height: 150px;
    }
    
    .pc_content {
        padding: 10px;
    }
    
    .pc_content h2 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .pcc_in {
        font-size: 0.9rem;
    }
    
    .pcc_price {
        font-size: 1rem;
        margin-top: 3px;
    }
    
    .pcc_stock {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}