/* ALSALAHY editorial storefront — layered over the existing shop UI. */
:root {
  --ink: #332419;
  --paper: #fbf5e9;
  --rose-paper: #f8e7e5;
  --hairline: rgba(93, 62, 41, .19);
}

body { background: var(--paper); }
body.intro-active { overflow: hidden; }

/* Short opening scene, shown only once per browsing session. */
.brand-intro[hidden] { display: none; }
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 4000;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #2f2118;
  color: #fff8eb;
  transition: opacity .6s ease, visibility .6s ease;
}
.brand-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-scene {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url('../images/hero-bg.png') center 59% / cover no-repeat;
  animation: introScene 3.8s ease-out both;
}
.intro-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(28, 18, 12, .76), rgba(28, 18, 12, .22) 54%, rgba(28, 18, 12, .66)),
              linear-gradient(0deg, rgba(28, 18, 12, .7), transparent 60%);
}
.intro-content { text-align: center; padding: 28px; transform: translateY(-2vh); }
.intro-eyebrow, .intro-rule, .intro-line, .intro-logo { display: block; margin-inline: auto; }
.intro-eyebrow { font: 500 .66rem var(--font-en); letter-spacing: .36em; opacity: .85; animation: introRise .9s .1s both; }
.intro-logo { width: clamp(120px, 17vw, 200px); height: auto; margin-block: 25px 10px; filter: drop-shadow(0 8px 34px rgba(0,0,0,.4)); animation: introRise .9s .35s both; }
.intro-line { max-width: 650px; font: 500 clamp(1.3rem, 3.2vw, 2.45rem)/1.55 var(--font-heading); text-shadow: 0 3px 18px rgba(0,0,0,.65); animation: introRise .9s .6s both; }
.intro-rule { width: 72px; height: 1px; margin-top: 26px; background: #f8dcc1; transform-origin: center; animation: introRule 1s .9s both; }
.intro-skip {
  position: absolute;
  inset-inline-end: max(22px, 4vw);
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 0;
  padding: 10px 18px;
  background: rgba(26, 17, 12, .3);
  color: white;
  font-size: .85rem;
  backdrop-filter: blur(6px);
}
.intro-skip:hover { background: #fff8eb; color: var(--ink); }
.intro-progress { position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 3px; background: #edd0b4; transform-origin: left; animation: introProgress 3.3s linear both; }
@keyframes introScene { from { transform: scale(1.09); filter: blur(7px); } to { transform: scale(1); filter: blur(0); } }
@keyframes introRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Light editorial navigation, with the brand always visible. */
.main-header, .main-header.header-scrolled {
  background: rgba(251, 245, 233, .96);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 0;
}
.header-inner { min-height: 56px; gap: 22px; }
.header-brand { display: flex; flex-direction: column; align-items: center; min-width: 126px; line-height: 1; color: var(--ink); }
.header-brand-ar { font: 700 1.35rem/1.15 var(--font-heading); }
.header-brand-en { font: 600 .48rem/1.3 var(--font-en); letter-spacing: .27em; margin-top: 3px; }
.nav-desktop { gap: clamp(16px, 2.2vw, 36px); }
.nav-link { color: var(--ink); font-weight: 600; }
.nav-link:hover, .nav-link.nav-active { color: var(--caramel); }
.header-actions { gap: 12px; }
.lang-toggle-btn { border-radius: 3px; }
.hamburger { background: transparent; border: 0; }

/* The opening storefront frame. */
.hero { min-height: min(900px, 100svh); padding-top: 76px; align-items: flex-end; background: #3b291b; }
.hero-bg img { opacity: 1; filter: none; object-position: center 56%; }
.hero-bg::after {
  background: linear-gradient(0deg, rgba(24, 14, 9, .86), rgba(24, 14, 9, .27) 45%, rgba(24, 14, 9, .14) 78%),
              linear-gradient(90deg, rgba(24, 14, 9, .25), transparent 55%);
}
.hero-orbs { opacity: .2; }
#particle-canvas { opacity: .3; }
.hero-content { max-width: 880px; padding: 0 24px clamp(96px, 13vh, 145px); }
.hero-kicker { font: 600 .69rem/1.4 var(--font-en); color: #f4e0c3; letter-spacing: .34em; margin-bottom: 13px; text-shadow: 0 2px 7px rgba(0,0,0,.5); }
.hero-kicker span { padding: 0 9px; }
.hero-title, [dir="ltr"] .hero-title {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 1.1;
  margin-bottom: 10px;
  color: #fff9ed;
  background: none;
  -webkit-text-fill-color: #fff9ed;
  text-shadow: 0 4px 28px rgba(0,0,0,.35);
  animation: heroTitleIn 1s .3s both;
}
.hero-subtitle { font-size: clamp(1.2rem, 2.4vw, 2rem); font-style: normal; color: #fff6e8; margin-bottom: 5px; text-shadow: 0 3px 16px rgba(0,0,0,.65); }
.hero-tagline { color: #ead4ba; margin-bottom: 24px; }
.btn-hero {
  min-width: 190px;
  padding: 14px 32px;
  border: 1px solid #f5e2cb;
  border-radius: 2px;
  background: #f9eddd;
  color: var(--ink);
  font-weight: 700;
  box-shadow: none;
}
.btn-hero:hover { background: white; color: var(--ink); transform: translateY(-3px); }
.hero-scroll-indicator { bottom: 22px; opacity: .75; }
.hero-scroll-indicator span { border-color: #f3e5d5; }

/* Refined two-panel entrance into the collections. */
.collections-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; background: var(--paper); }
.collection-panel { position: relative; display: block; overflow: hidden; isolation: isolate; min-height: clamp(480px, 57vw, 760px); color: white; background: #735947; }
.collection-panel img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .7s ease; }
.collection-panel-men img { object-position: 51% 50%; }
.collection-panel-women img { object-position: 50% 50%; }
.collection-panel:hover img, .collection-panel:focus-visible img { transform: scale(1.065); filter: saturate(1.08); }
.collection-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(28,17,12,.8), rgba(28,17,12,.17) 45%, rgba(28,17,12,.03)); transition: background .3s; }
.collection-copy { position: absolute; bottom: clamp(24px, 4.5vw, 66px); inset-inline: clamp(20px, 4vw, 70px); display: flex; flex-direction: column; align-items: flex-start; text-align: start; text-shadow: 0 3px 12px rgba(0,0,0,.4); }
.collection-index { font: 600 .66rem var(--font-en); letter-spacing: .3em; margin-bottom: 10px; }
.collection-copy strong { font: 700 clamp(2.2rem, 4.4vw, 4.4rem)/1.1 var(--font-heading); }
[dir="ltr"] .collection-copy strong { font-family: var(--font-en-heading); }
.collection-action { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 6px; margin-top: 20px; border-bottom: 1px solid #f9e6cf; font-size: .94rem; font-weight: 600; transition: gap .3s ease; }
.collection-panel:hover .collection-action { gap: 22px; }

.brand-manifesto { overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 34px; white-space: nowrap; padding: 20px 12px; background: #714a32; color: #f9eddd; font: 500 .72rem var(--font-en); letter-spacing: .23em; }
.brand-manifesto span:nth-child(3) { font: 600 1rem var(--font-heading); letter-spacing: 0; }

/* Spacious collection header and quieter merchandising. */
.products-section { background: var(--paper); }
.products-section .section-header { margin-bottom: 36px; }
.editorial-eyebrow { display: block; margin-bottom: 10px; color: var(--caramel); font: 600 .72rem var(--font-en); letter-spacing: .21em; }
.editorial-heading { color: var(--ink); font: 700 clamp(2.5rem, 4vw, 4.4rem)/1.2 var(--font-heading); }
[dir="ltr"] .editorial-heading { font-family: var(--font-en-heading); }
.editorial-description { color: #705843; font-size: 1.08rem; margin-top: 6px; }
.category-tabs { margin-top: 30px; }
.product-card { border: 1px solid var(--hairline); border-radius: 4px; box-shadow: 0 12px 32px rgba(80,50,30,.07); }
.product-image-wrapper { background: #f5ead9; }
.product-image { width: 100%; height: 100%; object-fit: cover; }
.product-name { color: var(--ink); }
.about-section { background: #f6eddf; }
.contact-section { background: #fff9f0; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-form, .contact-info { min-width: 0; }
.contact-info-value { overflow-wrap: anywhere; }
.gold-separator { display: none; }

@media (max-width: 768px) {
  .reveal-on-scroll[data-reveal="left"],
  .reveal-on-scroll[data-reveal="right"],
  [dir="rtl"] .reveal-on-scroll[data-reveal="left"],
  [dir="rtl"] .reveal-on-scroll[data-reveal="right"] { transform: translateY(22px); }
  .reveal-on-scroll[data-reveal].revealed { transform: none; }
  .main-header, .main-header.header-scrolled { padding: 5px 0; }
  .header-inner { min-height: 54px; gap: 6px; }
  .header-brand { min-width: 100px; margin-inline-end: auto; }
  .header-brand-ar { font-size: 1.15rem; }
  .header-brand-en { font-size: .42rem; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .lang-toggle-btn { padding: 5px 9px; font-size: .77rem; }
  .hamburger { min-width: 36px; min-height: 36px; justify-content: center; align-items: center; }
  .hero { min-height: 83svh; padding-top: 66px; }
  .hero-bg img { object-position: 54% center; }
  .hero-content { padding: 0 20px calc(78px + env(safe-area-inset-bottom)); }
  .hero-kicker { font-size: .54rem; letter-spacing: .2em; }
  .hero-title, [dir="ltr"] .hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .hero-subtitle { font-size: 1.15rem; }
  .hero-tagline { font-size: .83rem; min-height: 1.5em; margin-bottom: 18px; }
  .hero-scroll-indicator { display: none; }
  .collections-editorial { gap: 4px; padding: 4px; }
  .collection-panel { min-height: 340px; }
  .collection-copy { inset-inline: 16px; bottom: 20px; }
  .collection-copy strong { font-size: clamp(1.6rem, 5vw, 2.7rem); }
  .collection-index { font-size: .52rem; }
  .collection-action { font-size: .75rem; margin-top: 12px; }
  .brand-manifesto { gap: 18px; padding: 16px; }
  .intro-logo { width: 135px; }
}

@media (max-width: 520px) {
  .hero { min-height: 82svh; }
  .hero-bg img { object-position: 52% center; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(24,14,9,.9), rgba(24,14,9,.22) 72%); }
  .collections-editorial { grid-template-columns: 1fr; }
  .collection-panel { min-height: min(110vw, 430px); }
  .collection-panel img { object-position: center 43%; }
  .collection-copy strong { font-size: 2.55rem; }
  .collection-action { font-size: .9rem; }
  .products-section .container { padding-inline: 14px; }
  .editorial-eyebrow { font-size: .6rem; }
  .editorial-heading { font-size: 2.55rem; }
  .editorial-description { font-size: .94rem; }
  .product-card { border-radius: 3px; }
  .brand-manifesto { justify-content: flex-start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; }
  .collection-panel img, .collection-action { transition: none; }
}
