/* Stock indicators */
.product-stock {
    font-size: 0.9rem;
    margin: 5px 0;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.product-stock.low-stock {
    background: #fff3cd;
    color: #856404;
}

.product-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Error and Loading States */
.error {
    color: #e74c3c !important;
}

.error-loading {
    color: #e74c3c;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.no-categories,
.no-products {
    color: #7f8c8d;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-categories,
.loading-products,
.loading-popular {
    color: #3498db;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--accent);
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--accent);
}

.add-to-cart:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Popular Products */
.popular-product {
    cursor: pointer;
    transition: transform 0.3s;
}

.popular-product:hover {
    transform: scale(1.05);
}

.birthday-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}