/* Rawaa editorial continuity: one decorative layer, a readable opening,
   and frosted surfaces that settle into the original page palette.
   Shop keeps its existing stylesheet and Home keeps its existing composition. */
.editorial-flow {
  position: relative;
  isolation: isolate;
  background: var(--c-bg);
  --flow-fade-start: 250px;
  --flow-fade-middle: 350px;
  --flow-angle: 90deg;
}
.editorial-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--c-fig);
}
.editorial-backdrop img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--flow-position, 50% 45%);
}
.editorial-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0, transparent var(--flow-fade-start), #f6efe788 var(--flow-fade-middle), var(--c-bg) 100%),
    linear-gradient(var(--flow-angle), #2a1520d9 0%, #2a15209e 48%, #2a15206b 100%),
    linear-gradient(180deg, #2a152063, transparent 44%);
}
html[lang="ar"] .editorial-flow { --flow-angle: 270deg; }

.editorial-flow .editorial-glass {
  background: #fbf6f0f7;
  border: 1px solid #fbf6f0d9;
  border-radius: var(--r-lg);
  box-shadow: 0 15px 46px #2a152012, inset 0 1px 0 #ffffff8c;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .editorial-flow .editorial-glass {
    background: #fbf6f0e3;
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
  }
}

/* Journal, About, Ingredients, Apothecary, Contact, Shipping and Returns.
   The banner and opening content panel share the same image, not two sections
   separated by a hard horizontal edge. */
.info-flow {
  --flow-fade-start: clamp(242px, 21vw, 292px);
  --flow-fade-middle: calc(var(--flow-fade-start) + 95px);
}
.info-flow .page-banner {
  background: transparent;
  overflow: visible;
  isolation: auto;
  min-height: var(--flow-fade-start);
  padding: clamp(102px, 8vw, 122px) 0 36px;
}
.info-flow .page-banner::after { content: none; }
.info-flow .page-banner__copy {
  justify-items: start;
  text-align: start;
  gap: 14px;
}
.info-flow .page-banner__breadcrumb { justify-content: flex-start; }
.info-flow .page-banner h1 {
  font-size: clamp(2.55rem, 4.3vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -.032em;
  line-height: 1.13;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow: 0 2px 12px #2a15203d;
}
.info-flow .info-details { position: relative; padding: 0 0 26px; }
.info-flow .info-intro-panel {
  display: block;
  padding: clamp(23px, 3.3vw, 44px);
}
.info-flow .info-section-heading { max-width: 820px; margin: 0; }
.info-flow .info-section-heading h2 { color: var(--c-ink); line-height: 1.17; }
.info-flow .info-eyebrow { color: #9b4828; margin-bottom: 8px; font-weight: 600; }
.info-flow .info-section-heading .info-lead { color: var(--c-ink); font-size: var(--fs-md); }
.info-flow .info-section-heading > p:not(.info-eyebrow) { max-width: 70ch; }
.info-body { padding-block: 0 36px; }
.info-body .info-block, .info-body .info-contact {
  border: 1px solid var(--c-line);
  background: linear-gradient(145deg, #fbf6f0, #f8f0e9);
  box-shadow: 0 5px 20px #2a152008;
}
.info-body .info-contact__form input, .info-body .info-contact__form textarea {
  min-height: 48px;
  background: #fbf6f0b8;
  font-size: max(16px, var(--fs-sm));
}
.info-body .info-contact__form textarea { min-height: 120px; }
.info-body .info-action { background: linear-gradient(115deg, var(--c-sand), var(--c-paper)); border: 1px solid var(--c-line); }
body[data-content-page="about"] .info-flow { --flow-position: 50% 43%; }
body[data-content-page="journal"] .info-flow { --flow-position: 58% 45%; }
body[data-content-page="ingredients"] .info-flow { --flow-position: 50% 47%; }
body[data-content-page="contact"] .info-flow { --flow-position: 50% 42%; }
body[data-content-page="returns"] .info-flow { --flow-position: 50% 82%; }
body[data-content-page="shipping"] .info-flow { --flow-position: 50% 77%; }

/* Product and checkout pages: a short, bounded image layer gives context
   to the first row of content, without making the entire checkout sticky
   or obscuring real product photography. */
.commerce-flow { --flow-fade-start: 175px; --flow-fade-middle: 340px; }
.commerce-flow .commerce-top { background: transparent; }
.commerce-flow__backdrop { height: min(100%, clamp(450px, 42vw, 650px)); }
.commerce-flow .commerce-breadcrumb { color: var(--c-cream); }
.commerce-flow .product-gallery__stage { box-shadow: 0 12px 36px #2a152017; border-color: #fbf6f0a8; }
.commerce-flow .product-info.commerce-info-panel {
  padding: clamp(22px, 2.8vw, 38px);
  min-width: 0;
}
.commerce-flow .product-layout { gap: clamp(24px, 3.8vw, 60px); }
.commerce-flow .product-info__service a { background: #fbf6f0b3; }
.commerce-flow .checkout-top { padding-bottom: clamp(24px, 3.3vw, 42px); }
.checkout-flow__backdrop { height: min(100%, clamp(530px, 45vw, 700px)); --flow-position: 50% 78%; }
.checkout-flow__backdrop::after {
  background:
    linear-gradient(to bottom, transparent 0, transparent 245px, #f6efe788 370px, var(--c-bg) 100%),
    linear-gradient(var(--flow-angle), #2a1520ec 0%, #2a1520a8 56%, #2a152074 100%);
}
.commerce-flow .checkout-progress {
  width: fit-content;
  max-width: 100%;
  padding: 12px clamp(12px, 2vw, 23px);
  margin-bottom: 24px;
  border-radius: 99px;
}
.commerce-flow .checkout-preview-notice { background: #ede2d5f2; }
.commerce-flow .checkout-fields input,
.commerce-flow .checkout-fields select,
.commerce-flow .checkout-fields textarea { background: #fbf6f0cc; }

/* Customer and staff account screens are already full-background layouts.
   Fade into plum (not cream) here so white editorial copy and the
   independent administration identity remain readable. */
.auth-flow, .admin-flow { background: var(--c-fig); }
.auth-flow { overflow: hidden; }
.auth-flow::after { content: none; }
.auth-flow__backdrop { --flow-position: 35% 50%; }
.auth-flow__backdrop::after {
  background:
    linear-gradient(to bottom, transparent 0%, transparent 58%, #2a1520a8 84%, var(--c-fig) 100%),
    linear-gradient(var(--flow-angle), #2a1520ed 0%, #2a1520b5 50%, #2a152073 100%);
}
.admin-flow__backdrop { height: min(100%, 860px); --flow-position: 50% 34%; }
.admin-flow__backdrop::after {
  background: linear-gradient(to bottom, #2a1520c9 0%, #2a1520de 42%, var(--c-fig) 100%),
              linear-gradient(var(--flow-angle), #2a1520f0, #2a152099);
}
.auth-flow .auth-card, .admin-flow .auth-card {
  background: #fbf6f0f7;
  border-color: #fbf6f0b8;
  box-shadow: 0 22px 70px #14080e40, inset 0 1px 0 #ffffffa8;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-flow .auth-card, .admin-flow .auth-card {
    background: #fbf6f0e8;
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
  }
}

/* Consistent premium CTA components, retaining each link's original behavior. */
.rawaa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 47px;
  padding: 7px 8px 7px 18px;
  padding-inline: 18px 8px;
  border: 1px solid transparent;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.25;
  flex: 0 0 auto;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.rawaa-cta svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 7px;
  border: 1px solid #2a15201c;
  border-radius: 50%;
  background: #2a152008;
  transition: transform .3s var(--ease-out), background-color .25s;
}
.rawaa-cta--outline { color: var(--c-fig); border-color: #2a152026; background: var(--c-paper); }
.rawaa-cta--light { color: var(--c-fig); border-color: #fbf6f0ab; background: var(--c-cream); }
.rawaa-cta--dark { color: var(--c-cream); border-color: #fbf3ea24; background: var(--c-fig); }
.rawaa-cta--dark svg { border-color: #fbf3ea35; background: #fbf3ea14; }
.rawaa-cta--compact { min-height: 36px; padding: 4px 5px 4px 12px; padding-inline: 12px 5px; gap: 10px; font-size: var(--fs-xs); }
.rawaa-cta--compact svg { width: 25px; height: 25px; flex-basis: 25px; padding: 5px; }
.rawaa-cta:focus-visible { border-radius: 99px; }
@media (hover: hover) {
  .rawaa-cta--outline:hover { color: var(--c-cream); background: var(--c-fig); border-color: var(--c-fig); box-shadow: 0 5px 18px #2a15201c; }
  .rawaa-cta--outline:hover svg { border-color: #fbf3ea35; background: #fbf3ea14; }
  .rawaa-cta--light:hover { background: var(--c-apricot); color: var(--c-fig); border-color: var(--c-apricot); }
  .rawaa-cta--dark:hover { background: var(--c-fig-2); border-color: #fbf3ea47; box-shadow: 0 5px 18px #2a15201c; }
  .rawaa-cta:hover svg { transform: translateX(2px); }
}
html[lang="ar"] .rawaa-cta svg { scale: -1 1; }
html[lang="ar"] .auth-editorial__link.rawaa-cta svg { transform: none; }
@media (hover: hover) {
  html[lang="ar"] .rawaa-cta:hover svg, html[lang="ar"] .auth-editorial__link.rawaa-cta:hover svg { transform: translateX(-2px); }
}
@media (max-width: 820px) {
  .info-flow { --flow-fade-start: 215px; --flow-fade-middle: 310px; }
  .info-flow .page-banner { min-height: var(--flow-fade-start); padding: 92px 0 30px; }
  .info-flow .page-banner h1 { font-size: clamp(2rem, 7.6vw, 3rem); }
  .info-flow .page-banner__copy { gap: 10px; }
  .info-flow .info-intro-panel { padding: 23px 19px; }
  .info-flow .info-section-heading h2 { font-size: clamp(1.6rem, 6.2vw, 2.25rem); }
  .info-flow .info-section-heading > p:not(.info-eyebrow) { margin-top: 11px; }
  .info-flow .info-details { padding-bottom: 19px; }
  .info-body { padding-bottom: 27px; }
  .info-body .info-action .btn { white-space: normal; min-height: 46px; }
  .commerce-flow { --flow-fade-start: 145px; --flow-fade-middle: 280px; }
  .commerce-flow__backdrop { height: min(100%, 490px); }
  .checkout-flow__backdrop { height: min(100%, 590px); }
  .checkout-flow__backdrop::after {
    background: linear-gradient(to bottom, #2a1520e0 0%, #2a1520c0 220px, #f6efe79c 365px, var(--c-bg) 100%);
  }
  .commerce-flow .product-info.commerce-info-panel { padding: 20px 17px; }
  .commerce-flow .checkout-progress { padding: 10px 11px; width: 100%; }
  .auth-flow__backdrop::after {
    background: linear-gradient(to bottom, #2a1520e0 0%, #2a1520ad 32%, #2a1520c9 65%, var(--c-fig) 100%);
  }
  .rawaa-cta { min-height: 44px; gap: 12px; padding-inline-start: 15px; }
  .rawaa-cta--compact { min-height: 38px; padding-inline-start: 12px; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .editorial-flow .editorial-glass, .auth-flow .auth-card, .admin-flow .auth-card {
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
    }
  }
}
@media (max-width: 480px) {
  .commerce-flow .checkout-progress { flex-wrap: wrap; border-radius: 22px; }
  .commerce-flow .checkout-progress__line { flex: 1 0 8px; }
}
@media (max-width: 360px) {
  .commerce-flow .product-info.commerce-info-panel { padding-inline: 13px; }
  .commerce-flow .checkout-progress { padding-inline: 9px; }
  .commerce-flow .product-buy__controls { grid-template-columns: minmax(0, 1fr); }
  .commerce-flow .commerce-qty { justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .editorial-backdrop img { animation: editorial-photo-in .85s var(--ease-out) backwards; }
  .info-intro-panel { animation: editorial-panel-in .55s .06s var(--ease-out) backwards; }
}
@keyframes editorial-photo-in { from { transform: scale(1.025); } to { transform: scale(1); } }
@keyframes editorial-panel-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .rawaa-cta, .rawaa-cta svg { transition: none; }
  .rawaa-cta:hover svg { transform: none; }
}

/* Final visual review: hierarchy, legibility, accessible controls, no decorative glyphs. */
html[lang="ar"] .info-flow .page-banner h1,
html[lang="ar"] .shop-hero h1,
html[lang="ar"] .auth-editorial__headline,
html[lang="ar"] .auth-card h1 { letter-spacing: normal; line-height: 1.35; }

.info-flow__backdrop::after {
  background:
    linear-gradient(to bottom, transparent 0, transparent var(--flow-fade-start), #f6efe788 var(--flow-fade-middle), var(--c-bg) 100%),
    linear-gradient(var(--flow-angle), #2a1520d9 0%, #2a1520a1 45%, #2a15204a 100%),
    linear-gradient(180deg, #2a15204d, transparent 45%);
}
.page-banner__breadcrumb a, .shop-breadcrumb a, .commerce-breadcrumb a, .auth-breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.page-banner__breadcrumb a:hover, .shop-breadcrumb a:hover, .commerce-breadcrumb a:hover, .auth-breadcrumb a:hover {
  border-color: currentColor;
}
.page-banner__breadcrumb [aria-current="page"] { opacity: 1; }
.info-flow .info-section-heading h2 { font-size: clamp(1.65rem, 2.7vw, 2.9rem); font-weight: 500; }
.info-flow .info-section-heading .info-lead { line-height: 1.65; }
.info-body .info-block h3 { color: var(--c-ink); font-weight: 600; line-height: 1.35; }
.info-body .info-block { box-shadow: 0 4px 16px #2a152007; }
.info-related__link { min-height: 76px; }
.info-related__arrow { transition: background-color .25s, color .25s; }
@media (hover:hover) {
  .info-related__link:hover .info-related__arrow { background: var(--c-fig); color: var(--c-cream); }
}

body[data-page="home"] .head h2 { color: var(--c-ink); line-height: 1.16; }
body[data-page="home"] .head { align-items: center; }
body[data-page="home"] .head .rawaa-cta { flex-shrink: 0; }
.shop-hero h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); line-height: 1.12; text-wrap: balance; }
.shop-section-heading h2 { font-weight: 500; }
.shop-results { flex-wrap: wrap; }
.shop-clear { min-height: 42px; }
.shop-back-top, .footer-back-top, .media-round, .arrow { border-radius: 50%; }
.shop-back-top:focus-visible, .footer-back-top:focus-visible, .media-round:focus-visible, .arrow:focus-visible, .icon-btn:focus-visible { border-radius: 50%; }
.btn, .commerce-outline, .auth-outline, .cart-btn { border-radius: 99px; }
.btn { min-height: 44px; }
.btn:focus-visible, .rawaa-cta:focus-visible, .commerce-outline:focus-visible, .auth-outline:focus-visible, .cart-btn:focus-visible, .shop-clear:focus-visible { border-radius: 99px; }
.btn--dark:not(:disabled):hover, .cart-btn:not(:disabled):hover { background: var(--c-fig-2); color: var(--c-cream); }
.btn:disabled, .cart-btn:disabled, .auth-submit:disabled { opacity: .55; cursor: not-allowed; }
.cart__foot .btn { min-height: 48px; }
.pcard__row { gap: 8px; flex-wrap: wrap; }
.cart-btn { min-height: 38px; padding-inline: 15px; }
.qty button { min-width: 30px; min-height: 30px; }
.product-info h1 { line-height: 1.15; font-size: clamp(2rem, 3.3vw, 3.5rem); text-wrap: balance; overflow-wrap: break-word; }
.product-details__heading h2 { font-weight: 500; }
.product-detail-card h3 { font-weight: 600; }
.product-info__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--c-line);
  border-radius: 99px;
  background: #fbf6f0b8;
  color: var(--c-fig);
  font-weight: 500;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.product-info__checkout svg { width: 16px; height: 16px; flex: 0 0 16px; }
html[lang="ar"] .product-info__checkout svg { scale: -1 1; }
.checkout-item__remove {
  padding: 6px 10px;
  border: 1px solid var(--c-line);
  border-radius: 99px;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.checkout-item__remove:hover { background: var(--c-sand); color: var(--c-fig); }
.checkout-top h1 { font-size: clamp(2.55rem, 4.3vw, 4.1rem); }
@media (hover:hover) {
  .product-info__checkout:hover { background: var(--c-sand); border-color: #2a152040; }
}

/* Account pages: one clear H1 in the form, no repeated icons or ornamental badges. */
.auth-flow .auth-shell { max-width: 1100px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 75px); }
.auth-editorial__headline {
  font: 500 clamp(2.5rem, 4.25vw, 4.3rem)/1.12 var(--font-body);
  letter-spacing: -.035em;
  color: var(--c-cream);
  max-width: 14ch;
  text-wrap: balance;
}
.auth-flow .auth-card, .admin-flow .auth-card {
  max-width: 470px;
  padding: clamp(25px, 3.2vw, 42px);
  background: #fbf6f0f7;
  border-color: #fbf6f0c9;
}
.auth-card h1 {
  font: 500 clamp(1.95rem, 3vw, 2.65rem)/1.16 var(--font-body);
  letter-spacing: -.028em;
  color: var(--c-ink);
  text-wrap: balance;
}
.auth-card__heading { margin-bottom: 21px; }
.auth-card__heading > p:last-child { margin-top: 9px; }
.auth-form { gap: 15px; }
.auth-preview-note { font-size: .8rem; background: var(--c-bg); padding: 11px 13px; }
.auth-field { font-weight: 500; }
.auth-field__control { padding-inline: 15px; min-height: 51px; background: var(--c-bg); }
.auth-field__control input { min-height: 49px; }
.auth-field__control:focus-within { outline: 2px solid #2a15205c; outline-offset: 2px; border-color: var(--c-fig); }
.auth-password-toggle:focus-visible { outline-color: var(--c-fig); }
.auth-submit { min-height: 52px; }
.auth-card__alternate { margin-top: 20px; padding-top: 18px; gap: 10px; }
.auth-outline { min-height: 48px; }
.auth-help { text-decoration-color: #75606a7a; text-underline-offset: 4px; }
.auth-admin-notice { font-size: .79rem; }
.auth-admin__return { padding: 9px 13px; border: 1px solid #fbf3ea47; border-radius: 99px; }
.admin-flow__backdrop::after { background: linear-gradient(to bottom, #2a1520dd 0%, #2a1520e8 55%, var(--c-fig) 100%); }
@media (max-width: 820px) {
  .info-flow__backdrop::after {
    background: linear-gradient(to bottom, transparent 0, transparent var(--flow-fade-start), #f6efe7b0 var(--flow-fade-middle), var(--c-bg) 100%),
                linear-gradient(to bottom, #2a1520b8 0%, #2a1520c9 55%, #2a1520a1 100%);
  }
  .info-flow .info-section-heading h2 { font-size: clamp(1.55rem, 6vw, 2.05rem); }
  body[data-page="home"] .head { align-items: flex-start; gap: 14px; }
  .shop-hero h1 { font-size: clamp(2.15rem, 8vw, 3.3rem); }
  .product-info h1 { font-size: clamp(1.85rem, 7.2vw, 2.8rem); }
  .checkout-top h1 { font-size: clamp(2rem, 7.8vw, 3rem); }
  .media-round { width: 42px; height: 42px; }
  .cart-btn { min-height: 40px; }
  .auth-flow { padding-top: 89px; padding-bottom: 32px; }
  .auth-flow .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 530px; }
  .auth-flow .auth-editorial { padding: 0; }
  .auth-flow .auth-breadcrumb { margin: 0; justify-content: flex-start; text-align: start; }
  .auth-flow .auth-editorial__headline, .auth-flow .auth-editorial__description,
  .auth-flow .auth-editorial__link, .admin-flow .auth-editorial { display: none; }
  .auth-flow .auth-card, .admin-flow .auth-card { padding: 24px 21px; }
  .auth-card h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .auth-admin__return { padding: 10px; }
  .auth-admin__main { padding-block: 24px; }
}
@media (max-width: 360px) {
  .auth-flow .auth-card, .admin-flow .auth-card { padding: 20px 16px; }
  .shop-clear { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-banner__breadcrumb a, .shop-breadcrumb a, .commerce-breadcrumb a, .auth-breadcrumb a,
  .product-info__checkout, .checkout-item__remove, .info-related__arrow { transition: none; }
}

/* Long translated CTA labels should fit inside the panel at every breakpoint. */
.info-contact__intro .rawaa-cta, .info-action .rawaa-cta { max-width: 100%; white-space: normal; }
@media (max-width: 380px) {
  .product-info__checkout { white-space: normal; text-align: center; }
  .checkout-item__remove { padding-inline: 7px; }
}
