/* Verde Lima BCN — tokens del sitio original */
:root {
  --color-decoration: #e4ded0;
  --color-link: #384c94;
  --color-affirmation: #387469;
  --color-attention: #67d055;
  --color-text: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.4);
  --color-text-light: rgba(0, 0, 0, 0.2);
  --color-btn-primary: #384c94;
  --color-btn-primary-text: #ffffff;
  --color-btn-secondary: rgba(0, 0, 0, 0.08);
  --color-btn-secondary-text: #000000;
  --color-sold-out-bg: #d4edda;
  --color-sold-out-text: #387469;
  --font-heading: 'Cutive Mono', 'Courier New', monospace;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --max-width: 1200px;
}

@font-face {
  font-family: 'Open Sans';
  src: url('https://static.sumup.com/online-store/fonts/open-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('https://static.sumup.com/online-store/fonts/open-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cutive Mono';
  src: url('https://static.sumup.com/online-store/fonts/cutive-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-decoration);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}

.site-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.site-brand {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-link);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav a:hover { color: var(--color-link); }

.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.breadcrumbs a { color: var(--color-link); }

.product-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: layout;
}

.product-gallery__main {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--color-link);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.product-info__badge {
  display: inline-block;
  background: var(--color-sold-out-bg);
  color: var(--color-sold-out-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.product-info__price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.customizer-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label,
.form-group .form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  appearance: none;
  border-radius: 0;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid var(--color-link);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.thread-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thread-swatch {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s;
}

.thread-swatch:hover { transform: scale(1.1); }

.thread-swatch.selected {
  border-color: var(--color-link);
  box-shadow: 0 0 0 2px var(--color-decoration), 0 0 0 4px var(--color-link);
}

.thread-swatch[data-light="true"] {
  border-color: rgba(0, 0, 0, 0.25);
}

.thread-color-name {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.font-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .font-options { grid-template-columns: repeat(4, 1fr); }
}

.font-option {
  padding: 0.65rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.font-option:hover {
  border-color: var(--color-link);
}

.font-option.selected {
  border-color: var(--color-link);
  background: rgba(56, 76, 148, 0.08);
  box-shadow: inset 0 0 0 1px var(--color-link);
}

.quantity-control {
  display: flex;
  align-items: stretch;
  max-width: 140px;
}

.quantity-btn {
  width: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
}

.quantity-btn:hover { background: rgba(0, 0, 0, 0.05); }

.quantity-input {
  width: 60px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5rem;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.88; text-decoration: none; }

.btn-primary {
  background: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
}

.btn-secondary {
  background: var(--color-btn-secondary);
  color: var(--color-btn-secondary-text);
}

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

.btn-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.customization-summary {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem;
  font-size: 0.85rem;
}

.customization-summary h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.customization-summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.customization-summary dt {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customization-summary dd { margin: 0; }

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin: 2rem 0 0.5rem;
  font-weight: 400;
}

.page-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.product-grid {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.product-card:hover { text-decoration: none; }

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.75rem;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.product-card__price {
  font-size: 0.9rem;
  margin: 0;
}

.product-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-sold-out-text);
  text-transform: uppercase;
}

.product-card__link-hint {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 1rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
}

.footer-links a { color: var(--color-text); }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-affirmation);
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  max-width: 90vw;
  text-align: center;
}

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

.embroidery-preview {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  contain: layout paint;
}

.embroidery-preview__box {
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.embroidery-preview__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.embroidery-preview__text {
  display: block;
  position: static;
  transform: none;
  max-width: 100%;
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

.hidden { display: none !important; }
