/* ─── BVC CART & PRODUCT STYLES ─── */

@font-face {
  font-family: 'Wolfsburg';
  src: url('fonts/Wolfsburg-Regular.otf') format('opentype');
  font-display: swap;
}

/* OVERLAY */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .35s;
  backdrop-filter: blur(3px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* DRAWER */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw;
  background: #0f0f14; border-left: 1px solid #252530;
  z-index: 201; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem; border-bottom: 1px solid #252530;
  background: #0a0a0e;
}
.cart-title {
  font-family: 'Wolfsburg', sans-serif;
  font-size: 1.3rem; letter-spacing: .08em; color: #c8a84b;
}
.cart-close {
  background: none; border: none; color: #a8a8b3;
  font-size: 1.4rem; cursor: pointer; padding: .2rem .4rem;
  transition: color .2s; line-height: 1;
}
.cart-close:hover { color: #f0ece4; }

/* VIEWS */
.cart-body { flex: 1; overflow-y: auto; }
#cart-view, #checkout-view { padding: 1.4rem 1.6rem; }

/* CART ITEMS */
.cart-empty {
  font-family: 'Barlow Condensed', sans-serif;
  color: #7a7a85; text-align: center; padding: 2rem 0; font-size: 1rem;
}
.cart-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid #1e1e28;
}
.cart-item-img {
  width: 64px; height: 64px; object-fit: cover;
  border: 1px solid #252530; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Wolfsburg', sans-serif;
  font-size: 1rem; letter-spacing: .06em; color: #f0ece4; margin-bottom: .2rem;
}
.cart-item-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; color: #a8a8b3; margin-bottom: .5rem;
}
.cart-item-controls {
  display: flex; align-items: center; gap: .5rem;
}
.qty-btn {
  background: #1e1e28; border: 1px solid #252530; color: #c8a84b;
  width: 28px; height: 28px; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.qty-btn:hover { background: rgba(200,168,75,.15); }
.qty-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; color: #f0ece4; min-width: 20px; text-align: center;
}
.cart-item-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
}
.cart-trash {
  background: none; border: none; font-size: 1rem; cursor: pointer;
  opacity: .5; transition: opacity .2s; color: #f0ece4;
}
.cart-trash:hover { opacity: 1; }
.cart-item-total {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem; color: #f0ece4; font-weight: 600;
}

/* CART FOOTER */
#cart-footer { border-top: 1px solid #252530; padding: 1.2rem 1.6rem; background: #0a0a0e; }
.cart-subtotal-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .5rem;
}
.cart-subtotal-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: #7a7a85;
}
.cart-subtotal-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; color: #f0ece4; font-weight: 700;
}
.cart-cuotas {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem; color: #3d9cf0; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.cart-actions { display: flex; gap: .8rem; }
.btn-cart-secondary {
  flex: 1; padding: .8rem; background: transparent;
  border: 1px solid rgba(200,168,75,.35); color: #c8a84b;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-cart-secondary:hover { background: rgba(200,168,75,.1); border-color: #c8a84b; }
.btn-cart-primary {
  flex: 1.4; padding: .8rem;
  background: linear-gradient(135deg, #c8a84b 0%, #a07828 100%);
  border: none; color: #060608;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-cart-primary:hover { background: linear-gradient(135deg, #e8c96a 0%, #c8a84b 100%); }

/* ─── CHECKOUT VIEW ─── */
.co-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: #c8a84b; margin-bottom: .8rem; font-weight: 600;
}
.co-items { margin-bottom: 1.2rem; }
.co-item {
  display: flex; justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .92rem; color: #a8a8b3; padding: .3rem 0;
  border-bottom: 1px solid #1e1e28;
}

/* Shipping */
.shipping-options { display: flex; gap: .8rem; margin-bottom: 1.2rem; }
.shipping-opt {
  flex: 1; padding: .8rem; border: 1px solid #252530;
  background: rgba(255,255,255,.02); cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; color: #a8a8b3; text-align: center;
  transition: all .2s; display: flex; align-items: center; gap: .5rem;
}
.shipping-opt input { accent-color: #c8a84b; }
.shipping-opt.active { border-color: rgba(200,168,75,.4); color: #f0ece4; background: rgba(200,168,75,.05); }

.shipping-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.2rem; }
.shipping-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.field-group { display: flex; flex-direction: column; gap: .3rem; }
.field-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #7a7a85;
}
.field-input {
  background: rgba(255,255,255,.04); border: 1px solid #252530; color: #f0ece4;
  padding: .55rem .75rem; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.field-input:focus { border-color: rgba(200,168,75,.5); }
.field-input::placeholder { color: #3a3a45; }

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.payment-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border: 1px solid #252530;
  background: rgba(255,255,255,.02); cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-size: .92rem; color: #a8a8b3;
  transition: all .2s;
}
.payment-option:hover { border-color: rgba(200,168,75,.3); color: #f0ece4; }
.payment-option.selected { border-color: #c8a84b; background: rgba(200,168,75,.06); color: #f0ece4; }
.payment-option .po-left { display: flex; align-items: center; gap: .6rem; }
.payment-option .po-icon { font-size: 1.1rem; }
.payment-option .po-badge {
  font-size: .68rem; background: rgba(200,168,75,.2); color: #c8a84b;
  padding: .15rem .4rem; letter-spacing: .1em;
}
.payment-option .po-discount { font-size: .82rem; color: #4caf7d; }

#discount-note {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem; color: #4caf7d; margin-bottom: .8rem;
  padding: .5rem .8rem; background: rgba(76,175,125,.08); border-left: 2px solid #4caf7d;
  display: none;
}

.co-total-row {
  display: flex; justify-content: space-between;
  font-family: 'Wolfsburg', sans-serif;
  font-size: 1.3rem; letter-spacing: .05em;
  color: #f0ece4; padding: .8rem 0; border-top: 1px solid #252530; margin-bottom: 1rem;
}
.co-total-row span:last-child { color: #c8a84b; }

.btn-checkout-back {
  background: none; border: none; color: #7a7a85;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem;
  transition: color .2s;
}
.btn-checkout-back:hover { color: #c8a84b; }

/* ─── PRODUCT PAGE ─── */
.product-hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}
.product-hero-img {
  position: sticky; top: 72px; height: calc(100vh - 72px);
  overflow: hidden; background: #0d0d12;
}
.product-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.9);
}
.product-hero-info {
  padding: 4rem 3.5rem;
  overflow-y: auto; background: #0a0a0e;
}

.prod-logo { height: 28px; margin-bottom: 1rem; filter: brightness(.75); }
.prod-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; letter-spacing: .35em; text-transform: uppercase;
  color: #c8a84b; font-weight: 600; margin-bottom: .5rem;
}
.prod-name {
  font-family: 'Wolfsburg', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: .06em;
  color: #f0ece4; line-height: .9; margin-bottom: 1.5rem;
}
.prod-price-block { margin-bottom: 1.5rem; }
.prod-price {
  font-family: 'Wolfsburg', sans-serif;
  font-size: 2.5rem; color: #f0ece4; letter-spacing: .04em;
}
.prod-price-transfer {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .88rem; color: #4caf7d; margin-top: .3rem;
}
.prod-cuotas {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; color: #3d9cf0; margin-top: .3rem;
  display: flex; align-items: center; gap: .4rem;
}

.prod-divider {
  height: 1px; background: linear-gradient(to right, rgba(200,168,75,.3), transparent);
  margin: 1.5rem 0;
}

.prod-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; color: #a8a8b3; line-height: 1.75; margin-bottom: 1.5rem;
}

.prod-includes {
  margin-bottom: 1.5rem; padding: 1rem 1.2rem;
  background: rgba(255,255,255,.025); border-left: 2px solid #c8a84b;
}
.prod-includes-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: #c8a84b; font-weight: 600; margin-bottom: .6rem;
}
.prod-includes li {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; color: #a8a8b3; list-style: none;
  padding: .2rem 0; display: flex; gap: .5rem;
}
.prod-includes li::before { content: '—'; color: #c8a84b; opacity: .55; }

.prod-qty-row {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
}
.prod-qty-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #7a7a85;
}
.prod-qty-controls { display: flex; align-items: center; gap: .5rem; }
.prod-qty-btn {
  background: #1e1e28; border: 1px solid #252530; color: #c8a84b;
  width: 34px; height: 34px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.prod-qty-btn:hover { background: rgba(200,168,75,.15); }
.prod-qty-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; color: #f0ece4; min-width: 30px; text-align: center;
}

.btn-add-cart {
  width: 100%; padding: 1rem;
  background: linear-gradient(135deg, #c8a84b 0%, #a07828 100%);
  border: none; color: #060608;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: all .3s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  margin-bottom: .8rem;
}
.btn-add-cart:hover {
  background: linear-gradient(135deg, #e8c96a 0%, #c8a84b 100%);
  box-shadow: 0 6px 24px rgba(200,168,75,.3);
}

.cart-icon-btn {
  position: relative; background: none; border: none;
  color: #a8a8b3; cursor: pointer; font-size: 1.4rem;
  transition: color .2s; padding: .3rem;
}
.cart-icon-btn:hover { color: #c8a84b; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: #c8a84b; color: #060608;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Specs accordion */
.specs-section { margin-top: 2rem; }
.specs-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 0; border-top: 1px solid #252530; border-bottom: 1px solid #252530;
  background: none; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: #a8a8b3; transition: color .2s;
}
.specs-toggle:hover { color: #c8a84b; }
.specs-toggle .arrow { transition: transform .3s; font-size: .8rem; }
.specs-toggle.open .arrow { transform: rotate(180deg); }
.specs-list { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.specs-list.open { max-height: 300px; }
.specs-list li {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; color: #a8a8b3; list-style: none;
  padding: .5rem 0; border-bottom: 1px solid #1e1e28;
  display: flex; gap: .6rem;
}
.specs-list li::before { content: '—'; color: #c8a84b; opacity: .5; }

@media (max-width: 768px) {
  .cart-drawer { width: 100vw; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-img { height: 55vw; position: relative; top: 0; }
  .product-hero-info { padding: 2rem 1.4rem; }
  .shipping-row { grid-template-columns: 1fr; }
}
