/*
Theme Name: Astra Child — Al Rayhane
Template: astra
Version: 1.0
Description: Al Rayhane natural cosmetics store
*/

/* ============================================
   GOOGLE FONTS
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================
   DESIGN SYSTEM — AL RAYHANE
   Colors extracted directly from the logo
============================================ */
:root {
  /* Brand colors */
  --color-primary:        #FD125E;   /* rose vif — logo, CTAs, prix */
  --color-primary-light:  #FF6B9D;   /* rose clair — hover */
  --color-primary-pale:   #FFF0F4;   /* rose pâle — fonds sections */
  --color-sage:           #A9B3A4;   /* sauge — vine du logo, accents */
  --color-sage-pale:      #EEF2EC;   /* sauge pâle — badges naturel */

  /* Neutrals */
  --color-bg:             #FAF8F8;   /* blanc rosé — fond de page */
  --color-bg-card:        #FFFFFF;   /* blanc pur — cartes */
  --color-text:           #1A1A1A;   /* charbon — texte principal */
  --color-text-light:     #7A7A7A;   /* gris — texte secondaire */
  --color-border:         #F0E8EC;   /* bordures légères */

  /* Functional */
  --color-whatsapp:       #25D366;
  --color-success:        #5A8A5A;

  /* Typography */
  --font-display:         'Cormorant Garamond', Georgia, serif;
  --font-body:            'Jost', -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs:           8px;
  --spacing-sm:           16px;
  --spacing-md:           24px;
  --spacing-lg:           40px;
  --spacing-xl:           64px;

  /* Shape */
  --radius:               12px;
  --radius-sm:            8px;
  --radius-pill:          50px;

  /* Shadow */
  --shadow-card:          0 2px 16px rgba(253, 18, 94, 0.07);
  --shadow-hover:         0 8px 32px rgba(253, 18, 94, 0.14);

  /* Layout */
  --container-max:        1200px;
  --mobile-padding:       16px;

  /* Components */
  --btn-height:           52px;
  --btn-height-mobile:    56px;
  --input-height:         52px;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
============================================ */
/* Prevent horizontal scroll on all pages */
html {
  overflow-x: hidden;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  /* Override Astra parent theme's `body { overflow-x: hidden }`.
     `hidden` creates a scroll container on body → breaks position:sticky on
     both desktop and mobile. `visible` removes that scroll container entirely;
     horizontal overflow is still prevented at viewport level by
     `html { overflow-x: hidden }` above. Using `visible` (not `clip`) because
     `overflow: clip` is unsupported on iOS Safari < 16 and old Android WebView. */
  overflow-x: visible;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 4vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 26px); }
h4 { font-size: 20px; }

p { margin-bottom: 1em; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--color-primary-light); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CONTAINER
============================================ */
.alr-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
}

@media (min-width: 768px) {
  .alr-container { padding: 0 32px; }
}

/* ============================================
   MOBILE GLOBAL FIXES
============================================ */

/* Minimum tap target size — 48px */
@media (max-width: 767px) {
  button,
  .button,
  a.button,
  input[type="submit"] {
    min-height: 48px;
  }

  /* 16px prevents iOS auto-zoom on input focus */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ── Shop page — mobile 2-column grid ── */
@media (max-width: 767px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 var(--mobile-padding) !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
  }
}

/* ── Shop page — desktop 4-column grid ── */
@media (min-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
  }
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary,
.alr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-height);
  padding: 0 32px;
  background: var(--color-primary);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover,
.alr-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #ffffff !important;
}

.btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-height);
  padding: 0 32px;
  background: transparent;
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outlined:hover {
  background: var(--color-primary);
  color: #ffffff !important;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-height);
  padding: 0 28px;
  background: var(--color-whatsapp);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Mobile — bigger tap targets */
@media (max-width: 767px) {
  .btn-primary, .alr-btn, .btn-outlined, .btn-whatsapp {
    height: var(--btn-height-mobile);
    width: 100%;
    font-size: 16px;
  }
}

/* ============================================
   BADGES
============================================ */
.badge-pink {
  display: inline-block;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.badge-sage {
  display: inline-block;
  background: var(--color-sage-pale);
  color: #5A6B55;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ============================================
   CARDS (base — WooCommerce will override)
============================================ */
.alr-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.alr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   WOOCOMMERCE — GLOBAL OVERRIDES
============================================ */

/* Price */
.woocommerce span.price,
.woocommerce ins .amount,
.woocommerce .price .amount {
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Add to cart buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  border: none !important;
  transition: background 0.2s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--color-primary-light) !important;
  color: #ffffff !important;
}

/* Forms */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  height: var(--input-height) !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(253, 18, 94, 0.08) !important;
}

/* ============================================
   HEADER — Hide Astra's header, use ours
============================================ */

/* Hide Astra's native header entirely */
#masthead.site-header {
  display: none !important;
}

/* Disable Astra sticky header JS side-effects */
.ast-sticky-shrink,
.ast-sticky-header-wrap,
.ast-above-header-bar,
.ast-below-header-bar {
  display: none !important;
}

/* Our custom header wrapper — sticky at top */
#alr-header.alr-header-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--color-bg-card) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  width: 100%;
}

#alr-header.alr-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   HEADER INNER LAYOUT
============================================ */
.alr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  gap: 24px;
}

/* ── Logo ── */
.alr-header-logo {
  flex-shrink: 0;
}

.alr-header-logo a,
.alr-header-logo .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.alr-header-logo img.custom-logo {
  height: 55px;
  width: auto;
  display: block;
}

.alr-site-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.alr-site-name:hover {
  color: var(--color-primary);
}

/* ── Desktop nav ── */
.alr-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.alr-nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alr-nav-menu a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.alr-nav-menu a:hover,
.alr-nav-menu .current-menu-item > a,
.alr-nav-menu .current-page-ancestor > a {
  color: var(--color-primary) !important;
}

/* ── Header action icons ── */
.alr-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cart */
.alr-header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.alr-header-cart:hover {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

.alr-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: #FD125E;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(253, 18, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.alr-cart-count.has-items {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .alr-cart-count {
    top: -8px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    box-shadow: 0 2px 6px rgba(253, 18, 94, 0.5);
  }
}

/* WhatsApp icon in header */
.alr-header-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-whatsapp);
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.alr-header-whatsapp:hover {
  color: #1ebe5d;
  background: #f0fdf4;
}

/* ── Hamburger (mobile only) ── */
.alr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.alr-hamburger:hover {
  background: var(--color-primary-pale);
}

.alr-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to × when open */
.alr-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.alr-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.alr-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE DRAWER
============================================ */
.alr-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}

.alr-drawer.is-open {
  display: block;
}

.alr-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: alr-overlay-in 0.25s ease forwards;
}

.alr-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-bg-card);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  overflow-y: auto;
  animation: alr-drawer-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes alr-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes alr-drawer-in {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.alr-drawer-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.alr-drawer-close:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

.alr-drawer-nav {
  flex: 1;
}

.alr-drawer-menu {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.alr-drawer-menu li {
  border-bottom: 1px solid var(--color-border);
}

.alr-drawer-menu a {
  display: block;
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.alr-drawer-menu a:hover,
.alr-drawer-menu .current-menu-item > a {
  color: var(--color-primary) !important;
}

/* ── Boutique categories accordion in drawer ── */
.alr-drawer-cats {
  margin-bottom: 0; /* accordion sits directly above the nav menu list */
}

.alr-drawer-cats-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}

.alr-drawer-cats-toggle[aria-expanded="true"] .alr-drawer-cats-chevron {
  transform: rotate(180deg);
}

.alr-drawer-cats-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.alr-drawer-cats-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 12px;
}

.alr-drawer-cats-list li {
  border-bottom: 1px solid var(--color-border);
}

.alr-drawer-cats-list li:last-child {
  border-bottom: none;
}

.alr-drawer-cats-list a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.alr-drawer-cats-list a:hover {
  color: var(--color-primary);
}

.alr-drawer-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: var(--btn-height-mobile);
  margin-top: auto;
}

/* ============================================
   HEADER — Mobile breakpoint
============================================ */
@media (max-width: 767px) {
  .alr-header-inner {
    height: 60px;
    padding: 0 var(--mobile-padding);
    gap: 8px;
  }

  .alr-header-nav {
    display: none;
  }

  .alr-header-whatsapp {
    display: none; /* available in drawer + floating button */
  }

  .alr-hamburger {
    display: flex;
  }

  .alr-header-logo img.custom-logo {
    height: 45px;
  }
}

/* ============================================
   FOOTER — Hide Astra's, use ours
============================================ */

/* Hide Astra's default footer */
#colophon.site-footer,
#colophon {
  display: none !important;
}

/* ── Footer wrapper ── */
#alr-footer {
  background: #1A1A1A;
  color: #fff;
  padding-top: 60px;
  margin-top: auto;
}

.alr-footer-inner {
  padding-bottom: 48px;
}

/* ── 3-column grid ── */
.alr-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* ── Column titles ── */
.alr-footer-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
}

/* ── Col 1: Brand ── */
.alr-footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.alr-footer-brand-name:hover {
  color: var(--color-primary);
}

.alr-footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.4;
}

.alr-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0;
}

/* ── Col 2: Nav links ── */
.alr-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alr-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.alr-footer-links a:hover {
  color: var(--color-primary) !important;
}

/* ── Col 3: Contact ── */
.alr-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alr-footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-whatsapp);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
}

.alr-footer-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  color: #fff !important;
}

.alr-footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.alr-footer-instagram:hover {
  color: var(--color-primary) !important;
}

.alr-footer-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.alr-footer-info svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Bottom bar ── */
.alr-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.alr-footer-bottom .alr-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.alr-footer-bottom span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Footer mobile ── */
@media (max-width: 767px) {
  #alr-footer {
    padding-top: 40px;
  }

  .alr-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .alr-footer-whatsapp {
    width: 100%;
    align-self: auto;
    justify-content: center;
  }

  .alr-footer-bottom .alr-container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ============================================
   === PRODUCT CARDS ===
============================================ */

/* ── Card wrapper (<li>) ── */
.alr-product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  list-style: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.alr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ── Image — edge to edge ── */
.alr-card-image-link {
  display: block;
  text-decoration: none !important;
  flex-shrink: 0;
}

.alr-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-bg);
}

.alr-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.alr-product-card:hover .alr-card-image img {
  transform: scale(1.03);
}

/* Sale badge */
.alr-product-card .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin: 0;
}

/* ── Card body ── */
.alr-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

/* ── Skin type badge ── */
.alr-skin-badge {
  display: inline-block;
  background: var(--color-sage-pale);
  color: #5A6B55;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  line-height: 1.4;
}

/* ── Product name ── */
.alr-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.alr-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.alr-card-title a:hover {
  color: var(--color-primary);
}

/* ── Price ── */
.alr-card-price {
  margin: 0;
}

.alr-card-price .price,
.alr-card-price .woocommerce-Price-amount.amount {
  color: var(--color-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* ── Add to cart button ── */
.alr-card-footer {
  margin-top: auto;
  padding-top: 4px;
}

.alr-product-card .button.add_to_cart_button,
.alr-product-card a.button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.alr-product-card .button.add_to_cart_button:hover,
.alr-product-card a.button:hover {
  background: var(--color-primary-light) !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading spinner state */
.alr-product-card .button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================
   === SINGLE PRODUCT PAGE ===
============================================ */

/* ── Gallery ─────────────────────────────── */
.alr-sp-gallery {
  position: relative;
  width: 100%;
  background: var(--color-bg);
}

.alr-sp-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.alr-sp-gallery-track::-webkit-scrollbar {
  display: none;
}

.alr-sp-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.alr-sp-gallery-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Dots */
.alr-sp-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.alr-sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.alr-sp-dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ── Product info section ─────────────────── */
.alr-sp-info {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.alr-sp-skin-badge {
  margin-bottom: var(--spacing-xs);
}

.alr-sp-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  margin: var(--spacing-xs) 0 var(--spacing-xs);
}

.alr-sp-price .price,
.alr-sp-price .woocommerce-Price-amount.amount {
  color: var(--color-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
}

.alr-sp-price del .amount {
  font-size: 18px !important;
  color: var(--color-text-light) !important;
}

.alr-sp-short-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: var(--spacing-sm) 0;
}

.alr-sp-short-desc p { margin: 0 0 0.6em; }

.alr-sp-volume {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0 0 var(--spacing-sm);
}

/* ── Add to cart ─────────────────────────── */
.alr-sp-cart-wrap {
  margin: var(--spacing-sm) 0;
}

/* Override WC single add-to-cart form */
.alr-sp-cart-wrap form.cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alr-sp-cart-wrap .qty {
  width: 80px !important;
  height: 48px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 16px !important;
  text-align: center !important;
  font-family: var(--font-body) !important;
}

.alr-sp-cart-wrap .single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 56px !important;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 0 32px !important;
  transition: background 0.2s ease !important;
  letter-spacing: 0.02em !important;
}

.alr-sp-cart-wrap .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--color-primary-light) !important;
  transform: translateY(-2px); /* no !important — lets animation keyframes override during shake */
}

.woocommerce div.product form.cart .quantity {
  display: none !important;
}

/* ── Trust badges ─────────────────────────── */
.alr-sp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin: var(--spacing-sm) 0 var(--spacing-md);
}

.alr-sp-trust span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ── Tabs — CSS-only ─────────────────────── */
.alr-tab-radio,
.alr-sp-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.alr-sp-tabs {
  margin-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-sm);
}

.alr-sp-tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--spacing-sm);
}

.alr-sp-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.alr-sp-tab-btn:hover {
  color: var(--color-text);
}

/* Hide all tab content panels by default */
.alr-sp-tab-content {
  display: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  padding-bottom: var(--spacing-sm);
}

.alr-sp-tab-content p { margin: 0 0 0.6em; }

/*
 * CSS-only tab activation:
 * Radio inputs are children 1-3, tab-buttons is child 4,
 * content panels are children 5-7.
 */
.alr-sp-tabs .alr-tab-radio:nth-child(1):checked ~ .alr-sp-tab-buttons .alr-sp-tab-btn:nth-child(1),
.alr-sp-tabs .alr-tab-radio:nth-child(2):checked ~ .alr-sp-tab-buttons .alr-sp-tab-btn:nth-child(2),
.alr-sp-tabs .alr-tab-radio:nth-child(3):checked ~ .alr-sp-tab-buttons .alr-sp-tab-btn:nth-child(3) {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.alr-sp-tabs .alr-tab-radio:nth-child(1):checked ~ .alr-sp-tab-content:nth-child(5),
.alr-sp-tabs .alr-tab-radio:nth-child(2):checked ~ .alr-sp-tab-content:nth-child(6),
.alr-sp-tabs .alr-tab-radio:nth-child(3):checked ~ .alr-sp-tab-content:nth-child(7) {
  display: block;
}

/* ── Related products ─────────────────────── */
.alr-sp-related {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
  background: var(--color-bg);
}

.alr-sp-related-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md);
  padding: 0 var(--mobile-padding);
}

.alr-sp-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 var(--mobile-padding);
}

/* ── Sticky Add to Cart bar (mobile only) ─── */
.alr-sticky-cart {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 10px 0 12px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.alr-sticky-cart.is-visible {
  transform: translateY(0);
}

.alr-sticky-cart-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alr-sticky-cart-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alr-sticky-cart-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alr-sticky-cart-price .woocommerce-Price-amount,
.alr-sticky-cart-price {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}

.alr-sticky-cart-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.alr-sticky-cart-btn:hover {
  background: var(--color-primary-light);
}

/* ── Single product — desktop ─────────────── */
@media (min-width: 768px) {
  .alr-sp-gallery-img {
    height: 500px;
  }

  .alr-sp-info {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .alr-sp-trust {
    gap: 10px 24px;
  }

  .alr-sp-trust span {
    font-size: 13px;
  }

  .alr-sp-related-title {
    padding: 0;
  }

  .alr-sp-related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
  }

  /* Desktop: two-column layout — gallery left, info right */
  .alr-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg) 32px;
  }

  .alr-sp-gallery {
    grid-column: 1;
    grid-row: 1;
  }

  .alr-sp-gallery-img {
    height: 560px;
    border-radius: var(--radius);
  }

  .alr-sp-info {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    padding: 0;
    margin: 0;
    align-self: start;
  }

  .alr-sp-related {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Sticky bar: desktop hidden */
  .alr-sticky-cart {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Sticky bar: mobile visible (controlled by JS) */
  .alr-sticky-cart {
    display: block;
  }

  .alr-sp-related {
    padding-bottom: 80px; /* space for sticky bar */
  }
}

/* ============================================
   === CART PAGE ===
============================================ */

/* ── Page wrapper ───────────────────────── */
.alr-cart-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--spacing-md) var(--mobile-padding) var(--spacing-xl);
}

/* ── Empty cart state ───────────────────── */
.alr-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--mobile-padding);
  gap: var(--spacing-sm);
}

.alr-cart-empty-icon {
  color: var(--color-border);
  margin-bottom: var(--spacing-xs);
}

.alr-cart-empty-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.alr-cart-empty-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  margin: 0;
}

/* ── Two-column layout ──────────────────── */
.alr-cart-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ── Cart heading ───────────────────────── */
.alr-cart-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--spacing-md);
}

.alr-cart-count-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-light);
  margin-left: 6px;
}

/* ── Cart rows ──────────────────────────── */
.alr-cart-row {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  gap: 12px;
  align-items: start;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

/* ── Thumbnail ──────────────────────────── */
.alr-cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  flex-shrink: 0;
}

.alr-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Item body ──────────────────────────── */
.alr-cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.alr-cart-item-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.alr-cart-item-name a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.alr-cart-item-name a:hover {
  color: var(--color-primary);
}

.alr-cart-item-price {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
}

/* ── Quantity stepper + line total row ── */
.alr-cart-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.alr-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 36px;
}

.alr-qty-minus,
.alr-qty-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.alr-qty-minus:hover,
.alr-qty-plus:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

.alr-qty-input {
  width: 38px !important;
  height: 36px !important;
  border: none !important;
  border-left: 1.5px solid var(--color-border) !important;
  border-right: 1.5px solid var(--color-border) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  background: #fff !important;
  padding: 0 !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.alr-qty-input::-webkit-outer-spin-button,
.alr-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.alr-qty-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--color-border) !important;
}

.alr-cart-item-total {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ── Remove button ──────────────────────── */
.alr-cart-remove {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.alr-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-text-light) !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none !important;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.alr-remove-btn:hover {
  color: var(--color-primary) !important;
  background: var(--color-primary-pale);
}

/* ── Hidden update cart button ──────────── */
.alr-update-cart-btn {
  display: none !important;
}

/* ── Continue shopping link ─────────────── */
.alr-btn-continue {
  display: inline-flex;
  align-items: center;
  margin-top: var(--spacing-md);
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

/* ── Order summary box ──────────────────── */
.alr-cart-summary {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.alr-summary-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}

.alr-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-sm);
}

.alr-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
}

.alr-summary-row span:last-child {
  font-weight: 500;
  color: var(--color-text);
}

.alr-summary-total-row {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text) !important;
  padding-top: 4px;
}

.alr-summary-total-row span {
  font-weight: 600 !important;
  color: var(--color-text) !important;
}

.alr-summary-total {
  color: var(--color-primary) !important;
  font-size: 18px !important;
}

/* WooCommerce price output inside summary */
.alr-summary-subtotal .woocommerce-Price-amount,
.alr-summary-total .woocommerce-Price-amount {
  color: inherit;
  font-weight: inherit;
}

.alr-free-shipping {
  color: var(--color-success);
  font-weight: 500;
}

/* ── Reassurance line ───────────────────── */
.alr-cart-reassurance {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* ── Checkout button ────────────────────── */
.alr-btn-checkout {
  width: 100%;
  height: 56px;
  font-size: 16px;
  font-weight: 500;
}

/* ── Desktop: side-by-side layout ───────── */
@media (min-width: 768px) {
  .alr-cart-page {
    padding: var(--spacing-lg) 32px var(--spacing-xl);
  }

  .alr-cart-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-lg);
  }

  .alr-cart-items {
    flex: 1;
    min-width: 0;
  }

  .alr-cart-summary {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 90px; /* below sticky header */
  }

  .alr-cart-row {
    grid-template-columns: 64px 1fr 32px;
    align-items: center;
  }

  .alr-btn-continue {
    height: var(--btn-height);
  }
}

/* Hide WooCommerce coupon field on cart page */
.woocommerce-cart .coupon {
  display: none !important;
}

/* ── Cart page: checkout button ─────────── */
.woocommerce .checkout-button,
.woocommerce-cart .checkout-button,
.woocommerce a.checkout-button {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  padding: 16px 32px !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: background 0.2s ease !important;
}

.woocommerce .checkout-button:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce a.checkout-button:hover {
  background: var(--color-primary-light) !important;
  color: #ffffff !important;
}

/* ── WooCommerce Cart Block overrides ────── */

/* Hide coupon fields in block cart */
.wc-block-cart__coupon-form,
.wc-block-components-coupon,
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
  display: none !important;
}

/* Hide "PRODUCT" / "TOTAL" column header labels in block cart */
.wc-block-cart-items .wc-block-cart-items__header,
.wc-block-cart-item__column-labels {
  display: none !important;
}

/* Style block cart checkout button to match our design */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block a {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

/* ============================================
   CHECKOUT PAGE
============================================ */

/* ── Layout ─────────────────────────────── */
.alr-checkout-form {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--mobile-padding) 64px;
}

.alr-checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 900px) {
  .alr-checkout-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .alr-checkout-details  { flex: 0 0 60%; }
  .alr-checkout-summary  { flex: 0 0 calc(40% - 48px); position: sticky; top: 100px; }
}

.alr-checkout-section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* ── Form fields ─────────────────────────── */
.woocommerce-checkout .form-row label,
.woocommerce-checkout .woocommerce-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(253, 18, 94, 0.08);
}

/* Select arrow */
.woocommerce-checkout .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

/* Inline first/last name row */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100%;
}

@media (min-width: 600px) {
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_last_name_field {
    display: inline-block;
    width: calc(50% - 8px);
  }
  .woocommerce-checkout #billing_first_name_field {
    margin-right: 16px;
  }
}

/* Required asterisk */
.woocommerce-checkout .required {
  color: var(--color-primary);
}

/* Validation state */
.woocommerce-checkout .form-row.woocommerce-invalid input,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-color: var(--color-primary);
}

/* ── Remove unwanted sections ─────────────── */
/* Ship to different address */
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .shipping_address {
  display: none !important;
}

/* Create account */
.woocommerce-checkout .create-account,
.woocommerce-checkout #createaccount,
.woocommerce-checkout .woocommerce-account-fields {
  display: none !important;
}

/* Company field (belt-and-suspenders if not removed via PHP) */
.woocommerce-checkout #billing_company_field {
  display: none !important;
}

/* ── Order review table ───────────────────── */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.woocommerce-checkout-review-order-table tfoot tr:last-child td,
.woocommerce-checkout-review-order-table tfoot tr:last-child th {
  font-weight: 600;
  font-size: 17px;
  border-bottom: none;
  color: var(--color-primary);
}

/* ── COD card ─────────────────────────────── */
.alr-cod-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-primary-pale);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}

.alr-cod-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.alr-cod-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}

.alr-cod-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

/* ── Payment methods — hide all except COD ── */
#payment .payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hide every payment method li by default */
#payment .payment_methods li.payment_method {
  display: none !important;
}

/* Show only Cash on Delivery */
#payment .payment_methods li.payment_method_cod {
  display: block !important;
}

/* Hide the radio + label inside COD (we show our custom card instead) */
#payment .payment_methods li.payment_method_cod label,
#payment .payment_methods li.payment_method_cod input[type="radio"] {
  display: none !important;
}

/* Hide default payment box padding / border */
#payment {
  background: transparent !important;
  border: none !important;
}

#payment .payment_methods {
  border: none !important;
}

/* Hide coupon toggle link */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none !important;
}

/* Hide terms, MailPoet optin — all known selectors + name attribute */
.woocommerce-terms-and-conditions-wrapper,
#mailpoet_woocommerce_checkout_optin,
.mailpoet_woocommerce_checkout_optin_form,
.mailpoet_checkout,
[id*="mailpoet"],
[name="mailpoet_woocommerce_checkout_optin"] {
  display: none !important;
}

/* Hide COD default description text (replaced by our custom card) */
.payment_method_cod .payment_box,
.payment_method_cod label {
  display: none !important;
}

/* ── Submit button ────────────────────────── */
#payment #place_order,
.woocommerce-checkout #place_order {
  display: block;
  width: 100%;
  height: 56px;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 8px;
}

#payment #place_order:hover {
  background: var(--color-primary-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ── Notices / errors ────────────────────── */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce-error {
  background: #fff0f4;
  border-left: 3px solid var(--color-primary);
  color: var(--color-text);
}

/* ============================================
   ORDER CONFIRMATION (THANK YOU) PAGE
============================================ */

.alr-thankyou {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--mobile-padding) 64px;
}

.alr-thankyou-hero {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--color-primary-pale);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.alr-thankyou-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.alr-thankyou-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--color-text);
  margin: 0 0 8px;
}

.alr-thankyou-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  margin: 0;
}

/* Order overview list */
.alr-order-overview {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.alr-order-overview li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.alr-order-overview li:last-child {
  border-bottom: none;
}

.alr-order-overview li strong {
  color: var(--color-text);
  font-weight: 500;
}

/* WooCommerce-generated order details table on thank you page */
.woocommerce-order .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 24px;
}

.woocommerce-order .woocommerce-table--order-details th,
.woocommerce-order .woocommerce-table--order-details td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child td {
  font-weight: 600;
  font-size: 17px;
  border-bottom: none;
  color: var(--color-primary);
}

/* Hide COD "Pay with cash upon delivery." text on thank you page */
.woocommerce-order .payment_method_cod .payment_box,
.woocommerce-thankyou-order-details + div .payment_box,
.woocommerce-order .payment_method_cod,
.woocommerce-thankyou-order-details .cod-text,
p.woocommerce-notice--info {
  display: none !important;
}

/* Billing address section */
.woocommerce-order .woocommerce-column--billing-address h2,
.woocommerce-order .woocommerce-column--shipping-address h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

/* Continue shopping link */
.woocommerce-order .woocommerce-bacs-bank-details,
.woocommerce-order .order_details + p a {
  font-family: var(--font-body);
  color: var(--color-primary);
}

/* ============================================
   ABOUT PAGE
============================================ */

/* Reset Astra's flex content wrappers on the About page template.
   Without this, Astra's .site-content / #primary / .entry-content
   flex containers make our sections lay out horizontally. */
body.page-template-page-templates-page-about .site-content,
body.page-template-page-templates-page-about .content-area,
body.page-template-page-templates-page-about #primary,
body.page-template-page-templates-page-about .entry-content,
body.page-template-page-templates-page-about .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Single flex child that stacks its own sections vertically */
.alr-about-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Each section: full-width block */
.alr-about-hero,
.alr-about-story,
.alr-about-pillars,
.alr-about-closing {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ── 1. Hero ─────────────────────────────── */
.alr-about-hero {
  position: relative;
  height: 450px;
  background-image: url('http://al-rayhane.local/wp-content/uploads/2026/03/image-apropos.png');
  background-size: cover;
  background-position: center;
  display: flex !important; /* flex only for centering inner content, not siblings */
  align-items: center;
  justify-content: center;
}

.alr-about-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.alr-about-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 760px;
}

.alr-about-hero__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  opacity: 0.8;
  margin-bottom: 16px;
}

.alr-about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.25;
}

.alr-about-hero__arabic {
  font-family: var(--font-display);
  font-size: 20px;
  color: #ffffff;
  opacity: 0.9;
  margin: 0;
  direction: rtl;
}

/* ── 2. Brand story ──────────────────────── */
.alr-about-story {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
}

.alr-about-story h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 28px;
}

.alr-about-story p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 20px;
}

.alr-about-story__hadith {
  font-style: italic;
  color: var(--color-text-light) !important;
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
  margin-top: 32px !important;
}

/* ── 3. Pillars ──────────────────────────── */
.alr-about-pillars {
  background: var(--color-primary-pale);
  padding: 80px 20px;
}

.alr-about-pillars__heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 48px;
}

.alr-about-pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .alr-about-pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Vertical divider between pillars using box-shadow on middle item */
  .alr-about-pillar:not(:last-child) {
    border-right: 1px solid rgba(253, 18, 94, 0.2);
  }
}

.alr-about-pillar {
  text-align: center;
  padding: 32px 40px;
}

.alr-about-pillar__icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.alr-about-pillar__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

.alr-about-pillar__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  max-width: 200px;
  margin: 0 auto;
}

/* ── 4. Closing tagline ──────────────────── */
.alr-about-closing {
  background: linear-gradient(to bottom, var(--color-primary-pale), #ffffff);
  padding: 80px 20px;
  text-align: center;
}

.alr-about-closing__line {
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  margin: 0 auto 24px;
}

.alr-about-closing__arabic {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-primary);
  margin: 0;
  direction: rtl;
}

/* ============================================
   CONTACT PAGE
============================================ */

/* Astra layout overrides — contact page */
body.page-template-page-templates-page-contact .site-content,
body.page-template-page-templates-page-contact .content-area,
body.page-template-page-templates-page-contact #primary,
body.page-template-page-templates-page-contact .entry-content,
body.page-template-page-templates-page-contact .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Wrap */
.alr-contact-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-bg);
}

/* ── 1. Hero ── */
.alr-contact-hero {
  background: var(--color-primary-pale);
  padding: 60px 20px;
  text-align: center;
}

.alr-contact-hero__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  margin-bottom: 12px;
}

.alr-contact-hero__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 16px;
}

.alr-contact-hero__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── 2. Contact Cards ── */
.alr-contact-cards {
  background: #fff;
  padding: 60px 20px;
}

.alr-contact-cards__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.alr-contact-card {
  flex: 1;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alr-contact-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.alr-contact-card__icon svg {
  display: block;
  width: 48px;
  height: 48px;
}

.alr-contact-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}

.alr-contact-card__text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0 0 8px;
}

.alr-contact-card__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.alr-contact-card__btn {
  display: inline-block;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 20px;
}

.alr-contact-card__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

.alr-contact-card__btn--whatsapp {
  background: #25D366;
}

.alr-contact-card__btn--instagram {
  background: var(--color-primary);
}

/* ── 3. FAQ Teaser ── */
.alr-contact-faq {
  background: var(--color-primary-pale);
  padding: 48px 20px;
  text-align: center;
}

.alr-contact-faq__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

.alr-contact-faq__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0 0 24px;
}

.alr-contact-faq__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.alr-contact-faq__btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .alr-contact-hero__title {
    font-size: 28px;
  }

  .alr-contact-cards__inner {
    flex-direction: column;
  }

  .alr-contact-card {
    width: 100%;
  }
}

/* ============================================
   FAQ PAGE
============================================ */

/* Astra layout overrides — FAQ page */
body.page-template-page-templates-page-faq .site-content,
body.page-template-page-templates-page-faq .content-area,
body.page-template-page-templates-page-faq #primary,
body.page-template-page-templates-page-faq .entry-content,
body.page-template-page-templates-page-faq .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Wrap */
.alr-faq-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── 1. Hero ── */
.alr-faq-hero {
  background: var(--color-primary-pale);
  padding: 60px 20px;
  text-align: center;
}

.alr-faq-hero__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  margin-bottom: 12px;
}

.alr-faq-hero__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 16px;
}

.alr-faq-hero__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── 2. Accordion ── */
.alr-faq-accordion {
  padding: 60px 20px;
  background: #fff;
}

.alr-faq-accordion__inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Hide the checkbox */
.alr-faq-item__toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.alr-faq-item {
  border-bottom: 1px solid var(--color-border);
}

.alr-faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.alr-faq-item__question:hover {
  color: var(--color-primary);
}

.alr-faq-item__arrow {
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}

/* Answer — collapsed by default */
.alr-faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.alr-faq-item__answer p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
  padding-bottom: 20px;
}

/* Open state */
.alr-faq-item__toggle:checked ~ .alr-faq-item__question {
  color: var(--color-primary);
}

.alr-faq-item__toggle:checked ~ .alr-faq-item__question .alr-faq-item__arrow {
  transform: rotate(180deg);
}

.alr-faq-item__toggle:checked ~ .alr-faq-item__answer {
  max-height: 300px;
}

/* ── 3. Contact CTA ── */
.alr-faq-cta {
  background: var(--color-primary-pale);
  padding: 60px 20px;
  text-align: center;
}

.alr-faq-cta__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

.alr-faq-cta__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0 0 28px;
}

.alr-faq-cta__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #25D366;
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.alr-faq-cta__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .alr-faq-hero__title {
    font-size: 28px;
  }

  .alr-faq-item__question {
    font-size: 15px;
  }
}

/* ============================================
   PRIVACY PAGE
============================================ */

/* Astra layout overrides — privacy page */
body.page-template-page-templates-page-privacy .site-content,
body.page-template-page-templates-page-privacy .content-area,
body.page-template-page-templates-page-privacy #primary,
body.page-template-page-templates-page-privacy .entry-content,
body.page-template-page-templates-page-privacy .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Wrap */
.alr-privacy-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Hero ── */
.alr-privacy-hero {
  background: var(--color-primary-pale);
  padding: 48px 20px;
  text-align: center;
}

.alr-privacy-hero__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 10px;
}

.alr-privacy-hero__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0;
}

/* ── Content ── */
.alr-privacy-content {
  padding: 60px 20px;
  background: #fff;
}

.alr-privacy-content__inner {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.alr-privacy-content__inner h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin: 40px 0 12px;
}

.alr-privacy-content__inner h2:first-child {
  margin-top: 0;
}

.alr-privacy-content__inner p {
  margin: 0 0 12px;
  color: var(--color-text-light);
}

.alr-privacy-content__inner ul {
  margin: 0 0 12px;
  padding-left: 24px;
  color: var(--color-text-light);
}

.alr-privacy-content__inner ul li {
  margin-bottom: 4px;
}

/* ============================================
   HOMEPAGE
============================================ */

/* Astra layout overrides — homepage */
body.page-template-page-templates-page-home .site-content,
body.page-template-page-templates-page-home .content-area,
body.page-template-page-templates-page-home #primary,
body.page-template-page-templates-page-home .entry-content,
body.page-template-page-templates-page-home .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Wrap */
.alr-home-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── 1. Hero ── */
.alr-home-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.alr-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.alr-home-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 700px;
}

.alr-home-hero__label {
  display: block;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.alr-home-hero__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 20px;
  direction: rtl;
}

.alr-home-hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

.alr-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 36px;
  background: var(--color-primary);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.alr-home-hero__cta:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ── 2. Trust Strip ── */
.alr-home-trust {
  width: 100%;
  background: var(--color-primary-pale);
  padding: 20px;
}

.alr-home-trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
}

.alr-home-trust__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.alr-home-trust__badge-icon {
  font-size: 18px;
}

/* ── 3. Featured Categories ── */
.alr-home-cats {
  padding: 80px 20px;
  background: var(--color-bg);
}

.alr-home-cats__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.alr-home-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 40px;
}

.alr-home-section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  text-align: center;
  margin: -28px 0 40px;
}

.alr-home-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.alr-home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-pale);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.alr-home-cat-card:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-4px);
}

.alr-home-cat-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.alr-home-cat-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* ── 4. Best Sellers ── */
.alr-home-bestsellers {
  padding: 80px 20px;
  background: #ffffff;
}

.alr-home-bestsellers__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.alr-home-bestsellers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}

.alr-home-bestsellers__more {
  text-align: center;
}

.alr-home-bestsellers__more a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.alr-home-bestsellers__more a:hover {
  opacity: 0.75;
}

/* ── 5. Brand Story ── */
.alr-home-story {
  padding: 80px 20px;
  background: var(--color-bg);
}

.alr-home-story__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.alr-home-story__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.alr-home-story__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sage);
  margin-bottom: 16px;
}

.alr-home-story__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 20px;
}

.alr-home-story__text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0 0 24px;
}

.alr-home-story__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
  margin: 0 0 32px;
  direction: rtl;
  text-align: right;
}

.alr-home-story__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary) !important;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.alr-home-story__btn:hover {
  background: var(--color-primary);
  color: #ffffff !important;
}

/* ── 6. Testimonials ── */
.alr-home-testimonials {
  padding: 80px 20px;
  background: var(--color-primary-pale);
}

.alr-home-testimonials__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.alr-home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.alr-home-testi-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.alr-home-testi-card__stars {
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.alr-home-testi-card__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 20px;
  font-style: italic;
}

.alr-home-testi-card__author {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.alr-home-testi-card__location {
  font-weight: 400;
  color: var(--color-text-light);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .alr-home-hero {
    height: 70vh;
  }

  .alr-home-hero__title {
    font-size: 32px;
  }

  .alr-home-hero__subtitle {
    font-size: 15px;
  }

  .alr-home-trust__inner {
    gap: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .alr-home-cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alr-home-bestsellers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alr-home-story__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .alr-home-story__image {
    height: 260px;
  }

  .alr-home-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .alr-home-section-title {
    font-size: 26px;
  }

  .alr-home-story__title {
    font-size: 26px;
  }
}

/* === MEGA MENU ===
============================================ */

.alr-mega-menu {
  position: absolute;
  top: 0;    /* Must be set — without this, top:auto places the element at its
               static-flow position (bottom of body), extending the scroll area
               and creating a large white gap below the footer on desktop. JS
               overrides this with the correct value when the menu opens. */
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 9999;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.alr-mega-menu.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.alr-mega-menu__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.alr-mega-menu__col {
  display: flex;
  flex-direction: column;
}

.alr-mega-menu__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin: 0 0 16px;
}

.alr-mega-menu__col a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 0;
  display: block;
  transition: color 0.15s ease;
}

.alr-mega-menu__col a:hover {
  color: var(--color-primary);
}

/* Hide mega menu on mobile/tablet and on touch/coarse-pointer devices.
   The hamburger drawer handles navigation on those contexts.
   768px catches phones; 992px catches portrait tablets.
   pointer:coarse catches any touch screen regardless of width. */
@media (max-width: 992px) {
  .alr-mega-menu {
    display: none !important;
  }
}
@media (pointer: coarse) {
  .alr-mega-menu {
    display: none !important;
  }
}

/* === SEARCH ===
============================================ */

/* Search toggle button in header */
.alr-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.alr-search-toggle:hover {
  color: var(--color-primary);
}

/* Search overlay backdrop */
.alr-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.alr-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Search inner box */
.alr-search-overlay__inner {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
}

.alr-search-overlay__inner form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search input */
#alr-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
}

#alr-search-input::placeholder {
  color: var(--color-text-light);
}

/* Submit button inside form */
.alr-search-overlay__inner form button[type="submit"] {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.alr-search-overlay__inner form button[type="submit"]:hover {
  color: var(--color-primary);
}

/* Close button */
.alr-search-overlay__close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity 0.2s ease;
}

.alr-search-overlay__close:hover {
  opacity: 0.7;
}

/* === BREADCRUMBS ===
============================================ */

.alr-breadcrumbs {
  background: var(--color-bg);
  padding: 10px 0;
  font-size: 13px;
  font-family: var(--font-body);
}

.alr-breadcrumbs__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.alr-breadcrumbs a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.alr-breadcrumbs a:hover {
  color: var(--color-primary);
}

.alr-breadcrumbs span {
  color: var(--color-text);
  font-weight: 500;
}

.alr-bc-sep {
  color: var(--color-secondary);
  font-weight: 300;
}

@media (max-width: 767px) {
  .alr-breadcrumbs {
    font-size: 12px;
    padding: 8px 0;
  }
}

/* Product page breadcrumb — inside .alr-sp-info, no background bar */
.alr-sp-info .alr-breadcrumbs {
  background: transparent;
  padding: 0 0 12px 0;
}

.alr-sp-info .alr-breadcrumbs__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0;
  max-width: 100%;
}

.alr-sp-info .alr-breadcrumbs a,
.alr-sp-info .alr-breadcrumbs span,
.alr-sp-info .alr-bc-sep {
  display: inline;
  white-space: nowrap;
}

.alr-sp-info .alr-breadcrumbs span:last-child {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================
   ADD TO CART — SHAKE ANIMATION
============================================ */
@keyframes btn-shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-5px); }
  30%  { transform: translateX(5px); }
  45%  { transform: translateX(-4px); }
  60%  { transform: translateX(4px); }
  72%  { transform: translateX(-2px); }
  84%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.btn-shake {
  animation: btn-shake 0.55s ease-in-out;
}

/* ============================================
   WOOCOMMERCE TOAST NOTICES
============================================ */
.alr-toast-notice {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  float: none !important;
  width: auto !important;
  max-width: 320px !important;
  margin: 0 !important;
  z-index: 99999;
  background: #fff;
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 14px 40px 14px 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  /* Ensure it never affects page layout */
  pointer-events: all;
}

.alr-toast-notice::before {
  display: none !important; /* hide WooCommerce's default icon pseudo-element */
}

.alr-notice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
}

.alr-notice-close:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

/* ============================================
   === OUT OF STOCK — SHOP CARD ===
============================================ */

.alr-product-card--oos {
  opacity: 0.82;
  filter: grayscale(20%);
}

.alr-product-card--oos:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.alr-oos-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
}

.alr-btn-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: #9E9E9E !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.alr-btn-unavailable:hover {
  background: #9E9E9E !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   === OUT OF STOCK — SINGLE PRODUCT ===
============================================ */

.alr-sp-oos-banner {
  background: var(--color-primary-pale);
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  text-align: center;
}

.alr-sp-unavailable-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: #9E9E9E !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: not-allowed !important;
  pointer-events: none !important;
  letter-spacing: 0.02em;
}

.alr-sp-unavailable-btn:hover {
  background: #9E9E9E !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Hide WooCommerce native stock text from all front-end pages */
p.stock,
.woocommerce-variation-availability,
.stock.in-stock,
.stock.out-of-stock {
  display: none !important;
}

/* ── Countdown timer — single product ────────────────────────── */
.alr-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #FFF0F4;
  border: 1.5px solid var(--color-primary);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 10px 0 14px;
}

.alr-countdown-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.alr-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alr-cd-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}

.alr-cd-block .alr-cd-days,
.alr-cd-block .alr-cd-hours,
.alr-cd-block .alr-cd-mins,
.alr-cd-block .alr-cd-secs {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  animation: alr-cd-pulse 1s ease-in-out infinite;
}

.alr-cd-unit {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.alr-cd-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 1px;
  align-self: flex-start;
  padding-top: 2px;
}

@keyframes alr-cd-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ── Category promo banner ────────────────────────────────────── */
.alr-cat-promo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, #00A041, #00C853) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.alr-cat-promo-banner strong {
  font-size: 17px;
  font-weight: 700;
}

.alr-cat-promo-end {
  font-size: 12px;
  opacity: 0.88;
  font-style: italic;
}

.alr-cat-countdown {
  margin-left: auto;
}

.alr-cat-countdown .alr-cd-block .alr-cd-days,
.alr-cat-countdown .alr-cd-block .alr-cd-hours,
.alr-cat-countdown .alr-cd-block .alr-cd-mins,
.alr-cat-countdown .alr-cd-block .alr-cd-secs {
  color: #fff;
  font-size: 18px;
}

.alr-cat-countdown .alr-cd-sep {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.alr-cat-countdown .alr-cd-unit {
  color: rgba(255,255,255,0.75);
}

/* ============================================
   === FIX 3 — SALE PRICE DISPLAY ===
============================================ */

/* Regular price crossed out */
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.alr-product-card .price del,
.alr-product-card .price del .woocommerce-Price-amount,
.woocommerce-Price-amount.amount del,
del .woocommerce-Price-amount,
.price del {
  color: #BDBDBD !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
  margin-right: 6px;
}

/* Sale price */
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
.alr-product-card .price ins,
.alr-product-card .price ins .woocommerce-Price-amount,
.woocommerce-Price-amount.amount ins,
ins .woocommerce-Price-amount,
.price ins {
  color: #00C853 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline !important;
}

/* Single product page */
.woocommerce div.product .summary .price ins .woocommerce-Price-amount,
.summary .price ins {
  color: #00C853 !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.woocommerce div.product .summary .price del .woocommerce-Price-amount,
.summary .price del {
  color: #9E9E9E !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
}

/* ============================================
   === PROMO BADGE — PRODUCT CARDS ===
============================================ */

.alr-promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #00C853;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.alr-promo-saving {
  position: absolute;
  top: 44px;
  left: 12px;
  background: rgba(0, 200, 83, 0.15);
  color: #00A041;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 2;
  font-family: var(--font-body);
}

/* alr-card-image already has position:relative — no extra rule needed */

/* ============================================
   === PROMO BADGE — SINGLE PRODUCT ===
============================================ */

.alr-single-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00C853;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}


/* ============================================
   === SHOP SORTING DROPDOWN ===
============================================ */

.woocommerce-ordering select,
.alr-sort-select {
  font-family: var(--font-body) !important;
  border: 1px solid #ddd !important;
  border-radius: 20px !important;
  padding: 8px 36px 8px 16px !important;
  font-size: 0.85rem !important;
  color: var(--color-text) !important;
  background: #fff !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FD125E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  transition: border-color 0.2s !important;
}

.woocommerce-ordering select:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(253, 18, 94, 0.1) !important;
}

/* ============================================
   PROMO TICKER — Above everything
============================================ */

.alr-promo-ticker {
  position: relative;
  background: linear-gradient(90deg, #00A041, #00C853, #00A041);
  color: #fff;
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 99999;
  width: 100%;
}

.alr-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding-right: 100%;
}

.alr-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.alr-ticker-item {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0 24px;
  color: #fff;
}

.alr-ticker-item a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.alr-ticker-item strong {
  font-weight: 800;
}


@media (max-width: 768px) {
  .alr-promo-ticker {
    height: 30px;
  }
  .alr-ticker-item {
    font-size: 0.75rem;
    padding: 0 16px;
  }
}

/* ── Announcement Banner ──────────────────────────────────── */
.alr-announcement-banner {
    text-align: center;
    padding: 10px 40px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    position: relative;
    z-index: 99998;
    width: 100%;
    box-sizing: border-box;
}
.alr-announcement-banner a {
    font-weight: 700;
    text-decoration: underline;
    margin-left: 8px;
}
.alr-banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: inherit;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.alr-banner-close:hover {
    background: rgba(255,255,255,0.35);
}

/* ════════════════════════════════════════════════════════════
   M8 — Filter Panel (sidebar layout)
   ════════════════════════════════════════════════════════════ */

/* Shop layout: sidebar + main */
.alr-shop-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.alr-filter-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 20px;
}

.alr-shop-main {
    flex: 1;
    min-width: 0;
}

/* Filter label */
.alr-filter-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Filter sections in sidebar */
.alr-filter-sidebar .alr-filter-controls {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

.alr-filter-sidebar .alr-filter-group {
    width: 100%;
    min-width: unset;
    padding-bottom: 16px;
    margin-bottom: 0;
}

/* Divider between filter groups */
.alr-filter-group + .alr-filter-group {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* Pills vertical in sidebar */
.alr-filter-sidebar .alr-filter-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alr-filter-sidebar .alr-filter-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-radius: 8px;
    text-align: left;
    padding: 8px 12px;
    white-space: normal;
}

/* Base pill styles */
.alr-filter-pill {
    font-family: var(--font-body);
    font-size: 0.8rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.alr-filter-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.alr-filter-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.alr-pill-count {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Price range slider */
.alr-price-slider-wrap {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.alr-price-slider-wrap input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.alr-price-slider-wrap input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(253,18,94,0.4);
}

.alr-price-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(253,18,94,0.4);
}

/* Filter chips */
.alr-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 0;
}

.alr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.alr-chip-remove {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

/* Reset button full width in sidebar */
.alr-filter-sidebar .alr-filter-reset {
    width: 100%;
    margin-top: 8px;
    border-radius: 8px;
    text-align: center;
}

.alr-filter-reset {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.alr-filter-reset:hover {
    border-color: #FF4444;
    color: #FF4444;
}

/* Results count inside sidebar */
.alr-filter-results-count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #888;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

/* No results */
.alr-no-results {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

.alr-no-results p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 16px;
}

.alr-btn-reset-filters {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.alr-btn-reset-filters:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Pagination */
.alr-pag-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.alr-pag-btn {
    font-family: var(--font-body);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.alr-pag-btn.active,
.alr-pag-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Loading fade */
#alr-products-grid {
    transition: opacity 0.3s;
}

/* Kill blue tap highlight + focus rings on all filter elements */
.alr-filter-pill,
.alr-filter-reset,
.alr-pag-btn,
.alr-filter-toggle-btn,
.alr-chip,
.alr-chip-remove {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

.alr-filter-pill.active,
.alr-filter-pill:active,
.alr-filter-pill:focus,
.alr-filter-pill:focus-visible {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.alr-pag-btn {
    color: #666;
    border: 1px solid #ddd;
    background: #fff;
}

.alr-pag-btn:hover,
.alr-pag-btn:focus,
.alr-pag-btn:active,
.alr-pag-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.alr-filter-toggle-btn:focus,
.alr-filter-toggle-btn:active {
    background: var(--color-primary) !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(253,18,94,0.4) !important;
}

.alr-price-slider-wrap input[type="range"]:focus {
    outline: none;
}

.alr-price-slider-wrap input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(253,18,94,0.25);
}

/* Force consistent product card dimensions */
#alr-products-grid ul.products,
.alr-shop-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#alr-products-grid ul.products li.product,
.alr-shop-main ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 992px) {
    #alr-products-grid ul.products,
    .alr-shop-main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    #alr-products-grid ul.products,
    .alr-shop-main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Mobile filter toggle button */
.alr-filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(253,18,94,0.3);
}

.alr-filter-toggle-btn:hover {
    background: var(--color-primary-light);
}

/* Mobile */
@media (max-width: 768px) {
    .alr-shop-layout {
        flex-direction: column;
    }

    .alr-filter-toggle-btn {
        display: flex !important;
    }

    .alr-filter-sidebar {
        width: 100%;
        position: static;
        display: none;
    }

    .alr-filter-sidebar.is-open {
        display: block;
    }

    /* Mobile: pills horizontal scrollable */
    .alr-filter-sidebar .alr-filter-pills {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .alr-filter-sidebar .alr-filter-pill {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .alr-filter-sidebar .alr-filter-pills::-webkit-scrollbar { display: none; }
}

/* ════════════════════════════════════════════════════════════
   M8 — Product Image Zoom & Lightbox
   ════════════════════════════════════════════════════════════ */

.woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: 12px;
}

.woocommerce-product-gallery__image img {
    transition: transform 0.3s ease !important;
}

/* Lightbox */
#alr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alr-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}

.alr-lb-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
}

.alr-lb-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.alr-lb-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1;
}

/* ════════════════════════════════════════════════════════════
   Override ALL blue focus/active states — maximum specificity
   ════════════════════════════════════════════════════════════ */

* {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

.alr-filter-panel *:focus,
.alr-filter-panel *:active,
.alr-filter-panel *:focus-visible {
    outline-color: var(--color-primary) !important;
}

/* ── Cart Upsell ─────────────────────── */
.alr-cart-upsell {
    margin: 40px 0;
    padding: 32px;
    background: var(--color-bg);
    border-radius: 12px;
}

.alr-upsell-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 24px;
    text-align: center;
}

.alr-upsell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.alr-upsell-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alr-upsell-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.alr-upsell-img-link {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.alr-upsell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.alr-upsell-card:hover .alr-upsell-img {
    transform: scale(1.05);
}

.alr-upsell-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #00C853;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.alr-upsell-info {
    padding: 12px;
}

.alr-upsell-name {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alr-upsell-price {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.alr-upsell-btn {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.alr-upsell-btn:hover {
    background: var(--color-primary-light);
    color: #fff;
}

@media (max-width: 768px) {
    .alr-upsell-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .alr-cart-upsell {
        padding: 20px 16px;
        margin: 24px 0;
    }

    .alr-upsell-title {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════
   GLOBAL BLUE KILLER — must be last in file
   ═══════════════════════════════════════ */

/* Kill webkit tap highlight globally */
*, *::before, *::after {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* Kill ALL blue focus outlines sitewide */
*:focus,
*:focus-visible,
*:focus-within {
    outline-color: var(--color-primary) !important;
}

/* Filter panel — nuclear option */
.alr-filter-sidebar *,
.alr-filter-panel *,
.alr-shop-layout * {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

.alr-filter-sidebar *:hover,
.alr-filter-sidebar *:focus,
.alr-filter-sidebar *:active,
.alr-filter-sidebar *:focus-visible,
.alr-filter-panel *:hover,
.alr-filter-panel *:focus,
.alr-filter-panel *:active,
.alr-filter-panel *:focus-visible {
    outline: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Pills hover — pink not blue */
.alr-filter-pill:hover {
    background: var(--color-primary-pale) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    outline: none !important;
}

.alr-filter-pill.active:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

/* Pagination hover — pink */
.alr-pag-btn:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    outline: none !important;
}

/* Reset button hover */
.alr-filter-reset:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    outline: none !important;
}

/* Toggle button hover */
.alr-filter-toggle-btn:hover {
    background: #e0005a !important;
    outline: none !important;
}

/* Astra overrides — kill any blue Astra adds */
.ast-separate-container .alr-filter-pill:focus,
.ast-separate-container .alr-filter-pill:hover,
.site .alr-filter-pill:focus,
.site .alr-filter-pill:hover {
    outline: none !important;
    box-shadow: none !important;
}
