/* Hero Slider Styles */
.hero-slider {
    margin-bottom: 20px;
}

.carousel-inner {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 15px;
}

.carousel-item img {
    height: 400px !important;
    width: 100% !important;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 6px;
    bottom: 40px;
    left: 10%;
    right: 10%;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.carousel-caption .btn-primary {
    background: linear-gradient(135deg, #ffb0f89, #0056b3);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.carousel-caption .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Features Section Styles */
.features-section {
    padding: 10px 0;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.feature-box {
    text-align: center;
    padding: 15px 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 8px;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.feature-box i {
    font-size: 2.5rem;
    color: #ffb0f89;
    margin-bottom: 15px;
    display: block;
}

.feature-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.feature-box p {
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem;
}

/* Categories Section Styles */
.categories-section {
    padding: 10px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ffb0f89, #0056b3);
}

.category-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-card h4 {
    padding: 12px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    background: white;
    transition: color 0.3s ease;
}

.category-card:hover h4 {
    color: #ffb0f89;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .carousel-inner {
        margin: 0 10px;
    }
    
    .carousel-item img {
        height: 300px !important;
    }
    
    .carousel-caption {
        bottom: 20px;
        left: 5%;
        right: 5%;
        padding: 12px;
    }
    
    .carousel-caption h2 {
        font-size: 1.6rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .features-section {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .feature-box {
        padding: 12px 6px;
        margin-bottom: 6px;
    }
    
    .feature-box i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature-box h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .feature-box p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .categories-section {
        padding: 15px 0;
    }
    
    .category-card {
        margin-bottom: 12px;
    }
    
    .category-card img {
        height: 140px;
    }
    
    .category-card h4 {
        padding: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Force 2 columns for features on mobile */
    .features-section .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .features-section .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }
    
    /* Force 2 columns for categories on mobile */
    .categories-section .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .categories-section .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }
    
    .carousel-inner {
        margin: 0 8px;
    }
    
    .carousel-item img {
        height: 250px !important;
    }
    
    .carousel-caption {
        bottom: 15px;
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .features-section {
        padding: 10px 0;
    }
    
    .feature-box {
        padding: 10px 5px;
    }
    
    .feature-box i {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .categories-section {
        padding: 10px 0;
    }
    
    .category-card img {
        height: 120px;
    }
    
    .category-card h4 {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices - Ensure 2x2 grid layout */
@media (max-width: 400px) {
    .features-section .col-sm-6,
    .categories-section .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .feature-box {
        padding: 8px 4px;
    }
    
    .feature-box i {
        font-size: 1.6rem;
    }
    
    .category-card img {
        height: 100px;
    }
}

/* Container adjustments */
.container {
    padding-left: 10px;
    padding-right: 10px;
}

.container-fluid {
    padding: 0;
}

/* Animation for carousel items */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Ensure proper spacing for the main content */
#main-content {
    overflow-x: hidden;
}

/* Smooth transitions for all interactive elements */
.carousel-caption .btn-primary,
.feature-box,
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Row adjustments for minimal spacing */
.row {
    margin-left: -5px;
    margin-right: -5px;
}

.row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* Specific column overrides for mobile grid */
@media (max-width: 576px) {
    .features-section .row > [class*="col-"],
    .categories-section .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
/* continued*/
/*****************/
/******************/
/* Featured Products Section */
.featured-products {
    padding: 10px 0;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.quick-add-cart {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-add-cart:hover {
    background: #ffb0f89;
    color: white;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    margin-bottom: 8px;
}

.product-info h4 a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-info h4 a:hover {
    color: #ffb0f89;
}

.product-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffb0f89;
    margin-bottom: 12px;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, #ffb0f89, #0056b3);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 10px 0;
    background: white;
    margin-bottom: 20px;
}

.reason-box {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 15px;
}

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

.reason-box i {
    font-size: 3rem;
    color: #ffb0f89;
    margin-bottom: 20px;
    display: block;
}

.reason-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.reason-box p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile Responsive Design for new sections */
@media (max-width: 768px) {
    .featured-products,
    .why-choose-us {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .product-card,
    .reason-box {
        margin-bottom: 12px;
    }
    
    .product-image img {
        height: 160px;
    }
    .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}
    
    .product-info {
        padding: 122px;
    }
    
    .product-info h4 a {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .reason-box {
        padding: 20px 12px;
    }
    
    .reason-box i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .reason-box h4 {
        font-size: 1.1rem;
    }
    
    .reason-box p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Force 2 columns for featured products on mobile */
    .featured-products .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .featured-products .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }
    
    .featured-products .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Force 1 column for why choose us on mobile */
    .why-choose-us .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .featured-products,
    .why-choose-us {
        padding: 10px 0;
    }
    
    .product-image img {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h4 a {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .btn-add-cart {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .reason-box {
        padding: 15px 10px;
    }
    
    .reason-box i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .reason-box h4 {
        font-size: 1rem;
    }
    
    .reason-box p {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .featured-products .col-sm-6,
    .featured-products .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .product-image img {
        height: 120px;
    }
    
    .reason-box i {
        font-size: 1.8rem;
    }
}

/* Alert styles */
.alert {
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Smooth transitions for new elements */
.product-card,
.reason-box,
.btn-add-cart,
.quick-add-cart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}