:root {
    --primary-red: #dc143c;
    --primary-dark: #8b0000;
    --deep-red: #800000;
    --light-red: #ffe4e1;
    --hover-red: #b22222;
    --text-dark: #212529;
    --border-color: #dee2e6;
    --muted-text: #6c757d;
    --success-green: #28a745;
    --error-red: #dc3545;
    --warning-orange: #ffc107;
}

/* Shop */
/* shop-featured*/
#shop-featured{
    margin-top: 2rem;
}

#shop-featured .pagination{
    align-items: center;
    display: flex;
    justify-content: center;
}

#shop-featured .row h3{
    font-size: 1rem;
    font-weight: 500;
    color: #880d0d;
    margin-bottom: 0.5rem;
}

#shop-featured p{
    margin-bottom: 0;
}

#shop-featured .ads{
    color: goldenrod;
    margin-bottom: 0;
}

/* Product card compact layout */
#shop-featured .product {
    cursor: pointer;
    text-align: left; /* Override center alignment for text */
    transition: transform 0.2s ease;
}
#shop-featured .product:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

#shop-featured .product .img-fluid {
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Keep image centered */
    transition: transform 0.2s ease;
}

/* Price and discount container - side by side */
#shop-featured .product .price-discount-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    gap: 0.5rem;
}

/* Price styling - smaller */
#shop-featured .product .price-container {
    flex: 1;
    text-align: left;
}

#shop-featured .product .price-container .current-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.current-price .currency {
    font-size: 0.75em;  /* 75% of parent font size */
    font-weight: normal;
    margin-right: 1px;
}

#shop-featured .product .price-container .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.25rem;
}

.original-price .currency {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: normal;
    margin-right: 1px;
}

/* Discount sticker */
#shop-featured .product .discount-sticker {
    background-color: #ff4444;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Rating and sold info container - all in one line */
#shop-featured .product .rating-sold-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

/* Rating styling - single star with count */
#shop-featured .product .rating-info {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

#shop-featured .product .rating-info i {
    font-size: 0.8rem;
}

#shop-featured .product .rating-info .rating-text {
    font-size: 0.75rem;
    color: #666;
}

/* Sold count in middle */
#shop-featured .product .sold-info {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* Premium quality on right */
#shop-featured .product .quality-info {
    flex: 1;
    text-align: right;
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* Total sold styling */
#shop-featured .product .total-sold {
    text-align: left;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Button container - stretched on its own line */
#shop-featured .product .button-container {
    margin-top: 0.5rem;
}

#shop-featured .product .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    width: 100%; /* Stretch button full width */
}

#shop-featured .alert {
    margin-top: 3rem;
    text-align: center;
}

.category-tabs {
    color: #000;
    padding-top: 5rem !important;
}

.category-tabs .nav-link{
    color: #880d0d;
}

.category-tabs .nav-link.active {
    color: #fff !important;
    background-color: #beb2b2 !important;
    border: none;
}

.category-tabs hr{
    width: 50%;
    height: 1px;
    color: #880d0d;
    margin: 20px 0;
}

.btn-outline-primary{
    background-color: #fff;
    border-color: #880d0d;
    padding: 10px 20px;
    color: #880d0d;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

/* Mobile Styles - Below 600px */
@media (max-width: 600px) {
    
    
    
    /* Add top padding to shop section to prevent content hiding under fixed category bar */
    #shop-featured {
        margin-top: 0;
        padding-top: 200px; /* Adjust this value based on actual height of category-search-container */
    }
    
    /* Force 2 columns on mobile - Override Bootstrap */
    #shop-featured .product {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Reduce container padding to prevent horizontal scroll */
    #shop-featured .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #shop-featured .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    /* Product Image - Smaller on mobile */
    #shop-featured .product .img-fluid {
        margin-bottom: 0.35rem;
        max-width: 100%;
        height: auto;
    }
    
    /* Product Name - Smaller font */
    #shop-featured .row h3 {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
        line-height: 1.2;
    }
    
    /* Price and Discount Container */
    #shop-featured .product .price-discount-container {
        margin-bottom: 0.25rem;
        gap: 0.3rem;
    }
    
    /* Price - Smaller */
    #shop-featured .product .price-container .current-price {
        font-size: 0.95rem;
    }
    
    #shop-featured .product .price-container .original-price {
        font-size: 0.75rem;
        margin-left: 0.15rem;
    }
    
    /* Discount Sticker - Smaller */
    #shop-featured .product .discount-sticker {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
    
    /* Rating and Sold Container */
    #shop-featured .product .rating-sold-container {
        margin-bottom: 0.35rem;
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    /* Rating Info */
    #shop-featured .product .rating-info {
        gap: 0.2rem;
    }
    
    #shop-featured .product .rating-info i {
        font-size: 0.7rem;
    }
    
    #shop-featured .product .rating-info .rating-text {
        font-size: 0.65rem;
    }
    
    /* Sold and Quality Info */
    #shop-featured .product .sold-info,
    #shop-featured .product .quality-info {
        font-size: 0.65rem;
    }
    
    /* Button Container */
    #shop-featured .product .button-container {
        margin-top: 0.35rem;
    }
    
    /* Buy Now Button - Smaller */
    #shop-featured .product .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        width: 100%;
    }
    
    /* Prevent horizontal scroll on body */
    body {
        overflow-x: hidden;
    }

    #shop-featured .alert {
        margin-top: 0rem;
        text-align: center;
    }
    
    /* Main content adjustment */
    #shop-featured .main-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Category tabs styling adjustments for mobile */
    .category-tabs hr {
        width: 80%;
        margin: 10px auto;
    }
    
    .category-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .btn-outline-primary {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Extra small devices - Below 400px */
@media (max-width: 400px) {
    /* Even tighter spacing for very small screens */
    #shop-featured .product {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    #shop-featured .container-fluid {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    #shop-featured .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    /* Adjust padding-top if category bar is taller on small screens */
    #shop-featured {
        padding-top: 140px;
    }
}