:root {
    --primary-navy: #1a2842;
    --primary-gold: #f4b643;
    --secondary-gold: #e5a636;
    --light-navy: #2a3a5a;
    --dark-navy: #0f1824;
    --background-white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #212529;
    --text-gray: #6c757d;
    --success-green: #28a745;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-white);
    line-height: 1.6;
}

/* Lazy Loading Styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded {
    opacity: 1;
}

/* Navigation */
.navbar {
    background-color: var(--primary-navy);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    background-color: transparent;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    position: relative;
}

.navbar-nav li {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-cta {
    background-color: var(--primary-gold);
    color: var(--primary-navy);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 182, 67, 0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Ensure dropdown stays in document flow */
.navbar-nav .dropdown {
    position: relative !important;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--primary-navy);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: block !important;
}

/* Ensure dropdown menu is not interactive when hidden */
.dropdown-menu {
    pointer-events: none;
}

/* Desktop hover state - CSS only solution */
@media (min-width: 769px) {
    /* Show dropdown on hover */
    .navbar-nav li.dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown:hover .dropdown-menu,
    .dropdown:hover > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        display: block !important;
    }
    
    /* Keep dropdown visible when hovering on menu itself */
    .dropdown-menu:hover {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        display: block !important;
    }
    
    /* Keep dropdown visible when hovering between toggle and menu */
    .dropdown::before {
        content: '';
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        height: 20px;
        z-index: 9998;
    }
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(244, 182, 67, 0.1);
    color: var(--primary-gold);
    padding-left: 2rem;
}

.dropdown-menu a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-menu a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--primary-navy);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .navbar-nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-toggle::after {
        transform: rotate(0deg);
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 1rem;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu a:hover {
        padding-left: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--light-navy) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--primary-gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 182, 67, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-navy);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(244, 182, 67, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(244, 182, 67, 0.1) 0%, transparent 70%);
    padding: 2rem;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    border: 5px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

/* Featured Section */
.featured-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* Hero section overrides */
.hero-section .section-title {
    color: white;
}

.hero-section .section-subtitle {
    color: white;
    opacity: 0.9;
}

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

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.product-card::after {
    content: "View Details →";
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-gold);
    color: var(--primary-navy);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card:hover::after {
    background-color: var(--secondary-gold);
    transform: translateX(2px);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-info {
    padding: 1.5rem;
    padding-bottom: 3.5rem;
}

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-gold);
    color: var(--primary-navy);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.product-badge.graded {
    background-color: var(--success-green);
    color: white;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}


/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: var(--primary-navy);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.btn-navy:hover {
    background-color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 40, 66, 0.4);
}

/* Footer */
.footer {
    background-color: var(--primary-navy);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    letter-spacing: 0.5px;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

.social-link img,
.social-link svg {
    filter: brightness(0) invert(1);
    transition: all 0.25s ease;
}

.social-link:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 182, 67, 0.4);
    color: var(--primary-navy);
}

.social-link:hover img,
.social-link:hover svg {
    filter: brightness(0) saturate(100%) invert(11%) sepia(21%) saturate(2084%) hue-rotate(189deg) brightness(92%) contrast(93%);
}

/* Specific brand colors on hover */
.social-link[href*="twitter"]:hover,
.social-link[href*="x.com"]:hover {
    background-color: #1DA1F2;
    color: white;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.social-link[href*="ebay"]:hover {
    background-color: #e53238;
    color: white;
    box-shadow: 0 4px 12px rgba(229, 50, 56, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Legal Pages Styling */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content ul {
    margin-left: 2rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

.legal-notice {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--primary-gold);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(244, 182, 67, 0.2);
}

.legal-notice p {
    margin: 0;
    color: var(--primary-navy);
}

.legal-notice a {
    color: var(--primary-navy);
    text-decoration: underline;
    font-weight: 600;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 2rem; }
.mt-3 { margin-top: 2rem; }