/* Apple Promo Section */
.applePromoContainer {
    width: min(100% - 32px, 1180px);
    margin: 24px auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
}

.promoBentoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promoCard {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
   
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.darkTheme { background-color: #000; color: #fff; }
.blueGradient { background: #3B8AC6; color: #fff; }
.purpleGradient { background: #3B8AC6; color: #fff; }

.promoSliderWrapper .cardMainContent h2{
    color: #000;
}

.cardHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.cardHeader span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
body, input, button, option, textarea, label, select, legend, h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
    font: inherit !important;
}

.largeCard { text-align: center; }
.largeCard .cardMainContent h2 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.largeCard .cardMainContent p { font-size: 14px; opacity: 0.85; max-width: 380px; margin: 0 auto 24px auto; line-height: 1.4; }
.largeCard .cardImageContainer img { max-height: 260px; object-fit: contain; width: 100%; }

.promoSliderCard .cardImageContainer {
    flex: 1;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    position: relative;
}

.promoSliderCard .cardImageContainer a {
    /*display: flex;*/
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-weight: bold;
}

.promoSliderCard .cardImageContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
}

.promoSliderCard .cardMainContent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.promoSliderCard .cardHeader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    justify-content: center;
    align-items: center;
    padding: 16px;
    /*display: flex;*/
}

.promoSliderCard .cardHeader > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.promoSliderCard .cardHeader i,
.promoSliderCard .cardHeader span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .cardHeader,
    .promoSliderCard .cardHeader {
        justify-content: center !important;
        text-align: center;
    }

    .promoSliderCard .cardHeader > div:first-child {
        width: 100%;
    }
}

.promoSliderCard .sliderNavBtns {
    display: none;
}

.promoSliderCard .sliderPrevBtn,
.promoSliderCard .sliderNextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3) !important;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.promoSliderCard .sliderPrevBtn {
    left: 16px;
}

.promoSliderCard .sliderNextBtn {
    right: 16px;
}

.btnBlue { display: inline-block; background-color: #0046be; color: #fff; padding: 10px 24px; border-radius: 4px; font-weight: bold; text-decoration: none; font-size: 14px; }
.btnWhiteOutline { display: inline-block; background-color: transparent; color: #fff; border: 1px solid #fff; padding: 8px 18px; border-radius: 4px; font-weight: bold; text-decoration: none; font-size: 13px; }
.btnWhite { display: inline-block; background-color: #fff; color: #000; padding: 8px 18px; border-radius: 4px; font-weight: bold; text-decoration: none; font-size: 13px; margin-top: 16px; }

.promoRightStack { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 20px; }
.mediumCard { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    padding: 0; 
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border-radius: 12px;
}
.mediumCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.mediumCard .cardLeftText { 
    flex: 1; 
    position: relative; 
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
}
.mediumCard h3 { font-size: 24px; margin-bottom: -12px; margin-top: auto; color: #000; font-weight: bold !important}
.mediumCard p { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.mediumCard .cardImageContainer { 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 12px;
}
.mediumCard .cardImageContainer a { 
    display: flex;
    width: 100%;
    height: 100%;
}
.mediumCard .cardImageContainer img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promoSmallGrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.smallCard { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; height: 100%; }

.exploreSection > h3 { font-size: 24px; color: #1d252c; margin-bottom: 20px; text-align: center; }
.exploreGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.exploreItem { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; }
.exploreHeader { font-size: 17px; font-weight: bold; color: #1d252c; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.exploreImg { text-align: center; margin-bottom: 16px; }
.exploreImg img { max-height: 120px; width: auto; object-fit: contain; }
.exploreItem p { font-size: 12px; color: #55606a; line-height: 1.4; }

/* Hottest Offers */
.hottestOffersContainer {
    background: #3B8AC6;
    padding: 40px 16px;
    color: #ffffff;
}
.hottestOffersWrapper { max-width: 1180px; margin: 0 auto; }
.hottestOffersContainer .sectionTitle { font-size: 26px;  text-align: center; margin-bottom: 28px; }
.sectionTitle_new { font-size: 26px; color: #000; text-align: center; margin-bottom: 28px; font-weight: 600; }

.offersGrid { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.offersGrid::-webkit-scrollbar { display: none; }
.offerCard { width: 260px; min-width: 260px; flex: 0 0 260px; display: flex; flex-direction: column; }
.offerImgHolder { background-color: #ffffff; border-radius: 10px; height: 180px; display: flex; align-items: center; justify-content: center; padding: 16px; margin-bottom: 16px; overflow: hidden; position: relative; }
.offerImgHolder a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.offerImgHolder.imgGradient { background: linear-gradient(135deg, #1c66e5 0%, #20b8e5 100%); }
.offerImgHolder img { max-width: 100%; max-height: 100%; object-fit: contain; }

.offerContent { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offerTitle { font-size: 15px; font-weight: 700; color: #ffffff; }
.offerSubtext { font-size: 17px; opacity: 0.9; }
.offerLink { color: #ffffff; font-size: 13.5px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }

/* Category Grid */
.shopByCategoryContainer { background-color: #ffffff; padding: 48px 16px 24px 16px; }
.shopByCategoryWrapper { max-width: 1180px; margin: 0 auto 48px auto; }
.categorySectionTitle { font-size: 26px;  color: #1d252c; text-align: center; margin-bottom: 36px; }

.categoryGrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 16px; }
.categoryItem { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: #0046be; }
.categoryImgBox { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.categoryImgBox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.categoryItem span { font-size: 17px; font-weight: 500; color: #0046be; }

.myBestBuyBanner {
    background: #3B8AC6;
    color: #ffffff; padding: 16px 24px; width: min(100%, 1180px); margin: 0 auto; border-radius: 4px;
    display: flex; align-items: center; justify-content: space-between;
    box-sizing: border-box;
}
.bannerContent { display: flex; align-items: center; gap: 24px; }
.bannerLink { color: #ffffff; font-weight: bold; font-size: 14px; text-decoration: none; }
.bannerLogo { display: flex; flex-direction: column; align-items: flex-end; }
.bannerLogo strong { background-color: #fff200; color: #000; padding: 2px 4px; }

/* Rate Plans */
.ratePlansContainer { background-color: #ffffff; padding: 48px 16px; }
.ratePlansWrapper { max-width: 1180px; margin: 0 auto; text-align: center; }
.plansTitle { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.plansSubtext { font-size: 14px; color: #55606a; margin-bottom: 24px; }
.btnExplorePlans { display: inline-block; background-color: #0046be; color: #ffffff; font-weight: 700; padding: 10px 24px; border-radius: 4px; text-decoration: none; }

.plansGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; margin-top: 32px; }
.planImgBox { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.planImgBox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.planCard h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.planCard p { font-size: 13px; color: #55606a; }

/* More Deals */
.moreDealsContainer { background-color: #ffffff; padding: 40px 16px; }
.moreDealsWrapper { max-width: 1180px; margin: 0 auto; }
.dealsTitle { font-size: 24px;  text-align: center; margin-bottom: 32px; }
.dealsCarouselHolder { position: relative; }
.dealsGrid { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.dealsGrid::-webkit-scrollbar { display: none; }

.productCard { width: 210px; min-width: 210px; flex: 0 0 210px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border-radius: 8px; padding: 12px; }
.productImgBox { background-color: #f4f6f8; border-radius: 8px; height: 140px; display: flex; align-items: center; justify-content: center; padding: 12px; margin-bottom: 12px; overflow: hidden; position: relative; }
.productImgBox a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.productImgBox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.productInfo { display: flex; flex-direction: column; gap: 6px; }
.productName { font-size: 12px; line-height: 1.35; height: 48px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.productRating { display: flex; align-items: center; gap: 4px; }
.stars { color: #f2a900; font-size: 11px; }
.ratingCount { font-size: 11px; color: #0046be; }
.saveBadge { color: #bb0628; font-weight: 800; font-size: 11px; }
.productPrice { font-size: 16px; font-weight: 800; }

.carouselArrow {
    position: absolute; right: -16px; top: 35%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; background-color: #ffffff;
    border: 1px solid #d1d5db; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center; color: #0046be; cursor: pointer; z-index: 2;
}
.carouselArrow.prevBtn {
    left: -16px;
    right: auto;
}

/* Feature Promo Banners */
.promoBannersContainer { width: min(100% - 32px, 1180px); margin: 0 auto 48px auto; padding: 0; display: flex; flex-direction: column; gap: 32px; box-sizing: border-box; }
.featureBannerCard { border-radius: 12px; padding: 32px; display: flex; align-items: center; gap: 32px; color: #ffffff; }
.btsGradient { background: #3B8AC6; }
.techGradient { background: linear-gradient(135deg, #270678 0%, #0d2891 50%, #1754ba 100%); }

.bannerInfoCol { width: 240px; flex-shrink: 0; }
.bannerTitle { font-size: 28px;  line-height: 1.15; margin-bottom: 12px; }
.bannerDesc { font-size: 17px; opacity: 0.9; margin-bottom: 20px; }
.btnBannerWhite { display: inline-block; background-color: #ffffff; color: #000; font-weight: 700; font-size: 13px; padding: 10px 20px; border-radius: 4px; text-decoration: none; }

.bannerCarouselCol { flex: 1; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.bannerProductsGrid {
    display: flex;
    gap: 27px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    transition: transform 0.35s ease;
}
.bannerProductsGrid::-webkit-scrollbar { display: none; }
.bannerProductCard {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    color: #1d252c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 240px;
    min-width: 170px;
    flex: 0 0 170px;
    scroll-snap-align: start;
}
.cardImgHolder { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.cardImgHolder img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prodTitle { font-size: 11px; line-height: 1.3; height: auto; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.badgeSave { color: #bb0628; font-weight: 800; font-size: 10px; }
.prodPrice { font-size: 14px; font-weight: 800; }
.price_market {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  font-size: 11px;
  color: #707070;
  text-decoration: line-through;
}
.discount_percent {
  color: #fff;
  background: #bb0628;
  display: inline-block;
  vertical-align: middle;
  padding: 1px 4px;
  font-size: 12px;
  border-radius: 3px;
}
.icons-promotion-per {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.bannerProductCard .price {
  font-size: 17px;
  /*font-weight: 800;*/
  color: #bb0628;
}
.bannerNavBtn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.bannerNavBtn:hover {
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.45);
}
.bannerNavBtn i {
    font-size: 14px;
    line-height: 1;
    display: block;
}
.bannerNavBtn i.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1200px) {
    .applePromoContainer,
    .hottestOffersWrapper,
    .shopByCategoryWrapper,
    .ratePlansWrapper,
    .moreDealsWrapper,
    .promoBannersContainer {
        padding-left: 0;
        padding-right: 0;
    }

    .exploreGrid,
    .offersGrid,
    .plansGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categoryGrid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bannerProductsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .promoSliderCard .cardMainContent{
        padding: 0 !important;
    }

    .promoSliderCard .cardHeader{
        top :20px;
    }
    .promoBentoGrid {
        grid-template-columns: 1fr;
    }

    .featureBannerCard {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .bannerInfoCol {
        width: 100%;
    }

    .categoryGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mediumCard {
        flex-direction: column;
        align-items: flex-start;
    }

    .mediumCard .cardImageContainer {
        text-align: center;
        width: 100%;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .carouselArrow {
        display: none !important;
    }

    .exploreGrid,
    .offersGrid,
    .plansGrid,
    .promoSmallGrid {
        grid-template-columns: 1fr;
    }

    .categoryGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .bannerProductsGrid {
        grid-template-columns: 1fr;
    }

    .bannerNavBtn i {
        font-size: 13px;
    }

    .myBestBuyBanner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .bannerContent {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bannerLogo {
        align-items: flex-start;
    }

    .largeCard .cardMainContent h2 {
        font-size: 28px;
    }

    .sectionTitle,
    .categorySectionTitle,
    .plansTitle,
    .dealsTitle,
    .bannerTitle {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .categoryGrid {
        grid-template-columns: repeat(2, 1fr);
    }

  /*  .promoCard {
        padding: 20px;
    }
*/
    .mediumCard {
        padding: 20px;
    }
}
