/*
Theme Name:   Astra Distrevo
Template:     astra
Version:      3.0.0
Description:  Child theme Distrevo – design MediaWorld-style, professionale e conversion-oriented
*/

/* ── RESET & VARIABILI ──────────────────────────────────────────────────────── */
:root {
  --red:       #e60012;
  --red-dk:    #c5000f;
  --red-light: #fff0f0;
  --navy:      #1a1a2e;
  --navy-dk:   #0f0f1a;
  --navy-lt:   #2a2a4a;
  --dark:      #222;
  --gray-50:   #fafafa;
  --gray-100:  #f5f5f5;
  --gray-200:  #eeeeee;
  --gray-300:  #e0e0e0;
  --gray-400:  #bdbdbd;
  --gray-500:  #9e9e9e;
  --gray-600:  #757575;
  --gray-700:  #616161;
  --gray-800:  #424242;
  --text:      #212121;
  --text-sec:  #616161;
  --white:     #ffffff;
  --green:     #00a046;
  --orange:    #f57c00;
  --yellow:    #ffd600;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:     1320px;
  --header-h:  64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

.d-container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── UTILITY BAR (top) ──────────────────────────────────────────────────────── */
.d-utilbar {
  background: var(--navy-dk);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.d-utilbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.d-utilbar__promos {
  display: flex;
  gap: 24px;
}
.d-utilbar__promo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.d-utilbar__promo strong { color: #fff; }
.d-utilbar__links {
  display: flex;
  gap: 16px;
}
.d-utilbar__links a {
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.d-utilbar__links a:hover { color: #fff; }

/* ── HEADER MAIN ────────────────────────────────────────────────────────────── */
.d-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.d-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Hamburger mobile */
.d-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px;
  line-height: 1;
}

/* Logo */
.d-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.d-logo span { color: var(--red); }

/* Search */
.d-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}
.d-search__form {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  height: 42px;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.d-search__form:focus-within {
  border-color: var(--red);
}
.d-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.d-search__input::placeholder { color: var(--gray-500); }
.d-search__btn {
  background: var(--red);
  border: none;
  padding: 0 20px;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.d-search__btn:hover { background: var(--red-dk); }
.d-search__btn svg { width: 20px; height: 20px; }

/* Header actions */
.d-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.d-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.85);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .15s;
  position: relative;
  white-space: nowrap;
}
.d-action:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.d-action svg { width: 22px; height: 22px; }
.d-action__badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.d-action__label { display: block; }

/* ── CATEGORY NAV BAR ───────────────────────────────────────────────────────── */
.d-catnav {
  background: var(--red);
  position: relative;
  z-index: 9998;
}
.d-catnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  height: 44px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.d-catnav__inner::-webkit-scrollbar { display: none; }
.d-catnav__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
  position: relative;
}
.d-catnav__item:hover {
  background: rgba(0,0,0,.15);
}
.d-catnav__item--all {
  background: rgba(0,0,0,.2);
  font-weight: 700;
  padding: 0 20px;
}
.d-catnav__item--all:hover {
  background: rgba(0,0,0,.3);
}
.d-catnav__arrow {
  font-size: 8px;
  opacity: .7;
  margin-left: 2px;
}

/* Megamenu dropdown */
.d-megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
  z-index: 9997;
  padding: 32px 0;
}
.d-catnav__item:hover .d-megamenu,
.d-megamenu:hover {
  display: block;
}
.d-megamenu__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.d-megamenu__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.d-megamenu__col ul { display: flex; flex-direction: column; gap: 6px; }
.d-megamenu__col li a {
  font-size: 13px;
  color: var(--text-sec);
  padding: 4px 0;
  display: block;
  transition: color .15s;
}
.d-megamenu__col li a:hover { color: var(--red); }

/* ── MOBILE MENU OVERLAY ────────────────────────────────────────────────────── */
.d-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s;
}
.d-mobile-overlay.open {
  display: block;
  opacity: 1;
}
.d-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 100000;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.d-mobile-menu.open {
  transform: translateX(0);
}
.d-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.d-mobile-menu__head .d-logo { font-size: 1.3rem; }
.d-mobile-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 4px;
  cursor: pointer;
}
.d-mobile-search {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.d-mobile-search form {
  display: flex;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}
.d-mobile-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
}
.d-mobile-search button {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
}
.d-mobile-nav {
  flex: 1;
  padding: 8px 0;
}
.d-mobile-nav__section {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
}
.d-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.d-mobile-nav a:hover { background: var(--gray-50); }
.d-mobile-nav a svg { width: 20px; height: 20px; color: var(--gray-500); flex-shrink: 0; }
.d-mobile-nav a.d-mobile-nav--red { color: var(--red); font-weight: 700; }

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.hp-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 40%, var(--navy-lt) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: visible;
}
.hp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(230,0,18,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hp-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
}
.hp-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230,0,18,.15);
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(230,0,18,.3);
  margin-bottom: 20px;
}
.hp-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hp-hero__title span {
  color: var(--yellow);
}
.hp-hero__sub {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Hero search */
.hp-hero__search {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
}
.hp-hero__search-form {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.hp-hero__search-form:focus-within { border-color: var(--red); }
.hp-hero__search-icon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--gray-500);
}
.hp-hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 8px;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}
.hp-hero__search-input::placeholder { color: var(--gray-400); }
.hp-hero__search-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}
.hp-hero__search-btn:hover { background: var(--red-dk); }
.hp-hero__search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 6px 4px;
  font-size: 12px;
}
.hp-hero__search-hints span { color: var(--gray-500); font-weight: 500; }
.hp-hero__search-hints a {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  transition: all .15s;
}
.hp-hero__search-hints a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Hero featured cards */
.hp-hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hp-hero__card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  transition: all .2s;
}
.hp-hero__card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.hp-hero__card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.hp-hero__card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.hp-hero__card-text {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* ── TRUST BAR ──────────────────────────────────────────────────────────────── */
.hp-trust {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.hp-trust__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.hp-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hp-trust__icon {
  width: 40px;
  height: 40px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hp-trust__text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-600);
}

/* ── SECTIONS ───────────────────────────────────────────────────────────────── */
.hp-section {
  padding: 48px 0;
}
.hp-section--gray {
  background: var(--gray-50);
}
.hp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  margin-bottom: 24px;
}
.hp-section__title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2px;
  letter-spacing: -.3px;
}
.hp-section__sub {
  color: var(--gray-600);
  font-size: 13px;
  margin: 0;
}
.hp-section__more {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: gap .2s;
}
.hp-section__more:hover { gap: 8px; color: var(--red-dk); }

/* ── CATEGORY GRID ──────────────────────────────────────────────────────────── */
.hp-cats {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.hp-cat {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  min-height: 100px;
}
.hp-cat:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(230,0,18,.1);
  transform: translateY(-3px);
}
.hp-cat__icon {
  width: 48px;
  height: 48px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background .2s;
}
.hp-cat:hover .hp-cat__icon { background: var(--red-light); }
.hp-cat__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.hp-cat__count {
  font-size: 10px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
}
.hp-cat:hover .hp-cat__count {
  background: var(--red-light);
  color: var(--red);
}
.hp-cat--all {
  border-style: dashed;
  background: var(--gray-50);
}
.hp-cat--all:hover { border-style: solid; }

/* ── PRODUCT GRID ───────────────────────────────────────────────────────────── */
.hp-products {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.hp-prod {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.hp-prod:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.hp-prod__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.hp-prod__badge--trend {
  background: linear-gradient(135deg, #ff6b35, var(--red));
}
.hp-prod__badge--new {
  background: var(--green);
}
.hp-prod__img {
  aspect-ratio: 1;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-100);
}
.hp-prod__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s;
}
.hp-prod:hover .hp-prod__img img { transform: scale(1.06); }
.hp-prod__placeholder {
  font-size: 48px;
  opacity: .2;
}
.hp-prod__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hp-prod__brand {
  font-size: 10px;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.hp-prod__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.hp-prod:hover .hp-prod__name { color: var(--red); }
.hp-prod__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.hp-prod__old {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: line-through;
}
.hp-prod__cur {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--red);
}
.hp-prod__iva {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
}
.hp-prod__stock {
  font-size: 11px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hp-prod__stock--in { color: var(--green); }
.hp-prod__stock--out { color: var(--orange); }
.hp-prod__add {
  display: block;
  margin-top: 10px;
  padding: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: background .2s;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hp-prod__add:hover { background: var(--red); }

/* ── BRAND BAR ──────────────────────────────────────────────────────────────── */
.hp-brands {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hp-brand {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 40px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: all .2s;
}
.hp-brand:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 2px 8px rgba(230,0,18,.1);
}

/* ── WHY DISTREVO ───────────────────────────────────────────────────────────── */
.hp-why {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hp-why__item {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .2s;
}
.hp-why__item:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.hp-why__icon {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.hp-why__item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.hp-why__item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── CTA BANNER ─────────────────────────────────────────────────────────────── */
.hp-cta {
  background: linear-gradient(135deg, var(--navy-dk), var(--navy), var(--navy-lt));
  padding: 56px 0;
}
.hp-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.hp-cta__title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.hp-cta__sub {
  color: rgba(255,255,255,.6);
  font-size: 15px;
}
.hp-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hp-btn {
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  border: none;
}
.hp-btn--red {
  background: var(--red);
  color: #fff;
}
.hp-btn--red:hover { background: var(--red-dk); color: #fff; }
.hp-btn--white {
  background: #fff;
  color: var(--navy);
}
.hp-btn--white:hover { background: var(--gray-100); color: var(--navy); }
.hp-btn--outline {
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  background: transparent;
}
.hp-btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ── NEWSLETTER SECTION ─────────────────────────────────────────────────────── */
.hp-newsletter {
  background: var(--gray-50);
  padding: 48px 0;
}
.hp-newsletter__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.hp-newsletter__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.hp-newsletter__sub {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 24px;
}
.hp-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.hp-newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.hp-newsletter__input:focus { border-color: var(--red); }
.hp-newsletter__btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.hp-newsletter__btn:hover { background: var(--red-dk); }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.d-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.7);
  padding-top: 48px;
}
.d-footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.d-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.d-footer__brand .d-logo { color: #fff; font-size: 1.4rem; }
.d-footer__brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}
.d-footer__col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.d-footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.d-footer__col li a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.d-footer__col li a:hover { color: #fff; }

.d-footer__payments {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}
.d-footer__payments-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.d-footer__payments-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.d-footer__payment-icon {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
}

.d-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
}
.d-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 16px;
}
.d-footer__company {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
}
.d-footer__company strong { color: rgba(255,255,255,.5); }
.d-footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-align: right;
}

/* ── COOKIE BANNER ──────────────────────────────────────────────────────────── */
.d-cookie {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--navy-dk);
  color: #fff;
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  border-top: 3px solid var(--red);
}
.d-cookie.show { display: block; }
.d-cookie__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.d-cookie__text {
  flex: 1;
  min-width: 280px;
}
.d-cookie__text strong {
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
}
.d-cookie__text p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}
.d-cookie__text a { color: var(--yellow); text-decoration: underline; }
.d-cookie__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.d-cookie__btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.d-cookie__btn--accept {
  background: var(--red);
  color: #fff;
}
.d-cookie__btn--accept:hover { background: var(--red-dk); }
.d-cookie__btn--necessary {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
}
.d-cookie__btn--necessary:hover {
  border-color: #fff;
  color: #fff;
}

/* ── AUTOCOMPLETE SEARCH ────────────────────────────────────────────────────── */
.distrevo-search-wrap { position: relative; }
.distrevo-autocomplete {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.distrevo-autocomplete.open { display: block; }
.distrevo-ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--gray-50);
  transition: background .1s;
}
.distrevo-ac-item:last-of-type { border-bottom: none; }
.distrevo-ac-item:hover,
.distrevo-ac-item.active { background: var(--gray-50); }
.distrevo-ac-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.distrevo-ac-img-placeholder {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.distrevo-ac-info { flex: 1; min-width: 0; }
.distrevo-ac-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.distrevo-ac-meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}
.distrevo-ac-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
.distrevo-ac-footer {
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid var(--gray-100);
}
.distrevo-ac-footer:hover { background: var(--red-light); }

/* ── WOOCOMMERCE OVERRIDES ──────────────────────────────────────────────────── */
.ast-container { max-width: var(--max-w) !important; }

.woocommerce ul.products li.product .price {
  color: var(--red) !important;
  font-weight: 800;
  font-size: 1.1rem;
}
.woocommerce a.button,
.woocommerce button.button {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--red) !important;
}
.woocommerce span.onsale {
  background: var(--red) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700;
}
.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--gray-600);
  padding: 12px 0;
  margin-bottom: 20px !important;
}
.woocommerce-breadcrumb a { color: var(--red); }
.woocommerce .woocommerce-products-header__title,
h1.entry-title, h1.page-title {
  color: var(--navy) !important;
  font-weight: 800 !important;
  font-size: 1.6rem !important;
  margin-bottom: 20px !important;
}

/* Shop page toolbar */
.distrevo-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}
.distrevo-ppp-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}
.distrevo-ppp-wrap select {
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
}
.distrevo-results-count { font-size: 13px; color: var(--gray-600); }
.distrevo-view-toggle { display: flex; gap: 4px; }
.distrevo-view-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: var(--gray-600);
  font-size: 15px;
}
.distrevo-view-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* WOOF filters */
.woof_container h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.woof_price_filter .ui-slider-range { background: var(--red) !important; }
.woof_price_filter .ui-slider-handle { background: var(--red) !important; border-color: var(--red) !important; }
.woof .woof_submit_search_form_container button {
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  width: 100%;
}

/* ── SINGLE PRODUCT PAGE ────────────────────────────────────────────────────── */
.single-product .summary {
  padding: 0 0 0 20px;
}
.single-product .product_title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  line-height: 1.3;
  margin-bottom: 12px !important;
}
.single-product .price {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  color: var(--red) !important;
}
.single-product .price del {
  font-size: 1rem !important;
  color: var(--gray-400) !important;
}
.single-product .woocommerce-tabs .tabs li.active a {
  color: var(--red) !important;
  border-bottom-color: var(--red) !important;
}
.single-product .single_add_to_cart_button {
  background: var(--red) !important;
  font-size: 16px !important;
  padding: 14px 32px !important;
  border-radius: var(--radius) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.single-product .single_add_to_cart_button:hover {
  background: var(--red-dk) !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hp-hero__cards { display: none; }
  .hp-why { grid-template-columns: repeat(2, 1fr); }
  .d-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .d-catnav__item:nth-child(n+7) { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* Utility bar hide */
  .d-utilbar { display: none; }

  /* Header mobile */
  .d-hamburger { display: flex; }
  .d-search { display: none; }
  .d-action__label { display: none; }
  .d-action { padding: 8px; }
  .d-logo { font-size: 1.3rem; }
  .d-header__inner { gap: 8px; }

  /* Category nav hide */
  .d-catnav { display: none; }

  /* Hero */
  .hp-hero { padding: 40px 0 60px; }
  .hp-hero__title { font-size: 1.7rem; }
  .hp-hero__search-btn { padding: 0 16px; font-size: 13px; }

  /* Trust bar */
  .hp-trust__inner { flex-wrap: wrap; justify-content: center; }
  .hp-trust__item:nth-child(n+3) { display: none; }

  /* Grids */
  .hp-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hp-cat { padding: 14px 8px 12px; }
  .hp-cat__icon { width: 36px; height: 36px; font-size: 18px; }
  .hp-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hp-prod__body { padding: 10px 12px 12px; }
  .hp-prod__cur { font-size: 1.1rem; }
  .hp-why { grid-template-columns: 1fr; }
  .hp-section { padding: 36px 0; }

  /* CTA */
  .hp-cta__inner { flex-direction: column; text-align: center; }
  .hp-cta__btns { justify-content: center; }

  /* Footer */
  .d-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .d-footer__bottom-inner { flex-direction: column; }
  .d-footer__copy { text-align: left; }

  /* Newsletter */
  .hp-newsletter__form { flex-direction: column; }
}

@media (max-width: 480px) {
  .hp-cats { grid-template-columns: repeat(2, 1fr); }
  .hp-hero__search-hints { display: none; }
  .hp-products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hp-prod__img { aspect-ratio: 4/3; }
  .hp-prod__body { padding: 8px 10px 10px; }
  .hp-prod__name { font-size: 12px; -webkit-line-clamp: 2; }
  .hp-prod__cur { font-size: 1rem; }
  .hp-prod__add { display: none; }
}

/* Homepage: hide header search (hero has prominent search) */
.home .d-search { display: none !important; }
.home .d-header__inner { justify-content: space-between; }
