:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --bg-card-hover: #1f1f1f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #f1f1f1;
    --accent-color: #c90000; /* Subtle sporty red */
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #1da851;
    --border-color: #2a2a2a;
    --border-radius: 8px;
    
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* Typography styles */
h1, h2, h3, .logo-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-text {
    color: var(--primary-color);
    font-size: 34px;
}

.cart-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--whatsapp-green);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

/* ================= HERO BANNER ================= */
.hero {
    position: relative;
    width: 100%;
    padding-top: 70px; /* Offset header */
    background-color: #000;
    display: block;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-bg {
    width: 100%;
    max-width: 100%; /* Permite visualização full wide */
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-hero-float {
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.btn-whatsapp-large {
    background-color: var(--whatsapp-green);
    color: #fff;
}

.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================= CATALOG SECTION ================= */
.catalog-section {
    padding: 80px 20px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--whatsapp-green);
}

.products-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.products-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.products-grid::-webkit-scrollbar {
    display: none;
}

.grid-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s, transform 0.3s;
    font-size: 20px;
}

.grid-scroll-btn:hover {
    background: var(--whatsapp-green);
    transform: translateY(-50%) scale(1.1);
}

.grid-scroll-left { left: -22px; }
.grid-scroll-right { right: -22px; }

@media (max-width: 768px) {
    .grid-scroll-btn { display: none; }
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 260px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: #333;
}

.product-img-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #222;
}

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

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

.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    flex-grow: 1;
}

.product-price {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--whatsapp-green);
    margin-bottom: 5px;
}

.installments-text {
    font-size: 0.85rem;
    color: var(--whatsapp-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.old-price {
    display: block;
    font-size: 1.0rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
    font-weight: 300;
    line-height: 1;
}

.product-btn {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover .product-btn {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

/* ================= MODAL PRODUCT PAGE ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-main);
}

.product-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.product-page-gallery {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.main-image-container {
    position: relative;
    flex-grow: 1;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
}

.share-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: black;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.carousel-btn:hover {
    background-color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

#modal-product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* THUMBNAILS GALLERY */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 500px; /* Alterado de 100% para não expandir infinitamente */
}

.thumbnail-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.thumbnail-img:hover {
    opacity: 1;
}

.thumbnail-img.active {
    border-color: #fff;
    opacity: 1;
}

.price-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 10px;
}

.qty-selector {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 5px 15px;
}

.qty-selector button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

#qty-value {
    font-size: 1.1rem;
    padding: 0 10px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.doubt-section {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.doubt-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-outline-small {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-small:hover {
    background: white;
    color: black;
}

.product-page-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.product-page-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.size-selector {
    margin: 30px 0;
}

.size-selector h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.size-options {
    display: flex;
    gap: 15px;
}

.size-btn {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: var(--text-muted);
}

.size-btn.out-of-stock {
    opacity: 0.3;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: #333;
}

.size-btn.out-of-stock:hover {
    border-color: #333;
}

.size-btn.selected {
    background-color: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
    font-weight: bold;
}

.error-msg {
    color: #ff4b4b;
    font-size: 0.9rem;
    margin-top: 10px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ================= CART SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 1000;
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--whatsapp-green);
    font-weight: bold;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4b4b;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #0f0f0f;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* ================= FOOTER ================= */
.footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-links p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.social-links a {
    color: var(--text-main);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--whatsapp-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================= FLOATING WHATSAPP ================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ================= COLLECTIONS (LEAGUES) ================= */
.collections-wrapper {
    padding: 30px 20px 10px;
}

.collections-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.collections-scroll::-webkit-scrollbar {
    display: none;
}

.collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 80px;
    transition: transform 0.2s;
}

.collection-item:hover {
    transform: scale(1.05);
}

.collection-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    padding: 2px;
    background-color: var(--bg-card);
    overflow: hidden;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

.collection-img-wrapper img, .collection-img-wrapper svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.collection-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

/* Active State */
.collection-item.active .collection-img-wrapper {
    border-color: var(--whatsapp-green);
}

.collection-item.active .collection-name {
    color: var(--text-main);
    font-weight: 600;
}

/* Page Transition Helpers */
.hidden {
    display: none !important;
}

/* ================= CHECKOUT MODAL ================= */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.form-input {
    background-color: #111;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--whatsapp-green);
}

.form-input::placeholder {
    color: #555;
}

/* Custom Radio Buttons */
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    background-color: #111;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.3s, background-color 0.3s;
}

.radio-option:hover {
    background-color: #1a1a1a;
}

.radio-option input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--whatsapp-green);
    transform: scale(1.2);
}

.radio-text {
    display: flex;
    flex-direction: column;
}

.radio-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--whatsapp-green);
    background-color: #0d1a11;
}

.checkout-section h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.thumbnail-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.thumbnail-img:hover {
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: var(--whatsapp-green);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
    /* Header e Banner */
    .header-container { padding: 0 15px; }
    .logo-text { font-size: 26px; }
    .hero-content { bottom: 2%; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 25px; }
    .btn-hero-float { padding: 8px 16px; font-size: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,0.8); }
    
    /* WhatsApp */
    .floating-whatsapp { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .floating-whatsapp svg { width: 24px; height: 24px; }
    
    /* Seção de Catálogo */
    .catalog-section { padding: 40px 10px; }
    .section-title { font-size: 2.2rem; }
    
    /* Modal / Produto Interno */
    .modal-content { max-height: 95vh; margin: 10px; width: auto; }
    .product-page-layout { display: flex; flex-direction: column; gap: 15px; }
    .product-page-gallery { flex-direction: column-reverse; gap: 10px; }
    .product-thumbnails { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 5px; }
    .thumbnail-img { width: 70px !important; min-width: 70px; height: auto !important; }
    .product-page-info { padding: 20px 15px; }
    .product-page-info h2 { font-size: 1.8rem; }
    .price-qty-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    /* Modal de Checkout */
    .checkout-page { padding: 15px !important; }
    .checkout-header h2 { font-size: 1.5rem; }
    .radio-text strong { display: block; font-size: 0.95rem; }
    .radio-desc { font-size: 0.8rem; }
    
    /* Quebra de colunas inline do Checkout */
    #address-form div[style*="display: flex"] { flex-direction: column !important; }
    #address-form .form-group { width: 100% !important; flex: none !important; }
}
