/* ══════════════════════════════════════════
   TIENDA STYLES — DEMONS RACING
   E-commerce Design
   ══════════════════════════════════════════ */

/* ─── BASE ─── */
body {
  background-color: #070e1d;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 107, 107, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  color: #dce2f7;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

* { box-sizing: border-box; }

/* ─── TRUST BADGES ─── */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(12, 19, 34, 0.95);
  border-bottom: 1px solid rgba(91, 64, 59, 0.25);
  position: relative;
  z-index: 5;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-badge .material-symbols-outlined {
  font-size: 1.5rem;
  color: #b91c1c;
}

.trust-badge strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #dce2f7;
}

.trust-badge span {
  font-size: 0.65rem;
  color: #a0a8c0;
}

@media (max-width: 768px) {
  .trust-badges {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    justify-content: space-around;
  }
  .trust-badge strong {
    font-size: 0.55rem;
  }
  .trust-badge .material-symbols-outlined {
    font-size: 1.2rem;
  }
}

/* ─── HERO SECTION ─── */
.store-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #070e1d;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 14, 29, 0.75);
  z-index: 1;
}

.hero-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
  gap: 4rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #b91c1c;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.hero-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 2px;
  background: #b91c1c;
}

.hero-text h1 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #dce2f7;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-text h1 .text-red {
  color: #b91c1c;
}

.hero-text p {
  font-size: 0.95rem;
  color: #a0a8c0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #b91c1c;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: #b91c1c;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.5);
  transform: translateY(-2px);
}

.hero-features {
  display: flex;
  gap: 2rem;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-feature .material-symbols-outlined {
  font-size: 1.8rem;
  color: #b91c1c;
}

.hero-feature span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #a0a8c0;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-showcase {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.showcase-item {
  width: 140px;
  height: 180px;
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.1) 0%, rgba(185, 28, 28, 0.02) 100%);
  border: 1px solid rgba(91, 64, 59, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.showcase-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #b91c1c;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.6);
}

.showcase-item .material-symbols-outlined {
  font-size: 3rem;
  color: rgba(185, 28, 28, 0.4);
}

.showcase-item.main {
  width: 180px;
  height: 240px;
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 0 0 40px rgba(185, 28, 28, 0.15);
}

.showcase-item.main .material-symbols-outlined {
  font-size: 4rem;
  color: rgba(185, 28, 28, 0.6);
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    padding: 3rem 1.5rem;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-tag {
    padding-left: 0;
  }
  .hero-tag::before {
    display: none;
  }
  .hero-features {
    justify-content: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-product-showcase {
    transform: scale(0.8);
  }
  .showcase-item {
    width: 100px;
    height: 130px;
  }
  .showcase-item.main {
    width: 130px;
    height: 180px;
  }
}

/* ─── FEATURES BAR ─── */
.features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(91, 64, 59, 0.25);
  border-top: 1px solid rgba(91, 64, 59, 0.25);
  border-bottom: 1px solid rgba(91, 64, 59, 0.25);
}

.feature-item {
  padding: 2rem 1.5rem;
  background: #070e1d;
  text-align: center;
  transition: background 0.3s;
}

.feature-item:hover {
  background: rgba(185, 28, 28, 0.05);
}

.feature-item .material-symbols-outlined {
  font-size: 2rem;
  color: #b91c1c;
  margin-bottom: 0.8rem;
}

.feature-item strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #dce2f7;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.78rem;
  color: #a0a8c0;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .features-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── SECTIONS ─── */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header-bar h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #dce2f7;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.5) 0%, transparent 100%);
}

/* ─── CATEGORIES ─── */
.categories-section {
  padding: 4rem 0;
  background: #070e1d;
}

.category-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.category-cards::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 2rem;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(91, 64, 59, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  min-width: 120px;
}

.category-card:hover {
  border-color: rgba(185, 28, 28, 0.4);
  background: rgba(185, 28, 28, 0.08);
}

.category-card.active {
  background: #b91c1c;
  border-color: #b91c1c;
}

.category-card .material-symbols-outlined {
  font-size: 1.8rem;
  color: #b91c1c;
}

.category-card.active .material-symbols-outlined {
  color: #fff;
}

.category-card span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #a0a8c0;
}

.category-card.active span:last-child {
  color: #fff;
}

/* ─── PRODUCTS ─── */
.products-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #070e1d 0%, #0c1322 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

/* ─── PRODUCT CARD ─── */
.product-card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(91, 64, 59, 0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.17, .89, .32, 1.2);
  position: relative;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b91c1c, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(185, 28, 28, 0.15);
  transform: translateY(-8px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.9), transparent);
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.product-image .material-symbols-outlined {
  font-size: 3.5rem;
  color: rgba(185, 28, 28, 0.3);
  z-index: 1;
}

.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: #b91c1c;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-info {
  padding: 1rem;
}

.product-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: #b91c1c;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #dce2f7;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.product-desc {
  font-size: 0.72rem;
  color: #a0a8c0;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(91, 64, 59, 0.2);
}

.product-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #b91c1c;
}

.product-price .currency {
  font-size: 0.7rem;
  color: #666;
  font-weight: 500;
}

.add-to-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(185, 28, 28, 0.3);
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.add-to-cart-btn:hover {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.5);
  transform: scale(1.1);
}

.add-to-cart-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

/* ─── PRODUCT ANIMATION ─── */
.product-enter {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: productEnter .5s cubic-bezier(.17, .89, .32, 1.2) forwards;
}

@keyframes productEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #5b6380;
}

.empty-state .material-symbols-outlined {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  color: #a0a8c0;
}

/* ─── PROMO BANNER ─── */
.promo-banner {
  position: relative;
  padding: 6rem 2rem;
  background-image: url('../img/monotrajes-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-align: center;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 29, 0.75);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h2 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #dce2f7;
  margin: 0 0 0.5rem;
}

.banner-content .hashtag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #b91c1c;
}

/* ─── NEWSLETTER ─── */
.newsletter-section {
  padding: 3rem 0;
  background: #070e1d;
  border-top: 1px solid rgba(91, 64, 59, 0.25);
}

.newsletter-section .section-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.newsletter-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #dce2f7;
  margin: 0 0 0.3rem;
}

.newsletter-content p {
  font-size: 0.8rem;
  color: #a0a8c0;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: rgba(20, 20, 20, 0.8);
  color: #fff;
  font-size: 0.85rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #b91c1c;
}

.newsletter-form button {
  padding: 0.8rem 1.2rem;
  background: #b91c1c;
  border: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
}

.newsletter-form button:hover {
  background: #b91c1c;
}

@media (max-width: 768px) {
  .newsletter-section .section-container {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    max-width: 100%;
  }
}

/* ─── CART BUTTON ─── */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 8px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.cart-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #b91c1c;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── CART SIDEBAR ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 29, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(12, 19, 34, 0.98);
  border-left: 1px solid rgba(91, 64, 59, 0.25);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(.17, .89, .32, 1.2);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(185, 28, 28, 0.15);
}

.cart-header h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b91c1c;
  margin: 0;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
}

.cart-close-btn:hover {
  color: #fff;
  background: rgba(185, 28, 28, 0.1);
  border-color: rgba(185, 28, 28, 0.3);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  scrollbar-width: thin;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
  color: #555;
}

.cart-empty-state .material-symbols-outlined {
  font-size: 2.5rem;
  opacity: 0.3;
}

.cart-empty-state p {
  font-size: 0.85rem;
}

.cart-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(91, 64, 59, 0.15);
  margin-bottom: 0.5rem;
}

.cart-item-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(25, 31, 47, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-image .material-symbols-outlined {
  font-size: 1.3rem;
  color: rgba(185, 28, 28, 0.4);
}

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

.cart-item-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: #dce2f7;
  text-transform: uppercase;
}

.cart-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #b91c1c;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: #b91c1c;
  color: #fff;
  background: rgba(185, 28, 28, 0.1);
}

.cart-item-qty span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #dce2f7;
  min-width: 18px;
  text-align: center;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  display: flex;
}

.remove-item-btn:hover {
  color: #991b1b;
}

.cart-footer {
  padding: 1rem;
  border-top: 1px solid rgba(185, 28, 28, 0.15);
  background: #0f0f0f;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.cart-total span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #a0a8c0;
}

.cart-total span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #b91c1c;
}

.checkout-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: none;
  background: #b91c1c;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
}

.checkout-btn:hover:not(:disabled) {
  background: #b91c1c;
  box-shadow: 0 0 25px rgba(185, 28, 28, 0.5);
}

.checkout-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 29, 0.8);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-dialog {
  background: rgba(12, 19, 34, 0.98);
  border: 1px solid rgba(91, 64, 59, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(.17, .89, .32, 1.2);
  scrollbar-width: thin;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(91, 64, 59, 0.25);
  position: sticky;
  top: 0;
  background: rgba(12, 19, 34, 0.98);
  z-index: 1;
  border-radius: 16px 16px 0 0;
}

.modal-header-bar h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b91c1c;
  margin: 0;
}

.checkout-body {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.checkout-body .checkout-section {
  margin-bottom: 1rem;
}

.checkout-body .checkout-section.full-width {
  grid-column: 1 / -1;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b91c1c;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(185, 28, 28, 0.1);
}

.section-title .material-symbols-outlined {
  font-size: 1rem;
}

.checkout-items-list {
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.checkout-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkout-item-img {
  width: 44px;
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  background: #111827;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.checkout-item-img .material-symbols-outlined {
  font-size: 1.3rem;
  color: rgba(185, 28, 28, 0.3);
}

.checkout-item-name {
  font-size: 0.8rem;
  color: #ddd;
}

.checkout-item-qty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #666;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.checkout-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #b91c1c;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(185, 28, 28, 0.2);
}

.checkout-total span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #aaa;
}

.checkout-total span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: #b91c1c;
}

/* ─── FORM ─── */
.form-group {
  margin-bottom: 0.7rem;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(91, 64, 59, 0.25);
  background: rgba(17, 24, 39, 0.75);
  color: #dce2f7;
  font-size: 0.85rem;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 12px rgba(185, 28, 28, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

/* ─── PAYMENT ─── */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-option {
  cursor: pointer;
}

.payment-option input {
  display: none;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(91, 64, 59, 0.2);
  background: rgba(17, 24, 39, 0.6);
  transition: all 0.2s;
}

.payment-option input:checked + .payment-card {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  box-shadow: 0 0 15px rgba(185, 28, 28, 0.1);
}

.payment-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.yape-icon {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  color: #fff;
}

.payment-icon-text {
  font-size: 1.6rem;
  color: #b91c1c;
}

.payment-card strong {
  display: block;
  color: #dce2f7;
  font-size: 0.85rem;
}

.payment-card p {
  font-size: 0.7rem;
  color: #a0a8c0;
  margin: 0;
}

.payment-info-box {
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.15);
  border-radius: 10px;
  padding: 0.8rem;
  margin-top: 0.8rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
}

.info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #aaa;
}

.info-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
}

.info-note {
  font-size: 0.7rem;
  color: #555;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── UPLOAD AREA ─── */
.upload-area {
  border: 2px dashed rgba(91, 64, 59, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(17, 24, 39, 0.5);
  position: relative;
}

.upload-area:hover {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.05);
}

.upload-area.dragover {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}

.upload-icon {
  font-size: 2rem;
  color: #5b6380;
  margin-bottom: 0.3rem;
}

.upload-area p {
  color: #a0a8c0;
  font-size: 0.8rem;
  margin: 0.2rem 0;
}

.upload-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #5b6380;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.preview-container {
  margin-top: 0.6rem;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-container img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #1a1a1a;
  display: block;
}

.remove-proof-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.remove-proof-btn:hover {
  background: rgba(153, 27, 27, 0.8);
  border-color: #991b1b;
}

.hidden {
  display: none !important;
}

/* ─── COMPLETE ORDER BTN ─── */
.complete-order-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  border: none;
  background: #b91c1c;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
  margin-top: 1rem;
}

.complete-order-btn:hover {
  background: #b91c1c;
  box-shadow: 0 0 25px rgba(185, 28, 28, 0.5);
  transform: translateY(-2px);
}

.complete-order-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.checkout-note {
  font-size: 0.68rem;
  color: #555;
  text-align: center;
  margin-top: 0.6rem;
}

/* ─── PRODUCT DETAIL MODAL ─── */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 29, 0.9);
  backdrop-filter: blur(10px);
  z-index: 350;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.product-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.product-modal-dialog {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(91, 64, 59, 0.3);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.17, .89, .32, 1.2);
  position: relative;
  scrollbar-width: thin;
}

.product-modal-overlay.open .product-modal-dialog {
  transform: scale(1);
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.product-modal-close:hover {
  background: rgba(185, 28, 28, 0.6);
  border-color: #b91c1c;
}

.product-modal-image {
  width: 100%;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 50vh;
  position: relative;
  overflow: hidden;
}

.product-modal-image img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: cover;
  object-position: top;
}

.product-modal-image .material-symbols-outlined {
  font-size: 6rem;
  color: rgba(185, 28, 28, 0.3);
}

.product-modal-info {
  padding: 1.5rem;
}

.product-modal-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #dce2f7;
  text-transform: uppercase;
  margin: 0.4rem 0;
  line-height: 1.2;
}

.product-modal-desc {
  font-size: 0.9rem;
  color: #a0a8c0;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.product-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(91, 64, 59, 0.2);
}

.product-modal-footer .product-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.4rem;
  color: #b91c1c;
}

.product-modal-footer .product-price .currency {
  font-size: 0.85rem;
  color: #5b6380;
  font-weight: 500;
}

.product-modal-footer .add-to-cart-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.4rem;
}

@media (min-width: 769px) {
  .product-modal-dialog {
    flex-direction: row;
  }
  .product-modal-image {
    width: 45%;
    max-height: none;
    min-height: 400px;
    flex-shrink: 0;
  }
  .product-modal-image img {
    max-height: 70vh;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .product-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ─── SUCCESS MODAL ─── */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 29, 0.8);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.success-overlay.show {
  opacity: 1;
}

.success-modal {
  background: rgba(12, 19, 34, 0.98);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(.17, .89, .32, 1.2);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.15);
}

.success-overlay.show .success-modal {
  transform: scale(1);
}

.success-icon {
  margin-bottom: 1.2rem;
}

.success-icon .material-symbols-outlined {
  font-size: 4rem;
  color: #25d366;
  animation: successPulse 1s ease;
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.success-modal h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #dce2f7;
  margin: 0 0 0.8rem;
}

.success-modal p {
  font-size: 0.9rem;
  color: #a0a8c0;
  margin: 0.3rem 0;
  line-height: 1.5;
}

.success-modal p strong {
  color: #b91c1c;
}

.success-note {
  font-size: 0.78rem !important;
  color: #555 !important;
  margin-top: 0.8rem !important;
}

.success-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  border: none;
  background: #25d366;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
}

.success-btn:hover {
  background: #1fb855;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(12, 19, 34, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 64, 59, 0.3);
  color: #dce2f7;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast .material-symbols-outlined {
  color: #25d366;
  font-size: 1.1rem;
}

/* ─── FOOTER ─── */
.site-footer {
  background: #070e1d;
  border-top: 1px solid rgba(91, 64, 59, 0.25);
  padding: 3rem 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(91, 64, 59, 0.15);
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.8rem;
  color: #a0a8c0;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #dce2f7;
  margin: 0 0 1rem;
}

.footer-col p .material-symbols-outlined {
  font-size: 1rem;
  color: #b91c1c;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #a0a8c0;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #b91c1c;
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(220, 226, 247, 0.3);
  letter-spacing: 0.3em;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ─── SECTION CONTAINER (responsive) ─── */
@media (max-width: 768px) {
  .section-container {
    padding: 0 1rem;
  }
  .section-header-bar h2 {
    font-size: 1.3rem;
  }
}
