/* =========================================================
   Construcciones del Oeste · eCommerce
   Identidad visual oficial: AZUL NAVY + ROJO + BLANCO
   "El Corralón de la Gente"
   ========================================================= */

:root {
  --primary: #2E2E9E;          /* Azul violáceo OFICIAL del logo CO (~Pantone 2735) */
  --primary-dark: #1F1F75;     /* Azul más oscuro para hovers */
  --primary-light: #E5E5F2;    /* Azul muy claro para fondos */
  --accent: #E72028;           /* Rojo OFICIAL del logo CO (~Pantone Red 032) */
  --accent-dark: #B81920;      /* Rojo oscuro */
  --accent-light: #FCE4E5;     /* Rojo muy claro */
  --dark: #1A1F2E;             /* Negro azulado para textos */
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #adb5bd;
  --gray-300: #dee2e6;
  --gray-100: #f1f3f5;
  --gray-50: #f8f9fa;
  --white: #ffffff;
  --success: #25D366;
  --danger: #D32F2F;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 10px 15px -3px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);

  --container: 1240px;
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.55;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== TOPBAR ==================== */
.topbar {
  background: var(--dark);
  color: var(--gray-300);
  font-size: 13px;
  padding: 8px 0;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
}
.topbar__item--accent {
  color: var(--accent);
  font-weight: 600;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 24px;
}

/* Logo - PNG oficial completo (img/logo-co-oficial.png) */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity .2s;
}
.logo:hover img { opacity: .85; }
@media (max-width: 540px) {
  .logo img { height: 44px; }
}

/* Search */
.search {
  display: flex;
  background: var(--gray-50);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  justify-self: center;
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); background: var(--white); }
.search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font: inherit;
  outline: none;
}
.search button {
  padding: 0 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  transition: background .2s;
}
.search button:hover { background: var(--accent-dark); }

/* Nav */
.nav { display: flex; align-items: center; gap: 22px; }
.nav__link {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__link:hover { color: var(--accent); }
.nav__link--active { color: var(--primary); }
.nav__link--active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.nav__cart {
  position: relative;
  background: var(--gray-100);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: all .2s;
}
.nav__cart:hover { background: var(--accent); color: var(--white); }
.nav__count {
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.nav__cart:hover .nav__count { background: var(--white); color: var(--accent); }
.nav__toggle {
  display: none;
  font-size: 26px;
  color: var(--dark);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #1F1F75 0%, #2E2E9E 55%, #3E3EBE 100%);
  color: var(--white);
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(231,32,40,.22), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.08), transparent 45%),
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(255,255,255,.025) 30px 31px);
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  background: rgba(231,32,40,.25);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.hero__title--accent {
  color: #ff6b6b;
  background: linear-gradient(135deg, #ff8a8a, #ff5252);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 760px;
}
.hero__feature {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 16px 18px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.hero__feature-ico { font-size: 28px; }
.hero__feature strong { display: block; font-size: 15px; }
.hero__feature small { color: rgba(255,255,255,.65); font-size: 12px; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(211,47,47,.35);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(211,47,47,.45); }
.btn--secondary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(21,54,140,.3);
}
.btn--secondary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn--ghost:hover { background: rgba(255,255,255,.18); }
section:not(.hero):not(.section--dark) .btn--ghost {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--gray-300);
}
section:not(.hero):not(.section--dark) .btn--ghost:hover {
  background: var(--gray-50);
  border-color: var(--accent);
  color: var(--accent);
}
.btn--white {
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* ==================== SECTIONS ==================== */
.section { padding: 80px 0; }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--dark); color: var(--white); }
.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  text-align: left;
  max-width: none;
  flex-wrap: wrap;
}
.section__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section__eyebrow--light { color: #ff8a8a; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.section__title--light { color: var(--white); }
.section__sub {
  color: var(--gray-700);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== CATEGORÍAS ==================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--cat-color, var(--accent));
  transform: scaleX(.3);
  transform-origin: left;
  transition: transform .3s ease;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--cat-color, var(--accent));
  box-shadow: var(--shadow-lg);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card__icon {
  font-size: 42px;
  margin-bottom: 14px;
  display: inline-block;
  background: var(--gray-50);
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.cat-card p {
  color: var(--gray-700);
  font-size: 14px;
  flex: 1;
  margin-bottom: 16px;
}
.cat-card__cta {
  color: var(--cat-color, var(--accent));
  font-weight: 700;
  font-size: 14px;
}

/* ==================== PRODUCT GRID ==================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.prod {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.prod:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}
.prod__img {
  aspect-ratio: 1;
  background: var(--gray-50);
  display: grid;
  place-items: center;
  font-size: 70px;
  position: relative;
  overflow: hidden;
}
.prod__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.prod__badge--new { background: var(--success); }
.prod__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.prod__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.prod__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 40px;
}
.prod__unit { font-size: 12px; color: var(--gray-700); margin-bottom: 12px; }
.prod__bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.prod__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.prod__price small { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.prod__add {
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  transition: all .2s;
  flex-shrink: 0;
}
.prod__add:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}

/* ==================== PROMO BANNER ==================== */
.promo {
  background: linear-gradient(135deg, var(--accent) 0%, #ff5252 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,.06) 40px 41px);
}
.promo__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.promo__tag {
  display: inline-block;
  background: rgba(0,0,0,.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.promo h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.promo h2 span {
  background: var(--primary);
  padding: 0 10px;
  border-radius: 6px;
}
.promo p { opacity: .95; font-size: 16px; }

/* ==================== BENEFICIOS ==================== */
.bnf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.bnf {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: left;
  transition: all .25s ease;
}
.bnf:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.bnf__ico {
  font-size: 36px;
  background: var(--accent-light);
  color: var(--accent);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.bnf h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.bnf p { color: var(--gray-700); font-size: 14px; }

/* ==================== CONTACTO ==================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.contact__text {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  margin-bottom: 28px;
  margin-top: 8px;
}
.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.contact__list li {
  font-size: 15px;
  color: rgba(255,255,255,.85);
}
.contact__list a {
  color: #ff8a8a;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255,138,138,.5);
}
.contact__list a:hover { color: var(--white); border-bottom-color: var(--white); }
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.1);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0d0d1a;
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .5px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a:hover { color: #ff8a8a; }
.footer__about { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.footer__social a {
  background: rgba(255,255,255,.06);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.footer__social a:hover { background: var(--accent); color: var(--white); }
/* Logo en footer (fondo oscuro): pastilla blanca con padding alrededor del PNG */
.logo--footer {
  background: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  display: inline-flex;
}
.logo--footer img { height: 50px; }

/* Sello PGB Group en footer */
.pgb-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.pgb-mark img {
  height: 36px;
  width: auto;
  background: var(--white);
  padding: 4px;
  border-radius: 6px;
}
.pgb-mark strong { color: var(--white); font-size: 13px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ==================== WHATSAPP FLOAT ==================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  z-index: 99;
  transition: all .25s ease;
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50% { box-shadow: 0 6px 30px rgba(37,211,102,.85), 0 0 0 12px rgba(37,211,102,.12); }
}

/* ==================== CATÁLOGO (productos.html) ==================== */
.catalog {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 50px 0;
}
.filters {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.filters h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.filters__group { margin-bottom: 28px; }
.filters__group:last-child { margin-bottom: 0; }
.filters label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  transition: color .15s;
}
.filters label:hover { color: var(--accent); }
.filters input[type="checkbox"], .filters input[type="radio"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}
.filters__price {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filters__price input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
}
.filters__clear {
  margin-top: 14px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 10px;
  border-radius: var(--radius-sm);
  width: 100%;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
}
.filters__clear:hover { background: var(--danger); color: var(--white); }

.catalog__main h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.catalog__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-100);
}
.catalog__count { color: var(--gray-700); font-size: 14px; }
.catalog__sort {
  padding: 9px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  background: var(--white);
}
.catalog__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-700);
}
.catalog__empty h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 8px;
}

/* ==================== CART (carrito.html) ==================== */
.cart {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding: 50px 0 80px;
}
.cart h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
}
.cart__items {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart__row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 18px;
  padding: 18px;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
}
.cart__row:last-child { border-bottom: none; }
.cart__img {
  width: 80px; height: 80px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 36px;
}
.cart__info strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
}
.cart__info small { color: var(--gray-500); font-size: 12px; }
.cart__qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart__qty button {
  width: 32px; height: 36px;
  background: var(--gray-50);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-700);
  transition: all .15s;
}
.cart__qty button:hover { background: var(--accent); color: var(--white); }
.cart__qty span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.cart__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  min-width: 110px;
  text-align: right;
}
.cart__remove {
  font-size: 22px;
  color: var(--gray-500);
  padding: 8px;
  transition: color .15s;
}
.cart__remove:hover { color: var(--danger); }

.cart__summary {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
  align-self: start;
}
.cart__summary h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
}
.cart__line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: var(--gray-700);
}
.cart__line--total {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  border-top: 2px dashed var(--gray-300);
  margin-top: 14px;
  padding-top: 18px;
}
.cart__line--total strong { color: var(--accent); }
.cart__note {
  background: var(--accent-light);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-dark);
  margin: 18px 0;
  border-left: 4px solid var(--accent);
}
.cart__empty {
  text-align: center;
  padding: 80px 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.cart__empty .ico { font-size: 80px; margin-bottom: 18px; }
.cart__empty h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 10px;
}
.cart__empty p { color: var(--gray-700); margin-bottom: 24px; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--success);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .cart { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header__inner {
    grid-template-columns: auto auto;
  }
  .search { grid-column: 1 / -1; order: 3; }
  .nav { gap: 12px; }
  .nav__link { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__link {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
  }
  .nav.is-open {
    position: relative;
  }
  .topbar__inner { font-size: 12px; gap: 4px 14px; }
  .promo__inner { grid-template-columns: 1fr; text-align: center; }
  .contact { grid-template-columns: 1fr; gap: 30px; }
  .contact__map { height: 320px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 80px; }
  .cart__row {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      'img info remove'
      'img qty price';
    gap: 12px;
  }
  .cart__img { grid-area: img; width: 60px; height: 60px; font-size: 28px; }
  .cart__info { grid-area: info; }
  .cart__qty { grid-area: qty; justify-self: start; }
  .cart__price { grid-area: price; min-width: 0; }
  .cart__remove { grid-area: remove; }
}

@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { font-size: 36px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .logo__text strong { font-size: 16px; }
  .logo__text span { font-size: 12px; letter-spacing: 3px; }
  .logo__mark { width: 42px; height: 42px; font-size: 17px; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
