:root {
    --primary: #0f172a;
    --secondary: #00bfa6;
    --accent: #f59e0b;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --bg-light: #f7f9fc;
    --surface: #ffffff;
    --muted: #64748b;
    --border: #e5e9f2;
    --radius: 14px;
    --shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
    --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
    --ring: rgba(0, 191, 166, 0.3);
    --band-teal: rgba(0, 191, 166, 0.08);
}

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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(1200px 600px at 100% -50%, rgba(0, 191, 166, 0.08), transparent 60%),
        linear-gradient(var(--bg-light), var(--bg-light));
    line-height: 1.6;
}

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

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 160ms ease, opacity 160ms ease;
}

a:hover {
    color: #0aa48f;
}

p {
    margin: 0 0 1rem 0;
    color: var(--muted);
}

h1, h2, h3, h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 32px;
}

.section-lead {
    max-width: 640px;
    color: var(--muted);
    margin: 0.5rem 0 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 191, 166, 0.10);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

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

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.95rem 1.5rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease, color 160ms ease;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.45);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(22px) saturate(1.2);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    transition: height 180ms ease;
}

header.is-scrolled .logo-img {
    height: 72px;
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: relative;
}

nav a:hover {
    color: var(--secondary);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.2s ease;
}

nav a:hover::after,
nav a.is-active::after {
    width: 100%;
}

.nav-indicator {
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--secondary), #34d399);
    box-shadow: 0 4px 18px rgba(0, 191, 166, 0.35);
    transition: left 200ms cubic-bezier(0.16,1,0.3,1), width 200ms cubic-bezier(0.16,1,0.3,1), opacity 160ms ease;
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dark);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
}

.nav-toggle-icon {
    display: block;
}

.nav-toggle-icon .line {
    transition: transform 200ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .line1 {
    transform-origin: 12px 7px;
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle[aria-expanded="true"] .line2 {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .line3 {
    transform-origin: 12px 17px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.right-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a.social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    border: 1px solid var(--border);
    background-color: var(--surface);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-links a.social:hover {
    transform: translateY(-1px);
    background-color: rgba(0, 191, 166, 0.08);
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.social-links a.instagram { background-image: url('https://api.iconify.design/tabler/brand-instagram.svg?color=%230f172a'); }
.social-links a.facebook  { background-image: url('https://api.iconify.design/tabler/brand-facebook.svg?color=%230f172a'); }
.social-links a.whatsapp  { background-image: url('https://api.iconify.design/tabler/brand-whatsapp.svg?color=%230f172a'); }

/* Hero */
.merch-hero {
    position: relative;
    padding: 140px 0 90px;
    overflow: hidden;
}

.merch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 520px at 70% 10%, rgba(0, 191, 166, 0.16), transparent 60%);
    z-index: 0;
}

.merch-hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 2rem;
}

.hero-copy h1 {
    font-size: 2.8rem;
    line-height: 1.1;
}

.hero-copy p {
    font-size: 1.05rem;
    max-width: 640px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.hero-media {
    position: relative;
}

.hero-media .hero-card {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.hero-media img {
    border-radius: 14px;
}

/* Product photos */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

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

.media-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.5rem;
    background: repeating-linear-gradient(135deg, #0f172a 0, #0f172a 12px, #17233a 12px, #17233a 24px);
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.media-fallback small {
    display: block;
    font-weight: 400;
    margin-top: 6px;
    opacity: 0.85;
}

.with-fallback .media-fallback {
    display: none;
}

.with-fallback {
    position: relative;
}

.with-fallback.show-placeholder img[data-fallback-image] {
    display: none;
}

.with-fallback.show-placeholder .media-fallback {
    display: grid;
}

/* Configurator */
.config-section {
    padding: 90px 0;
}

.config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.config-form {
    display: grid;
    gap: 1rem;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 0;
    background: var(--surface);
}

legend {
    padding: 0 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.field-helper {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.option-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.option-card {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.option-card input {
    margin: 0;
}

.option-title {
    font-weight: 700;
}

.option-price {
    color: var(--muted);
    font-size: 0.95rem;
}

.options-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pill-choice {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pill-choice:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.pill-choice input {
    margin: 0;
}

label {
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 140ms ease, box-shadow 140ms ease;
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--ring);
}

.field-group {
    display: grid;
    gap: 0.5rem;
}

.field-error {
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.95rem;
}

.summary-panel {
    position: sticky;
    top: 96px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.summary-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 1rem 0;
}

.summary-media img {
    width: 100%;
    height: auto;
}

.summary-rows {
    display: grid;
    gap: 10px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--muted);
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
}

.cta-stack {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.alert {
    margin: 0 0 0.5rem 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    font-weight: 600;
}

.alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 1200;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.1);
    z-index: 1000;
}

.floating-cta .btn {
    width: 100%;
}

/* FAQ & terms */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: var(--surface);
}

.terms-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(0, 191, 166, 0.08);
    border: 1px dashed var(--secondary);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.size-table th,
.size-table td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: center;
}

.size-table th {
    background: rgba(15, 23, 42, 0.04);
}

/* Footer */
footer {
    background: var(--primary);
    color: #e2e8f0;
    padding: 3rem 1.5rem 2rem;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-content h4 {
    color: #e2e8f0;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .logo-img {
        height: 78px;
    }
    header.is-scrolled .logo-img {
        height: 70px;
    }
    .config-grid {
        grid-template-columns: 1fr;
    }
    .summary-panel {
        position: static;
    }
}

@media (max-width: 880px) {
    body {
        padding-bottom: 120px;
    }
    .top-bar {
        flex-wrap: wrap;
    }
    .nav-toggle {
        display: inline-flex;
    }
    header nav {
        display: none;
        width: 100%;
    }
    header nav.is-open {
        display: block;
    }
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }
    nav a::after {
        display: none;
    }
    .right-tools {
        width: 100%;
        justify-content: flex-end;
    }
    .floating-cta {
        display: block;
    }
}

@media (max-width: 640px) {
    .merch-hero {
        padding: 110px 0 70px;
    }
    .hero-copy h1 {
        font-size: 2.1rem;
    }
    .section {
        padding: 64px 0;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
