/* ============================================================
   MARTAL — Premium Beauty Ecommerce
   style.css | Mobile-First | RTL Arabic
   ============================================================ */

/* ── 1. CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-red:        #D50000;
  --clr-red-deep:   #A80000;
  --clr-red-hover:  #C00000;
  --clr-rose:       #FFF5F5;
  --clr-nude:       #E8CFCF;
  --clr-beige:      #F1E5DC;

  /* Neutrals */
  --clr-white:      #FCFCFC;
  --clr-bg:         #FCFCFC;
  --clr-surface:    #FFFFFF;
  --clr-border:     #F0E8E8;
  --clr-border-md:  #E5D5D5;
  --clr-text:       #1A1A1A;
  --clr-muted:      #777777;
  --clr-light:      #AAAAAA;

  /* Utility */
  --clr-green:      #25D366;
  --clr-green-dark: #1DA851;

  /* Typography */
  --font-primary:   'Cairo', sans-serif;

  /* Spacing Scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Border Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.10);
  --shadow-red: 0 4px 20px rgba(213,0,0,0.18);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Layout */
  --container-max: 1280px;
  --container-pad: var(--sp-4);
  --navbar-h:      64px;
  --announce-h:    36px;
}

@media (min-width: 768px) {
  :root {
    --container-pad: var(--sp-6);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-pad: var(--sp-8);
  }
}


/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  direction: rtl;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: var(--font-primary);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-primary);
}


/* ── 3. LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--sp-10);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-12);
  }
}

.section--rose {
  background: var(--clr-rose);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  gap: var(--sp-4);
}

.section__header--center {
  justify-content: center;
}

.section__title {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.section-arrow {
  color: var(--clr-red);
  font-size: 14px;
  font-weight: 400;
}

.see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-red);
  text-decoration: underline;
  white-space: nowrap;
  transition: color var(--t-fast);
  flex-shrink: 0;
}

.see-all:hover {
  color: var(--clr-red-deep);
}

.text-red {
  color: var(--clr-red);
}


/* ── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-primary);
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--clr-red);
  color: #fff;
  border-color: var(--clr-red);
}

.btn--primary:hover {
  background: var(--clr-red-hover);
  border-color: var(--clr-red-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--clr-red);
  border-color: var(--clr-red);
}

.btn--outline:hover {
  background: var(--clr-rose);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-muted);
  border-color: var(--clr-border-md);
}

.btn--ghost:hover {
  background: var(--clr-rose);
  color: var(--clr-red);
  border-color: var(--clr-red);
}

.btn--sm {
  font-size: 13px;
  padding: 6px 16px;
}

.btn--md {
  font-size: 14px;
  padding: 10px 22px;
}

.btn--lg {
  font-size: 15px;
  padding: 13px 30px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  font-size: 20px;
  transition: background var(--t-fast), color var(--t-fast);
}

.icon-btn:hover {
  background: var(--clr-rose);
  color: var(--clr-red);
}

.icon-btn:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--clr-red);
  color: #fff;
  border-radius: var(--r-pill);
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
}


/* ── 5. ANNOUNCEMENT BAR ───────────────────────────────────── */
.announce-bar {
  background: var(--clr-red);
  color: #fff;
  height: var(--announce-h);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.announce-track {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-inline-start: 100%;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.announce-item {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.announce-sep {
  opacity: 0.5;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .announce-track {
    animation: none;
    padding-inline-start: var(--sp-6);
    overflow-x: auto;
  }
}


/* ── 6. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--t-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.navbar__logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--clr-red);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.navbar__links {
  display: none;
  gap: var(--sp-5);
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-red);
  border-bottom-color: var(--clr-red);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.hamburger:hover {
  background: var(--clr-rose);
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--r-pill);
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 1023px) {
  .navbar__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: calc(var(--announce-h) + var(--navbar-h));
    right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--announce-h) - var(--navbar-h));
    background: var(--clr-surface);
    border-left: 1px solid var(--clr-border);
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-1);
    transform: translateX(100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .navbar__links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 16px;
    padding: var(--sp-3) 0;
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.active {
    border-bottom-color: var(--clr-border);
    color: var(--clr-red);
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 800;
  }

  .nav-overlay.open {
    display: block;
  }
}

@media (min-width: 1024px) {
  .navbar__links {
    display: flex;
    flex-direction: row;
  }

  .hamburger {
    display: none;
  }
}

/* Search bar */
.search-bar {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-slow);
}

.search-bar.open {
  max-height: 80px;
  padding-block: var(--sp-3);
}

.search-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--clr-rose);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
}

.search-bar__inner i {
  color: var(--clr-red);
  font-size: 18px;
  flex-shrink: 0;
}

.search-bar__inner input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--clr-text);
  outline: none;
}

.search-bar__inner input::placeholder {
  color: var(--clr-muted);
}


/* ── 7. HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-rose) 0%, var(--clr-bg) 65%);
  padding-block: var(--sp-10);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--sp-12);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.eyebrow-line {
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--clr-red);
}

.hero__title {
  font-size: clamp(26px, 6vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.5px;
}

.hero__sub {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  max-width: 420px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-md);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text);
}

.mini-badge i {
  color: var(--clr-red);
  font-size: 14px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__visual {
  position: relative;
}

.hero__img-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-rose), var(--clr-nude));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--clr-red-deep);
  font-size: 14px;
  font-weight: 600;
}

.hero__img-placeholder i {
  font-size: 56px;
  color: var(--clr-nude);
}

.hero__float-badge {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  background: var(--clr-surface);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero__float-badge i {
  color: var(--clr-red);
  font-size: 14px;
}

.hero__stat-card {
  position: absolute;
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 90px;
  border: 1px solid var(--clr-border);
}

.hero__stat-card strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--clr-red);
  line-height: 1.2;
}

.hero__stat-card span {
  font-size: 11px;
  color: var(--clr-muted);
  font-weight: 600;
}

.hero__stat-card--1 {
  top: -12px;
  left: -16px;
  animation: float-1 4s ease-in-out infinite;
}

.hero__stat-card--2 {
  bottom: -12px;
  left: 24px;
  animation: float-2 4s ease-in-out infinite 1s;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(8px); }
}

@media (max-width: 767px) {
  .hero__stat-card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stat-card--1,
  .hero__stat-card--2 {
    animation: none;
  }
}


/* ── 8. TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--sp-4);
}

.trust-bar__list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trust-bar__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .trust-bar__list {
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-inline: var(--sp-5);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
  border-inline-end: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.trust-item:last-child {
  border-inline-end: none;
}

.trust-item i {
  color: var(--clr-red);
  font-size: 16px;
}


/* ── 9. LOOK CATEGORIES ────────────────────────────────────── */
.look-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 480px) {
  .look-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .look-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--sp-4);
  }
}

.look-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  outline: none;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.look-card:hover,
.look-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.look-card:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

.look-card__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-slow);
}

.look-card:hover .look-card__bg {
  transform: scale(1.06);
}

.look-card__bg i {
  font-size: clamp(28px, 5vw, 44px);
  opacity: 0.7;
}

.look-card__bg--natural  { background: linear-gradient(135deg, #FFF5F5, #E8D5C4); }
.look-card__bg--natural i { color: #C9A96E; }

.look-card__bg--honey    { background: linear-gradient(135deg, #FFF8E8, #F5D98A); }
.look-card__bg--honey i  { color: #C4921A; }

.look-card__bg--gray     { background: linear-gradient(135deg, #F0F0F0, #C8C8C8); }
.look-card__bg--gray i   { color: #888; }

.look-card__bg--bridal   { background: linear-gradient(135deg, #FFF5F5, #F5C0CB); }
.look-card__bg--bridal i { color: #D54068; }

.look-card__bg--soft     { background: linear-gradient(135deg, #F0F8F0, #A8D8A8); }
.look-card__bg--soft i   { color: #3A7A3A; }

.look-card__bg--bold     { background: linear-gradient(135deg, #1A1A2E, #4A1A4A); }
.look-card__bg--bold i   { color: var(--clr-nude); }

.look-card__label {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: clamp(10px, 2vw, 12px);
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}


/* ── 10. BRANDS ────────────────────────────────────────────── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-4);
  }
}

.brand-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.brand-card:hover {
  border-color: var(--clr-red);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.brand-card:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

.brand-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.brand-card:hover .brand-card__icon {
  background: var(--clr-red);
}

.brand-card__icon i {
  color: var(--clr-red);
  font-size: 20px;
  transition: color var(--t-fast);
}

.brand-card:hover .brand-card__icon i {
  color: #fff;
}

.brand-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
  font-style: italic;
}

.brand-card__sub {
  font-size: 11px;
  color: var(--clr-muted);
}


/* ── 11. PRODUCT CARDS ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
  }
}

.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  /* Works whether root element is <article> or <a> */
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

.product-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--clr-rose), var(--clr-nude));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img i {
  font-size: clamp(28px, 6vw, 40px);
  color: var(--clr-nude);
  transition: transform var(--t-slow);
}

.product-card:hover .product-card__img i {
  transform: scale(1.1);
}

.product-card__img--gray   { background: linear-gradient(135deg, #F0F0F0, #D8D8D8); }
.product-card__img--honey  { background: linear-gradient(135deg, #FFF8E8, #F0D890); }
.product-card__img--violet { background: linear-gradient(135deg, #F5E8FF, #D5A8E8); }
.product-card__img--blue   { background: linear-gradient(135deg, #E8F0FF, #A8C0F0); }

.product-card__badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-primary);
  line-height: 1.4;
}

.badge--bestseller {
  background: var(--clr-red);
  color: #fff;
}

.badge--new {
  background: var(--clr-text);
  color: #fff;
}

.badge--sale {
  background: var(--clr-nude);
  color: var(--clr-red-deep);
}

.product-card__wishlist {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--clr-muted);
  opacity: 0;
  transition: opacity var(--t-fast), color var(--t-fast);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
}

.product-card__wishlist:hover {
  color: var(--clr-red);
}

.product-card__info {
  padding: var(--sp-3) var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.product-card__brand {
  font-size: 11px;
  color: var(--clr-muted);
  font-weight: 600;
}

.product-card__name {
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
}

.product-card__meta {
  font-size: 11px;
  color: var(--clr-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-2);
  gap: var(--sp-2);
}

.product-card__stars {
  font-size: 11px;
  color: var(--clr-red);
  line-height: 1;
}

.product-card__rating {
  font-size: 10px;
  color: var(--clr-muted);
}

.product-card__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.product-card__price {
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 900;
  color: var(--clr-red);
  line-height: 1;
}

.product-card__old-price {
  font-size: 11px;
  color: var(--clr-light);
  text-decoration: line-through;
  line-height: 1;
}

.product-card__add {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--clr-red);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  font-size: 16px;
  color: #fff;
}

.product-card__add:hover {
  background: var(--clr-red-deep);
  transform: scale(1.1);
}

.product-card__add:active {
  transform: scale(0.95);
}

.product-card__add:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}


/* ── 12. WHY SECTION ───────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.why-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-card__icon {
  width: 52px;
  height: 52px;
  background: var(--clr-rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  transition: background var(--t-fast);
}

.why-card:hover .why-card__icon {
  background: var(--clr-red);
}

.why-card__icon i {
  color: var(--clr-red);
  font-size: 22px;
  transition: color var(--t-fast);
}

.why-card:hover .why-card__icon i {
  color: #fff;
}

.why-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}

.why-card__text {
  font-size: 12px;
  color: var(--clr-muted);
  line-height: 1.6;
}


/* ── 13. REVIEWS ───────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--clr-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--clr-red);
}

.reviewer-avatar--2 { background: #E8F0FF; color: #385ab0; }
.reviewer-avatar--3 { background: #FFF8E8; color: #C4921A; }

.reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.reviewer-loc {
  font-size: 12px;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.reviewer-loc i {
  font-size: 12px;
}

.review-stars {
  font-size: 14px;
  color: var(--clr-red);
  margin-bottom: var(--sp-3);
  letter-spacing: 1px;
}

.review-text {
  font-size: 14px;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.review-img {
  height: 80px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-rose), var(--clr-nude));
}

.review-img--gray   { background: linear-gradient(135deg, #F0F0F0, #D8D8D8); }
.review-img--honey  { background: linear-gradient(135deg, #FFF8E8, #F0D890); }

.review-img i {
  font-size: 26px;
  color: var(--clr-nude);
}


/* ── 14. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--clr-text);
  color: #fff;
  padding-block: var(--sp-10) var(--sp-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8) var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-6);
  }
}

.footer__logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--clr-red);
  letter-spacing: -1px;
  display: block;
  margin-bottom: var(--sp-3);
}

.footer__tagline {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background var(--t-fast), transform var(--t-fast);
}

.social-icon:hover {
  background: var(--clr-red);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-4);
}

.footer__link {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: var(--sp-2);
  transition: color var(--t-fast);
}

.footer__link:hover {
  color: #fff;
}

.footer__link--icon {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer__link--icon i {
  font-size: 15px;
  color: var(--clr-red);
}

.footer__cod-badge {
  margin-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  font-size: 12px;
  font-weight: 600;
  color: #ccc;
}

.footer__cod-badge i {
  color: var(--clr-red);
  font-size: 16px;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  font-size: 12px;
  color: #666;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}


/* ── 15. WHATSAPP FAB ──────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 84px;
  left: var(--sp-4);
  background: var(--clr-green);
  color: #fff;
  border-radius: var(--r-pill);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 700;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  animation: pulse-green 3s ease-in-out infinite;
}

.wa-fab:hover {
  background: var(--clr-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  animation: none;
}

.wa-fab i {
  font-size: 20px;
}

.wa-fab__label {
  white-space: nowrap;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.55); }
}

@media (min-width: 768px) {
  .wa-fab {
    bottom: var(--sp-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
}


/* ── 16. MOBILE BOTTOM NAV ─────────────────────────────────── */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  z-index: 700;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--sp-2) 0;
  font-size: 10px;
  color: var(--clr-muted);
  font-weight: 600;
  transition: color var(--t-fast);
  position: relative;
}

.mobile-nav-item i {
  font-size: 22px;
}

.mobile-nav-item--active {
  color: var(--clr-red);
}

.mobile-nav-item--cart {
  color: #fff;
  background: var(--clr-red);
  border-radius: var(--r-lg);
  margin: 4px;
  padding: var(--sp-1) var(--sp-4);
}

.mobile-nav-badge {
  position: absolute;
  top: var(--sp-2);
  right: calc(50% - 22px);
  background: var(--clr-surface);
  color: var(--clr-red);
  border-radius: var(--r-pill);
  width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }

  .wa-fab {
    bottom: var(--sp-8);
  }

  main {
    margin-bottom: 0;
  }
}

main {
  margin-bottom: 68px;
}

@media (min-width: 1024px) {
  main {
    margin-bottom: 0;
  }
}


/* ── 17. CART TOAST ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--clr-text);
  color: #fff;
  border-radius: var(--r-pill);
  padding: var(--sp-3) var(--sp-5);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}

.toast i {
  color: var(--clr-green);
  font-size: 16px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1024px) {
  .toast {
    bottom: var(--sp-8);
  }
}


/* ── 18. NAV OVERLAY ───────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 800;
  backdrop-filter: blur(2px);
}

.nav-overlay.open {
  display: block;
}


/* ── 19. SCROLL ANIMATION ──────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── 20. ACCESSIBILITY ─────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--clr-red);
  outline-offset: 2px;
}

/* ── 21. PRINT ─────────────────────────────────────────────── */
@media print {
  .announce-bar,
  .navbar,
  .mobile-bottom-nav,
  .wa-fab,
  .toast { display: none !important; }
}


/* ── 22. SHARED KEYFRAMES ──────────────────────────────────────
   Defined once here. Do NOT redefine in page-specific CSS files.
   ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── 23. GLOBAL NAVBAR ICON UPGRADES ──────────────────────────
   These classes are injected on EVERY page by app.js
   (upgradeWishlistNavButton + upgradeAccountNavButton).
   They MUST live in style.css — not in page-specific CSS files.
   ─────────────────────────────────────────────────────────── */

/* Wishlist nav link */
.wishlist-nav-btn {
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-nav-btn.active-page {
  color: var(--clr-red);
  background: var(--clr-rose);
  border-radius: var(--r-pill);
}

/* Wishlist count badge */
.wl-nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--clr-red);
  color: #fff;
  border-radius: var(--r-pill);
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  pointer-events: none;
}

/* Account nav link */
.acct-nav-btn {
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acct-nav-btn.active-page {
  color: var(--clr-red);
  background: var(--clr-rose);
  border-radius: var(--r-pill);
}
