/* 
  Global Responsive Overrides for E-Commerce Consistency
  Targeting Typography, Imagery, Mobile Footers, and Cart
*/

/* Large desktop typography */
@media (min-width: 1200px) {
    .display-5 {
        font-size: 1.5rem;
    }
}

/* --- TYPOGRAPHY SCALING --- */
/* Base scaling for medium screens (Tablets/Small Laptops) */
@media (max-width: 1199px) {
    .display-1 { font-size: 3.5rem; }
    .display-2 { font-size: 3rem; }
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }

    h1, .h1 { font-size: 2.2rem; }
    h2, .h2 { font-size: 1.8rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    h5, .h5 { font-size: 1.1rem; }
    h6, .h6 { font-size: 0.95rem; }
}

/* Scaling for small screens (Mobile/Portrait Tablets) */
@media (max-width: 768px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.2rem; }
    .display-3 { font-size: 1.8rem; }
    .display-4 { font-size: 1.6rem; }
    .display-5 { font-size: 1.4rem; }
    .display-6 { font-size: 1.25rem; }

    h1, .h1 { font-size: 1.8rem; height: auto; line-height: 1.3;}
    h2, .h2 { font-size: 1.5rem; height: auto; line-height: 1.3;}
    h3, .h3 { font-size: 1.3rem; }
    h4, .h4 { font-size: 1.15rem; }
    h5, .h5 { font-size: 1.05rem; }
    h6, .h6 { font-size: 1rem; }
    
    body {
        font-size: 0.95rem;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    /* Section padding reductions */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}


/* --- IMAGE SCALING --- */
/* Ensure hero images and large fluid imagery don't overpower the screen height */
@media (max-width: 768px) {
    .hero-image-container img, 
    .img-fluid {
        max-height: 50vh !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
    }
}


/* --- MOBILE FOOTER --- */
@media (max-width: 768px) {
    .footer {
        text-align: center;
        padding-top: 2rem !important;
    }
    
    .footer h5 {
        margin-top: 1.5rem;
        margin-bottom: 1rem !important;
        font-size: 1.1rem;
    }
    
    .footer-links a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .footer-links li:last-child a {
        border-bottom: none;
    }

    .footer .social-icon {
        display: inline-block;
        margin: 0.5rem;
        padding: 0.5rem;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 24px;
    }
}


/* --- MOBILE CART BAR --- */
/* Upgrades the fixed bottom mobile cart to feel like a premium app drawer */
@media (max-width: 991px) {
    #mobile-cart-bar {
        padding: 12px 20px !important;
        border-top: none !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
        border-radius: 20px 20px 0 0;
    }
    
    #mobile-cart-bar span {
        font-size: 0.95rem !important;
        font-weight: 500;
        color: #333 !important;
    }
    
    #mobile-cart-bar .btn {
        padding: 0.5rem 1.2rem;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(var(--primary-color), 0.3);
    }
}


/* --- CATEGORY SHOWCASE HUB --- */
.category-showcase-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.category-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.05);
}

.category-showcase-card .icon-circle {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-showcase-card:hover .icon-circle {
    background: var(--primary-color);
    transform: scale(1.1);
}

.category-showcase-card:hover .icon-circle i {
    color: white !important;
}

.category-showcase-card:hover h6 {
    color: var(--primary-color) !important;
}


/* --- MOBILE: .glass-card-body, .px-3 override (global) & smaller rounded-pill buttons --- */
@media (max-width: 767px) {
    .glass-card-body {
        padding: 0.25rem 0.25rem;
    }
    .px-3 {
        padding-right: 0rem !important;
        padding-left: 0rem !important;
    }
    .btn.rounded-pill.px-4,
    .btn.rounded-pill.px-3 {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.85rem !important;
        min-height: 36px;
    }
}
@media (max-width: 575px) {
    .btn.rounded-pill.px-4,
    .btn.rounded-pill.px-3 {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.7rem !important;
        min-height: 34px;
    }
}
