/* =========================================================
   LAYOUT.CSS
   Diagramaciones específicas por página.
========================================================= */


/* =========================================================
   1. INDEX — página principal (juego + productos)
========================================================= */
.page-layout {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  grid-template-rows: 72px 1fr;
  grid-template-areas:
    "header header"
    "game   products";
}

.game-section {
  grid-area: game;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: #f3f3f3;
}

.minesweeper {
  width: max-content;
  max-width: 100%;
}

.game-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.game-shell {
  position: relative;
  width: max-content;
  max-width: 100%;
  padding-bottom: 58px;
}

.game-floating-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.game-tool-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #808080;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: var(--ms-mid);
  color: #111111;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.game-tool-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-tool-button:hover {
  background: #d8d8d8;
}

.game-tool-button:active {
  border-color: #ffffff;
  border-top-color: #808080;
  border-left-color: #808080;
  transform: translateY(1px);
}

.game-customize-toggle {
  justify-self: start;
}

.game-tutorial-toggle {
  justify-self: end;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tutorial-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  width: min(92vw, 620px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 24px;
  background: #ffffff;
  color: #111111;
  border: 4px solid var(--ms-mid);
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #808080,
    0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

body.tutorial-open .tutorial-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.tutorial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.tutorial-kicker {
  margin: 0 0 5px;
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tutorial-head h2 {
  margin: 0;
  font-size: 26px;
}

.tutorial-close {
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 24px;
  cursor: pointer;
}

.tutorial-intro {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.5;
}

.tutorial-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutorial-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  background: #f3f3f3;
  border: 1px solid #d2d2d2;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.tutorial-steps li.active,
.tutorial-steps li.completed {
  opacity: 1;
}

.tutorial-steps li.active {
  border-color: #111111;
}

.tutorial-steps li.completed {
  border-color: #008400;
}

.tutorial-steps li.completed .tutorial-step-number {
  background: #008400;
}

.tutorial-step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #111111;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.tutorial-steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.tutorial-steps p {
  margin: 0;
  color: #444444;
  font-size: 14px;
  line-height: 1.45;
}

.tutorial-choices,
.tutorial-choice-grid {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.tutorial-choices button,
.tutorial-choice-grid button {
  min-height: 38px;
  border: 2px solid #808080;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: var(--ms-mid);
  color: #111111;
  font-weight: 700;
  cursor: pointer;
}

.tutorial-choices button {
  padding: 0 12px;
}

.tutorial-choice-grid button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
}

.tutorial-step:not(.active):not(.completed) button {
  pointer-events: none;
}

.tutorial-choices button.correct,
.tutorial-choice-grid button.correct {
  background: #cceccc;
  border-color: #008400;
}

.tutorial-choices button.wrong,
.tutorial-choice-grid button.wrong {
  background: #ffd5d5;
  border-color: #d40000;
}

.tutorial-choice-grid .tutorial-safe { color: #008400; }
.tutorial-choice-grid .tutorial-flag { color: #d40000; }

.tutorial-feedback {
  min-height: 20px;
  margin-top: 8px !important;
  font-weight: 700;
}

.tutorial-practice {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  opacity: 0.45;
}

.tutorial-practice.enabled {
  opacity: 1;
}

.tutorial-practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tutorial-practice h3 {
  margin: 0;
  font-size: 20px;
}

.tutorial-practice > p {
  margin: 10px 0 14px;
  color: #444444;
  font-size: 14px;
  line-height: 1.45;
}

.tutorial-reset {
  padding: 8px 12px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  cursor: pointer;
}

.tutorial-board {
  --tutorial-cell: 42px;
  width: max-content;
  display: grid;
  grid-template-columns: repeat(5, var(--tutorial-cell));
  grid-auto-rows: var(--tutorial-cell);
  padding: 5px;
  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);
  pointer-events: none;
}

.tutorial-practice.enabled .tutorial-board {
  pointer-events: auto;
}

.tutorial-cell {
  width: var(--tutorial-cell);
  height: var(--tutorial-cell);
  display: grid;
  place-items: center;
  padding: 0;
  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);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

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

.tutorial-cell.flagged,
.tutorial-cell.mine {
  color: #d40000;
}

.tutorial-cell.n1 { color: var(--blue); }
.tutorial-cell.n2 { color: var(--green); }
.tutorial-cell.n3 { color: var(--red); }
.tutorial-cell.n4 { color: #000084; }

.tutorial-practice-status {
  min-height: 22px;
  font-weight: 700;
}

.customizer-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.customizer-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  width: min(92vw, 620px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 24px;
  background: #ffffff;
  color: #111111;
  border: 4px solid var(--ms-mid);
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #808080,
    0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

body.customizer-open .customizer-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.customizer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.customizer-kicker {
  margin: 0 0 5px;
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customizer-head h2 {
  margin: 0;
  font-size: 25px;
}

.customizer-close {
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 24px;
  cursor: pointer;
}

.customizer-preview {
  margin: 18px 0;
  display: grid;
  place-items: center;
}

.preview-minesweeper {
  width: max-content;
  padding: 10px;
  background: var(--ms-mid);
  border-top: 5px solid var(--ms-light);
  border-left: 5px solid var(--ms-light);
  border-right: 5px solid var(--ms-dark);
  border-bottom: 5px solid var(--ms-dark);
}

.preview-panel {
  display: grid;
  grid-template-columns: 68px 46px 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 8px;
  background: var(--ms-mid);
  border-top: 4px solid var(--ms-dark);
  border-left: 4px solid var(--ms-dark);
  border-right: 4px solid var(--ms-light);
  border-bottom: 4px solid var(--ms-light);
}

.preview-display {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: #000000;
  color: var(--digit-red);
  font-family: "Courier New", monospace;
  font-size: 23px;
  font-weight: 700;
}

.preview-face {
  width: 38px;
  height: 38px;
  position: relative;
  justify-self: center;
  border: 2px solid var(--ms-dark);
  border-top-color: var(--ms-light);
  border-left-color: var(--ms-light);
  background: #ffd93b;
}

.preview-face .eye {
  position: absolute;
  top: 11px;
  width: 4px;
  height: 4px;
  background: #000000;
}

.preview-face .eye.left { left: 9px; }
.preview-face .eye.right { right: 9px; }

.preview-face .mouth {
  position: absolute;
  left: 11px;
  bottom: 8px;
  width: 14px;
  height: 7px;
  border-bottom: 2px solid #000000;
  border-radius: 0 0 14px 14px;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-auto-rows: 42px;
  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);
}

.preview-cell {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.preview-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);
}

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

.preview-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;
}

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

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

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

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

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

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

.preview-cell.n1 { color: var(--blue); }
.preview-cell.n2 { color: var(--green); }

body[data-face-skin="alien"] .smiley,
body[data-face-skin="alien"] .preview-face {
  background: #72e66f;
  border-radius: 50%;
}

body[data-face-skin="dog"] .smiley,
body[data-face-skin="dog"] .preview-face {
  background: #d69a52;
  border-radius: 44% 44% 50% 50%;
}

body[data-face-skin="alien"] .smiley > *,
body[data-face-skin="dog"] .smiley > *,
body[data-face-skin="alien"] .preview-face > *,
body[data-face-skin="dog"] .preview-face > * {
  display: none;
}

body[data-face-skin="alien"] .smiley::before,
body[data-face-skin="dog"] .smiley::before,
body[data-face-skin="alien"] .preview-face::before,
body[data-face-skin="dog"] .preview-face::before {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  color: #000000;
  background: transparent;
  border-radius: 0;
  transform: none;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 22px;
  line-height: 1;
}

body[data-face-skin="alien"] .smiley::after,
body[data-face-skin="dog"] .smiley::after,
body[data-face-skin="alien"] .preview-face::after,
body[data-face-skin="dog"] .preview-face::after {
  display: none;
  content: none;
}

body[data-face-skin="alien"] .smiley::before,
body[data-face-skin="alien"] .preview-face::before {
  content: "\1F47D";
}

body[data-face-skin="dog"] .smiley::before,
body[data-face-skin="dog"] .preview-face::before {
  content: "\1F436";
}

body[data-mine-skin="cow"] .cell.mine.revealed .mine-shape,
body[data-mine-skin="cow"] .cell.mine.revealed .mine-shape::before,
body[data-mine-skin="cow"] .cell.mine.revealed .mine-shape::after,
body[data-mine-skin="cow"] .cell.mine.revealed .mine-cross,
body[data-mine-skin="poop"] .cell.mine.revealed .mine-shape,
body[data-mine-skin="poop"] .cell.mine.revealed .mine-shape::before,
body[data-mine-skin="poop"] .cell.mine.revealed .mine-shape::after,
body[data-mine-skin="poop"] .cell.mine.revealed .mine-cross,
body[data-mine-skin="cow"] .preview-cell .mine-shape,
body[data-mine-skin="cow"] .preview-cell .mine-shape::before,
body[data-mine-skin="cow"] .preview-cell .mine-shape::after,
body[data-mine-skin="cow"] .preview-cell .mine-cross,
body[data-mine-skin="poop"] .preview-cell .mine-shape,
body[data-mine-skin="poop"] .preview-cell .mine-shape::before,
body[data-mine-skin="poop"] .preview-cell .mine-shape::after,
body[data-mine-skin="poop"] .preview-cell .mine-cross {
  display: none;
}

body[data-mine-skin="cow"] .cell.mine.revealed::before,
body[data-mine-skin="poop"] .cell.mine.revealed::before,
body[data-mine-skin="cow"] .preview-cell.mine-preview::before,
body[data-mine-skin="poop"] .preview-cell.mine-preview::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 24px;
  line-height: 1;
}

body[data-mine-skin="cow"] .cell.mine.revealed::before,
body[data-mine-skin="cow"] .preview-cell.mine-preview::before {
  content: "\1F42E";
}

body[data-mine-skin="poop"] .cell.mine.revealed::before,
body[data-mine-skin="poop"] .preview-cell.mine-preview::before {
  content: "\1F4A9";
}

.customizer-groups {
  display: grid;
  gap: 14px;
}

.customizer-group {
  display: grid;
  gap: 12px;
  padding: 15px;
  background: #f3f3f3;
  border: 1px solid #d2d2d2;
}

.customizer-group h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.customizer-group p {
  margin: 0;
  color: #444444;
  font-size: 14px;
  line-height: 1.4;
}

.customizer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customizer-option {
  border: 2px solid #808080;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: var(--ms-mid);
  color: #111111;
  cursor: pointer;
}

.customizer-option {
  min-height: 36px;
  padding: 0 12px;
  font-weight: 700;
}

.customizer-option.active {
  border-color: #111111;
  box-shadow: 0 0 0 2px #111111;
}

.products-section {
  grid-area: products;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}

.products-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}


/* =========================================================
   2. PRODUCTO — página de detalle
========================================================= */
.product-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 96px 40px 40px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Galería con miniaturas */
.product-detail-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  top: 100px;
  max-height: 700px;
  max-width: 700px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thumb {
  width: 80px;
  height: 80px;
  border: 1px solid transparent;
  background: #efefef;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb.active {
  border-color: #111;
}

.gallery-main {
  background: #f3f3f3;
  overflow: hidden;
  max-height: 700px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 700px;
  object-fit: contain;
}

/* Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 50%;
  min-height: 600px;
  padding-top: 8px;
  justify-content: space-between;
}

.product-info .product-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin: 0;
}

.product-info .product-title {
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-price-old {
  color: #999;
  text-decoration: line-through;
  font-size: 15px;
}

.product-info .product-price {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

/* Tallas */
.product-sizes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sizes-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111;
  margin: 0;
}

.sizes-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-sizes .size-btn {
  min-width: 48px;
  height: 48px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 14px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.product-sizes .size-btn:hover {
  border-color: #111;
}

.product-sizes .size-btn.selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Botones */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-actions .btn {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-primary:hover { background: #333; }

.btn-secondary {
  background: transparent;
  color: #111;
  border-color: #111;
}

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

/* Descripción */
.product-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 16px;
}

.product-meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Recomendados */
.recommended {
  /* max-width: 1200px; */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 40px 40px;
}

.recommended h2 {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}


/* =========================================================
   3. CATÁLOGO
========================================================= */
.catalog-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
}

.catalog-section {
  flex: 1;
  padding: 24px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  background: #ffffff;
  color: #111111;
  position: relative;
  overflow: hidden;
}

.catalog-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ececec;
  display: grid;
  place-items: center;
}

.catalog-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-info {
  padding: 14px 14px 16px;
}

.catalog-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.catalog-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.7);
}

.catalog-card .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.2s ease;
}

.lock-message {
  display: grid;
  gap: 6px;
}

.lock-message strong {
  font-size: 34px;
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.05em;
}

.lock-message span {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.72);
}

.catalog-card.unlocked .lock-overlay {
  opacity: 0;
  pointer-events: none;
}

html[data-theme="dark"] .game-section,
html[data-theme="dark"] .products-section,
html[data-theme="dark"] .gallery-main {
  background: var(--bg);
}

html[data-theme="dark"] .game-tool-button,
html[data-theme="dark"] .customizer-option {
  border-color: #101016;
  border-top-color: #565666;
  border-left-color: #565666;
  background: #292934;
  color: #f2f2f5;
}

html[data-theme="dark"] .tutorial-head,
html[data-theme="dark"] .tutorial-practice,
html[data-theme="dark"] .customizer-head,
html[data-theme="dark"] .customizer-group {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .tutorial-kicker,
html[data-theme="dark"] .tutorial-steps p,
html[data-theme="dark"] .tutorial-practice > p,
html[data-theme="dark"] .customizer-kicker,
html[data-theme="dark"] .customizer-group p {
  color: #aaaab5;
}

html[data-theme="dark"] .tutorial-steps li,
html[data-theme="dark"] .customizer-group {
  background: #20202a;
  border-color: #3b3b47;
}

html[data-theme="dark"] .tutorial-steps li.active {
  border-color: #9c6cff;
}

html[data-theme="dark"] .tutorial-choices button,
html[data-theme="dark"] .tutorial-choice-grid button,
html[data-theme="dark"] .tutorial-reset {
  border-color: #101016;
  border-top-color: #565666;
  border-left-color: #565666;
  background: #292934;
  color: #f2f2f5;
}

html[data-theme="dark"] .game-tool-button:hover {
  background: #343442;
}

html[data-theme="dark"] .customizer-option.active {
  border-color: #f2f2f5;
  box-shadow: 0 0 0 2px #f2f2f5;
}

html[data-theme="dark"] .product-info .product-meta,
html[data-theme="dark"] .product-description,
html[data-theme="dark"] .product-meta {
  color: #aaaab5;
}

html[data-theme="dark"] .thumb,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .catalog-visual {
  background: #17171f;
  color: #f2f2f5;
}

html[data-theme="dark"] .catalog-info p,
html[data-theme="dark"] .lock-message span {
  color: #aaaab5;
}

html[data-theme="dark"] .catalog-card .lock-overlay {
  background: rgba(11, 11, 16, 0.8);
}

html[data-theme="dark"] .product-sizes .size-btn {
  border-color: #4b4b58;
  background: #17171f;
  color: #f2f2f5;
}

html[data-theme="dark"] .product-sizes .size-btn.selected,
html[data-theme="dark"] .btn-primary {
  background: #7c3cff;
  border-color: #7c3cff;
  color: #ffffff;
}

html[data-theme="dark"] .product-lock-notice {
  border-color: #9c6cff;
  background: #251b3b;
  color: #f2f2f5;
}

html[data-theme="dark"] .products-footer {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .footer-brand,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .footer-copy a {
  color: #d8d8df;
}

.product-lock-notice {
  display: none;
  padding: 16px;
  border: 1px solid #111;
  background: #fff5d8;
  color: #111;
  gap: 8px;
}

.product-lock-notice strong,
.product-lock-notice span,
.product-lock-notice a {
  display: block;
}

.product-lock-notice a {
  width: max-content;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.product-locked .product-lock-notice {
  display: grid;
}

.product-locked .product-detail-gallery,
.product-locked .product-pricing,
.product-locked .product-sizes {
  opacity: 0.45;
}

.product-locked .gallery-main img {
  filter: grayscale(1);
}

.product-locked .thumb,
.product-locked .product-sizes .size-btn,
.product-locked #addToCartBtn {
  cursor: not-allowed;
}

.product-locked #addToCartBtn {
  opacity: 0.45;
}
