أسلوبك.
هويتك.
ملابس مريحة بتصاميم عصرية تناسب يومك، وتمنحك الثقة في كل حركة
تسوق هنا
أسلوبك.
هويتك.
ملابس مريحة بتصاميم عصرية تناسب يومك، وتمنحك الثقة في كل حركة
تسوق هنا
/* ---------- Scoped tokens ---------- */
.hs-hero {
--hs-black: #0a0a0a;
--hs-white: #ffffff;
--hs-overlay-strong: rgba(8, 8, 8, 0.82);
--hs-overlay-mid: rgba(8, 8, 8, 0.5);
--hs-overlay-soft: rgba(8, 8, 8, 0);
--hs-ease: cubic-bezier(0.22, 1, 0.36, 1);
--hs-fade-dur: 1.1s;
position: relative;
width: 100%;
height: clamp(420px, 78vh, 780px);
max-height: 900px;
overflow: hidden;
isolation: isolate;
direction: rtl;
box-sizing: border-box;
}
.hs-hero, .hs-hero *, .hs-hero *::before, .hs-hero *::after {
box-sizing: border-box;
}
/* ---------- Slide stack (crossfade) ---------- */
.hs-track {
position: relative;
width: 100%;
height: 100%;
}
.hs-slide {
position: absolute;
inset: 0;
opacity: 0;
visibility: hidden;
transition: opacity var(--hs-fade-dur) var(--hs-ease), visibility 0s linear var(--hs-fade-dur);
will-change: opacity;
}
.hs-slide.hs-slide-active {
opacity: 1;
visibility: visible;
transition: opacity var(--hs-fade-dur) var(--hs-ease), visibility 0s linear 0s;
z-index: 1;
}
.hs-bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-color: var(--hs-black); /* prevents flash before image loads */
transform: scale(1.04);
transition: transform 6s var(--hs-ease);
}
.hs-slide.hs-slide-active .hs-bg {
transform: scale(1);
}
/* Dark gradient: strongest behind the Arabic text (left side), fading toward the product (right side) */
.hs-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to right,
var(--hs-overlay-strong) 0%,
var(--hs-overlay-mid) 42%,
var(--hs-overlay-soft) 78%
);
}
/* ---------- Text content ---------- */
.hs-content {
position: relative;
z-index: 2;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
text-align: right;
padding: 0 clamp(24px, 6vw, 100px);
width: min(90%, 640px);
}
.hs-heading {
margin: 0 0 clamp(14px, 2vw, 22px) 0;
color: var(--hs-white);
font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
font-weight: 500;
font-size: clamp(2.1rem, 5.4vw, 4rem);
line-height: 1.18;
}
.hs-heading .hs-line {
display: block;
opacity: 0;
transform: translateY(18px);
}
.hs-desc {
margin: 0 0 clamp(20px, 3vw, 32px) 0;
color: rgba(255, 255, 255, 0.86);
font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
font-weight: 400;
font-size: clamp(0.95rem, 1.6vw, 1.15rem);
line-height: 1.7;
max-width: 42ch;
opacity: 0;
transform: translateY(16px);
}
.hs-cta {
display: inline-block;
background: var(--hs-white);
color: var(--hs-black);
text-decoration: none;
font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
font-weight: 600;
font-size: clamp(0.9rem, 1.3vw, 1rem);
padding: clamp(12px, 1.6vw, 16px) clamp(28px, 4vw, 44px);
border-radius: 4px;
letter-spacing: 0.01em;
opacity: 0;
transform: translateY(14px);
transition: transform 0.35s var(--hs-ease), box-shadow 0.35s var(--hs-ease), background-color 0.35s var(--hs-ease);
}
.hs-cta:hover,
.hs-cta:focus-visible {
background-color: #f0f0f0;
transform: translateY(0) scale(1.02);
}
.hs-cta:focus-visible {
outline: 2px solid var(--hs-white);
outline-offset: 3px;
}
/* Sequential entrance animation on the active slide */
.hs-slide-active .hs-heading .hs-line,
.hs-slide-active .hs-desc,
.hs-slide-active .hs-cta {
animation: hs-rise 0.8s var(--hs-ease) forwards;
}
.hs-slide-active .hs-heading .hs-line:nth-child(1) { animation-delay: 0.15s; }
.hs-slide-active .hs-heading .hs-line:nth-child(2) { animation-delay: 0.32s; }
.hs-slide-active .hs-desc { animation-delay: 0.55s; }
.hs-slide-active .hs-cta { animation-delay: 0.82s; }
@keyframes hs-rise {
to { opacity: 1; transform: translateY(0); }
}
/* ---------- Arrows ---------- */
.hs-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 3;
width: clamp(36px, 4vw, 46px);
height: clamp(36px, 4vw, 46px);
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.35);
background: rgba(10, 10, 10, 0.25);
color: var(--hs-white);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
backdrop-filter: blur(2px);
transition: background-color 0.25s var(--hs-ease), border-color 0.25s var(--hs-ease), opacity 0.25s;
padding: 0;
}
.hs-arrow:hover,
.hs-arrow:focus-visible {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(255, 255, 255, 0.7);
}
.hs-arrow:focus-visible {
outline: 2px solid var(--hs-white);
outline-offset: 2px;
}
.hs-arrow-prev { right: clamp(12px, 3vw, 32px); }
.hs-arrow-next { left: clamp(12px, 3vw, 32px); }
/* prev (right edge) points right; next (left edge) points left — both point outward from center */
/* ---------- Pagination dots ---------- */
.hs-dots {
position: absolute;
bottom: clamp(16px, 3vw, 28px);
left: 50%;
transform: translateX(-50%);
z-index: 3;
display: flex;
gap: 10px;
}
.hs-dot {
width: 8px;
height: 8px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.6);
background: transparent;
padding: 0;
cursor: pointer;
transition: background-color 0.25s var(--hs-ease), width 0.25s var(--hs-ease);
}
.hs-dot.hs-dot-active {
background: var(--hs-white);
width: 22px;
border-radius: 5px;
}
.hs-dot:focus-visible {
outline: 2px solid var(--hs-white);
outline-offset: 2px;
}
/* ---------- Responsive ---------- */
/* Tablet: crop the hero to 75% of the desktop height (25% crop) */
@media (max-width: 1024px) {
.hs-hero { height: clamp(315px, 58.5vh, 585px); max-height: 675px; }
.hs-content { width: min(92%, 520px); }
}
/* Phone: crop the hero to 50% of the desktop height (50% crop) */
@media (max-width: 768px) {
.hs-hero { height: clamp(210px, 39vh, 390px); max-height: 450px; }
.hs-content {
width: 100%;
align-items: flex-start;
padding: 0 20px;
justify-content: center;
}
.hs-overlay {
background: linear-gradient(
to bottom,
rgba(8, 8, 8, 0.86) 0%,
rgba(8, 8, 8, 0.55) 32%,
rgba(8, 8, 8, 0.15) 58%,
rgba(8, 8, 8, 0.35) 100%
);
}
.hs-bg { background-position: center 15%; }
.hs-desc { max-width: 34ch; }
.hs-arrow { display: none; } /* swipe is the primary control on touch */
}
@media (max-width: 480px) {
.hs-desc { max-width: 30ch; }
.hs-cta { width: auto; }
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
.hs-slide,
.hs-bg,
.hs-cta,
.hs-arrow,
.hs-dot {
transition: none !important;
}
.hs-heading .hs-line,
.hs-desc,
.hs-cta {
animation: none !important;
opacity: 1 !important;
transform: none !important;
}
.hs-slide {
transition: opacity 0.3s linear, visibility 0s linear 0.3s !important;
}
}
(function () {
'use strict';
function initHeroSlider(hero) {
// Prevent duplicate initialization if the block/page builder renders this twice
if (hero.getAttribute('data-hs-initialized') === 'true') return;
hero.setAttribute('data-hs-initialized', 'true');
var slides = Array.prototype.slice.call(hero.querySelectorAll('.hs-slide'));
var dots = Array.prototype.slice.call(hero.querySelectorAll('.hs-dot'));
var prevBtn = hero.querySelector('.hs-arrow-prev');
var nextBtn = hero.querySelector('.hs-arrow-next');
if (slides.length SWIPE_THRESHOLD) {
// RTL: a swipe to the right reveals the "next" (visually previous-in-LTR) slide
if (delta > 0) {
next();
} else {
prev();
}
}
restartAutoplay();
}, { passive: true });
startAutoplay();
}
function init() {
var heroes = document.querySelectorAll('.hs-hero');
heroes.forEach(initHeroSlider);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();