.hero-container {
    --hero-ratio: 1554 / 667;
    --hero-radius: 16px;
    --hero-gap: 16px;
    --hero-h: clamp(280px, calc(100vh - 350px), 455px);
    --deal-min: 280px;
    padding-top: 16px;
    padding-bottom: 0;
}

.hero-container .custom-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(var(--deal-min), 38%);
    gap: var(--hero-gap);
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    align-items: stretch;
}

.custom-left-banner {
    position: relative;
    min-width: 0;
    border-radius: var(--hero-radius) !important;
    overflow: hidden;
    background: #eceef2;
    box-shadow: 0 6px 22px rgba(20, 22, 28, .10);
}

.banner-swiper-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: var(--hero-ratio);
    max-height: var(--hero-h);
}

.home-main-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-main-slider .swiper-wrapper {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home-main-slider .swiper-slide {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    display: block !important;
}

.home-main-slider .swiper-slide > a,
.home-main-slider .swiper-slide a {
    position: relative;
    display: block !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-main-slider .banner-img,
.home-main-slider .banner-bg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.home-main-slider .banner-bg { display: none !important; }

.home-main-slider .banner-img {
    position: relative;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.home-main-slider .swiper-button-prev,
.home-main-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(12, 13, 16, .18);
    cursor: pointer;
    opacity: .55;
    transition: opacity .25s ease, background .25s ease, transform .25s ease;
    z-index: 6;
}

.home-main-slider .swiper-button-prev { left: 14px; }
.home-main-slider .swiper-button-next { right: 14px; }

.home-main-slider .swiper-button-prev::after,
.home-main-slider .swiper-button-next::after { content: none; }

.home-main-slider .swiper-button-prev::before,
.home-main-slider .swiper-button-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid #14161c;
    border-right: 2px solid #14161c;
}

.home-main-slider .swiper-button-prev::before { transform: translate(-38%, -50%) rotate(-135deg); }
.home-main-slider .swiper-button-next::before { transform: translate(-62%, -50%) rotate(45deg); }

.custom-left-banner:hover .swiper-button-prev,
.custom-left-banner:hover .swiper-button-next { opacity: 1; background: #fff; }

.custom-left-banner .hero-dots {
    position: absolute !important;
    left: auto !important;
    right: 16px !important;
    top: auto !important;
    bottom: 14px !important;
    display: flex !important;
    align-items: center;
    gap: 5px;
    width: auto !important;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(14, 15, 19, .32);
    backdrop-filter: blur(8px);
    transform: none !important;
    z-index: 7;
}

.custom-left-banner .hero-dots .swiper-pagination-bullet {
    width: 18px;
    height: 3px;
    margin: 0 !important;
    border-radius: 2px;
    background: rgba(255, 255, 255, .55);
    opacity: 1;
    transition: width .3s ease, background .3s ease;
}

.custom-left-banner .hero-dots .swiper-pagination-bullet-active {
    width: 34px;
    background: #fff;
}

.custom-right-box {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border-radius: var(--hero-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #ff7a3d 0%, #ef5526 46%, #c73f16 100%);
    box-shadow: 0 6px 22px rgba(20, 22, 28, .10);
}

.deal-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.deal-head {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    aspect-ratio: 21 / 9;
    min-height: 104px;
    max-height: 58%;
    padding: 0 22px;
}

.deal-head-kicker,
.deal-head-title { text-shadow: 0 1px 8px rgba(120, 34, 8, .35); }

.deal-head-kicker {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

.deal-head-title {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.deal-head-title b { display: block; font-size: 2.6rem; font-weight: 800; }

.deal-head-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.deal-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
}

.deal-swiper {
    position: absolute;
    inset: 8px 10px 10px;
    overflow: hidden;
}

.deal-swiper .swiper-wrapper {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch;
}

.deal-swiper .swiper-slide {
    width: 232px !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    display: flex !important;
}

.deal-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(96, 30, 8, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.deal-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(96, 30, 8, .26); }

.deal-item-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.deal-item-thumb {
    flex: 0 0 auto;
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f6f8;
}

.deal-item-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.deal-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.deal-item-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #3f4450;
}

.deal-item-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #14161c;
}

.deal-item-price s { font-size: 1.15rem; font-weight: 500; color: #9aa0ae; }

.deal-item-cart {
    flex: 0 0 auto;
    width: 100%;
    height: 30px;
    border: 1px solid #ef5526;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ef5526;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.deal-item-cart:hover { background: #ef5526; color: #fff; }

.deal-nav {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(12, 13, 16, .2);
    cursor: pointer;
    opacity: 0;
    transition: opacity .22s ease;
    z-index: 4;
}

.deal-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #4a4f5a;
    border-right: 2px solid #4a4f5a;
}

.deal-nav-prev { left: 2px; }
.deal-nav-next { right: 2px; }
.deal-nav-prev::before { transform: translate(-38%, -50%) rotate(-135deg); }
.deal-nav-next::before { transform: translate(-62%, -50%) rotate(45deg); }

.deal-card:hover .deal-nav { opacity: 1; }

.deal-nav.swiper-button-disabled { opacity: 0 !important; pointer-events: none; }

@media (max-width: 991px) {
    .hero-container {
        --hero-radius: 14px;
        --hero-gap: 12px;
        --hero-h: none;
        padding-top: 12px;
    }

    .hero-container .custom-container { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 0; }

    .banner-swiper-wrap { height: auto; aspect-ratio: var(--hero-ratio); }

    .home-main-slider .swiper-button-prev,
    .home-main-slider .swiper-button-next { display: none; }

    .custom-left-banner .hero-dots { right: 12px !important; bottom: 10px !important; }

    .deal-head { aspect-ratio: 32 / 9; max-height: none; }

    .deal-body { min-height: 168px; }

    .deal-head-title { font-size: 1.8rem; }
    .deal-head-title b { font-size: 2.3rem; }
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
    width: 46px !important;
    height: 46px !important;
    margin-top: -23px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3) !important;
    opacity: 1 !important;
    transition: transform .2s ease, background .2s ease;
}

.pswp__button--arrow--left { left: 18px !important; }
.pswp__button--arrow--right { right: 18px !important; }

.pswp__button--arrow--left:hover,
.pswp__button--arrow--right:hover { background: #fff !important; transform: scale(1.08); }

.pswp__button--arrow--left::before,
.pswp__button--arrow--right::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 11px !important;
    height: 11px !important;
    background: none !important;
    border-top: 2.5px solid #14161c !important;
    border-right: 2.5px solid #14161c !important;
}

.pswp__button--arrow--left::before { transform: translate(-38%, -50%) rotate(-135deg) !important; }
.pswp__button--arrow--right::before { transform: translate(-62%, -50%) rotate(45deg) !important; }
