:root {
    --primary-red: #000000;
    --primary-dark: #1a1a1a;
    --deep-red: #333333;
    --light-red: #f5f5f5;
    --hover-red: #1a1a1a;
    --text-dark: #000000;
    --border-color: #e0e0e0;
    --muted-text: #666666;
    --success-green: #28a745;
    --error-red: #d32f2f;
    --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: #000000;
    margin-bottom: 0.5rem;
}

#shop-featured .product h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    word-break: break-word;
}

#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;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0.75rem;
    border: 2px solid transparent;
}
#shop-featured .product:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(139, 94, 60, 0.15);
    border-color: #000000;
}

#shop-featured .product .img-fluid {
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
    border-radius: 10px;
    max-height: 200px;
    object-fit: cover;
}

#shop-featured .product:hover .img-fluid {
    transform: scale(1.05);
}

/* 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: #000000;
    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.65rem;
    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 - buttons on same line */
#shop-featured .product .button-container {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#shop-featured .product .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    flex: 1;
    min-width: 0;
}

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

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

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

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

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

.btn-outline-primary{
    background-color: #fff;
    border-color: #000000;
    padding: 10px 20px;
    color: #000000;
    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;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    /* Buy Now Button - Smaller */
    #shop-featured .product .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        flex: 1;
        min-width: 0;
    }
    
    /* 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;
    }
}