/* =====================================================================
   Rabeh home page - refreshed look (loaded after the old inline styles)
   hero · feature bar · categories · product cards · flash sale · gifts ·
   services band · app banners / strips / partners · app download
   ===================================================================== */
div.wrap-ar, div.wrap-en { --r-red: #E33B3B; --r-red-d: #c92f2f; --r-dark: #1A0C0B; --r-ink: #2a2222; --r-muted: #7a7273; --r-line: #ece8e8; background: #f6f4f4; padding-bottom: 8px; }
.wrap-ar .container, .wrap-en .container { max-width: 1240px; }

/* ---------- hero ---------- */
/* the hero slides UNDER the feature bar (negative margin on the hero, not on the bar: the page
   container clips anything that sticks out of it, which hid the top of the bar on phones) */
.r-hero { min-height: 560px; border-radius: 0 0 28px 28px; margin-bottom: -52px; background-position: center 40%; }
.r-hero::before { background: linear-gradient(90deg, rgba(26,12,11,.92) 0%, rgba(26,12,11,.62) 42%, rgba(26,12,11,.08) 100%); }
[dir="rtl"] .r-hero::before { background: linear-gradient(270deg, rgba(26,12,11,.92) 0%, rgba(26,12,11,.62) 42%, rgba(26,12,11,.08) 100%); }
.r-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, rgba(26,12,11,0), rgba(26,12,11,.35)); pointer-events: none; }
.r-hero-content { max-width: 640px; padding: 56px 12px 96px; text-align: start !important; }
.r-hero-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
    color: #fff; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.r-hero-chip i { color: #ffb3b3; }
.r-hero-content h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 900; line-height: 1.18; letter-spacing: -.5px; margin-bottom: 16px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.r-hero-content h1 span { color: #ff8a8a; }
.r-hero-content p { font-size: 1.06rem; line-height: 1.85; opacity: 1; color: rgba(255,255,255,.86); margin-bottom: 28px; max-width: 560px; }
.r-hero-content .d-flex { flex-wrap: wrap; }
.btn-hero-solid, .btn-hero-glass { display: inline-flex; align-items: center; gap: 9px; border-radius: 12px; padding: 14px 26px; font-size: 15px; font-weight: 800; transition: transform .15s, background .2s, box-shadow .2s; }
.btn-hero-solid { box-shadow: 0 12px 26px rgba(227,59,59,.38); color: #fff !important; }
.btn-hero-solid:hover { background: var(--r-red-d); transform: translateY(-2px); }
.btn-hero-glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff !important; }
.btn-hero-glass:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ---------- feature bar (overlaps the hero) ---------- */
div.wrap-ar > .container-fluid, div.wrap-en > .container-fluid { position: relative; z-index: 0; }   /* hero stays below */
div.wrap-ar > .container, div.wrap-en > .container { position: relative; z-index: 1; }
.r-feat-bar { position: relative; z-index: 3; margin: 0 0 8px; background: #fff; border-radius: 20px; box-shadow: 0 18px 44px rgba(26,12,11,.12);
    display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; }
.r-feat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; position: relative; }
.r-feat + .r-feat::before { content: ''; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: var(--r-line); }
.r-feat > i { width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fdeeee; color: var(--r-red); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.r-feat strong { display: block; font-size: 15px; font-weight: 800; color: var(--r-dark); line-height: 1.4; }
.r-feat span { display: block; font-size: 12.5px; color: var(--r-muted); line-height: 1.5; }

/* ---------- section titles ---------- */
.r-sec-header { margin: 48px 0 22px; }
.r-sec-header h4 { font-size: 24px; font-weight: 900; padding: 0 0 0 0; padding-inline-start: 16px; letter-spacing: -.2px; }
.r-sec-header h4::after { top: 4px; bottom: 4px; left: 0; width: 5px; height: auto; border-radius: 4px; background: linear-gradient(180deg, var(--r-red), #ff8a8a); }
[dir="rtl"] .r-sec-header h4::after { left: auto; right: 0; }

/* ---------- categories ---------- */
.r-cat-wrapper { gap: 16px; padding: 6px 4px 14px; }
.r-cat-card { min-width: 150px; padding: 18px 12px 14px; border-radius: 18px; border: 1px solid transparent; box-shadow: 0 4px 14px rgba(26,12,11,.05); }
.r-cat-card:hover { transform: translateY(-5px); border-color: #f6caca; box-shadow: 0 14px 28px rgba(227,59,59,.14); }
.r-cat-img { width: 86px; height: 86px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #fdeeee); padding: 14px; transition: transform .25s; }
.r-cat-card:hover .r-cat-img { transform: scale(1.07); }
.r-cat-card h6 { font-size: 13.5px; font-weight: 800; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-cat-arrow { width: 42px; height: 42px; box-shadow: 0 6px 18px rgba(26,12,11,.16); }

/* ---------- product cards ---------- */
.r-card { border-radius: 16px; padding: 12px; border: 1px solid var(--r-line) !important; box-shadow: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.r-card:hover { transform: translateY(-5px); border-color: #f3caca !important; box-shadow: 0 16px 34px rgba(26,12,11,.10); }
.r-card-img-wrap { height: 176px; border-radius: 12px; background: #f7f5f5 !important; padding: 12px; }
.r-card-img-wrap img { transition: transform .35s; }
.r-card:hover .r-card-img-wrap img { transform: scale(1.06); }
.r-card-fav { width: 32px; height: 32px; top: 10px; color: #b9b1b2; box-shadow: 0 3px 10px rgba(0,0,0,.10); transition: color .2s, transform .2s; }
.r-card-fav:hover { transform: scale(1.1); }
.r-card-title { font-size: 14px; font-weight: 700; color: var(--r-dark); min-height: 2.8em; margin-bottom: 8px; }
.r-card-new-price { font-size: 18px; font-weight: 900; }
.r-card-new-price small { font-size: 12px; font-weight: 700; color: var(--r-muted); }
.r-card-add { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; box-shadow: 0 6px 14px rgba(227,59,59,.30); transition: transform .15s, background .2s; }
.r-card-add:hover { background: var(--r-red-d); transform: scale(1.08); }
/* the "4.0 (purchases)" line and the x1.15 "old price" on these cards were not real data */
.r-card-rating { display: none; }
.r-app-item .r-card-rating { display: block; }
.r-flash-sale .r-card-old-price { display: none; }

/* ---------- flash sale ---------- */
.r-flash-sale { position: relative; overflow: hidden; border-radius: 26px; padding: 44px; margin: 48px 0 8px;
    background: radial-gradient(1200px 380px at 110% -10%, rgba(227,59,59,.42), transparent 60%), linear-gradient(135deg, #1A0A09 0%, #2c1413 100%); box-shadow: 0 22px 50px rgba(26,12,11,.22); }
.r-flash-sale > .d-flex { text-align: start !important; }
.fs-top-badge { background: var(--r-red); font-size: 11px; padding: 5px 10px; border-radius: 999px; }
.fs-title { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: 0; }
.fs-title span { color: #ff8a8a; }
.fs-time-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; width: 78px; height: 82px; backdrop-filter: blur(6px); }
.fs-time-num { font-size: 30px; font-weight: 900; }
.fs-time-lbl { color: rgba(255,255,255,.6); font-size: 10px; }
.fs-time-sep { color: #ff8a8a; }
.fs-sec-title::after { background: var(--r-red); }
.fs-show-all { background: rgba(255,255,255,.10); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.fs-show-all:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.r-flash-sale .row { margin-bottom: 0 !important; }
.r-flash-sale .r-card { border-color: transparent !important; }

/* ---------- "continue shopping" label ---------- */
.r-ribbon { clip-path: none !important; border-radius: 999px !important; background: linear-gradient(90deg, var(--r-red), #ff8a8a); padding: 9px 22px; font-size: 15px; font-weight: 800; margin: 48px 0 20px; box-shadow: 0 10px 22px rgba(227,59,59,.22); }

/* ---------- gifts ---------- */
.r-gifts-wrap { border: 0; border-radius: 26px; padding: 36px; margin: 48px 0 8px; background: linear-gradient(135deg, #fff6ea 0%, #fdeedd 100%); box-shadow: 0 12px 32px rgba(211,108,44,.10); }
.r-gift-card { border-radius: 16px; padding: 14px; box-shadow: 0 6px 18px rgba(211,108,44,.08); text-align: start !important; transition: transform .2s, box-shadow .2s; }
.r-gift-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(211,108,44,.16); }
.r-gift-img { width: 140px; height: 104px; border-radius: 12px; }
.r-gift-arrow { width: 36px; height: 36px; background: #fff; transition: background .2s, color .2s; }
.r-gift-arrow:hover { background: #E33B3B; color: #fff; }

/* ---------- services band ---------- */
.r-serv-band { margin: 56px 0 8px; border-radius: 26px; padding: 44px; color: #fff; display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center;
    background: radial-gradient(900px 340px at -10% 120%, rgba(227,59,59,.45), transparent 60%), linear-gradient(135deg, #1A0C0B 0%, #34191a 100%); box-shadow: 0 22px 50px rgba(26,12,11,.20); text-align: start; }
.r-serv-eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
.r-serv-band h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.4; color: #fff; margin: 0 0 12px; }
.r-serv-band p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.9; margin: 0 0 22px; }
.r-serv-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--r-red); color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 15px; padding: 13px 24px; border-radius: 12px; box-shadow: 0 12px 26px rgba(227,59,59,.35); transition: background .2s, transform .15s; }
.r-serv-btn:hover { background: var(--r-red-d); transform: translateY(-2px); }
.r-serv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.r-serv-card { display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px 18px; color: #fff !important; text-decoration: none !important; transition: background .2s, transform .2s, border-color .2s; }
.r-serv-card:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-4px); }
.r-serv-card i { width: 46px; height: 46px; border-radius: 13px; background: var(--r-red); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 6px; }
.r-serv-card strong { font-size: 15.5px; font-weight: 800; }
.r-serv-card span { font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.7; }

/* ---------- app sections: banners, strips, partners ---------- */
.r-app-home-sections { margin-bottom: 8px; }
.r-app-banner { border-radius: 26px; margin-top: 48px; box-shadow: 0 18px 44px rgba(26,12,11,.14); }
.r-app-slide { max-height: 420px; }
.r-app-slide img { transition: transform 6s ease; }
.r-app-banner:hover .r-app-slide img { transform: scale(1.03); }
.r-app-dots { bottom: 16px; }
.r-app-dots button { background: rgba(255,255,255,.7); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.r-app-dots button.active { width: 26px; }
.r-app-strip { gap: 16px; padding: 6px 4px 18px; scrollbar-width: none; }
.r-app-strip::-webkit-scrollbar { display: none; }
.r-app-item { flex-basis: 218px; }
.r-app-badge { border-radius: 999px; padding: 4px 10px; top: 10px; inset-inline-start: 10px; box-shadow: 0 4px 10px rgba(227,59,59,.3); }
.r-app-desc { font-size: 14.5px; color: var(--r-muted); margin: -12px 0 16px; padding-inline-start: 16px; }
.r-app-partner { flex-basis: 230px; border-radius: 18px; padding: 22px 18px; border: 1px solid var(--r-line); box-shadow: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.r-app-partner:hover { transform: translateY(-4px); border-color: #f3caca; box-shadow: 0 14px 30px rgba(26,12,11,.09); }
.r-app-partner img { height: 76px; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.r-app-partner:hover img { filter: none; opacity: 1; }

/* ---------- app download ---------- */
.app-download-section { margin: 56px 0 44px; border-radius: 26px; padding: 44px 28px; position: relative; overflow: hidden;
    background: radial-gradient(700px 300px at 100% 0%, rgba(227,59,59,.35), transparent 60%), linear-gradient(135deg, #1A0C0B 0%, #34191a 100%); box-shadow: 0 22px 50px rgba(26,12,11,.20); }
.app-download-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; margin-bottom: 8px; }
.app-download-sub { color: rgba(255,255,255,.75); font-size: 15px; margin: 0 0 26px; }
.app-badge-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff !important; border-radius: 14px; padding: 12px 22px; box-shadow: none; }
.app-badge-btn:hover { background: #fff; color: #1a1a1a !important; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.app-badge-text small { color: rgba(255,255,255,.7); }
.app-badge-btn:hover .app-badge-text small { color: #666; }
.app-badge-icon.apple { color: #fff; }
.app-badge-btn:hover .app-badge-icon.apple { color: #000; }

/* ---------- phones / tablets ---------- */
@media (max-width: 991px) {
    .r-feat-bar { grid-template-columns: repeat(2, 1fr); border-radius: 18px; }
    .r-feat { padding: 14px 12px; gap: 10px; }
    .r-feat:nth-child(3)::before { display: none; }
    .r-feat:nth-child(n+3) { border-top: 1px solid var(--r-line); }
    .r-feat > i { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
    .r-feat strong { font-size: 13.5px; } .r-feat span { font-size: 11.5px; }
    .r-serv-band { grid-template-columns: 1fr; padding: 28px 20px; gap: 22px; border-radius: 20px; }
}
@media (max-width: 768px) {
    .r-hero { min-height: 440px; border-radius: 0 0 20px 20px; margin-bottom: -40px; }
    .r-hero-content { padding: 36px 14px 76px; }
    .r-hero-content p { font-size: .96rem; }
    .btn-hero-solid, .btn-hero-glass { padding: 12px 18px; font-size: 14px; }
    .r-sec-header { margin: 34px 0 16px; } .r-sec-header h4 { font-size: 19px; }
    .r-cat-card { min-width: 112px; padding: 12px 8px 10px; border-radius: 14px; }
    .r-cat-img { width: 64px; height: 64px; padding: 10px; }
    .r-cat-card h6 { font-size: 12px; }
    .r-card-img-wrap { height: 138px; } .r-card-title { font-size: 12.5px; } .r-card-new-price { font-size: 15px; }
    .r-card-add { width: 32px; height: 32px; }
    .r-flash-sale, .r-gifts-wrap { padding: 22px 16px; border-radius: 20px; margin-top: 34px; }
    .fs-time-box { width: 60px; height: 66px; border-radius: 13px; } .fs-time-num { font-size: 22px; }
    .r-serv-cards { grid-template-columns: 1fr; }
    .r-serv-card { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 14px; }
    .r-serv-card i { margin: 0; } .r-serv-card span { flex-basis: 100%; }
    .r-app-banner { border-radius: 18px; margin-top: 34px; }
    .r-app-item { flex-basis: 168px; }
    .app-download-section { padding: 30px 16px; border-radius: 20px; margin-top: 36px; }
    .r-gift-card { flex-direction: row; align-items: center; } .r-gift-img { width: 96px; height: 80px; }
}

/* ---------- top banner slot (under categories) ---------- */
.r-app-top-slot { margin: 6px 0 14px; }
.r-app-top-slot .r-app-banner { margin-top: 8px; border-radius: 24px; border: 1px solid rgba(26,12,11,.06); box-shadow: 0 16px 40px rgba(26,12,11,.12); }
.r-app-top-slot .r-app-slide { aspect-ratio: 27 / 10; max-height: 360px; }
.r-app-top-slot .r-app-dots { bottom: 14px; }
.r-app-top-slot .r-app-dots button.active { background: #E33B3B; }
@media (max-width: 767px) {
    .r-app-top-slot { margin: 0 0 8px; }
    .r-app-top-slot .r-app-banner { border-radius: 16px; }
    .r-app-top-slot .r-app-slide { aspect-ratio: 16 / 7; }
}
/* section rhythm: consistent spacing + accent bar on headings */
.r-sec-header { margin-top: 44px; }
.r-sec-header h4 { position: relative; padding-inline-start: 14px; font-weight: 800; }
.r-sec-header h4::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: linear-gradient(#E33B3B, #ff8a65); }
