/* ─── Ciber Otaku — Blanco Total Design System ───────────────────────────── */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --co-accent:       #E8000D;
  --co-accent-dark:  #B5000A;
  --co-accent-light: #FFF0F0;
  --co-bg:           #FAFAFA;
  --co-surface:      #FFFFFF;
  --co-surface-alt:  #F4F4F4;
  --co-text:         #111111;
  --co-muted:        #666666;
  --co-light:        #999999;
  --co-border:       #E5E5E5;
  --co-border-strong:#CCCCCC;
  --co-success:      #16A34A;
  --co-warning:      #D97706;
  --co-info:         #0066CC;
  --co-hero-bg:      #111111;
  --co-footer-bg:    #111111;

  --co-radius:    10px;
  --co-radius-sm:  6px;
  --co-radius-lg: 14px;

  --co-shadow:    0 1px 3px rgba(0,0,0,0.08);
  --co-shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --co-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --co-container: 1280px;
  --co-gap: 20px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--co-bg);
  color: var(--co-text);
  overflow-x: hidden;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: 'DM Sans', sans-serif; cursor: pointer; }
input, select, textarea { font-family: 'DM Sans', sans-serif; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--co-accent); }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, .co-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1;
}
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.co-container {
  max-width: var(--co-container);
  margin: 0 auto;
  padding: 0 24px;
}

.co-section {
  padding: 52px 24px;
}
.co-section--alt {
  background: var(--co-surface);
}

.co-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--co-gap);
}
.co-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--co-gap);
}
.co-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--co-gap);
}

.co-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.co-section-header h2 {
  margin: 0;
}
.co-section-header p {
  color: var(--co-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--co-radius-sm);
  border: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.co-btn-primary {
  background: var(--co-accent);
  color: #fff;
  border-color: var(--co-accent);
}
.co-btn-primary:hover {
  background: var(--co-accent-dark);
  border-color: var(--co-accent-dark);
}
.co-btn-secondary {
  background: transparent;
  color: var(--co-accent);
  border-color: var(--co-accent);
}
.co-btn-secondary:hover {
  background: var(--co-accent-light);
}
.co-btn-ghost {
  background: transparent;
  color: var(--co-text);
  border-color: var(--co-border);
}
.co-btn-ghost:hover {
  background: var(--co-surface-alt);
  border-color: var(--co-border-strong);
}
.co-btn-dark {
  background: var(--co-text);
  color: #fff;
  border-color: var(--co-text);
}
.co-btn-dark:hover { background: #333; }
.co-btn-sm { font-size: 13px; padding: 7px 14px; }
.co-btn-lg { font-size: 15px; padding: 14px 28px; }
.co-btn-full { width: 100%; }

/* cart button in header */
.co-btn-cart {
  background: var(--co-accent);
  color: #fff;
  border: none;
  border-radius: var(--co-radius-sm);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.co-btn-cart:hover { background: var(--co-accent-dark); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.co-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  color: #fff;
}
.co-badge--nuevo    { background: #0066CC; }
.co-badge--popular  { background: #7C3AED; }
.co-badge--oferta   { background: var(--co-accent); }
.co-badge--ultimo   { background: #D97706; }
.co-badge--agotado  { background: #999; }
.co-badge--preventa { background: var(--co-accent); }
.co-badge--wishlist { background: #7C3AED; }
.co-badge--cancelado{ background: #999; }

/* ── Chips ─────────────────────────────────────────────────────────────────── */
.co-chip {
  display: inline-block;
  background: var(--co-surface);
  color: var(--co-muted);
  border: 1px solid var(--co-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.15s;
}
.co-chip:hover, .co-chip.active {
  background: var(--co-accent);
  color: #fff;
  border-color: var(--co-accent);
  font-weight: 600;
}

/* ── Inputs ────────────────────────────────────────────────────────────────── */
.co-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: var(--co-surface);
  color: var(--co-text);
  transition: all 0.15s;
}
.co-input:focus {
  border-color: var(--co-accent);
  box-shadow: 0 0 0 3px var(--co-accent-light);
}
.co-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--co-text);
  margin-bottom: 5px;
}
.co-label .req { color: var(--co-accent); }
.co-field { display: flex; flex-direction: column; gap: 5px; }

select.co-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Product Card ──────────────────────────────────────────────────────────── */
.co-card {
  background: var(--co-surface);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.18s;
  cursor: pointer;
}
.co-card:hover {
  border-color: var(--co-border-strong);
  box-shadow: var(--co-shadow-md);
  transform: translateY(-2px);
}
.co-card__img {
  position: relative;
  background: var(--co-surface-alt);
  flex-shrink: 0;
  overflow: hidden;
}
.co-card__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.co-card:hover .co-card__img img {
  transform: scale(1.03);
}
.co-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s;
}
.co-card:hover .co-card__overlay { opacity: 1; }
.co-card__badge-pos {
  position: absolute;
  top: 10px;
  left: 10px;
}
.co-card__stock-pos {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFF3CD;
  color: #856404;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
}
.co-card__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-card__brand {
  font-size: 11px;
  color: var(--co-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.co-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--co-text);
  line-height: 1.35;
  flex: 1;
}
.co-card__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.co-card__price-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--co-accent);
  letter-spacing: 0.02em;
}
.co-card__price-old {
  font-size: 12px;
  color: var(--co-light);
  text-decoration: line-through;
}
.co-card__price-pct {
  font-size: 11px;
  color: var(--co-success);
  font-weight: 600;
}
.co-card__add {
  background: var(--co-accent);
  color: #fff;
  border: none;
  border-radius: var(--co-radius-sm);
  padding: 9px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
  width: 100%;
}
.co-card__add:hover { background: var(--co-accent-dark); }
.co-card__add.added { background: var(--co-success); }

/* ── Stars ─────────────────────────────────────────────────────────────────── */
.co-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #F59E0B;
  letter-spacing: 1px;
}
.co-stars__count { font-size: 12px; color: var(--co-muted); }

/* ── Promo bar ─────────────────────────────────────────────────────────────── */
.co-promo-bar {
  background: var(--co-accent);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.co-header {
  background: var(--co-surface);
  border-bottom: 1px solid var(--co-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--co-shadow);
}
.co-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.co-logo { flex-shrink: 0; display: flex; align-items: center; }
.co-logo img { height: 40px; width: auto; }

/* Search bar */
.co-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  border: 1.5px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  overflow: hidden;
  background: var(--co-surface-alt);
}
.co-search input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--co-text);
  min-width: 0;
}
.co-search button {
  background: var(--co-accent);
  border: none;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.co-search button:hover { background: var(--co-accent-dark); }

/* Main nav */
.co-main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.co-main-nav a {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: var(--co-radius-sm);
  color: var(--co-muted);
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.co-main-nav a:hover,
.co-main-nav a.active {
  color: var(--co-accent);
  font-weight: 600;
  background: var(--co-accent-light);
}

.co-header__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile toggle */
.co-mobile-toggle {
  background: transparent;
  border: 1.5px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  padding: 8px 12px;
  font-size: 18px;
  color: var(--co-text);
  display: none;
}

/* Category strip */
.co-category-strip {
  border-top: 1px solid var(--co-border);
  background: var(--co-surface);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.co-category-strip::-webkit-scrollbar { display: none; }
.co-category-strip .co-container {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.co-category-strip a {
  padding: 10px 16px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--co-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: inline-block;
  text-decoration: none;
}
.co-category-strip a:hover {
  color: var(--co-accent);
  border-bottom-color: var(--co-accent);
}

/* Mobile menu */
.co-mobile-menu {
  display: none;
  background: var(--co-surface);
  border-top: 1px solid var(--co-border);
  padding: 12px 24px 20px;
}
.co-mobile-menu.open { display: block; }
.co-mobile-menu a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--co-border);
  font-size: 15px;
  color: var(--co-text);
  font-weight: 500;
  text-decoration: none;
}
.co-mobile-menu a:last-child { border-bottom: none; }
.co-mobile-menu .co-search { max-width: none; margin-bottom: 4px; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.co-hero {
  background: var(--co-hero-bg);
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 48vw, 520px);
  display: flex;
  align-items: center;
}
.co-hero__slide {
  display: none;
  width: 100%;
  padding: clamp(40px, 6vw, 80px) 24px;
}
.co-hero__slide.active { display: flex; }
.co-hero__content {
  max-width: var(--co-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.co-hero__text { flex: 0 0 auto; max-width: 55%; }
.co-hero__tag {
  background: var(--co-accent);
  color: #fff;
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  border-radius: 3px;
}
.co-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  color: #fff;
  line-height: 0.92;
  margin-bottom: 18px;
  white-space: pre-line;
  letter-spacing: 0.01em;
}
.co-hero__sub {
  color: rgba(255,255,255,0.65);
  font-size: clamp(14px, 1.8vw, 16px);
  margin-bottom: 28px;
  max-width: 420px;
  line-height: 1.6;
}
.co-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.co-hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.co-hero__img-box {
  width: clamp(160px, 22vw, 240px);
  height: clamp(200px, 28vw, 300px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--co-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  overflow: hidden;
}
.co-hero__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero decorative lines */
.co-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.co-hero__deco::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background: rgba(232,0,13,0.07);
}
.co-hero__deco::after {
  content: '';
  position: absolute;
  right: 40%; top: 0; bottom: 0;
  width: 2px;
  background: rgba(232,0,13,0.18);
}

/* Hero dots */
.co-hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.co-hero__dot {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s;
  width: 8px;
}
.co-hero__dot.active {
  width: 28px;
  background: var(--co-accent);
}

/* ── Category grid ─────────────────────────────────────────────────────────── */
.co-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.co-cat-tile {
  background: var(--co-bg);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--co-text);
  text-decoration: none;
  transition: all 0.15s;
}
.co-cat-tile:hover {
  border-color: var(--co-accent);
  color: var(--co-accent);
  box-shadow: var(--co-shadow-md);
}
.co-cat-tile__icon {
  font-size: 24px;
  font-family: monospace;
}

/* ── Promo banner ──────────────────────────────────────────────────────────── */
.co-promo-banner {
  background: var(--co-accent);
  padding: 44px 24px;
}
.co-promo-banner__inner {
  max-width: var(--co-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.co-promo-banner__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1;
}
.co-promo-banner__sub {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-top: 6px;
}

/* ── Brands strip ──────────────────────────────────────────────────────────── */
.co-brands {
  padding: 40px 24px;
  background: var(--co-surface);
  border-top: 1px solid var(--co-border);
  text-align: center;
}
.co-brands p {
  color: var(--co-muted);
  font-size: 13px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.co-brands__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.co-brand-chip {
  background: var(--co-surface-alt);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.co-brand-chip img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.co-footer {
  background: var(--co-footer-bg);
  color: #fff;
  padding: 52px 24px 28px;
}
.co-footer__grid {
  max-width: var(--co-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.co-footer__brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.co-footer__tagline {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 20px;
}
.co-footer__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.co-footer__social {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: var(--co-radius-sm);
  transition: all 0.15s;
}
.co-footer__social:hover {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
.co-footer__col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.co-footer__link {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.co-footer__link:hover { color: rgba(255,255,255,0.7); }
.co-footer__bottom {
  max-width: var(--co-container);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.co-footer__copy { color: rgba(255,255,255,0.2); font-size: 12px; }
.co-footer__legal { display: flex; gap: 16px; }
.co-footer__legal a {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  text-decoration: none;
}
.co-footer__legal a:hover { color: rgba(255,255,255,0.5); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.co-breadcrumb {
  background: var(--co-surface);
  border-bottom: 1px solid var(--co-border);
  padding: 12px 24px;
}
.co-breadcrumb__inner {
  max-width: var(--co-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--co-muted);
}
.co-breadcrumb a { color: var(--co-accent); text-decoration: none; }
.co-breadcrumb a:hover { text-decoration: underline; }

/* ── Catalog layout ────────────────────────────────────────────────────────── */
.co-catalog {
  max-width: var(--co-container);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  min-height: 80vh;
}
.co-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.co-sidebar__box {
  background: var(--co-surface);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 20px;
  margin-bottom: 16px;
}
.co-sidebar__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--co-text);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.co-sidebar a, .co-sidebar__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--co-radius-sm);
  font-size: 13px;
  color: var(--co-text);
  text-decoration: none;
  transition: all 0.15s;
}
.co-sidebar a:hover, .co-sidebar__cat-link:hover {
  background: var(--co-accent-light);
  color: var(--co-accent);
}
.co-sidebar a.active, .co-sidebar__cat-link.active {
  background: var(--co-accent-light);
  color: var(--co-accent);
  font-weight: 600;
}
.co-sidebar__count {
  font-size: 11px;
  color: var(--co-light);
  background: var(--co-surface-alt);
  padding: 1px 7px;
  border-radius: 10px;
}
.co-catalog__main { flex: 1; min-width: 0; }
.co-catalog__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.co-catalog__count { font-size: 13px; color: var(--co-muted); }

/* Pagination override */
.co-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.co-pagination a,
.co-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--co-radius-sm);
  border: 1px solid var(--co-border);
  background: var(--co-surface);
  color: var(--co-text);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: all 0.15s;
}
.co-pagination a:hover {
  border-color: var(--co-accent);
  color: var(--co-accent);
}
.co-pagination span.current,
.co-pagination .active a {
  background: var(--co-accent);
  border-color: var(--co-accent);
  color: #fff;
  font-weight: 600;
}

/* ── Product detail ────────────────────────────────────────────────────────── */
.co-product {
  max-width: var(--co-container);
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.co-product__main-img {
  width: 100%;
  border-radius: var(--co-radius);
  border: 1px solid var(--co-border);
  object-fit: contain;
  aspect-ratio: 4/3;
  background: var(--co-surface-alt);
}
.co-product__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.co-product__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--co-radius-sm);
  border: 2px solid var(--co-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.co-product__thumb:hover { border-color: var(--co-accent); }
.co-product__thumb--active { border-color: var(--co-accent); }
.co-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-product__series {
  font-size: 12px;
  color: var(--co-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.co-product__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--co-text);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.co-product__price-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.co-product__price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--co-accent);
  letter-spacing: 0.02em;
  line-height: 1;
}
.co-product__price-old {
  font-size: 16px;
  color: var(--co-light);
  text-decoration: line-through;
}
.co-product__discount {
  background: var(--co-accent-light);
  color: var(--co-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--co-radius-sm);
}
.co-product__desc {
  font-size: 14px;
  color: var(--co-muted);
  line-height: 1.7;
  margin: 16px 0;
}
.co-product__add-form { margin-top: 20px; }
.co-product__add-form .co-btn-primary { width: 100%; font-size: 16px; padding: 15px; }
.co-product__stock-ok {
  font-size: 13px;
  color: var(--co-success);
  font-weight: 600;
  margin-top: 10px;
}
.co-product__stock-out {
  font-size: 13px;
  color: var(--co-muted);
  margin-top: 10px;
}

/* Related products scroll */
.co-related {
  padding: 40px 24px;
  border-top: 1px solid var(--co-border);
  background: var(--co-surface);
}
.co-related__scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ── Preventas page ────────────────────────────────────────────────────────── */
.co-preventas-hero {
  background: var(--co-hero-bg);
  padding: 52px 24px;
  text-align: center;
  position: relative;
}
.co-preventas-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  color: #fff;
  margin-bottom: 16px;
}
.co-preventas-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.co-preventas-steps {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.co-preventas-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
}

.co-preventa-filters {
  background: var(--co-surface);
  border-bottom: 1px solid var(--co-border);
  padding: 14px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.co-preventa-card {
  background: var(--co-surface);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.18s;
}
.co-preventa-card:hover {
  border-color: var(--co-border-strong);
  box-shadow: var(--co-shadow-md);
  transform: translateY(-2px);
}
.co-preventa-card__img {
  position: relative;
  background: var(--co-surface-alt);
  overflow: hidden;
}
.co-preventa-card__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.co-preventa-ribbon {
  position: absolute;
  top: 0; left: 0;
  background: var(--co-accent);
  color: #fff;
  padding: 5px 12px 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0,100% 0,92% 100%,0 100%);
}
.co-preventa-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-preventa-card__date-box {
  background: var(--co-surface-alt);
  border-radius: var(--co-radius-sm);
  padding: 10px 12px;
}
.co-preventa-card__date-label {
  font-size: 11px;
  color: var(--co-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.co-preventa-card__avail {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}
.co-preventa-bar {
  height: 5px;
  background: var(--co-surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.co-preventa-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

/* ── Cart ──────────────────────────────────────────────────────────────────── */
.co-cart-page {
  max-width: var(--co-container);
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: flex-start;
  min-height: 70vh;
}
.co-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--co-border);
}
.co-cart-item__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--co-radius-sm);
  background: var(--co-surface-alt);
}
.co-cart-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--co-text);
}
.co-cart-item__price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--co-accent);
}
.co-cart-item__remove {
  color: var(--co-muted);
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.15s;
}
.co-cart-item__remove:hover {
  background: #FEE2E2;
  color: var(--co-accent);
}
.co-cart-summary {
  background: var(--co-surface);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.co-cart-summary h3 {
  margin-bottom: 20px;
}
.co-cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--co-muted);
}
.co-cart-summary__row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--co-text);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--co-border);
}
.co-cart-summary__shipping-free {
  font-size: 12px;
  color: var(--co-success);
  font-weight: 600;
}
.co-cart-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--co-muted);
}
.co-cart-empty__icon { font-size: 64px; opacity: 0.15; margin-bottom: 16px; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */
.co-checkout-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: 70vh;
}
.co-checkout-section {
  background: var(--co-surface);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 24px;
  margin-bottom: 20px;
}
.co-checkout-section h3 {
  margin-bottom: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--co-text);
  letter-spacing: 0.04em;
}
.co-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.co-payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.co-payment-tab {
  background: var(--co-surface-alt);
  border: 2px solid var(--co-border);
  border-radius: var(--co-radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--co-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.co-payment-tab.active {
  border-color: var(--co-accent);
  background: var(--co-accent-light);
  color: var(--co-accent);
  font-weight: 700;
}
.co-payment-panel { display: none; }
.co-payment-panel.active { display: block; }

/* ── Completed ─────────────────────────────────────────────────────────────── */
.co-completed {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
  min-height: 70vh;
}
.co-completed__icon {
  width: 80px;
  height: 80px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
}
.co-completed__order {
  font-size: 14px;
  color: var(--co-muted);
  margin-bottom: 32px;
}
.co-completed__summary {
  background: var(--co-surface);
  border: 1px solid var(--co-border);
  border-radius: var(--co-radius);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.co-divider { height: 1px; background: var(--co-border); margin: 24px 0; }
.co-text-muted { color: var(--co-muted); }
.co-text-accent { color: var(--co-accent); }
.co-mt-4 { margin-top: 4px; }
.co-mt-8 { margin-top: 8px; }
.co-mt-16 { margin-top: 16px; }
.co-mt-24 { margin-top: 24px; }

/* page transition */
.co-page-enter { animation: coFadeIn 0.18s ease; }
@keyframes coFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .co-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .co-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .co-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .co-product { grid-template-columns: 1fr; gap: 24px; }
  .co-cart-page { grid-template-columns: 1fr; }
  .co-cart-summary { position: static; }
  .co-catalog { flex-direction: column; }
  .co-sidebar { width: 100%; }
  .co-hero__content { flex-direction: column; }
  .co-hero__text { max-width: 100%; }
  .co-hero__visual { display: none; }
  .co-checkout-grid { grid-template-columns: 1fr; }
  .co-mobile-toggle { display: flex; }
  .co-main-nav { display: none !important; }
  .co-header__inner .co-search { display: none; }
}

@media (max-width: 640px) {
  .co-grid-4 { grid-template-columns: 1fr; }
  .co-grid-3 { grid-template-columns: 1fr; }
  .co-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .co-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .co-section { padding: 36px 16px; }
  .co-container { padding: 0 16px; }
  .co-promo-banner { padding: 32px 16px; }
  .co-promo-banner__inner { flex-direction: column; text-align: center; }
  .co-header__inner { gap: 12px; }
  .co-search { max-width: none; flex: 1; }
}
