@font-face {
    font-family: "Stretch Pro";
    src: url("../fonts/StretchPro.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}
:root {
    --green:      #14532d;
    --green-dark: #0d3d20;
    --green-mid:  #1a6635;
    --gold:       #d4a017;
    --gold-hover: #e8b420;
    --white:      #ffffff;
    --gray:       #e5e7eb;
    --muted:      #9ca3af;
    --error:      #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #f7f7f5;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--green-dark);
    padding: 18px 0;
    border-bottom: 3px solid var(--gold);
}
.header-brand { display: flex; align-items: baseline; gap: 12px; }
.brand-name {
    font-family: 'Stretch Pro', 'Oswald', sans-serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--gold); letter-spacing: 0.1em;
}
.brand-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem; color: rgba(255,255,255,0.4); letter-spacing: 0.15em;
}

/* Product page */
.product-page { flex: 1; padding: 52px 0; }
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Images */
.product-images { position: sticky; top: 24px; }
.image-main {
    background: var(--green);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jersey-img { width: 100%; height: 100%; object-fit: contain;  display: none; }
.jersey-img.active { display: block; }
.image-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 280px;
    flex-direction: column; gap: 12px; 
}
.placeholder-number {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem; font-weight: 700;
    color: rgba(255,255,255,0.15); line-height: 1;
    user-select: none;
}
.placeholder-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem; font-weight: 600;
    color: rgba(255,255,255,0.4); letter-spacing: 0.15em;
}
.image-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb {
    flex: 1; background: var(--green); border: 2px solid transparent;
    border-radius: 8px; overflow: hidden; cursor: pointer; padding: 8px;
    transition: border-color 0.2s;
}
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.thumb-placeholder {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif; font-size: 0.75rem;
    color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
}

/* Details */
.product-badge {
    display: inline-block;
    background: var(--gold); color: var(--green-dark);
    font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.12em; padding: 4px 12px; border-radius: 4px; margin-bottom: 16px;
}
.product-title {
    font-family: 'Stretch Pro', 'Oswald', sans-serif;
    font-size: 2.6rem; font-weight: 700; color: var(--green-dark);
    line-height: 1.1; margin-bottom: 4px;
}
.product-subtitle { font-size: 0.95rem; color: #6b7280; margin-bottom: 18px; }
.product-price {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem; font-weight: 700; color: var(--green);
    line-height: 1; margin-bottom: 18px;
}
.product-price .currency { font-size: 1.5rem; vertical-align: super; }
.product-description { font-size: 0.92rem; color: #4b5563; line-height: 1.65; }

.divider { height: 1px; background: var(--gray); margin: 26px 0; }

/* Options */
.option-group { margin-bottom: 26px; }
.option-label {
    display: block;
    font-family: 'Oswald', sans-serif; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.1em; color: var(--green-dark); margin-bottom: 10px;
}
.option-hint { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }

/* Size grid */
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
    min-width: 50px; padding: 9px 13px;
    background: white; border: 1.5px solid var(--gray); border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
    color: #374151; cursor: pointer; transition: all 0.15s;
}
.size-btn:hover { border-color: var(--green); color: var(--green); }
.size-btn.selected { background: var(--green); border-color: var(--green); color: white; }

/* Number input */
.number-input-wrapper {
    display: flex; align-items: center;
    width: fit-content;
    border: 1.5px solid var(--gray); border-radius: 8px; overflow: hidden;
}
.number-btn {
    width: 44px; height: 52px; background: #f9fafb; border: none;
    font-size: 1.4rem; color: #374151; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.number-btn:hover { background: var(--gray); }
.number-input {
    width: 80px; height: 52px; border: none;
    border-left: 1.5px solid var(--gray); border-right: 1.5px solid var(--gray);
    text-align: center;
    font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 600;
    color: var(--green-dark); outline: none; background: white;
}
.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Error */
.error-msg {
    background: #fef2f2; border: 1px solid #fecaca; color: var(--error);
    border-radius: 6px; padding: 10px 14px; font-size: 0.875rem; margin-bottom: 16px;
}

/* Buy button */
.btn-comprar {
    width: 100%; padding: 18px;
    background: var(--gold); border: none; border-radius: 8px;
    font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700;
    letter-spacing: 0.08em; color: var(--green-dark);
    cursor: pointer; transition: background 0.2s, transform 0.1s;
    margin-bottom: 12px;
}
.btn-comprar:hover { background: var(--gold-hover); }
.btn-comprar:active { transform: scale(0.99); }
.btn-comprar:disabled { opacity: 0.65; cursor: not-allowed; }
.secure-note { text-align: center; font-size: 0.78rem; color: var(--muted); }

/* Footer */
.site-footer {
    background: var(--green-dark); color: rgba(255,255,255,0.45);
    text-align: center; padding: 18px 0; font-size: 0.8rem;
    border-top: 3px solid var(--gold);
}
.site-footer strong { color: var(--gold); }

/* Confirmation / Cancel pages */
.status-page {
    flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px;
}
.status-card {
    background: white; border-radius: 16px; padding: 52px 48px;
    text-align: center; max-width: 480px; width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.status-icon { font-size: 3.5rem; margin-bottom: 20px; }
.status-title {
    font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700;
    color: var(--green-dark); margin-bottom: 12px;
}
.status-text { font-size: 0.95rem; color: #4b5563; line-height: 1.6; margin-bottom: 32px; }
.btn-back {
    display: inline-block; padding: 14px 32px;
    background: var(--green); color: white; text-decoration: none;
    border-radius: 8px; font-family: 'Oswald', sans-serif;
    font-size: 1rem; font-weight: 600; letter-spacing: 0.06em;
    transition: background 0.2s;
}
.btn-back:hover { background: var(--green-mid); }

@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-images { position: static; }
    .product-title { font-size: 2rem; }
    .status-card { padding: 36px 24px; }
}
