/* Athar reels – same look as the photo strip (#لكل_خطوة_أثرها). Loaded only where reels show. */
.ar-reels { --ar-ink: var(--wd-title-color, #151413); --ar-mute: #6b655f; --ar-red: var(--wd-primary-color, #850000); padding: clamp(56px, 7vw, 96px) 0; direction: rtl; text-align: start; }
.ar-reels *, .ar-reels *::before, .ar-reels *::after { box-sizing: border-box; }
.ar-wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }
.single-product .ar-wrap, .athar-packs-page .ar-wrap { width: 100%; }
.ar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ar-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.25; color: var(--ar-ink); }
.ar-head p { margin: 8px 0 0; font-size: 15px; color: var(--ar-mute); }
.ar-reels .ar-link { font-size: 14px; font-weight: 700; color: var(--ar-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.ar-reels .ar-link:hover { color: var(--ar-red); }
.ar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ar-reel, .ar-brand { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: 22px; overflow: hidden; }
.ar-reel { background: #1b1a19; cursor: pointer; }
.ar-reel .ar-cover, .ar-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-reel video { opacity: 0; transition: opacity .3s; background: #1b1a19; }
.ar-reel .ar-cover { transition: transform .6s; }
.ar-reel:hover .ar-cover { transform: scale(1.03); }
.ar-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 40%); pointer-events: none; transition: opacity .3s; }
.ar-reel.is-on video { opacity: 1; }
.ar-reel.is-on .ar-cover { opacity: 0; }
.ar-reels .ar-play, .ar-reels .ar-sound { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; min-height: 0; background: none; box-shadow: none; line-height: 0; cursor: pointer; }
.ar-reels .ar-play { inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* WoodMart gives every button a grey hover/focus background – keep the reel buttons clear so the video stays visible. */
.ar-reels .ar-play, .ar-reels .ar-play:hover, .ar-reels .ar-play:focus, .ar-reels .ar-play:active { background: transparent !important; background-color: transparent !important; box-shadow: none !important; opacity: 1 !important; color: inherit; outline: 0; }
.ar-reels .ar-play:focus-visible span { outline: 2px solid #fff; outline-offset: 3px; }
.ar-reels .ar-sound:hover, .ar-reels .ar-sound:focus, .ar-reels .ar-sound:active { background: rgba(0,0,0,.6) !important; color: #fff !important; box-shadow: none !important; opacity: 1 !important; }
.ar-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ar-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: transform .25s, opacity .25s; }
.ar-play span svg { margin-inline-start: 3px; }
.ar-reel:hover .ar-play span { transform: scale(1.08); }
.ar-reel.is-on.is-playing .ar-play span { opacity: 0; transform: scale(.85); }
.ar-reel.is-loading .ar-play span { animation: ar-pulse 1s infinite; }
@keyframes ar-pulse { 50% { transform: scale(.92); opacity: .75; } }
.ar-reels .ar-sound { top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.ar-reels .ar-sound[hidden] { display: none; }
.ar-reels .ar-sound .ar-ico-off, .ar-reels .ar-sound.is-muted .ar-ico-on { display: none; }
.ar-reels .ar-sound.is-muted .ar-ico-off { display: block; }
.ar-bar { position: absolute; z-index: 2; inset: auto 16px 14px 16px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; opacity: 0; transition: opacity .3s; }
.ar-reel.is-on .ar-bar { opacity: 1; }
.ar-bar i { display: block; height: 100%; width: 0; background: #fff; }
.ar-cap { position: absolute; z-index: 3; inset: auto 16px 26px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; pointer-events: none; }
.ar-cap a { pointer-events: auto; flex: none; padding: 7px 14px; border-radius: 16px; background: #fff; color: var(--ar-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.ar-cap a:hover { background: var(--ar-red); color: #fff; }
/* brand tile (fills the row) */
.ar-reels .ar-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 28px 26px; background: var(--ar-red); color: #fff; text-decoration: none; }
.ar-brand__top { font-size: 13px; font-weight: 700; opacity: .75; }
.ar-reels .ar-brand img { width: 62%; height: auto; align-self: center; }
.ar-brand__txt { display: flex; flex-direction: column; gap: 4px; }
.ar-brand__txt b { font-size: clamp(20px, 2vw, 26px); font-weight: 800; color: #fff; }
.ar-brand__txt small { font-size: 14px; opacity: .8; }
.ar-brand i { position: absolute; bottom: 26px; inset-inline-end: 26px; font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ar-red); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .25s; }
.ar-brand:hover i { transform: translateX(-4px); }
@media (max-width: 767px) {
	.ar-wrap { width: calc(100% - 32px); }
	.ar-head { margin-bottom: 20px; }
	.ar-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.ar-grid::-webkit-scrollbar { display: none; }
	.ar-reel, .ar-brand { scroll-snap-align: start; border-radius: 18px; }
	.ar-play span { width: 56px; height: 56px; }
}
