/* =========================================================
   1. VARIABLES
========================================================= */
:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --text-dark: #111111;

  --ms-light: #ffffff;
  --ms-mid: #c7c7c7;
  --ms-dark: #808080;
  --ms-deep: #3b3b3b;

  --digit-red: #ff0000;
  --blue: #0a36ff;
  --green: #008400;
  --red: #d40000;

  --cell: 34px;
  --rows: 9;
  --cols: 9;
}


/* =========================================================
   2. RESET / BASE
========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  touch-action: manipulation;
  background: var(--bg);
  color: var(--text-dark);
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   3. HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 24px;
  min-width: 0;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 200;
  white-space: nowrap;
}

.desktop-nav a:hover {
  opacity: 0.7;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
}

.brand {
  justify-self: center;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 200;
  white-space: nowrap;
}

.header-cart {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.cart-toggle {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   4. DRAWERS / OVERLAYS
========================================================= */
.menu-overlay,
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-overlay { z-index: 45; }
.cart-overlay { z-index: 55; }

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 360px);
  height: 100vh;
  background: #ffffff;
  color: #000000;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
}

.side-menu-top {
  display: flex;
  justify-content: flex-end;
  padding: 18px 18px 8px;
}

.menu-close,
.cart-close {
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.side-menu-nav {
  display: grid;
  gap: 24px;
  padding: 24px 22px;
}

.side-menu-nav a {
  color: #000000;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.side-menu-bottom {
  margin-top: auto;
  padding: 18px 22px 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 14px;
}

.side-menu-bottom a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 380px);
  height: 100vh;
  background: #ffffff;
  color: #000000;
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-top h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.cart-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-empty {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1.4;
}

.cart-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 18px 20px 24px;
  display: grid;
  gap: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.cart-checkout {
  border: 0;
  background: #000000;
  color: #ffffff;
  height: 48px;
  font-size: 16px;
  cursor: pointer;
}


/* =========================================================
   5. ESTADOS GLOBALES (menu / cart open)
========================================================= */
body.menu-open .side-menu {
  transform: translateX(0);
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.cart-open .cart-drawer {
  transform: translateX(0);
}

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


/* =========================================================
   6. BUSCAMINAS
========================================================= */
.panel {
  width: calc(var(--cols) * var(--cell) + 12px);
  background: var(--ms-mid);
  border-top: 5px solid var(--ms-dark);
  border-left: 5px solid var(--ms-dark);
  border-right: 5px solid var(--ms-light);
  border-bottom: 5px solid var(--ms-light);
  display: grid;
  grid-template-columns: 86px 60px 86px;
  justify-content: center;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.display {
  height: 52px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 4px;
}

.digit {
  width: 22px;
  height: 40px;
  position: relative;
}

.digit .seg {
  position: absolute;
  background: var(--digit-red);
  display: none;
}

.digit .a, .digit .d, .digit .g { width: 14px; height: 4px; left: 4px; }
.digit .a { top: 1px; }
.digit .g { top: 18px; }
.digit .d { bottom: 1px; }
.digit .b, .digit .c, .digit .e, .digit .f { width: 4px; height: 14px; }
.digit .b { top: 4px; right: 1px; }
.digit .c { bottom: 4px; right: 1px; }
.digit .e { bottom: 4px; left: 1px; }
.digit .f { top: 4px; left: 1px; }

.digit.zero .a, .digit.zero .b, .digit.zero .c,
.digit.zero .d, .digit.zero .e, .digit.zero .f,
.digit.one .b, .digit.one .c,
.digit.two .a, .digit.two .b, .digit.two .d, .digit.two .e, .digit.two .g,
.digit.three .a, .digit.three .b, .digit.three .c, .digit.three .d, .digit.three .g,
.digit.four .b, .digit.four .c, .digit.four .f, .digit.four .g,
.digit.five .a, .digit.five .c, .digit.five .d, .digit.five .f, .digit.five .g,
.digit.six .a, .digit.six .c, .digit.six .d, .digit.six .e, .digit.six .f, .digit.six .g,
.digit.seven .a, .digit.seven .b, .digit.seven .c,
.digit.eight .a, .digit.eight .b, .digit.eight .c, .digit.eight .d,
.digit.eight .e, .digit.eight .f, .digit.eight .g,
.digit.nine .a, .digit.nine .b, .digit.nine .c,
.digit.nine .d, .digit.nine .f, .digit.nine .g {
  display: block;
}

.smiley-wrap {
  width: 60px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--ms-mid);
  border-top: 4px solid var(--ms-light);
  border-left: 4px solid var(--ms-light);
  border-right: 4px solid var(--ms-deep);
  border-bottom: 4px solid var(--ms-deep);
  cursor: pointer;
  padding: 0;
}

.smiley-wrap:active {
  border-top: 4px solid var(--ms-deep);
  border-left: 4px solid var(--ms-deep);
  border-right: 4px solid var(--ms-light);
  border-bottom: 4px solid var(--ms-light);
}

.smiley {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5e300;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}

.smiley .eye {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #000;
  top: 10px;
}

.smiley .eye.left  { left: 8px; }
.smiley .eye.right { right: 8px; }

.smiley .mouth {
  position: absolute;
  left: 7px;
  top: 17px;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid #000;
  border-radius: 0 0 12px 12px;
}

.smiley.dead .mouth {
  border-bottom: 0;
  border-top: 2px solid #000;
  top: 20px;
  border-radius: 12px 12px 0 0;
}

.smiley.cool .mouth {
  width: 14px;
  left: 8px;
  top: 18px;
  border-bottom-width: 3px;
}

.smiley.dead .eye.left,
.smiley.dead .eye.right {
  width: 8px;
  height: 8px;
  background: transparent;
  top: 8px;
}

.smiley.dead .eye.left::before, .smiley.dead .eye.left::after,
.smiley.dead .eye.right::before, .smiley.dead .eye.right::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #000;
  top: 3px;
  left: 0;
}

.smiley.dead .eye.left::before,
.smiley.dead .eye.right::before { transform: rotate(45deg); }

.smiley.dead .eye.left::after,
.smiley.dead .eye.right::after  { transform: rotate(-45deg); }

.smiley.cool::before,
.smiley.cool::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 10px;
  height: 6px;
  background: #000;
  border-radius: 2px;
}

.smiley.cool::before { left: 4px; }
.smiley.cool::after  { right: 4px; }
.smiley.cool .eye    { display: none; }

.smiley.cool .bridge {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 8px;
  height: 2px;
  background: #000;
}

.board {
  background: var(--ms-mid);
  border-top: 6px solid var(--ms-dark);
  border-left: 6px solid var(--ms-dark);
  border-right: 6px solid var(--ms-light);
  border-bottom: 6px solid var(--ms-light);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-auto-rows: var(--cell);
}

.cell {
  width: var(--cell);
  height: var(--cell);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  user-select: none;
  position: relative;
}

.cell.hidden {
  background: var(--ms-mid);
  border-top: 4px solid var(--ms-light);
  border-left: 4px solid var(--ms-light);
  border-right: 4px solid var(--ms-dark);
  border-bottom: 4px solid var(--ms-dark);
  cursor: pointer;
}

.cell.revealed {
  background: #bdbdbd;
  border: 1px solid #8d8d8d;
}

.cell.flagged::before {
  content: "";
  position: absolute;
  left: 13px; top: 7px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 14px solid #d00000;
}

.cell.flagged::after {
  content: "";
  position: absolute;
  left: 10px; top: 6px;
  width: 3px; height: 20px;
  background: #000;
}

.cell.mine.revealed .mine-shape,
.cell.mine.revealed .mine-shape::before,
.cell.mine.revealed .mine-shape::after {
  position: absolute;
  content: "";
  background: #000;
}

.cell.mine.revealed .mine-shape {
  width: 2px;
  height: 22px;
}

.cell.mine.revealed .mine-shape::before {
  width: 22px; height: 2px;
  left: -10px; top: 10px;
}

.cell.mine.revealed .mine-shape::after {
  width: 2px; height: 22px;
  transform: rotate(45deg);
  top: 0; left: 0;
}

.cell.mine.revealed .mine-cross {
  position: absolute;
  width: 2px; height: 22px;
  background: #000;
  transform: rotate(-45deg);
}

.cell.n1 { color: var(--blue); }
.cell.n2 { color: var(--green); }
.cell.n3 { color: var(--red); }
.cell.n4 { color: #000084; }
.cell.n5 { color: #840000; }
.cell.n6 { color: #008484; }
.cell.n7 { color: #000000; }
.cell.n8 { color: #7f7f7f; }

.status {
  min-height: 1.4em;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.2;
  margin: 0;
}

.status:empty { display: none; }


/* =========================================================
   7. FOOTER
========================================================= */
.products-footer {
  margin-top: 28px;
  padding: 18px 24px 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.products-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  color: #000000;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 200;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
}

.footer-copy {
  color: #000000;
  font-size: 14px;
  text-align: right;
}

.footer-copy p { margin: 0; }
.footer-copy a { color: #000000; text-decoration: none; }


/* =========================================================
   8. BOTONES GLOBALES
========================================================= */
.btn {
  display: inline-block;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  padding: 14px 18px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #111;
  color: #fff;
}

/* ── Items del drawer ─────────────────────────────────── */

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.cart-item-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #e8e8e8;
  overflow: hidden;
}

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

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-size,
.cart-item-qty {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-top: 2px;
}

.cart-item-remove {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.35);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #111;
}


/* ── Badge en ícono del carro ─────────────────────────── */

.cart-toggle {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}


/* ── Selector de talla en card ────────────────────────── */

.size-selector {
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-label {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.size-selector .size-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-selector .size-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}

.size-selector .size-btn:hover {
  background: #111;
  color: #fff;
}

/* =========================================================
   CHECKOUT
========================================================= */

.checkout-body {
  margin: 0;
  background: #f3f3f3;
  color: #111;
}

.checkout-page {
  min-height: 100vh;
}

.checkout-header {
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.checkout-brand {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
}

.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.checkout-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.checkout-breadcrumb strong {
  color: #fff;
  font-weight: 600;
}

.checkout-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  min-height: calc(100vh - 72px);
}

.checkout-main {
  padding: 40px 40px 56px;
}

.checkout-summary {
  background: #efefef;
  border-left: 1px solid #dddddd;
}

.checkout-summary-inner {
  position: sticky;
  top: 0;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.checkout-block {
  background: transparent;
  border-bottom: 1px solid #dedede;
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.checkout-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.checkout-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.checkout-shoppay-btn {
  width: 100%;
  height: 54px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-divider {
  position: relative;
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #7a7a7a;
}

.checkout-divider::before,
.checkout-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: #dddddd;
}

.checkout-divider::before { left: 0; }
.checkout-divider::after  { right: 0; }

.checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.checkout-section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.checkout-form {
  display: flex;
  flex-direction: column;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 13px;
  color: #555;
}

.form-group input,
.form-group select,
.summary-discount input {
  width: 100%;
  height: 52px;
  border: 1px solid #d4d4d4;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #111;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.summary-discount input:focus {
  border-color: #111;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.check-row input {
  margin-top: 2px;
}

.shipping-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
}

.option-card input {
  margin: 0;
}

.option-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.option-copy small {
  font-size: 12px;
  color: #666;
}

.option-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.checkout-back {
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.checkout-submit {
  min-width: 240px;
  height: 52px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
}

.summary-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  background: #fff;
  border: 1px solid #d8d8d8;
}

.summary-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.summary-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.summary-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}

.summary-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.summary-copy span {
  font-size: 13px;
  color: #666;
}

.summary-price {
  font-size: 14px;
  font-weight: 700;
  padding-top: 4px;
  white-space: nowrap;
}

.summary-discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.summary-discount button {
  min-width: 96px;
  height: 52px;
  border: 1px solid #d4d4d4;
  background: #f7f7f7;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
}

.summary-row strong {
  font-size: 15px;
}

.summary-row-total {
  padding-top: 10px;
  border-top: 1px solid #d8d8d8;
}

.summary-row-total span,
.summary-row-total strong {
  font-size: 24px;
  font-weight: 700;
}

.summary-note {
  border: 1px solid #d9d9d9;
  background: #f7f7f7;
  padding: 16px 18px;
}

.summary-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}

/* =========================================================
   CHECKOUT — COMPONENTES DE PAGO
========================================================= */

.checkout-helper {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card-option {
  align-items: center;
}

.payment-card-option.is-selected {
  border-color: #111;
}

.payment-brands {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-brands span {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d8d8d8;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.payment-panel {
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mine-action-menu {
  display: none;
}

/* =========================================================
   MODO NOCTURNO
========================================================= */

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b10;
  --surface: #17171f;
  --text-dark: #f2f2f5;
  --ms-light: #565666;
  --ms-mid: #292934;
  --ms-dark: #101016;
  --ms-deep: #050508;
  --blue: #64a2ff;
  --green: #56d478;
  --red: #ff6262;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .checkout-body {
  background: var(--bg);
  color: var(--text-dark);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .checkout-header {
  background: #07070a;
  border-bottom-color: rgba(151, 91, 255, 0.35);
}

html[data-theme="dark"] .side-menu,
html[data-theme="dark"] .cart-drawer,
html[data-theme="dark"] .tutorial-panel,
html[data-theme="dark"] .customizer-panel {
  background: #17171f;
  color: #f2f2f5;
}

html[data-theme="dark"] .menu-close,
html[data-theme="dark"] .cart-close,
html[data-theme="dark"] .tutorial-close,
html[data-theme="dark"] .customizer-close,
html[data-theme="dark"] .side-menu-nav a,
html[data-theme="dark"] .side-menu-bottom a {
  color: #f2f2f5;
}

html[data-theme="dark"] .side-menu-bottom,
html[data-theme="dark"] .cart-top,
html[data-theme="dark"] .cart-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .cart-empty,
html[data-theme="dark"] .cart-item-size,
html[data-theme="dark"] .cart-item-qty {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .cart-item-title,
html[data-theme="dark"] .cart-item-price,
html[data-theme="dark"] .cart-item-remove {
  color: #f2f2f5;
}

html[data-theme="dark"] .cart-item-img,
html[data-theme="dark"] .summary-thumb-wrap {
  background: #24242e;
}

html[data-theme="dark"] .cart-checkout,
html[data-theme="dark"] .checkout-submit,
html[data-theme="dark"] .checkout-shoppay-btn {
  background: #7c3cff;
  border-color: #7c3cff;
  color: #ffffff;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .board,
html[data-theme="dark"] .tutorial-board {
  box-shadow: 0 0 24px rgba(124, 60, 255, 0.2);
}

html[data-theme="dark"] .cell.revealed,
html[data-theme="dark"] .tutorial-cell.revealed {
  background: #20202a;
  border-color: #454552;
}

html[data-theme="dark"] .cell.n7,
html[data-theme="dark"] .cell.mine.revealed .mine-shape,
html[data-theme="dark"] .cell.mine.revealed .mine-shape::before,
html[data-theme="dark"] .cell.mine.revealed .mine-shape::after,
html[data-theme="dark"] .cell.mine.revealed .mine-cross {
  color: #ffffff;
  background-color: #ffffff;
}

html[data-theme="dark"] .cell.flagged::after {
  background: #ffffff;
}

html[data-theme="dark"] .status {
  color: rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .size-selector,
html[data-theme="dark"] .size-selector .size-btn {
  border-color: #d8d8df;
  background: #17171f;
  color: #f2f2f5;
}

html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .size-selector .size-btn:hover {
  background: #f2f2f5;
  color: #111111;
}

html[data-theme="dark"] .checkout-summary {
  background: #121219;
  border-color: #30303b;
}

html[data-theme="dark"] .checkout-block,
html[data-theme="dark"] .summary-row-total {
  border-color: #30303b;
}

html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .checkout-kicker,
html[data-theme="dark"] .checkout-helper,
html[data-theme="dark"] .option-copy small,
html[data-theme="dark"] .summary-copy span {
  color: #aaaab5;
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .summary-discount input,
html[data-theme="dark"] .option-card,
html[data-theme="dark"] .payment-panel,
html[data-theme="dark"] .summary-note,
html[data-theme="dark"] .summary-discount button,
html[data-theme="dark"] .payment-brands span {
  border-color: #3b3b47;
  background: #1c1c25;
  color: #f2f2f5;
}

html[data-theme="dark"] .summary-note p,
html[data-theme="dark"] .check-row,
html[data-theme="dark"] .checkout-back {
  color: #d0d0d8;
}

html[data-theme="dark"] ::placeholder {
  color: #858591;
}
