/* ==========================================================================
   SpinStudio Premium Stylesheet
   Design Language: Sleek Dark Cyberpunk / High-Performance Table Tennis
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-dark: #070a13;
    --bg-card: rgba(16, 22, 42, 0.65);
    --bg-card-hover: rgba(25, 34, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(204, 255, 0, 0.3);
    
    /* Neon Branding Palettes */
    --accent-green: #d1fe03; /* Official Andro brand neon green */
    --accent-green-glow: rgba(209, 254, 3, 0.35);
    --accent-blue: #00f0ff;
    --accent-blue-glow: rgba(0, 240, 255, 0.25);
    --accent-red: #ff3366;
    
    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-title: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Background glows */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    transition: var(--transition-smooth);
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

/* Typography & Global Elements */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Common Helper Classes */
.hidden {
    display: none !important;
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-green) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header and Navigation Style
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(7, 10, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header-logo-img:hover {
    transform: scale(1.03);
}

.logo-accent {
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-green-glow);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-main);
}

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

.nav-link.active {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-toggle-btn {
    position: relative;
    padding: 0.5rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.cart-toggle-btn:hover {
    color: var(--accent-green);
    transform: scale(1.05);
}

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #a2c700 100%);
    color: #070a13;
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(209, 254, 3, 0.4);
    transition: var(--transition-smooth);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section Style
   ========================================================================== */
.hero-section {
    max-width: var(--max-width);
    margin: calc(var(--header-height) + 3rem) auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background-color: rgba(209, 254, 3, 0.08);
    border: 1px solid rgba(209, 254, 3, 0.15);
    color: var(--accent-green);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(209, 254, 3, 0.05);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, #a2c700 100%);
    color: #070a13;
    padding: 0.95rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(209, 254, 3, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(209, 254, 3, 0.4);
    background: linear-gradient(135deg, #dfff33 0%, var(--accent-green) 100%);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.95rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(209, 254, 3, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-logo-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
    animation: floatRacket 6s ease-in-out infinite;
    z-index: 1;
}

/* Premium racket SVG / CSS illustration */
.racket-illustration {
    position: relative;
    width: 320px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatRacket 6s ease-in-out infinite;
    z-index: 1;
}

.racket-head {
    width: 250px;
    height: 270px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    border: 8px solid #c70039; /* rubber baseline red edge */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.racket-head.red-side {
    background: radial-gradient(circle at 35% 35%, #ff2e63 0%, #b0003a 80%);
}

.rubber-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.15) 15%, transparent 20%);
    background-size: 6px 6px;
    opacity: 0.45;
}

.andro-brand-tag {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #070a13;
    color: var(--accent-green);
    padding: 0.15rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(209, 254, 3, 0.3);
}

.racket-handle {
    width: 38px;
    height: 110px;
    background: linear-gradient(90deg, #1e293b 0%, #475569 25%, #334155 50%, #475569 75%, #1e293b 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: -1;
    margin-top: -10px;
    border-bottom: 8px solid var(--accent-green);
}

@keyframes floatRacket {
    0%, 100% {
        transform: translateY(0) rotate(3deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

/* ==========================================================================
   Brands Filter Section
   ========================================================================== */
.brands-section {
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-header-small {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-header-small h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.brands-selector-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
    padding-bottom: 0.5rem;
}

.brands-selector-wrapper::-webkit-scrollbar {
    display: none; /* Hide Chrome scrollbar */
}

.brands-grid {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.brand-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 80px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.brand-card.active {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(209, 254, 3, 0.08) 0%, rgba(7, 10, 19, 0.4) 100%);
    box-shadow: 0 0 15px rgba(209, 254, 3, 0.1);
}

.brand-logo-img {
    max-height: 38px;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.brand-card:hover .brand-logo-img,
.brand-card.active .brand-logo-img {
    opacity: 1;
}

.brand-name-placeholder {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.brand-card:hover .brand-name-placeholder,
.brand-card.active .brand-name-placeholder {
    color: var(--text-main);
}

.brand-card.active .brand-name-placeholder {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Catalog and Product Cards Grid
   ========================================================================== */
.catalog-section {
    max-width: var(--max-width);
    margin: 0 auto 6rem;
    padding: 0 2rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.catalog-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.catalog-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.active-filters {
    display: flex;
    gap: 0.75rem;
}

.filter-pill {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Product Card design */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(209, 254, 3, 0.05);
}

.product-badge {
    background-color: rgba(209, 254, 3, 0.1);
    border: 1px solid rgba(209, 254, 3, 0.2);
    color: var(--accent-green);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.product-image-wrapper {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
}

.product-img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.product-brand-logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    height: 18px;
    opacity: 0.6;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.product-price {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.product-price-currency {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.product-hardness {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--accent-green) 0%, #a2c700 100%);
    color: #070a13;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #dfff33 0%, var(--accent-green) 100%);
    box-shadow: 0 4px 15px rgba(209, 254, 3, 0.2);
}

.btn-detail-trigger {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-detail-trigger:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-blue);
}

.stock-badge {
    background-color: rgba(255, 51, 102, 0.12);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--accent-red);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.15);
}

.product-badges-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}


.out-of-stock-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    pointer-events: none;
}

.modal-add-btn.out-of-stock-btn {
    pointer-events: none;
    opacity: 0.5;
}

.variant-selectors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.variant-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    cursor: pointer;
    outline: none;
}

.variant-badge:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.variant-badge.active {
    background-color: rgba(209, 254, 3, 0.08);
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 10px rgba(209, 254, 3, 0.1);
}

/* ==========================================================================
   Empty Catalog State Design
   ========================================================================== */
.empty-catalog-state {
    grid-column: 1 / -1;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.empty-icon-container {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-catalog-state h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-title);
    background: linear-gradient(135deg, var(--text-main) 60%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-catalog-state p {
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.notify-container {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem 2rem;
    max-width: 450px;
    width: 100%;
}

.notify-desc {
    font-size: 0.85rem;
    color: var(--text-main) !important;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.notify-form {
    display: flex;
    gap: 0.5rem;
}

.notify-input {
    flex-grow: 1;
    background-color: rgba(7, 10, 19, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.notify-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-notify {
    background-color: var(--text-main);
    color: var(--bg-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-notify:hover {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.notify-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Shopping Cart Sidebar (Drawer Layout)
   ========================================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    visibility: hidden;
    transition: visibility 0.4s;
}

.cart-sidebar.active {
    visibility: visible;
}

.cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 19, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cart-sidebar.active .cart-backdrop {
    opacity: 1;
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background-color: #0c1122;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

.cart-sidebar.active .cart-content {
    transform: translateX(0);
}

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

.cart-header h3 {
    font-size: 1.4rem;
}

.cart-close-btn {
    color: var(--text-muted);
    padding: 0.5rem;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.cart-close-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-right: 0.25rem;
}

/* Cart item layout */
.cart-item {
    display: flex;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.85rem;
    border-radius: var(--border-radius-sm);
    position: relative;
    animation: slideInItem 0.3s ease;
}

@keyframes slideInItem {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    padding-right: 1.5rem;
}

.cart-item-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-item-price {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-green);
}

.quantity-control {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.5rem;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--text-muted);
    padding: 0.25rem;
    transition: var(--transition-smooth);
}

.cart-item-remove-btn:hover {
    color: var(--accent-red);
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-muted);
    padding: 2rem;
}

.cart-empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty-state p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row.total-row {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-family: var(--font-title);
}

.free-shipping {
    color: var(--accent-green);
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%); /* Green to Cyan glowing grad */
    color: #070a13;
    font-size: 1rem;
    font-weight: 800;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.2);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.35);
}

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

/* ==========================================================================
   Product Detail Modal Style
   ========================================================================== */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: visibility 0.3s;
}

.detail-modal.active {
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 19, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s;
}

.detail-modal.active .modal-overlay {
    opacity: 1;
}

.modal-card {
    background-color: #0c1122;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    transform: scale(0.9) translateY(15px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.detail-modal.active .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 15;
}

.modal-close-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

/* Modal detail columns */
.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 3rem;
}

.modal-img-container {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.modal-product-img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
}

.modal-info-container {
    display: flex;
    flex-direction: column;
}

.modal-brand-badge {
    height: 24px;
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.modal-price-tag {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.specs-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Spec list bars */
.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.spec-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.spec-name {
    color: var(--text-muted);
}

.spec-value {
    color: var(--text-main);
}

.spec-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.spec-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    border-radius: 3px;
    transition: width 0.8s ease-in-out;
}

.modal-action-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-action-row .btn-add-cart {
    flex-grow: 1;
    padding: 0.95rem;
    font-size: 1rem;
}

/* ==========================================================================
   Footer Style
   ========================================================================== */
.main-footer {
    background-color: #04060b;
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.25rem;
    display: inline-block;
}

.footer-logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent-green);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.footer-contact strong {
    color: var(--text-main);
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.payment-badges .badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin-top: calc(var(--header-height) + 1.5rem);
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-container {
        grid-row: 1; /* Racket first on mobile/tablet */
    }
    
    .racket-illustration {
        width: 260px;
        height: 310px;
    }
    
    .racket-head {
        width: 200px;
        height: 215px;
    }
    
    .racket-handle {
        width: 32px;
        height: 90px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-info {
        grid-column: 1 / -1;
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header-container {
        padding: 0 1.25rem;
    }
    
    /* Mobile Menu Drawer style */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        background-color: #070a13;
        border-top: 1px solid var(--border-color);
        padding: 3rem 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
        z-index: 99;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .active-filters {
        width: 100%;
        overflow-x: auto;
    }
    
    .modal-body {
        padding: 2.5rem 1.5rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-img-container {
        height: 220px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Header Social Links */
.header-social-link {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-social-link:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .header-social-link {
        display: none;
    }
}

/* Brands Slider Section & Arrows */
.brands-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.brands-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.brands-scroll-btn:hover {
    background-color: var(--accent-green);
    color: #070a13;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(209, 254, 3, 0.3);
}

.brands-scroll-btn.prev-btn {
    left: -22px;
}

.brands-scroll-btn.next-btn {
    right: -22px;
}

@media (max-width: 992px) {
    .brands-scroll-btn {
        width: 36px;
        height: 36px;
    }
    .brands-scroll-btn.prev-btn {
        left: -12px;
    }
    .brands-scroll-btn.next-btn {
        right: -12px;
    }
}

/* Button & Badge for Custom Orders (A Pedido) */
.btn-add-cart.a-pedido-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #00a8ff 100%);
    color: #070a13;
    font-weight: 700;
    border-color: #00d2ff;
}

.btn-add-cart.a-pedido-btn:hover {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

.stock-badge.a-pedido-badge {
    background-color: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

/* Preorder Notice Box */
.preorder-notice-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background-color: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 6px;
    padding: 0.85rem;
}
