/* ==========================================================================
   MEERCATO OFFERS PAGE
   ========================================================================== */

/* ---------- Section spacing (Figma: ~24px between sections) ---------- */
body.cms-offers-page,
body.cms-offers-page .page-wrapper,
body.cms-offers-page .page-main,
body.cms-offers-page .columns,
body.cms-offers-page .column.main {
    background: #fff;
}

.offers-section {
    direction: ltr;
    margin-bottom: 24px;
}
.offers-section:last-child {
    margin-bottom: 0;
}
.cms-offers-page .offers-section[dir="rtl"] {
    direction: ltr;
}
.cms-offers-page .offers-reels-heading h2,
.cms-offers-page .offers-latest-heading h2,
.cms-offers-page .offers-bestseller-heading h2,
.cms-offers-page .offers-shop-categories h2,
.cms-offers-page .offers-price-range-title,
.cms-offers-page .offers-flash-title h2,
.cms-offers-page .offers-bundles-heading h2,
.cms-offers-page .offers-topsellers-heading h2,
.cms-offers-page .offers-reviews-section h2 {
    direction: ltr;
    text-align: left;
}
/* Magezon wraps each element in rows — remove default row padding/margin */
.cms-offers-page .mgz-element-row,
.cms-offers-page .mgz-element-column {
    margin: 0 !important;
    padding: 0 !important;
}
.cms-offers-page .mgz-element-inner,
.cms-offers-page .inner-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- Section 1: Hero Banners ---------- */
.offers-hero-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
}

.offers-hero-banner-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    min-height: 146px;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Keep text white — override the theme's global a:hover link color */
.offers-hero-banner-card,
.offers-hero-banner-card:hover,
.offers-hero-banner-card:focus,
.offers-hero-banner-card:hover .banner-title,
.offers-hero-banner-card:hover .banner-subtitle,
.offers-hero-banner-card:hover .banner-cta {
    color: #fff;
}
.offers-hero-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
/* Hover state: glass panel + icon brighten subtly, CTA underlines and the arrow slides */
.offers-hero-banner-card:hover .banner-text {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}
.offers-hero-banner-card:hover .banner-icon {
    background: rgba(255, 255, 255, 0.35);
}
.offers-hero-banner-card:hover .banner-subtitle {
    opacity: 1;
}
.offers-hero-banner-card:hover .banner-cta {
    gap: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.offers-hero-banner-card:hover .banner-cta svg {
    transform: translateX(-3px);
}
.offers-hero-banners[dir="rtl"] .offers-hero-banner-card:hover .banner-cta svg {
    transform: scaleX(-1) translateX(-3px);
}
.offers-hero-banner-card:hover .promo-copy {
    background: rgba(255, 255, 255, 0.3);
}
.offers-hero-banner-card .banner-overlay,
.offers-hero-banner-card .banner-icon,
.offers-hero-banner-card .banner-text,
.offers-hero-banner-card .banner-cta,
.offers-hero-banner-card .banner-cta svg {
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, gap 0.2s ease, transform 0.2s ease;
}
.offers-hero-banner-card .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.offers-hero-banner-card .banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.72;
}
/* No background image: keep the gradient fully opaque for contrast */
.offers-hero-banner-card:not(:has(.banner-bg)) .banner-overlay {
    opacity: 1;
}
.offers-hero-banner-card .banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    min-height: 146px;
    padding: 14px;
    text-align: start;
}
.offers-hero-banner-card .banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex: none;
    align-self: flex-start;
}
.offers-hero-banner-card .banner-icon svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
}
/* Glassmorphism content panel (Figma: white @10% fill, white @20% border) */
.offers-hero-banner-card .banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.offers-hero-banner-card .banner-title {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.4px;
}
.offers-hero-banner-card .banner-subtitle {
    font-family: 'Readex Pro', 'Noto Sans Arabic', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
}
.offers-hero-banner-card .banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}
.offers-hero-banner-card .banner-cta svg {
    width: 14px;
    height: 14px;
}
.offers-hero-banners[dir="rtl"] .banner-cta svg { transform: scaleX(-1); }

/* Promo code card */
.offers-hero-banner-card.is-promo { cursor: default; }
.offers-hero-banner-card .banner-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.offers-hero-banner-card .promo-code {
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    direction: ltr;
    color: #fff;
}
.offers-hero-banner-card .promo-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'Almarai', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.offers-hero-banner-card .promo-copy:hover { background: rgba(255, 255, 255, 0.3); }
.offers-hero-banner-card .promo-copy svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
}
.offers-hero-banner-card .promo-copy.is-copied {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}
.offers-hero-banner-card .promo-copy.is-copied svg { stroke: #1a1a2e; }

@media (max-width: 1024px) {
    .offers-hero-banners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .offers-hero-banners {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .offers-hero-banner-card { min-height: 180px; }
    .offers-hero-banner-card .banner-content { min-height: 180px; }
    .offers-hero-banner-card .banner-title { font-size: 16px; }
    .offers-hero-banner-card .banner-subtitle { font-size: 12px; }
    .offers-hero-banner-card .banner-cta { font-size: 12px; }
}
@media (max-width: 420px) {
    .offers-hero-banner-card .banner-title { font-size: 14px; }
}

/* ---------- Section 2: Reels / Videos ---------- */
.offers-reels { direction: rtl; }
.offers-reels-heading {
    padding: 0 16px;
    margin-bottom: 12px;
}
.offers-reels-heading h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #101828;
    text-align: right;
    margin: 0;
}
.offers-reels-scroll {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 16px 16px;
}
.offers-reels-scroll::-webkit-scrollbar { display: none; }
.offers-reel-card {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1a1a;
    direction: rtl;
}
.offers-reel-card .reel-media {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    z-index: 1;
}
.offers-reel-card .reel-media img,
.offers-reel-card .reel-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.offers-reel-card .reel-placeholder {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}
/* Top-corner play badge (Figma: rounded translucent badge) */
.offers-reel-card .reel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.64);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}
.offers-reel-card .reel-badge svg { margin-left: 2px; }
/* Bottom product strip — a separate link so tapping the video opens the video,
   and tapping this strip opens the product */
.offers-reel-card .reel-product,
.offers-reel-card .reel-product--static {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    text-decoration: none;
}
.offers-reel-card .reel-overlay {
    padding: 36px 14px 14px;
    background: linear-gradient(180deg, rgba(32, 32, 32, 0) 0%, rgba(32, 32, 32, 0.95) 80%);
    color: #F5F5F5;
}
.offers-reel-card .reel-title {
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #F5F5F5;
    direction: rtl;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.offers-reel-card .reel-subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
    color: #F5F5F5;
    direction: rtl;
    text-align: right;
}
@media (max-width: 480px) {
    .offers-reel-card { width: 158px; border-radius: 14px; }
    .offers-reels-heading h2 { font-size: 20px; }
}

/* Legacy: keep for backward compat */
.offers-latest-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 16px;
}
.offers-latest-heading h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #191C1F;
}
.offers-product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px 16px;
}
.offers-product-scroll::-webkit-scrollbar { display: none; }
.offers-product-scroll .mc-product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

/* ---------- Section 3: Flash Deals ---------- */
.offers-flash-deals {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
    border-radius: 0;
    padding: 24px 16px;
    margin: 0 0 24px;
}
.offers-flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.offers-flash-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Almarai', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}
.offers-flash-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #101828;
}
.offers-flash-title img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.offers-flash-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}
.offers-flash-countdown .unit {
    background: #E7000B;
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    font-family: 'Readex Pro', sans-serif;
}
.offers-flash-countdown .separator {
    color: #E7000B;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.offers-flash-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}
.offers-flash-item .flash-image {
    width: 107px;
    height: 107px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.offers-flash-item .flash-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.offers-flash-item .flash-info {
    flex: 1;
    min-width: 0;
    text-align: right;
}
.offers-flash-item .flash-name {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 8px;
}
.offers-flash-item .flash-price-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 12px;
    /* RTL: flex-start aligns the prices to the right (sale price rightmost,
       strikethrough original to its left) to match the Figma design. */
    justify-content: flex-start;
}
.offers-flash-item .flash-sale-price {
    font-family: 'Almarai', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #E7000B;
}
.offers-flash-item .flash-original-price {
    font-size: 16px;
    color: #99A1AF;
    text-decoration: line-through;
}
.offers-flash-progress {
    width: 100%;
    height: 8px;
    background: #FFE2E2;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
}
.offers-flash-progress-bar {
    height: 100%;
    background: #E7000B;
    border-radius: 9999px;
    transition: width 0.5s;
}
.offers-flash-progress-text {
    display: block;
    font-size: 13px;
    color: #4A5565;
    margin-top: 6px;
    text-align: right;
}

@media (max-width: 768px) {
    .offers-flash-deals { padding: 20px 16px; }
    .offers-flash-item { flex-direction: row; align-items: center; gap: 14px; }
    .offers-flash-item .flash-image { width: 100px; height: 100px; aspect-ratio: auto; }
    .offers-flash-item .flash-name { font-size: 18px; }
    .offers-flash-item .flash-sale-price { font-size: 20px; }
    .offers-flash-item .flash-original-price { font-size: 14px; }
    .offers-flash-countdown .unit { min-width: 30px; font-size: 13px; padding: 4px 6px; }
    .offers-flash-countdown .separator { font-size: 14px; }
}

/* ---------- Section 4: Bestseller Showcase (Dark BG) ---------- */
.offers-bestseller-showcase {
    background: transparent;
    padding: 16px;
    border-radius: 0;
    margin: 0;
}
.offers-bestseller-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.offers-bestseller-heading h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #191C1F;
}
.offers-bestseller-heading .view-all {
    color: #EE3E54;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.offers-bestseller-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
    padding-bottom: 4px;
}
.offers-bestseller-tabs::-webkit-scrollbar { display: none; }
.offers-bestseller-tab {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 999px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
    transition: all 0.2s;
}
.offers-bestseller-tab.active,
.offers-bestseller-tab:hover {
    background: #1A1A2E;
    color: #fff;
    border-color: #1A1A2E;
}

/* ---------- Section 5: Shop by Category ---------- */
.offers-shop-categories {
    padding: 0 16px;
}
.offers-shop-categories h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #191C1F;
    margin-bottom: 20px;
    text-align: right;
}
.offers-category-icons {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.offers-category-icons::-webkit-scrollbar { display: none; }
.offers-category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    flex-shrink: 0;
    text-decoration: none;
}
.offers-category-icon-item .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.offers-category-icon-item:hover .icon-circle { transform: scale(1.08); }
.offers-category-icon-item .icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.offers-category-icon-item .icon-label {
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

/* ---------- Section 6: Feature Banners (50 / 50) ---------- */
.offers-feature-banners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 16px 0;
    align-items: stretch;
}
.offers-feature-banners > * {
    min-width: 0;
    aspect-ratio: 820 / 375;
}
/* Left half: trust-badges graphic */
.offers-feature-trust {
    border-radius: clamp(28px, 4.6vw, 70px);
    overflow: hidden;
    background: #fff;
    min-height: 0;
}
.offers-feature-trust img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Right half: promo banner */
.offers-feature-promo {
    position: relative;
    border-radius: clamp(28px, 4.6vw, 70px);
    overflow: hidden;
    min-height: 0;
    isolation: isolate;
    background: #0f172b;
}
.offers-feature-promo .promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.offers-feature-promo .promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
        linear-gradient(to left,
            rgba(15, 23, 43, 0.92) 0%,
            rgba(15, 23, 43, 0.74) 38%,
            rgba(15, 23, 43, 0.22) 72%,
            rgba(15, 23, 43, 0.04) 100%);
}
/* LTR: text aligns left, so put the dark side on the left */
.offers-feature-banners[dir="ltr"] .promo-overlay {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
        linear-gradient(to right,
            rgba(15, 23, 43, 0.92) 0%,
            rgba(15, 23, 43, 0.74) 38%,
            rgba(15, 23, 43, 0.22) 72%,
            rgba(15, 23, 43, 0.04) 100%);
}
.offers-feature-promo .promo-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(8px, 1.1vw, 14px);
    padding: clamp(22px, 3.1vw, 42px);
    color: #fff;
    text-align: start;
}
.offers-feature-promo .promo-badge {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    padding: 8px 18px;
    border-radius: 999px;
    color: #fff;
}
.offers-feature-promo .promo-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(360px, 56%);
}
.offers-feature-promo .promo-title {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(22px, 2.25vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    margin: 0;
    color: #fff;
}
.offers-feature-promo .promo-subtitle {
    font-family: 'Readex Pro', 'Noto Sans Arabic', sans-serif;
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
    color: #fff;
}
.offers-feature-promo .promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #101828;
    font-family: 'Almarai', sans-serif;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    width: fit-content;
    margin-top: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offers-feature-promo .promo-cta:hover,
.offers-feature-promo .promo-cta:focus {
    background: #fff;
    color: #101828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.offers-feature-promo .promo-cta svg { width: 16px; height: 16px; }
.offers-feature-banners[dir="rtl"] .promo-cta svg { transform: scaleX(-1); }

@media (max-width: 768px) {
    .offers-feature-banners { grid-template-columns: 1fr; }
    .offers-feature-trust,
    .offers-feature-promo {
        aspect-ratio: auto;
        min-height: 210px;
    }
    .offers-feature-promo .promo-text { max-width: 72%; }
    .offers-feature-promo .promo-content { padding: 24px; }
}
@media (max-width: 480px) {
    .offers-feature-banners {
        gap: 12px;
        padding: 16px 10px 0;
    }
    .offers-feature-banners > * {
        border-radius: 28px;
        min-height: 200px;
    }
    .offers-feature-promo .promo-text { max-width: 82%; }
    .offers-feature-promo .promo-content { padding: 18px; }
    .offers-feature-promo .promo-cta { padding: 9px 16px; }
}

/* ---------- Section 7: Savings Bundles ---------- */
.offers-section.offers-savings-bundles {
    margin-top: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    padding: 27px 24px 30px;
}
.offers-bundles-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin-bottom: 18px;
}
.offers-bundles-heading h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}
.offers-bundles-heading .offers-bundles-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.offers-bundles-heading .shop-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #EF3958;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    padding: 11px 0;
    text-decoration: none;
    white-space: nowrap;
}
.offers-bundles-panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 4px 7px -1px rgba(0, 0, 0, 0.1);
    min-height: 155px;
    padding: 18px;
    overflow: hidden;
}
.offers-bundles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-height: 120px;
    align-items: center;
}
.offers-bundles-list.is-single {
    grid-template-columns: minmax(0, 1fr);
}
.offers-bundle-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    justify-self: start;
    width: min(100%, 368px);
    min-height: 120px;
    color: #101828;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.offers-bundles-list.is-single .offers-bundle-card {
    width: min(100%, 520px);
}
.offers-bundle-card:hover { transform: translateY(-1px); }
.offers-bundle-card .bundle-image {
    display: block;
    width: 107px;
    height: 107px;
    border-radius: 11px;
    overflow: hidden;
    flex: 0 0 107px;
    background: #f3f4f6;
}
.offers-bundle-card .bundle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.offers-bundle-card .bundle-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
    text-align: right;
}
.offers-bundle-card .bundle-name {
    font-family: 'Almarai', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: #101828;
}
.offers-bundle-card .bundle-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
}
.offers-bundle-card .bundle-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #4a5565;
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}
.offers-bundle-card .bundle-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    justify-content: flex-start;
}
.offers-bundle-card .bundle-current-price {
    font-family: 'Almarai', sans-serif;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: #e7000b;
}
.offers-bundle-card .bundle-old-price {
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #99a1af;
    text-decoration: line-through;
}
.offers-bundle-card .bundle-savings {
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #00a63e;
}
.offers-bundles-panel .bundle-cta {
    position: absolute;
    right: max(18px, 16vw);
    bottom: 12px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    color: #ee3a54;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.offers-savings-bundles[dir="ltr"] .offers-bundle-card {
    flex-direction: row;
}
.offers-savings-bundles[dir="ltr"] .bundle-info {
    align-items: flex-start;
    text-align: left;
}
.offers-savings-bundles[dir="ltr"] .bundle-cta {
    right: auto;
    left: 18px;
}

@media (max-width: 768px) {
    .offers-section.offers-savings-bundles {
        margin-top: 18px;
        margin-bottom: 18px;
        padding: 22px 14px 24px;
    }
    .offers-bundles-heading {
        margin-bottom: 14px;
    }
    .offers-bundles-heading h2 {
        font-size: 19px;
    }
    .offers-bundles-panel {
        padding: 14px 14px 38px;
        border-radius: 15px;
        min-height: 0;
    }
    .offers-bundles-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
    }
    .offers-bundle-card {
        width: 100%;
        gap: 12px;
        justify-self: stretch;
        min-height: 106px;
    }
    .offers-bundle-card .bundle-image {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }
    .offers-bundle-card .bundle-name {
        font-size: 18px;
        line-height: 1.35;
    }
    .offers-bundle-card .bundle-tag {
        font-size: 12px;
        min-height: 20px;
        padding: 2px 6px;
    }
    .offers-bundle-card .bundle-current-price {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .offers-section.offers-savings-bundles {
        margin-top: 16px;
        margin-bottom: 16px;
        padding: 18px 10px 20px;
    }
    .offers-bundles-heading {
        gap: 10px;
    }
    .offers-bundles-heading h2 {
        font-size: 17px;
    }
    .offers-bundles-heading .shop-more {
        font-size: 13px;
    }
    .offers-bundle-card {
        align-items: flex-start;
    }
    .offers-bundle-card .bundle-image {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }
    .offers-bundle-card .bundle-info {
        gap: 5px;
    }
    .offers-bundle-card .bundle-name {
        font-size: 16px;
    }
    .offers-bundle-card .bundle-tags {
        gap: 6px;
    }
    .offers-bundle-card .bundle-current-price {
        font-size: 18px;
    }
    .offers-bundle-card .bundle-old-price,
    .offers-bundle-card .bundle-savings,
    .offers-bundles-panel .bundle-cta {
        font-size: 12px;
    }
    .offers-bundles-panel .bundle-cta {
        right: 14px;
    }
}

/* ---------- Section 8: Top Sellers ---------- */
.offers-section.offers-topsellers-section {
    background: #fff;
    padding: 27px 18px 26px;
}
.offers-topsellers-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin-bottom: 18px;
}
.offers-topsellers-heading h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
    color: #101828;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.offers-topsellers-heading .offers-topsellers-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.offers-topsellers-heading .shop-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #EF3958;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    padding: 11px 0;
    text-decoration: none;
    white-space: nowrap;
}
.offers-topseller-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 0 0 2px;
}
.offers-topseller-scroll::-webkit-scrollbar {
    display: none;
}
.offers-topseller-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    direction: inherit;
    flex: 0 0 343px;
    width: 343px;
    max-width: calc(100vw - 36px);
    height: 116px;
    padding: 13px;
    background: #f9fafb;
    border-radius: 16px;
    color: #101828;
    text-decoration: none;
    overflow: hidden;
    scroll-snap-align: start;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.offers-topseller-card:hover {
    background: #f6f7f9;
    transform: translateY(-1px);
}
.offers-topseller-card .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fdc700 0%, #ff6900 100%);
    color: #fff;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.offers-topseller-card .topseller-image {
    display: block;
    width: 89px;
    height: 89px;
    flex: 0 0 89px;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
}
.offers-topseller-card .topseller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.offers-topseller-card .topseller-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
    flex: 1;
    min-width: 0;
    height: 89px;
    align-items: flex-start;
    text-align: right;
}
.offers-topseller-card .topseller-name {
    display: block;
    width: 100%;
    color: #101828;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    line-height: 1.48;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offers-topseller-card .topseller-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: rtl;
}
.offers-topseller-card .stars {
    display: inline-flex;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -1px;
}
.offers-topseller-card .stars .is-filled {
    color: #c09300;
}
.offers-topseller-card .rating-value {
    color: #808080;
    font-family: 'Open Sans', 'Almarai', sans-serif;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}
.offers-topseller-card .topseller-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}
.offers-topseller-card .topseller-price .current {
    color: #0e0d0d;
    font-family: 'Open Sans', 'Almarai', sans-serif;
    font-size: 15px;
    line-height: 1.13;
    font-weight: 700;
    white-space: nowrap;
}
.offers-topseller-card .topseller-price .old {
    color: #666;
    font-family: 'Open Sans', 'Almarai', sans-serif;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: line-through;
    white-space: nowrap;
}
.offers-topseller-card .topseller-cta {
    position: absolute;
    left: 14px;
    right: auto;
    bottom: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    color: #ee3a54;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}
.offers-topsellers-section[dir="ltr"] .offers-topseller-card .topseller-info,
.offers-topsellers-section[dir="ltr"] .offers-topseller-card .topseller-price {
    align-items: flex-start;
    text-align: left;
    direction: ltr;
}
.offers-topsellers-section[dir="ltr"] .offers-topseller-card .topseller-cta {
    direction: ltr;
}
.offers-topsellers-section[dir="ltr"] .offers-topseller-card .topseller-rating {
    direction: ltr;
}

@media (max-width: 768px) {
    .offers-section.offers-topsellers-section {
        padding: 22px 14px;
    }
    .offers-topsellers-heading {
        margin-bottom: 14px;
    }
    .offers-topseller-scroll {
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .offers-section.offers-topsellers-section {
        padding: 18px 10px;
    }
    .offers-topsellers-heading h2 {
        font-size: 17px;
    }
    .offers-topsellers-heading .shop-more {
        font-size: 13px;
    }
    .offers-topseller-card {
        flex-basis: calc(100vw - 20px);
        width: calc(100vw - 20px);
        height: 112px;
        gap: 10px;
        padding: 12px;
    }
    .offers-topseller-card .rank-badge {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 14px;
    }
    .offers-topseller-card .topseller-image {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }
    .offers-topseller-card .topseller-name,
    .offers-topseller-card .topseller-price .current,
    .offers-topseller-card .topseller-cta {
        font-size: 13px;
    }
}

/* ---------- Section 9: Customer Reviews ---------- */
.offers-reviews-section {
    padding: 0 16px;
}
.offers-reviews-section h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #191C1F;
    margin-bottom: 20px;
    text-align: right;
}
.offers-reviews-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.offers-reviews-scroll::-webkit-scrollbar { display: none; }
.offers-review-card {
    min-width: 300px;
    flex: 0 0 300px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.offers-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.offers-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.offers-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.offers-review-name {
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.offers-review-stars {
    color: #F5A623;
    font-size: 14px;
    margin-top: 2px;
}
.offers-review-text {
    font-family: 'Readex Pro', 'Noto Sans Arabic', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}
.offers-review-product {
    font-size: 12px;
    color: #999;
}

/* ---------- Section 10: Price Range Cards ---------- */
.offers-price-range {
    padding: 0 16px;
}
.offers-price-range {
    padding: 0 16px;
}
.offers-price-range-title {
    font-family: 'Almarai', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #EE3E54;
    margin-bottom: 16px;
    float: left;
    clear: both;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}
.offers-price-range-grid {
    clear: both;
}
.offers-price-range-title img {
    width: 40px;
    height: 40px;
}
.offers-price-range-grid {
    margin-bottom: 16px;
}
.offers-price-range-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.offers-price-card {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    color: #fff;
    text-decoration: none;
    display: block;
    aspect-ratio: 45 / 22;
    min-height: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.offers-price-card:hover { transform: scale(1.03); }
.offers-price-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.offers-price-card::before {
    display: none;
}
.offers-price-card .range-label {
    font-family: 'Readex Pro', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    position: relative;
}
.offers-price-card .range-price {
    font-family: 'Almarai', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
}
.offers-price-card .range-currency {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    position: relative;
}
.offers-price-card .range-cta {
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

@media (max-width: 768px) {
    .offers-price-range-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Section 11: Category Tags ---------- */
.offers-category-tags {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px 16px;
}
.offers-category-tags::-webkit-scrollbar { display: none; }
.offers-tag-pill {
    appearance: none;
    white-space: nowrap;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid #EE3E54;
    background: rgba(238, 62, 84, 0.12);
    color: #1A1A2E;
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}
.offers-tag-pill:hover,
.offers-tag-pill:focus-visible,
.offers-tag-pill.active {
    background: #EE3E54;
    color: #fff;
}

/* ---------- Section 12: Product Grid with Sidebar ---------- */
.offers-grid-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 0 16px;
}
.offers-sidebar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 20px;
    color: #333;
    height: fit-content;
    position: sticky;
    top: 16px;
}
.offers-sidebar-title {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #191C1F;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.offers-sidebar-group {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}
.offers-sidebar-group-title {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #191C1F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.offers-sidebar-group-title::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid #EE3E54;
    border-bottom: 2px solid #EE3E54;
    transform: rotate(45deg);
    flex-shrink: 0;
}
.offers-sidebar-item {
    display: block;
    padding: 8px 0;
    font-family: 'Readex Pro', sans-serif;
    font-size: 14px;
    color: #555;
    text-decoration: none;
}
.offers-sidebar-item:hover { color: #EE3E54; }
.offers-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.offers-scroll-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    margin-top: 24px;
    padding: 0 16px 32px;
}
.offers-scroll-loader {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(238, 62, 84, 0.25);
    border-top-color: #EE3E54;
    animation: offers-scroll-spin 0.7s linear infinite;
}
@keyframes offers-scroll-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .offers-grid-layout {
        grid-template-columns: 1fr;
    }
    .offers-sidebar {
        position: static;
    }
    .offers-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Utility: Star rating ---------- */
.offers-stars {
    display: inline-flex;
    gap: 1px;
}
.offers-stars .star {
    color: #F5A623;
}
.offers-stars .star.empty {
    color: #ddd;
}
