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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve touch targets for mobile */
button, a, input, .thumbnail {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Improve image loading and responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.8;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: bold;
    color: #dc2626;
}

.price-currency {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 600;
}

.cta-button {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.product-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bike-illustration {
    animation: float 3s ease-in-out infinite;
}

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

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 3rem;
}

.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-image {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
    display: none;
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.image-placeholder.active {
    display: block;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumbnail {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #3b82f6;
    background: #dbeafe;
}

.thumbnail svg {
    width: 100%;
    height: auto;
}

/* Specifications Section */
.specs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.specs-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 3rem;
}

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

.spec-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
}

.spec-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.spec-card h3 {
    font-size: 1.25rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.spec-card p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Purchase Section */
.purchase-section {
    padding: 80px 0;
    background: white;
}

.purchase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.purchase-info h2 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 2rem;
}

.product-summary {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-total {
    font-weight: bold;
    font-size: 1.25rem;
    color: #1e40af;
}

.features-list {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
}

/* Form Styles */
.purchase-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.purchase-form h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group input.error {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.checkbox-group a {
    color: #3b82f6;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.buy-button {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero .container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .specs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .price-amount {
        font-size: 3.5rem;
    }
    
    .product-showcase {
        padding: 1.5rem;
    }
    
    .bike-illustration img {
        width: 250px !important;
        height: 170px !important;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
    }
    
    .thumbnail {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .purchase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .spec-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .price {
        margin-bottom: 1.5rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .price-currency {
        font-size: 1.25rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-showcase {
        padding: 1rem;
    }
    
    .bike-illustration img {
        width: 200px !important;
        height: 140px !important;
    }
    
    .gallery-section h2,
    .specs-section h2,
    .purchase-info h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .gallery-section,
    .specs-section,
    .purchase-section {
        padding: 50px 0;
    }
    
    .main-image {
        height: 250px;
    }
    
    .image-placeholder img {
        width: 100% !important;
        height: 200px !important;
    }
    
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    
    .thumbnail {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .spec-card {
        padding: 1.25rem;
    }
    
    .spec-card h3 {
        font-size: 1.125rem;
    }
    
    .purchase-form {
        padding: 1.25rem;
    }
    
    .purchase-form h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .buy-button {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .bike-illustration img {
        width: 180px !important;
        height: 120px !important;
    }
    
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .gallery-section h2,
    .specs-section h2,
    .purchase-info h2 {
        font-size: 1.75rem;
    }
    
    .purchase-form {
        padding: 1rem;
    }
    
    .thumbnail {
        min-width: 60px;
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spec-card {
    animation: slideInUp 0.6s ease forwards;
}

.spec-card:nth-child(1) { animation-delay: 0.1s; }
.spec-card:nth-child(2) { animation-delay: 0.2s; }
.spec-card:nth-child(3) { animation-delay: 0.3s; }
.spec-card:nth-child(4) { animation-delay: 0.4s; }
.spec-card:nth-child(5) { animation-delay: 0.5s; }
.spec-card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}