/*
 * Theme Name:  Haizum Sunnah Store
 * Theme URI:   https://haizum.agency
 * Description: Clean Islamic bookstore WooCommerce theme for Sunnah Shopping.
 *              Inspired by darussalamstore.com — editorial, book-forward, zero noise.
 * Version:     1.0.0
 * Author:      Haizum Agency
 * Author URI:  https://haizum.agency
 * Text Domain: haizum-sunnah
 * Requires at least: 6.0
 * Requires PHP: 7.4
 */

/* ========================================================================
   DESIGN TOKENS
   ======================================================================== */
:root {
  /* Colours */
  --white:        #FFFFFF;
  --off-white:    #F7F5F2;
  --cream:        #F2EDE4;
  --text:         #1A1A1A;
  --text-light:   #5A5550;
  --text-muted:   #8A857E;
  --border:       #E2DDD6;
  --border-light: #EDE9E3;
  --red:          #C8102E;
  --red-pale:     #FFF1F3;
  --amber:        #8B6914;
  --amber-pale:   #FBF6E9;
  --amber-dark:   #6B5010;
  --green:        #2D6A4F;
  --green-pale:   #F0F7F4;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.625rem;
  --text-4xl:  3.5rem;

  /* Spacing */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Layout */
  --container:    1280px;
  --container-md: 960px;
  --container-sm: 720px;
  --pad:          clamp(1rem, 4vw, 2rem);

  /* Borders */
  --radius-sm:  4px;
  --radius:     6px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Motion */
  --dur:  160ms;
  --ease: cubic-bezier(0.25, 0, 0.1, 1);

  /* Header */
  --bar-height:    40px;
  --header-height: 64px;
}

/* ========================================================================
   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-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, var(--text-3xl)); }
h2 { font-size: clamp(1.375rem, 3vw, var(--text-2xl)); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
p { max-width: 68ch; }

/* ========================================================================
   LAYOUT
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container--md { max-width: var(--container-md); }
.container--sm { max-width: var(--container-sm); }

.section { padding: var(--s16) 0; }
.section--sm { padding: var(--s10) 0; }
.section--lg { padding: var(--s24) 0; }
.section--alt { background: var(--off-white); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--text); color: var(--white); }

.section-head {
  margin-bottom: var(--s10);
}
.section-head__kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: var(--s3);
}
.section-head__title { margin-bottom: var(--s3); }
.section-head__sub { color: var(--text-light); max-width: 52ch; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s10);
}
.row__title { margin-bottom: 0; }

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
          user-select: none;
}
.btn--primary {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.btn--primary:hover { background: #2D2A26; border-color: #2D2A26; }
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--text); background: var(--off-white); }
.btn--amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn--amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--text); }
.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--sm { padding: 8px 16px; font-size: var(--text-xs); }
.btn--lg { padding: 14px 28px; font-size: var(--text-base); }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ========================================================================
   BADGES
   ======================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.badge--sale { background: var(--red); color: var(--white); }
.badge--new { background: var(--green); color: var(--white); }
.badge--out { background: var(--border); color: var(--text-muted); }

/* ========================================================================
   PRODUCT CARD (the most important component)
   ======================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s5) var(--s4);
}
.product-grid--5 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--off-white);
  overflow: hidden;
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease);
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.03); }
.product-card__badge {
  position: absolute;
  top: var(--s2);
  left: var(--s2);
}
.product-card__wishlist {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { color: var(--red); }
.product-card__wishlist.is-active { opacity: 1; color: var(--red); }
.product-card__wishlist.is-active svg { fill: var(--red); }

.product-card__body {
  padding: var(--s3) var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  flex: 1;
}
.product-card__publisher {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.product-card__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--amber); }

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card__stars { color: #F5A623; font-size: 0.7rem; }
.product-card__review-count { font-size: var(--text-xs); color: var(--text-muted); }

.product-card__price {
  margin-top: auto;
  padding-top: var(--s2);
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  flex-wrap: wrap;
}
.product-card__price-now {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
}
.product-card__price-was {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-card__save {
  font-size: var(--text-xs);
  color: var(--red);
  font-weight: 600;
}

.product-card__action {
  margin-top: var(--s3);
}
.product-card__atc {
  width: 100%;
  padding: 9px 16px;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  letter-spacing: 0.02em;
}
.product-card__atc:hover { background: #2D2A26; }
.product-card__atc.added { background: var(--green); }

/* Horizontal scroll variant */
.product-scroll {
  display: flex;
  gap: var(--s4);
  overflow-x: auto;
  padding-bottom: var(--s3);
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-scroll .product-card {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
}

/* ========================================================================
   STAR RATING
   ======================================================================== */
.star-rating {
  display: inline-flex;
  gap: 1px;
}
.star-rating svg { width: 12px; height: 12px; }
.star-rating .filled { fill: #F5A623; }
.star-rating .empty { fill: #E0D9D0; }

/* ========================================================================
   TRUST BAR (4 icons)
   ======================================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  padding: var(--s8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.trust-bar__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.trust-bar__label { font-weight: 700; font-size: var(--text-sm); }
.trust-bar__sub { font-size: var(--text-xs); color: var(--text-muted); }

/* ========================================================================
   BREADCRUMB
   ======================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--s4) 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text); }

/* ========================================================================
   ANNOUNCEMENT BAR
   ======================================================================== */
.announcement-bar {
  background: var(--text);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: center;
  padding: 10px var(--pad);
  position: sticky;
  top: 0;
  z-index: 100;
  letter-spacing: 0.03em;
}
.announcement-bar a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--bar-height);
  z-index: 90;
}
.site-header__inner {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: var(--s6);
  height: var(--header-height);
}
.site-header__logo {
  display: flex;
  align-items: center;
}
.site-header__logo img { max-height: 44px; width: auto; }
.site-header__logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Search */
.header-search {
  position: relative;
  max-width: 600px;
  width: 100%;
  justify-self: center;
}
.header-search__form {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0 var(--s3) 0 var(--s5);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header-search__form:focus-within {
  border-color: var(--text);
  background: var(--white);
}
.header-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  padding: 10px 0;
  outline: none;
}
.header-search__input::placeholder { color: var(--text-muted); }
.header-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--text);
  border-radius: 50%;
  color: var(--white);
  flex-shrink: 0;
}

/* Search suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 200;
  overflow: hidden;
}
.search-suggestion {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background var(--dur) var(--ease);
}
.search-suggestion:hover { background: var(--off-white); }
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion__img {
  width: 36px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  flex-shrink: 0;
}
.search-suggestion__title { font-size: var(--text-sm); font-weight: 600; }
.search-suggestion__price { font-size: var(--text-xs); color: var(--amber); font-weight: 700; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-light);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
  position: relative;
  text-decoration: none;
}
.header-action:hover { color: var(--text); }
.header-action svg { width: 22px; height: 22px; }
.header-action__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  background: var(--red);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Navigation */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}
.site-nav__item {
  position: relative;
}
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 var(--s4);
  height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--amber); background: var(--off-white); }
.site-nav__link--sale { color: var(--red); }
.site-nav__link--sale:hover { color: var(--red); }
.site-nav__caret { width: 14px; height: 14px; color: var(--text-muted); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  padding: var(--s6);
  display: none;
  z-index: 180;
  min-width: 520px;
}
.site-nav__item:hover .mega-menu { display: flex; }
.mega-menu__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.mega-menu__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border);
}
.mega-menu__links { display: flex; flex-direction: column; gap: var(--s2); }
.mega-menu__link {
  font-size: var(--text-sm);
  color: var(--text-light);
  transition: color var(--dur) var(--ease);
}
.mega-menu__link:hover { color: var(--amber); }
.mega-menu__see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--amber);
  margin-top: var(--s3);
}
.mega-menu__bestsellers {
  border-left: 1px solid var(--border);
  padding-left: var(--s6);
}
.mega-menu__product-mini {
  display: flex;
  gap: var(--s3);
  align-items: center;
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border-light);
}
.mega-menu__product-mini:last-child { border-bottom: none; margin-bottom: 0; }
.mega-menu__product-mini img {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.mega-menu__product-mini-title { font-size: var(--text-xs); font-weight: 600; }
.mega-menu__product-mini-price { font-size: var(--text-xs); color: var(--amber); font-weight: 700; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 250ms var(--ease);
  overflow-y: auto;
  padding: var(--s6) var(--pad) var(--s16);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--s6);
}
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__link {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 700;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu__sub { display: none; flex-direction: column; gap: var(--s2); padding: var(--s3) 0 var(--s4) var(--s4); }
.mobile-menu__sub.is-open { display: flex; }
.mobile-menu__sub a { font-family: var(--font-body); font-size: var(--text-base); color: var(--text-light); font-weight: 500; }
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 290;
  display: none;
}
.mobile-menu-backdrop.is-open { display: block; }

/* ========================================================================
   MINI CART (slide-out)
   ======================================================================== */
.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--white);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 250ms var(--ease);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.mini-cart.is-open { transform: translateX(0); }
.mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--border);
}
.mini-cart__head h3 { font-family: var(--font-display); font-size: var(--text-lg); }
.mini-cart__progress { background: var(--off-white); padding: var(--s4) var(--s6); font-size: var(--text-xs); color: var(--text-light); }
.mini-cart__progress-bar { height: 3px; background: var(--border); margin-top: var(--s2); border-radius: 2px; }
.mini-cart__progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 400ms var(--ease); }
.mini-cart__items { flex: 1; overflow-y: auto; padding: var(--s4) var(--s6); }
.mini-cart__item {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border-light);
}
.mini-cart__item-img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--off-white);
}
.mini-cart__item-title { font-size: var(--text-sm); font-weight: 600; margin-bottom: 4px; }
.mini-cart__item-meta { font-size: var(--text-xs); color: var(--text-muted); }
.mini-cart__item-price { font-weight: 700; font-size: var(--text-sm); color: var(--amber); margin-top: var(--s2); }
.mini-cart__qty { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.mini-cart__qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700; color: var(--text);
  cursor: pointer;
}
.mini-cart__qty-num { font-size: var(--text-sm); font-weight: 600; min-width: 20px; text-align: center; }
.mini-cart__foot {
  padding: var(--s5) var(--s6);
  border-top: 1px solid var(--border);
}
.mini-cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s4);
}
.mini-cart__subtotal-label { font-size: var(--text-sm); color: var(--text-light); }
.mini-cart__subtotal-amount { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.mini-cart__empty { text-align: center; padding: var(--s16) var(--s8); color: var(--text-muted); }
.mini-cart__empty svg { width: 48px; height: 48px; margin: 0 auto var(--s4); color: var(--border); }
.mini-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 390;
  display: none;
}
.mini-cart-backdrop.is-open { display: block; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  margin-top: var(--s20);
}
.footer-trust {
  background: var(--off-white);
  padding: var(--s8) 0;
  border-top: 1px solid var(--border);
}
.footer-trust .trust-bar { border: none; }
.footer-main { padding: var(--s16) 0; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--s10);
}
.footer-brand__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s3);
}
.footer-brand__tagline { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--s5); max-width: 28ch; }
.footer-social { display: flex; gap: var(--s3); }
.footer-social__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-social__icon:hover { border-color: var(--white); color: var(--white); }
.footer-col__title { font-size: var(--text-sm); font-weight: 700; color: var(--white); margin-bottom: var(--s4); letter-spacing: 0.04em; }
.footer-links { display: flex; flex-direction: column; gap: var(--s2); }
.footer-links a { font-size: var(--text-sm); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: var(--s3); }
.footer-contact__item { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--text-sm); }
.footer-contact__item svg { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; color: var(--amber); }

/* Newsletter in footer */
.footer-newsletter { margin-top: var(--s6); }
.footer-newsletter__form {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s3);
}
.footer-newsletter__input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--white);
}
.footer-newsletter__input::placeholder { color: rgba(255,255,255,0.4); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--s5) 0;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}
.footer-bottom__links { display: flex; gap: var(--s5); }
.footer-bottom__links a:hover { color: rgba(255,255,255,0.8); }

/* ========================================================================
   WHATSAPP FLOAT
   ======================================================================== */
.wa-float {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 80;
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ========================================================================
   PAGINATION
   ======================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s12);
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
}
.page-numbers:hover { border-color: var(--border); color: var(--text); }
.page-numbers.current { background: var(--text); color: var(--white); }
.page-numbers.dots { border: none; }

/* ========================================================================
   UTILITY
   ======================================================================== */
.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; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1100px) {
  .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--s8); }
}
@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .product-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .site-header__inner { gap: var(--s3); }
  .header-search { order: 3; grid-column: 1/-1; }
}
