/* ==========================================================================
   UI Enhancements — elegant polish layer for the public storefront
   --------------------------------------------------------------------------
   Loaded after main.css / main.rtl.css. Direction-agnostic: only logical
   properties (inline-start/end) are used, so the same file serves LTR and RTL.
   Sections:
     1. Design tokens
     2. Global foundations (typography, focus, motion, selection)
     3. Buttons & press feedback
     4. Header & navigation
     5. Home: hero, trust strip, section titles, category cards, banners
     6. Product cards (listing + flash)
     7. Category toolbar & filters
     8. Product details page
     9. Cart
    10. Auth forms
    11. Footer, back-to-top, toast
    12. Loading states & reduced motion
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette hooks. Values here are the neutral defaults; ui-palette.css sets the real brand. */
  --ui-brand-rgb:        255, 105, 0;
  --ui-brand:            rgb(var(--ui-brand-rgb));
  --ui-brand-strong:     #E35D00;
  --ui-brand-deep:       #C24F00;   /* AA-compliant tone for small text on white */
  --ui-brand-soft:       #FFF1E6;
  --ui-brand-light:      #FFB27A;   /* light tint used in gradients and on dark surfaces */
  --ui-brand-glow:       rgba(var(--ui-brand-rgb), 0.28);
  --ui-gradient-start:   #FF7A1A;
  --ui-gradient-end:     var(--ui-brand-strong);
  --ui-danger:           #DC2626;
  --ui-success-rgb:      37, 211, 102;

  --ui-ink:              #0F1115;
  --ui-ink-2:            #374151;
  --ui-ink-3:            #6B7280;
  --ui-line:             #E6E8EC;
  --ui-line-soft:        #F0F1F4;
  --ui-surface:          #FFFFFF;
  --ui-surface-2:        #F7F8FA;
  --ui-surface-tint:     #FBF7F3;

  --ui-radius-sm:        10px;
  --ui-radius:           14px;
  --ui-radius-lg:        20px;
  --ui-radius-pill:      999px;

  --ui-shadow-xs:        0 1px 2px rgba(15, 17, 21, 0.05);
  --ui-shadow-sm:        0 2px 8px rgba(15, 17, 21, 0.06), 0 1px 2px rgba(15, 17, 21, 0.04);
  --ui-shadow-md:        0 10px 30px -10px rgba(15, 17, 21, 0.18), 0 2px 6px rgba(15, 17, 21, 0.05);
  --ui-shadow-lg:        0 24px 48px -16px rgba(15, 17, 21, 0.28), 0 4px 12px rgba(15, 17, 21, 0.06);
  --ui-shadow-brand:     0 12px 28px -10px var(--ui-brand-glow);

  --ui-ease-out:         cubic-bezier(0.22, 1, 0.36, 1);
  --ui-ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ui-dur-fast:         150ms;
  --ui-dur:              240ms;
  --ui-dur-slow:         400ms;

  --ui-font-display:     "Manrope", "Cairo", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-ring:             0 0 0 3px rgba(var(--ui-brand-rgb), 0.32);
}

/* 2. Global foundations
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ui-brand);
  color: #fff;
}

/* Elegant display face for Latin headings; Arabic keeps Cairo via the fallback stack. */
html[lang="en"] .rr-hero-heading,
html[lang="en"] .rr-section-title,
html[lang="en"] .rr-pdp-title,
html[lang="en"] .rr-page-toolbar-title,
html[lang="en"] .rr-pdp-toolbar-title,
html[lang="en"] .rr-auth-page-title,
html[lang="en"] .rr-banner-title,
html[lang="en"] .rr-flash-pill-title {
  font-family: var(--ui-font-display);
  letter-spacing: -0.02em;
}

/* Fluid type scale: no more 48px headings on a 375px phone. */
.rr-hero-heading {
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3rem);
  line-height: 1.12;
  text-wrap: balance;
}

.rr-section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  text-wrap: balance;
}

.rr-section-title::after {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--ui-brand), var(--ui-brand-light));
  box-shadow: 0 2px 8px var(--ui-brand-glow);
}

.rr-section-sub {
  max-width: 60ch;
  margin-inline: auto;
  text-wrap: pretty;
}

/* Prices never jitter when digits change. */
.product-price,
.product-current-price,
.product-old-price,
.rr-new,
.rr-old,
.rr-pdp-price-int,
.rr-pdp-price-dec,
.rr-cart-td-num,
.rr-cart-total-val,
.rr-cart-grand-val,
.rr-countdown-pill,
.rr-minicart-item-price {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Keyboard users always see where they are. Mouse users are not shouted at. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ui-ring);
  border-radius: 6px;
}

:where(a, button):focus:not(:focus-visible) {
  outline: none;
}

/* Small orange text meets AA contrast; large brand text keeps the vivid tone. */
.rr-flash-viewall,
.rr-auth-forgot,
.rr-pdp-bc-current,
.rr-page-toolbar-bc a:hover,
.rr-pdp-toolbar-bc a:hover {
  color: var(--ui-brand-deep);
}

/* Skip-link for keyboard users (injected by ui-enhancements.js). */
.ui-skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -64px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--ui-ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow-md);
  transition: top var(--ui-dur-fast) var(--ui-ease-out);
}

.ui-skip-link:focus {
  top: 12px;
  color: #fff;
}

/* 3. Buttons & press feedback
   -------------------------------------------------------------------------- */
.rr-add,
.rr-pdp-btn,
.rr-cart-btn-primary,
.rr-cart-checkout-btn,
.rr-auth-submit,
.rr-banner-cta,
.rr-sub-btn,
.rr-flash-pill-cta,
.rr-cart-promo-apply,
.rr-minicart-checkout,
.rr-minicart-view-cart {
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--ui-dur-fast) var(--ui-ease-out),
    box-shadow var(--ui-dur) var(--ui-ease-out),
    background-color var(--ui-dur) var(--ui-ease-out),
    filter var(--ui-dur) var(--ui-ease-out);
}

.rr-add,
.rr-pdp-btn--cart,
.rr-cart-btn-primary,
.rr-cart-checkout-btn,
.rr-auth-submit,
.rr-banner-cta,
.rr-sub-btn,
.rr-flash-pill-cta {
  background-image: linear-gradient(135deg, var(--ui-gradient-start) 0%, var(--ui-brand) 45%, var(--ui-gradient-end) 100%);
  box-shadow: var(--ui-shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rr-add:hover,
.rr-pdp-btn--cart:hover,
.rr-cart-btn-primary:hover,
.rr-cart-checkout-btn:hover,
.rr-auth-submit:hover,
.rr-banner-cta:hover,
.rr-sub-btn:hover,
.rr-flash-pill-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px var(--ui-brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rr-add:active,
.rr-pdp-btn:active,
.rr-cart-btn-primary:active,
.rr-cart-checkout-btn:active,
.rr-auth-submit:active,
.rr-banner-cta:active,
.rr-sub-btn:active,
.rr-flash-pill-cta:active,
.rr-icon-btn:active,
.rr-cat-card:active,
.rr-hero-arrow:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

/* Async button state (set by ui-enhancements.js while a request is in flight). */
.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.is-loading > * {
  visibility: hidden;
}

.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: ui-spin 700ms linear infinite;
}

@keyframes ui-spin {
  to { transform: rotate(360deg); }
}

/* 4. Header & navigation
   -------------------------------------------------------------------------- */
.rr-header-main {
  background-image: linear-gradient(180deg, #050505 0%, #000 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.rr-search {
  transition: box-shadow var(--ui-dur) var(--ui-ease-out), transform var(--ui-dur) var(--ui-ease-out);
}

.rr-search:focus-within {
  box-shadow: 0 0 0 4px rgba(var(--ui-brand-rgb), 0.22), 0 12px 32px -12px rgba(var(--ui-brand-rgb), 0.45);
}

.rr-search-input {
  min-height: 44px;
}

.rr-search-btn {
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), filter var(--ui-dur-fast);
}

.rr-search-btn:hover {
  filter: brightness(1.08);
}

.rr-search-btn:active {
  transform: scale(0.94);
}

.rr-icon-btn {
  min-width: 44px;
  min-height: 44px;
  transition:
    background-color var(--ui-dur-fast) var(--ui-ease-out),
    color var(--ui-dur-fast) var(--ui-ease-out),
    transform var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-icon-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.rr-badge {
  transition: transform var(--ui-dur) var(--ui-ease-spring);
}

.rr-badge.is-bump {
  animation: ui-bump 500ms var(--ui-ease-spring);
}

@keyframes ui-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Category mega-nav: smoother hover with an underline that grows from the centre. */
.rr-mega-nav .nav-link,
.rr-mega-nav a {
  transition: color var(--ui-dur-fast) var(--ui-ease-out), background-color var(--ui-dur-fast) var(--ui-ease-out);
}

/* 5. Home
   -------------------------------------------------------------------------- */
.rr-hero-section {
  padding-block: clamp(24px, 4vw, 48px);
}

.rr-hero-heading {
  margin-block-end: clamp(20px, 3vw, 36px);
}

.rr-hero-heading .rr-brand {
  background: linear-gradient(120deg, var(--ui-brand) 0%, var(--ui-brand-light) 60%, var(--ui-brand) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ui-shimmer 6s linear infinite;
}

@keyframes ui-shimmer {
  to { background-position: 200% 0; }
}

.rr-hero-slider {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-lg);
  isolation: isolate;
}

.rr-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  min-height: 200px;
  max-height: 440px;
  position: relative;
  transition: transform 1.2s var(--ui-ease-out);
}

/* Soft vignette gives the slide depth and keeps the arrows legible on bright artwork. */
.rr-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.08) 100%);
}

.rr-hero-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: var(--ui-shadow-md);
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), background-color var(--ui-dur-fast), box-shadow var(--ui-dur);
}

.rr-hero-arrow:hover {
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
}

.rr-hero-slider .slick-dots li button::before {
  transition: transform var(--ui-dur) var(--ui-ease-out), opacity var(--ui-dur);
}

.rr-hero-slider .slick-dots li.slick-active button::before {
  color: var(--ui-brand);
  opacity: 1;
  transform: scale(1.3);
}

/* Trust strip: icon tiles lift softly. */
.rr-trust-item {
  padding: 10px 12px;
  border-radius: var(--ui-radius);
  transition: background-color var(--ui-dur) var(--ui-ease-out), transform var(--ui-dur) var(--ui-ease-out);
}

.rr-trust-item:hover {
  background: var(--ui-brand-soft);
  transform: translateY(-2px);
}

.rr-trust-icon {
  transition: transform var(--ui-dur) var(--ui-ease-spring), box-shadow var(--ui-dur);
}

.rr-trust-item:hover .rr-trust-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px -8px var(--ui-brand-glow);
}

/* Flash section: give the LIVE pill a heartbeat and the header more air. */
.rr-flash-live-dot {
  animation: ui-pulse 1.6s ease-in-out infinite;
}

@keyframes ui-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* Category cards */
.rr-cat-card {
  border-radius: var(--ui-radius-lg);
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-xs);
  transition:
    transform var(--ui-dur) var(--ui-ease-out),
    box-shadow var(--ui-dur) var(--ui-ease-out),
    border-color var(--ui-dur) var(--ui-ease-out);
}

.rr-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-md);
  border-color: rgba(var(--ui-brand-rgb), 0.35);
}

/* The card's image well was collapsing (flex-shrink against a 100%-tall label),
   leaving a blank band under every label. Let the well keep its height and let
   the label take exactly what remains. */
.rr-cat-card.h-100 {
  height: auto !important;
}

.rr-cat-top {
  flex: 0 0 auto;
  background:
    radial-gradient(120% 90% at 50% 100%, var(--ui-brand-soft) 0%, rgba(255, 241, 230, 0) 70%),
    var(--ui-surface-2);
}

.rr-cat-bottom {
  height: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.rr-cat-real-img {
  transition: transform var(--ui-dur-slow) var(--ui-ease-out);
}

.rr-cat-card:hover .rr-cat-real-img {
  transform: translateY(-4px) scale(1.06);
}

.rr-cat-bottom {
  font-weight: 700;
  letter-spacing: 0.005em;
}

/* Two promotional banners */
.rr-banner {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-md);
  transition: transform var(--ui-dur-slow) var(--ui-ease-out), box-shadow var(--ui-dur-slow) var(--ui-ease-out);
}

.rr-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-lg);
}

.rr-banner-title {
  text-wrap: balance;
}

/* Client logos: colour on hover only, calm otherwise. */
.rr-client-logo-img {
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--ui-dur) var(--ui-ease-out), transform var(--ui-dur) var(--ui-ease-out);
}

.rr-client:hover .rr-client-logo-img {
  filter: none;
  transform: scale(1.06);
}

/* Newsletter */
.rr-subscribe {
  transition: box-shadow var(--ui-dur) var(--ui-ease-out);
}

.rr-subscribe:focus-within {
  box-shadow: 0 0 0 4px rgba(var(--ui-brand-rgb), 0.22);
}

.rr-email {
  min-height: 44px;
}

/* 6. Product cards
   -------------------------------------------------------------------------- */
.category-products-grid .product.product-card-citycenter,
.rr-product-card {
  border-radius: var(--ui-radius-lg);
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-xs);
  transition:
    transform var(--ui-dur) var(--ui-ease-out),
    box-shadow var(--ui-dur) var(--ui-ease-out),
    border-color var(--ui-dur) var(--ui-ease-out);
}

.category-products-grid .product.product-card-citycenter:hover,
.rr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-md), 0 18px 36px -18px var(--ui-brand-glow);
  border-color: rgba(var(--ui-brand-rgb), 0.30);
}

/* Image well: neutral stage with a faint floor so products feel placed, not pasted. */
.category-products-grid:not(.category-products--list) .product-card-citycenter .product-img,
.rr-product-media {
  background:
    radial-gradient(70% 40% at 50% 100%, rgba(15, 17, 21, 0.06) 0%, rgba(15, 17, 21, 0) 100%),
    linear-gradient(180deg, #FAFAFB 0%, #F3F4F6 100%);
}

.category-products-grid:not(.category-products--list) .product-card-citycenter .product-img img,
.rr-product-img-real {
  transition: transform var(--ui-dur-slow) var(--ui-ease-out);
  will-change: transform;
}

.category-products-grid .product-card-citycenter:hover .product-img img,
.rr-product-card:hover .rr-product-img-real {
  transform: scale(1.06);
}

.product-card-citycenter .product-name a,
.rr-product-title {
  transition: color var(--ui-dur-fast) var(--ui-ease-out);
}

.product-card-citycenter .product-name a:hover,
.rr-product-title:hover {
  color: var(--ui-brand-deep);
}

/* One reading axis per card: name, brand line and price all start-aligned. */
.category-products-grid:not(.category-products--list) .product.product-card-citycenter .product-body {
  align-items: stretch;
  text-align: start;
}

.category-products-grid:not(.category-products--list) .product-card-citycenter .product-price {
  justify-content: flex-start;
}

/* Secondary line reads as an eyebrow, and never grows past two lines. */
.product-card-citycenter .product-specs,
.rr-product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ui-ink-3);
}

/* Badges: pill, slight glass, sits away from the image edge. */
.rr-sale-badge,
.rr-oos-badge,
.rr-tag-badge {
  border-radius: var(--ui-radius-pill);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  box-shadow: var(--ui-shadow-sm);
}

.rr-oos-badge {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.product-card-citycenter.is-oos .product-img img {
  filter: grayscale(0.6) opacity(0.75);
}

.rr-countdown-pill {
  border-radius: var(--ui-radius-pill);
}

/* 7. Category toolbar & filters
   -------------------------------------------------------------------------- */
.rr-cat-toolbar {
  border-color: var(--ui-line);
  background: var(--ui-surface);
}

.rr-toolbar-dd-btn {
  min-height: 44px;
  border-radius: var(--ui-radius-sm);
  transition: border-color var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-toolbar-dd-btn:hover {
  border-color: rgba(var(--ui-brand-rgb), 0.5);
}

.rr-toolbar-dd-menu {
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-lg);
  border: 1px solid var(--ui-line);
}

.rr-toolbar-dd-menu a,
.rr-toolbar-dd-menu button {
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out);
}

.filter-block {
  border-radius: var(--ui-radius);
}

.filter-row-btn {
  min-height: 44px;
  transition: color var(--ui-dur-fast) var(--ui-ease-out);
}

.filter-row-arrow {
  transition: transform var(--ui-dur) var(--ui-ease-out);
}

/* .filter-check is the <label>; only the checkbox inside it gets sized. */
.filter-check input[type="checkbox"] {
  accent-color: var(--ui-brand);
  width: 18px;
  height: 18px;
}

.filter-item-row {
  border-radius: 8px;
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out);
}

.filter-item-row:hover {
  background: var(--ui-surface-2);
}

/* Page toolbar (breadcrumb bar): quieter gradient, stronger title. */
.rr-page-toolbar,
.rr-pdp-toolbar {
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
  border-bottom-color: var(--ui-line-soft);
}

.rr-page-toolbar-back,
.rr-pdp-toolbar-back,
.rr-auth-back-btn {
  min-width: 44px;
  min-height: 44px;
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast) var(--ui-ease-out), border-color var(--ui-dur-fast);
}

.rr-page-toolbar-back:hover,
.rr-pdp-toolbar-back:hover,
.rr-auth-back-btn:hover {
  box-shadow: var(--ui-shadow-sm);
  border-color: rgba(var(--ui-brand-rgb), 0.45);
}

/* 8. Product details page
   -------------------------------------------------------------------------- */
.rr-pdp-main-wrap {
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  box-shadow: var(--ui-shadow-sm);
  background:
    radial-gradient(70% 40% at 50% 100%, rgba(15, 17, 21, 0.06) 0%, rgba(15, 17, 21, 0) 100%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
}

.rr-pdp-thumb {
  border-radius: var(--ui-radius-sm);
  transition: border-color var(--ui-dur-fast) var(--ui-ease-out), transform var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast);
}

.rr-pdp-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--ui-shadow-sm);
}

.rr-pdp-title {
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.9rem);
  line-height: 1.2;
  text-wrap: balance;
}

.rr-pdp-price-card {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-line);
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FAFAFB 100%);
  box-shadow: var(--ui-shadow-sm);
  position: relative;
}

/* Thin brand hairline along the top edge, instead of a heavy coloured border. */
.rr-pdp-price-card::before {
  content: "";
  position: absolute;
  inset-inline: 18px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--ui-brand-rgb), 0), var(--ui-brand) 50%, rgba(var(--ui-brand-rgb), 0));
}

.rr-pdp-price-int {
  letter-spacing: -0.02em;
}

.rr-pdp-qty-dark {
  border-radius: var(--ui-radius-sm);
  box-shadow: var(--ui-shadow-sm);
}

.rr-pdp-qty-dark-btn {
  min-width: 44px;
  min-height: 44px;
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-pdp-qty-dark-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rr-pdp-btn {
  border-radius: var(--ui-radius-sm);
  min-height: 48px;
}

.rr-pdp-btn--wa {
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur) var(--ui-ease-out), filter var(--ui-dur);
}

.rr-pdp-btn--wa:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(var(--ui-success-rgb), 0.55);
}

.rr-pdp-payment-logos {
  opacity: 0.9;
}

.rr-pdp-pay-logo {
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), opacity var(--ui-dur-fast);
}

.rr-pdp-pay-logo:hover {
  transform: translateY(-2px);
}

.rr-pdp-tab-nav a,
.rr-pdp-tab-nav button {
  min-height: 44px;
  transition: color var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-spec-section-heading {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-ink-3);
}

.rr-spec-row {
  border-radius: 8px;
  padding-inline: 10px;
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-spec-row:hover {
  background: var(--ui-surface-tint);
}

.rr-spec-rows .rr-spec-row:nth-child(even) {
  background: var(--ui-surface-2);
}

.rr-spec-rows .rr-spec-row:nth-child(even):hover {
  background: var(--ui-surface-tint);
}

.rr-spec-value {
  color: var(--ui-ink-2);
}

/* 9. Cart
   -------------------------------------------------------------------------- */
.rr-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: clamp(48px, 8vw, 96px);
}

.rr-cart-empty-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-block-end: 8px;
  color: var(--ui-brand);
  background:
    radial-gradient(circle at 50% 35%, #FFFFFF 0%, var(--ui-brand-soft) 100%);
  box-shadow: var(--ui-shadow-sm), inset 0 0 0 1px rgba(var(--ui-brand-rgb), 0.12);
}

.rr-cart-empty-title {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: 800;
  color: var(--ui-ink);
  margin: 0;
}

.rr-cart-empty p {
  margin-block-end: 8px;
  max-width: 40ch;
  text-wrap: pretty;
}

.rr-cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-block-start: 12px;
}

.rr-cart-btn-primary {
  border-radius: var(--ui-radius-sm);
  padding-inline: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rr-cart-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--ui-radius-sm);
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  color: var(--ui-ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast) var(--ui-ease-out), transform var(--ui-dur-fast);
}

.rr-cart-btn-secondary:hover {
  color: var(--ui-ink);
  border-color: rgba(var(--ui-brand-rgb), 0.45);
  box-shadow: var(--ui-shadow-sm);
  transform: translateY(-1px);
}

.rr-cart-table-wrap {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-xs);
}

.rr-cart-row {
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-cart-row:hover {
  background: var(--ui-surface-2);
}

.rr-cart-product-img {
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-2);
}

.rr-cart-qty-ctrl {
  border-radius: var(--ui-radius-sm);
}

.rr-cart-qty-update,
.rr-cart-qty-remove {
  min-width: 40px;
  min-height: 40px;
}

.rr-cart-totals-inner {
  min-width: min(100%, 340px);
  padding: 20px 22px;
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-md);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFB 100%);
}

.rr-cart-totals-inner .rr-cart-promo-row-wrap {
  padding-block-end: 14px;
  margin-block-end: 6px;
  border-bottom: 1px dashed var(--ui-line);
}

.rr-cart-totals-inner .rr-cart-promo-form {
  width: 100%;
}

.rr-cart-totals-inner .rr-cart-promo-input {
  flex: 1 1 auto;
  min-width: 0;
}

.rr-cart-grand-row {
  padding-block-start: 10px;
  border-top: 1px solid var(--ui-line);
}

.rr-cart-grand-val {
  color: var(--ui-ink);
  letter-spacing: -0.01em;
}

.rr-cart-promo-input {
  min-height: 44px;
  border-radius: var(--ui-radius-sm);
}

/* Mini cart drawer */
.rr-minicart-drawer {
  box-shadow: var(--ui-shadow-lg);
}

.rr-minicart-item {
  border-radius: var(--ui-radius-sm);
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-minicart-item:hover {
  background: var(--ui-surface-2);
}

.rr-minicart-img {
  border-radius: 8px;
}

/* 10. Auth forms
   -------------------------------------------------------------------------- */
.rr-auth-card {
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 100%);
}

.rr-auth-tabs {
  gap: 8px;
}

.rr-auth-tab {
  min-height: 44px;
  border-radius: var(--ui-radius-sm);
  transition: background-color var(--ui-dur) var(--ui-ease-out), color var(--ui-dur) var(--ui-ease-out), box-shadow var(--ui-dur);
}

.rr-auth-tab--active {
  box-shadow: var(--ui-shadow-brand);
}

.rr-auth-label {
  font-weight: 600;
  color: var(--ui-ink-2);
}

.rr-auth-input {
  min-height: 48px;
  font-size: 1rem;
  border-radius: var(--ui-radius-sm);
  border-color: var(--ui-line);
  background: var(--ui-surface);
  transition: border-color var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast) var(--ui-ease-out), background-color var(--ui-dur-fast);
}

.rr-auth-input:hover {
  border-color: #CFD3DA;
}

.rr-auth-input:focus,
.rr-auth-input:focus-visible {
  border-color: var(--ui-brand);
  box-shadow: var(--ui-ring);
  background: #fff;
}

.rr-auth-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rr-auth-submit {
  border-radius: var(--ui-radius-sm);
  min-height: 48px;
  font-weight: 700;
}

.rr-auth-remember input[type="checkbox"] {
  accent-color: var(--ui-brand);
  width: 18px;
  height: 18px;
}

.rr-auth-social-btn {
  min-height: 46px;
  border-radius: var(--ui-radius-sm);
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast) var(--ui-ease-out);
}

.rr-auth-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ui-shadow-sm);
}

/* Generic bootstrap-styled form controls on checkout / account pages. */
.form-control,
.form-select {
  min-height: 46px;
  border-radius: var(--ui-radius-sm);
  border-color: var(--ui-line);
  transition: border-color var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast) var(--ui-ease-out);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ui-brand);
  box-shadow: var(--ui-ring);
}

.form-check-input:checked {
  background-color: var(--ui-brand);
  border-color: var(--ui-brand);
}

.form-check-input:focus {
  box-shadow: var(--ui-ring);
  border-color: var(--ui-brand);
}

/* 11. Footer, back-to-top, toast
   -------------------------------------------------------------------------- */
.rr-footer a {
  transition: color var(--ui-dur-fast) var(--ui-ease-out), opacity var(--ui-dur-fast);
}

.rr-footer .rr-footer-links a,
.rr-footer nav a {
  position: relative;
}

.rr-footer .rr-footer-links a::after,
.rr-footer nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform var(--ui-dur) var(--ui-ease-out);
}

.rr-footer .rr-footer-links a:hover::after,
.rr-footer nav a:hover::after {
  transform: scaleX(1);
}

.rr-pay-badge {
  transition: transform var(--ui-dur-fast) var(--ui-ease-out), box-shadow var(--ui-dur-fast);
}

.rr-pay-badge:hover {
  transform: translateY(-2px);
}

#rr-back-top {
  bottom: 24px;
  background: rgba(15, 17, 21, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--ui-shadow-md);
  transition: transform var(--ui-dur) var(--ui-ease-spring), opacity var(--ui-dur), background-color var(--ui-dur);
}

#rr-back-top:hover {
  background: var(--ui-brand);
  transform: translateY(-3px);
}

/* Never let the floating button sit on top of the open cart drawer. */
body.rr-minicart-open #rr-back-top {
  opacity: 0;
  pointer-events: none;
}

/* Toast notifications (rendered by ui-enhancements.js) */
.ui-toast-region {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 84px;
  z-index: 10500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 40px));
}

.ui-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--ui-radius);
  background: rgba(15, 17, 21, 0.92);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--ui-shadow-lg);
  font-size: 0.925rem;
  line-height: 1.4;
  transform: translateY(12px);
  opacity: 0;
  animation: ui-toast-in var(--ui-dur-slow) var(--ui-ease-out) forwards;
}

.ui-toast.is-leaving {
  animation: ui-toast-out var(--ui-dur) ease-in forwards;
}

.ui-toast-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-brand);
  color: #fff;
}

.ui-toast--error .ui-toast-icon {
  background: var(--ui-danger);
}

.ui-toast-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ui-toast-title {
  font-weight: 700;
  display: block;
}

.ui-toast-action {
  flex: 0 0 auto;
  color: var(--ui-brand-light);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 10px;
  margin-inline-end: -6px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background-color var(--ui-dur-fast) var(--ui-ease-out), color var(--ui-dur-fast);
}

.ui-toast-action:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

@keyframes ui-toast-in {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ui-toast-out {
  to { transform: translateY(8px); opacity: 0; }
}

@media (max-width: 575.98px) {
  .ui-toast-region {
    inset-inline: 12px;
    bottom: 16px;
    max-width: none;
  }
}

/* 12. Loading states & reduced motion
   -------------------------------------------------------------------------- */
/* Lazy images fade in once decoded so grids never "pop".
   Scoped to html.js so the images stay visible when scripting is unavailable. */
html.js img[loading="lazy"] {
  transition: opacity var(--ui-dur-slow) ease-out;
}

html.js img[loading="lazy"]:not(.is-loaded):not([data-img-fallback]) {
  opacity: 0;
}

html.js img[loading="lazy"].is-loaded,
html.js img[loading="lazy"][data-img-fallback] {
  opacity: 1;
}

/* Honour the OS "reduce motion" preference across every effect added above. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rr-hero-heading .rr-brand {
    animation: none;
    background-position: 0 0;
  }

  html.js img[loading="lazy"]:not(.is-loaded):not([data-img-fallback]) {
    opacity: 1;
  }
}
