.shop-body {
  background: #000;
  color: #eee;
  --accent: #ffffff;
  font-family: var(--font-body);
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
}
.shop-header-noLogo { justify-content: flex-end; }
.shop-logo { display: flex; align-items: center; }
.shop-logo-ring {
  width: 220px;
  aspect-ratio: 1533/1026;
  position: relative;
}
.ring-source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.ring-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.shop-header-right { display: flex; align-items: center; gap: 34px; }
.shop-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 700;
}
.shop-link:hover { opacity: .75; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-cart {
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ddd;
  white-space: nowrap;
  transition: color .2s;
}
.header-cart:hover { color: #fff; }

.shop-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.shop-link-icon svg { flex: 0 0 auto; }

.shop-redline { height: 4px; background: #c8102e; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 34px;
  /* deja el pie de página fuera de la primera pantalla */
  min-height: calc(100vh + 180px);
}
.shop-sidebar {
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 60vh;
}
.shop-sidebar-foto {
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* cada foto conserva el formato columna 1:2; se apilan una debajo de otra */
.shop-sidebar-foto img {
  display: block;
  width: 100%;
  aspect-ratio: 1/2;
  object-fit: cover;
  object-position: 50% 20%;
}
.shop-cat-nav { display: flex; flex-direction: column; gap: 20px; }
.shop-cat-nav a {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 700;
  transition: opacity .2s;
}
.shop-cat-nav a:hover, .shop-cat-nav a.active { opacity: .7; }
.shop-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 60px;
}
.shop-ig { color: var(--accent); margin-bottom: 6px; }
.shop-ig:hover { opacity: .75; }
.shop-sidebar-bottom a { font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; font-weight: 400; }
.shop-sidebar-bottom a:hover { opacity: .75; }

.shop-main { padding: 10px 36px 80px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 20px;
}
.shop-card { display: flex; flex-direction: column; cursor: pointer; }
.shop-card-img {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.shop-card-img > img {
  width: 100%;
  height: 100%;
  /* las prendas vienen recortadas sin fondo: contain para no cortarlas */
  object-fit: contain;
}
.shop-card-img > canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.chroma-source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
/* etiqueta "Nuevo" — mismo lenguaje que la barra publicitaria de arriba */
.shop-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: #fff;
  color: #0b0b0b;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
  padding: 7px 12px;
}
.shop-card:hover .shop-card-img { opacity: .9; }
/* prendas con estampado atrás: la foto cambia al pasar el cursor */
.shop-card-2caras:hover .shop-card-img { opacity: 1; }
.shop-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* fondo sólido: el recorte es transparente y si no, se transparenta la
     prenda de adelante y se ven las dos superpuestas */
  background: #000;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.shop-card-2caras:hover .shop-card-back,
.shop-card-2caras:focus-within .shop-card-back { opacity: 1; }
.shop-card-empty { cursor: default; }
.shop-line {
  margin: 0;
  font-size: 14.5px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .01em;
}
.shop-name {
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.shop-price { font-weight: 500; opacity: .85; }
.shop-name-accent { color: var(--accent); }
.shop-price-accent { color: var(--accent); }

.shop-card-empty .shop-placeholder {
  border: 1px dashed #333;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #555;
  text-align: center;
}
.shop-placeholder span {
  font-size: 30px;
  line-height: 1;
  color: #444;
}
.shop-placeholder p { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.shop-card-empty .shop-line { color: #555; }

.shop-footer { border-top: 1px solid #1c1c1c; }

/* si no hay ancho para las dos columnas de foto, se retira la de la derecha
   antes de que las prendas queden chicas */
@media (max-width: 1200px) {
  .shop-layout { grid-template-columns: 260px 1fr; }
  .shop-layout > .shop-sidebar-foto:last-child { display: none; }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-sidebar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    min-height: auto;
    padding: 24px;
  }
  .shop-sidebar-foto { display: none; }
  .shop-cat-nav { flex-direction: column; gap: 14px; }
  .shop-sidebar-bottom { margin-top: 0; }
  .shop-header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .shop-logo-ring { width: 160px; }
}
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: repeat(1, 1fr); }
}

/* product modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: #000;
  border: 1px solid rgba(255,255,255,.4);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  position: relative;
  padding: 32px;
  gap: 32px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { opacity: .7; }
.modal-product-img {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-product-img img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.modal-info { flex: 1; min-width: 0; color: var(--accent); }
.modal-info h2 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-price { font-size: 16px; margin-bottom: 24px; }
.modal-field {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.modal-field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #000;
  color: var(--accent);
  border: 1px solid rgba(255,255,255,.4);
  font-family: inherit;
  font-size: 13px;
  padding: 8px;
}
.modal-add-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  margin: 8px 0 20px;
  transition: opacity .2s ease;
}
.modal-add-btn:disabled { opacity: .35; cursor: not-allowed; }
.modal-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--accent);
  opacity: .85;
  margin-bottom: 18px;
}
.modal-note a { color: var(--accent); }
.modal-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  cursor: pointer;
}
.modal-terms input { margin-top: 2px; accent-color: var(--accent); }
@media (max-width: 600px) {
  .modal-box { flex-direction: column; padding: 24px; }
  .modal-product-img { flex: none; }
}

/* ---------- carrito ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 110;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: #141414;
  border-left: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .34s cubic-bezier(.4,0,.2,1), visibility .34s;
  z-index: 120;
  color: var(--accent);
}
.cart-drawer.open { transform: none; visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.cart-head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.cart-head-count {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .65;
  white-space: nowrap;
}
.cart-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.cart-close:hover { opacity: .7; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px;
}
.cart-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .55;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cart-item-thumb {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: #000;
}
.cart-item-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-item-top { display: flex; align-items: flex-start; gap: 10px; }
.cart-item-name {
  flex: 1;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.35;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--accent);
  opacity: .6;
  cursor: pointer;
  padding: 6px;
  margin: -6px -6px 0 0;
  line-height: 1;
  flex: 0 0 auto;
}
.cart-item-remove:hover { opacity: 1; }
.cart-item-meta {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .6;
}
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.3);
}
.cart-qty button {
  background: none;
  border: none;
  color: var(--accent);
  width: 28px;
  height: 28px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.cart-qty button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.cart-qty button:disabled { opacity: .3; cursor: not-allowed; }
.cart-qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-item-subtotal {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-foot {
  padding: 20px 22px 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.cart-total-row span:last-child { font-variant-numeric: tabular-nums; }
.cart-note {
  font-size: 11px;
  line-height: 1.6;
  opacity: .75;
  margin: 0 0 16px;
}
.cart-note a { color: var(--accent); text-decoration: underline; }
.cart-clear {
  width: 100%;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--accent);
  padding: 11px;
  font-family: inherit;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.cart-clear:hover { background: rgba(255,255,255,.1); }

@media (max-width: 520px) {
  .cart-drawer { width: 100%; }
  .cart-item { grid-template-columns: 60px 1fr; gap: 12px; }
  .cart-item-thumb { width: 60px; height: 60px; }
}
