/* Estructura estilo Nike / Adidas - layout, banners, filtros, grid */

:root {
  --black: #111;
  --white: #fff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-900: #171717;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body.store-layout {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--gray-100);
}

/* ----- Top bar ----- */
.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-sep {
  color: var(--gray-400);
}

/* ----- Header ----- */
.store-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.logo img {
  max-height: 36px;
  width: auto;
}

.logo-text {
  color: var(--black);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--gray-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.cart-link:hover {
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { flex-wrap: wrap; }
}

/* ----- Main ----- */
.store-main {
  min-height: 60vh;
}

/* ----- Promo strip ----- */
.promo-strip {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  padding: 0.5rem 1rem;
}

.promo-strip-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.01em;
}

/* ----- Hero Carousel (banners CMS) ----- */
.hero-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gray-200);
}

.hero-track {
  position: relative;
  width: 100%;
}

.hero-slide {
  width: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-link {
  display: block;
  position: relative;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 3rem 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: var(--white);
  text-align: center;
}

.hero-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--gray-100);
  transform: scale(1.03);
}

.hero-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--white);
}

.hero-dots {
  display: flex;
  gap: 0.35rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--white);
  transform: scale(1.2);
}

.hero-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-200) 0%, #d4d4d4 100%);
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.hero-placeholder p {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

/* ----- Campaign block (imagen + texto a pantalla completa) ----- */
.campaign-block {
  width: 100%;
  position: relative;
}

.campaign-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.campaign-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}

.campaign-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  color: var(--white);
  text-align: center;
}

.campaign-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.campaign-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.campaign-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.5rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.campaign-cta:hover {
  background: var(--gray-100);
  transform: scale(1.03);
}

/* ----- Horizontal product scroll (carrusel) ----- */
.product-scroll-wrapper {
  position: relative;
}

.product-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.product-scroll::-webkit-scrollbar {
  display: none;
}

.product-scroll-card {
  flex: 0 0 calc(50% - 0px);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 640px) {
  .product-scroll-card { flex: 0 0 calc(33.333%); }
}

@media (min-width: 1024px) {
  .product-scroll-card { flex: 0 0 calc(25%); }
}

@media (min-width: 1400px) {
  .product-scroll-card { flex: 0 0 calc(20%); }
}

.product-card-category {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.product-badge-sale {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: #b91c1c;
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2px;
  z-index: 2;
}

.price-sale {
  color: #b91c1c;
}

/* ----- Category grid (home) ----- */
.category-grid-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

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

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

.category-card-home {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card-home:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.category-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-card-home:hover .category-card-img img {
  transform: scale(1.05);
}

.category-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-400);
  background: linear-gradient(135deg, var(--gray-200), #d4d4d4);
}

.category-card-label {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ----- Gender tiles ----- */
.gender-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .gender-tiles { grid-template-columns: 1fr; }
}

.gender-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: box-shadow 0.2s, transform 0.2s;
}

.gender-tile:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.gender-tile-bg {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-900), var(--black));
}

.gender-tile-letter {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  opacity: 0.15;
}

.gender-tile-label {
  display: block;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

/* ----- home section spacing ----- */
.home-section {
  padding: 2.5rem 0;
}

.home-section + .campaign-block {
  margin-top: 0;
}

.campaign-block + .home-section {
  padding-top: 2.5rem;
}

/* ----- Sections ----- */
.section {
  padding: 2.5rem 0;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  color: var(--black);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: underline;
}

/* ----- Toolbar (filtros / ordenar) ----- */
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-sort label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-right: 0.25rem;
}

.filter-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  background: var(--white);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ----- Product grid ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

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

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

@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card-image {
  aspect-ratio: 1;
  background: var(--gray-100);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-200), #d4d4d4);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.product-card-body {
  padding: 1rem;
  flex: 1;
}

.product-card-name {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.product-card-prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-original {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: line-through;
}

.price-current {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
}

.product-card-actions {
  padding: 0 1rem 1rem;
  margin: 0;
}

.btn-add-cart {
  width: 100%;
  padding: 0.75rem;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-add-cart:hover {
  background: var(--gray-900);
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-600);
  font-size: 1rem;
}

.grid-empty a {
  color: var(--black);
  font-weight: 600;
}

/* ----- Category tiles ----- */
.categories-section .section-title {
  margin-bottom: 1rem;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.category-tile:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.category-tile-placeholder {
  font-size: 2.5rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.category-tile-name {
  padding: 0.75rem;
  font-size: 0.9375rem;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0 0;
  margin-top: 1rem;
}

.pagination a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination span {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ----- Footer ----- */
.store-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

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

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

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-social a {
  display: inline-block;
  margin-right: 1rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ----- Cart (estilo Nike checkout/cart) ----- */
.cart-page .section-inner {
  max-width: 1200px;
}

.cart-page .cart-title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.cart-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-empty p {
  margin: 0 0 1.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.cart-empty .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9375rem;
}

.cart-empty .btn:hover {
  background: var(--gray-900);
}

.cart-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.cart-items {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
  }
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .cart-item-image { width: 80px; height: 80px; }
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-400);
}

.cart-item-details {
  min-width: 0;
}

.cart-item-name {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.cart-item-name a {
  color: var(--black);
  text-decoration: none;
}

.cart-item-name a:hover {
  text-decoration: underline;
}

.cart-item-variant {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.cart-item-price {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-item-quantity input {
  width: 3rem;
  padding: 0.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-item-quantity .qty-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-item-quantity button {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--black);
}

.cart-item-quantity button:hover {
  background: var(--gray-100);
}

.cart-item-total {
  font-weight: 700;
  font-size: 1rem;
}

.cart-item-remove {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: var(--black);
}

@media (max-width: 768px) {
  .cart-item-price,
  .cart-item-quantity,
  .cart-item-total {
    grid-column: 2;
  }
  .cart-item-remove {
    grid-column: 2;
    justify-self: start;
  }
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-600);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.cart-summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-summary .btn-checkout {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.cart-summary .btn-checkout:hover {
  background: var(--gray-900);
}

.cart-continue {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: none;
}

.cart-continue:hover {
  color: var(--black);
  text-decoration: underline;
}

/* ----- Account / Auth (login, signup) ----- */
.auth-section .auth-section-inner {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card-text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.auth-card-text a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
}

.auth-card-text a:hover {
  text-decoration: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

.auth-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-family: var(--font);
  background: var(--white);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.1);
}

.auth-field input::placeholder {
  color: var(--gray-400);
}

.auth-field-error-block {
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #b91c1c;
}

.auth-field-error {
  font-size: 0.8125rem;
  color: #b91c1c;
}

.auth-field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.auth-field-checkbox input {
  width: auto;
}

.auth-field-checkbox label {
  margin: 0;
}

.auth-btn {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  margin-top: 0.25rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.auth-btn:hover {
  background: var(--gray-900);
}

.auth-btn-outline {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  margin-top: 0.75rem;
}

.auth-btn-outline:hover {
  background: var(--gray-100);
}

.auth-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--gray-200);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Social account provider list (Google, etc.) */
.auth-card .socialaccount_ballot {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.auth-card .socialaccount_providers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-card .socialaccount_providers li {
  margin-bottom: 0.5rem;
}

.auth-card .socialaccount_providers a {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.auth-card .socialaccount_providers a:hover {
  background: var(--gray-100);
}

/* ----- Product detail (estilo Nike) ----- */
.product-detail-section .product-detail-inner {
  max-width: 1400px;
}

.product-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.product-breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--black);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.35rem;
}

.product-detail-layout {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

/* Galería */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
}

.product-main-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-main-image.active {
  opacity: 1;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
}

.product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--gray-100);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--black);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Panel de información (sticky en desktop) */
.product-info-panel {
  padding: 0 0 1rem;
}

@media (min-width: 1024px) {
  .product-info-panel {
    position: sticky;
    top: 100px;
    padding: 0;
  }
}

.product-detail-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-detail-category {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  text-decoration: none;
}

.product-detail-category:hover {
  color: var(--black);
  text-decoration: underline;
}

.product-detail-price {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.product-detail-price .price-original {
  margin-right: 0.5rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.product-detail-price .price-current {
  color: var(--black);
}

/* Formulario añadir */
.product-add-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-variants-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-600);
}

.product-variants-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.product-variant-option {
  margin: 0;
  cursor: pointer;
}

.product-variant-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-variant-option .variant-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product-variant-option input:checked + .variant-chip,
.product-variant-option .variant-chip:hover {
  border-color: var(--black);
  background: var(--gray-100);
}

.product-quantity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-quantity-row label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-600);
}

.product-quantity-input {
  width: 5rem;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.product-add-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}

.product-add-btn:hover {
  background: var(--gray-900);
}

.product-delivery-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Descripción */
.product-description-block {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.product-description-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-description-content {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-900);
}

.product-description-content p {
  margin: 0 0 0.75rem;
}

.product-description-content p:last-child {
  margin-bottom: 0;
}

.product-description-content ul,
.product-description-content ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

/* ----- Catalog browse (PLP estilo Nike) ----- */
.catalog-section .catalog-inner {
  max-width: 1400px;
}

.catalog-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.catalog-breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
}

.catalog-breadcrumb a:hover {
  color: var(--black);
  text-decoration: underline;
}

.catalog-header {
  margin-bottom: 1.5rem;
}

.catalog-page-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.catalog-description {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  max-width: 640px;
}

/* Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.catalog-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--black);
}

.catalog-filter-toggle:hover {
  background: var(--gray-100);
}

.filter-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.catalog-result-count {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-right: auto;
}

/* Layout: sidebar + grid */
.catalog-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 240px 1fr;
  }
}

/* Sidebar */
.catalog-sidebar {
  display: none;
}

.catalog-sidebar.open {
  display: block;
}

@media (min-width: 1024px) {
  .catalog-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 0.5rem;
  }

  .catalog-sidebar.open {
    display: block;
  }
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-list li {
  margin-bottom: 0.25rem;
}

.filter-list-link {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter-list-link:hover {
  color: var(--black);
  background: var(--gray-100);
}

.filter-list-link.active {
  color: var(--black);
  font-weight: 700;
  background: var(--gray-100);
}

/* Grid dentro de catalog */
.catalog-grid {
  grid-template-columns: repeat(2, 1fr);
}

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

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

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

/* Paginación mejorada */
.catalog-pagination {
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  background: var(--white);
  cursor: pointer;
}

.pagination-btn:hover {
  background: var(--gray-100);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gray-600);
  cursor: pointer;
}

.pagination-num:hover {
  background: var(--gray-100);
  color: var(--black);
}

.pagination-num.active {
  background: var(--black);
  color: var(--white);
}

.pagination-ellipsis {
  display: inline-flex;
  width: 28px;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ----- Responsive: bottom nav + FAB + free-shipping bar ocultos en checkout ----- */
body.no-bottom-nav #bottom-nav,
body.no-bottom-nav #whatsapp-fab,
body.no-bottom-nav #free-shipping-bar,
body.no-bottom-nav #top-bar {
  display: none !important;
}
body.no-bottom-nav #main-wrapper {
  padding-bottom: 0 !important;
}

/* ----- Scrollbar hide (mobile horizontal scroll) ----- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ----- Touch scroll ----- */
.scroll-touch {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
