/* NMall Modern Amazon & Flipkart Theme Overrides - Fully Responsive v2.0 */

/* --- Category Quick Strip (Flipkart Mobile App Style) --- */
.af-cat-strip {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 12px 0 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.cat-scroll-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
}
.cat-scroll-wrap::-webkit-scrollbar {
    display: none;
}
.af-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    min-width: 68px;
}
.af-cat-item:hover {
    transform: translateY(-2px);
}
.af-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.af-cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.af-cat-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    white-space: nowrap;
}

/* --- Hero Section & Side Promo Cards --- */
.af-hero-wrapper {
    margin-bottom: 20px;
}
.af-main-slider {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.af-hero-slide {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: center;
    padding: 24px 30px 24px 70px;
    border-radius: 8px;
    overflow: hidden;
}
.af-slide-content {
    color: #ffffff;
    z-index: 2;
}
.af-slide-tag {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.af-slide-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.af-slide-desc {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 18px;
    max-width: 460px;
    line-height: 1.5;
}
.af-slide-btn {
    display: inline-block;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.af-slide-btn:hover {
    background: #f8fafc;
    color: #2563eb;
    transform: translateY(-1px);
}
.af-main-slider .carousel-control-prev,
.af-main-slider .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.85;
    z-index: 15;
    transition: background 0.2s ease;
}
.af-main-slider .carousel-control-prev {
    left: 12px;
}
.af-main-slider .carousel-control-next {
    right: 12px;
}
.af-main-slider .carousel-control-prev:hover,
.af-main-slider .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
}
.af-side-card {
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- Trust Badges Strip --- */
.af-trust-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.af-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.af-trust-icon {
    font-size: 24px;
    color: #2563eb;
    flex-shrink: 0;
}
.af-trust-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.af-trust-sub {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

/* --- Amazon 4-in-1 Quad Feature Cards Grid --- */
.af-quad-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.af-quad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.af-quad-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}
.af-quad-grid,
.af-quad-items {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.af-quad-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.af-quad-thumb,
.af-quad-img-wrap {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    background: #f8fafc !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.af-quad-thumb img,
.af-quad-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.af-quad-item:hover .af-quad-thumb img {
    transform: scale(1.05);
}
.af-quad-label {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}
.af-quad-more {
    font-size: 13px;
    font-weight: 700;
    color: #007185;
    text-decoration: none;
}
.af-quad-more:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* --- Deals of the Day & Best Sellers Box --- */
.af-deals-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.af-deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.af-deals-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.af-deals-badge {
    background: #e11d48;
    color: #ffffff;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.af-deals-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.af-timer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.af-countdown {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.af-view-all-btn {
    background: #2874f0;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.af-view-all-btn:hover {
    background: #1e5fc2;
    color: #ffffff;
}

/* Product Card - Guaranteed Discount Pill Visibility */
.af-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.af-product-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}
.af-prod-thumb {
    position: relative !important;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 4px;
}
.af-discount-pill {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    background: #388e3c !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    z-index: 35 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    pointer-events: none !important;
    line-height: 1.2 !important;
}
.af-deal-tag {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    background: #cc0c39 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 5px !important;
    border-radius: 2px !important;
    z-index: 35 !important;
    pointer-events: none !important;
    line-height: 1.2 !important;
}
.af-prod-thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.af-prod-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.af-product-card:hover .af-prod-thumb img {
    transform: scale(1.04);
}
.af-prod-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
    line-height: 1.4;
    margin-bottom: 4px;
}
.af-prod-name:hover {
    color: #2874f0;
}
.af-prod-pricing {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.af-current-price {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.af-old-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* --- Promotional Strip Banner --- */
.af-promo-strip {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    border-radius: 8px;
    padding: 14px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
}
.af-promo-text {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.af-promo-btn {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.af-promo-btn:hover {
    background: #fbbf24;
    color: #000;
    transform: translateY(-1px);
}

/* --- SGITC / NMall Official MLM Business Hub Banner --- */
.af-mlm-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 20px 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.2);
}
.af-mlm-left {
    max-width: 650px;
}
.af-mlm-tag {
    display: inline-block;
    background: #fef08a;
    color: #854d0e;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.af-mlm-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.af-mlm-desc {
    font-size: 12px;
    color: #a7f3d0;
    margin: 0;
    line-height: 1.5;
}
.af-mlm-btn {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.af-mlm-btn:hover {
    background: #fbbf24;
    color: #000;
    transform: translateY(-1px);
}

/* ========================================================= */
/* --- RESPONSIVE MEDIA QUERIES (Mobile & Tablet Support) --- */
/* ========================================================= */

/* Large Tablets / Small Laptops (<= 1199px) */
@media (max-width: 1199px) {
    .af-quad-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (<= 991px) */
@media (max-width: 991px) {
    .af-hero-slide {
        padding: 20px 24px 20px 55px;
        min-height: 260px;
    }
    .af-slide-title {
        font-size: 22px;
    }
    .af-slide-desc {
        font-size: 13px;
        margin-bottom: 14px;
    }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767px) {
    .af-cat-strip {
        padding: 8px 0 6px;
        margin-bottom: 10px;
    }
    .cat-scroll-wrap {
        gap: 12px;
        padding: 0 10px;
    }
    .af-cat-item {
        min-width: 58px;
    }
    .af-cat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 3px;
    }
    .af-cat-name {
        font-size: 10.5px;
    }

    /* Hero Slide on Mobile */
    .af-hero-slide {
        padding: 16px 16px 16px 20px !important;
        min-height: 190px !important;
    }
    .af-slide-title {
        font-size: 17px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    .af-slide-desc {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .af-slide-btn {
        font-size: 11px !important;
        padding: 6px 14px !important;
    }
    .af-main-slider .carousel-control-prev,
    .af-main-slider .carousel-control-next {
        display: none !important; /* Hide arrows on touch screens to prevent text overlap */
    }

    /* Trust Badges on Mobile */
    .af-trust-strip {
        padding: 10px 12px;
        margin-bottom: 16px;
    }
    .af-trust-strip .row {
        row-gap: 10px;
    }
    .af-trust-item {
        gap: 8px;
    }
    .af-trust-icon {
        font-size: 20px;
    }
    .af-trust-title {
        font-size: 11px;
    }
    .af-trust-sub {
        font-size: 9.5px;
    }

    /* Quad Cards on Mobile */
    .af-quad-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    .af-quad-card {
        padding: 12px;
    }
    .af-quad-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .af-quad-label {
        font-size: 10.5px;
    }

    /* Deals of the Day on Mobile */
    .af-deals-box {
        padding: 12px 10px;
        margin-bottom: 16px;
    }
    .af-deals-title {
        font-size: 15px;
    }
    .af-timer-wrap {
        font-size: 11px;
    }
    .af-countdown {
        font-size: 11px;
        padding: 1px 5px;
    }
    .af-view-all-btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Promo & MLM Banners on Mobile */
    .af-promo-strip {
        padding: 12px 14px;
        margin-bottom: 16px;
    }
    .af-promo-text {
        font-size: 13px;
    }
    .af-promo-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .af-mlm-banner {
        padding: 16px;
        margin-bottom: 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .af-mlm-title {
        font-size: 16px;
    }
    .af-mlm-desc {
        font-size: 11.5px;
        margin-bottom: 12px;
    }
    .af-mlm-btn {
        text-align: center;
        width: 100%;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
    .af-slide-title {
        font-size: 15px !important;
    }
    .af-current-price {
        font-size: 13px;
    }
    .af-old-price {
        font-size: 10px;
    }
    .af-prod-name {
        font-size: 11px;
        height: 30px;
    }
}

/* Completely disable subscriber / newsletter popup */
.newsletter-popup,
#newsletter-popup,
.modal.newsletter-popup {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* Minor Mobile Polish */
@media (max-width: 767px) {
    .af-hero-slide {
        padding-bottom: 30px !important;
    }
    .af-main-slider .carousel-indicators {
        bottom: 4px !important;
        margin-bottom: 0 !important;
    }
    .af-mlm-banner .af-mlm-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* 2-Column Mobile Footer Layout */
@media (max-width: 767px) {
    .footer-widgets .row {
        display: flex !important;
        flex-wrap: wrap !important;
        row-gap: 10px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .footer-widgets .widget-custom-menu {
        margin-bottom: 8px !important;
    }
    .footer-widgets .widget-custom-menu .widget-title {
        font-size: 14px !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        color: #0f172a !important;
    }
    .footer-widgets .widget-custom-menu ul {
        margin-bottom: 0 !important;
        padding-left: 0 !important;
    }
    .footer-widgets .widget-custom-menu ul li {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
        margin-bottom: 2px !important;
    }
    .footer-widgets .widget-custom-menu ul li a {
        font-size: 12.5px !important;
        color: #475569 !important;
        display: inline-block !important;
    }
    .footer-widgets .widget-custom-menu ul li a:hover {
        color: #2563eb !important;
    }
}

/* Business Section 2-Column Links on Mobile */
@media (max-width: 767px) {
    .widget-business-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 8px !important;
    }
    .widget-business-section ul,
    .footer-business-links-2col,
    .widget-custom-menu.widget-business-section ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px 16px !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
    }
    .widget-business-section ul li,
    .footer-business-links-2col li {
        width: 100% !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    .widget-business-section ul li a,
    .footer-business-links-2col li a {
        display: inline-block !important;
        font-size: 13px !important;
        color: #475569 !important;
        text-decoration: none !important;
    }
    .widget-business-section ul li a:hover,
    .footer-business-links-2col li a:hover {
        color: #2563eb !important;
    }
}

/* Business Section 2-Column Links */
.footer-business-links-2col {
    display: flex !important;
    flex-wrap: wrap !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.footer-business-links-2col > li {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    box-sizing: border-box !important;
    padding: 3px 8px 3px 0 !important;
    list-style: none !important;
}
.footer-business-links-2col > li a {
    display: inline-block !important;
    font-size: 13px !important;
    color: #475569 !important;
    text-decoration: none !important;
}
.footer-business-links-2col > li a:hover {
    color: #2563eb !important;
}
@media (min-width: 1200px) {
    .footer-business-links-2col > li {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}
