/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #1a1f2e;
    --dark-surface: #2a3142;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: rgba(148, 163, 184, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --success: #10b981;
    --danger: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    background-image: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1), transparent 50%),
                      radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.1), transparent 50%);
    overflow-x: hidden;
}

/* Top Navigation Bar */
.navbar {
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-select {
    background: var(--dark-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.language-select option {
    background: var(--dark-surface);
    color: var(--text-primary);
    padding: 0.5rem;
}

.nav-cart {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

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

.nav-account, .nav-logout, .nav-login, .nav-register {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-account:hover, .nav-logout:hover, .nav-login:hover {
    color: var(--text-primary);
}

.nav-register {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-register:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Main Content */
.main-content {
    padding: 100px 20px 60px 20px;
    min-height: calc(100vh - 100px);
}

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

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

.product-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
    .product-header {
        margin-bottom: 30px;
    }
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.product-subtitle {
    font-size: 2em;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.main-panels {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 30px;
}

/* Left Panel - Details */
.details-panel {
    background: rgba(42, 49, 66, 0.5);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    color: var(--text-primary);
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.description-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(42, 49, 66, 0.5);
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 1.5em;
}

.feature-text {
    font-weight: 600;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.how-it-works {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
}

.how-it-works h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.steps-list li strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.steps-list li::before {
    content: counter(step-counter);
    background: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Right Panel - Payment */
.payment-panel {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.payment-card {
    background: rgba(42, 49, 66, 0.5);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.price-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 15px;
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.price-label {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.price-note {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Email Section */
.email-section {
    margin-bottom: 25px;
}

.email-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
}

.email-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    background: rgba(42, 49, 66, 0.5);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(42, 49, 66, 0.7);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.email-input:read-only {
    background: rgba(42, 49, 66, 0.3);
    cursor: not-allowed;
    opacity: 0.8;
}

.email-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.email-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-section {
    margin-bottom: 25px;
}

.quantity-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: rgba(42, 49, 66, 0.8);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

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

.quantity-input {
    width: 60px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 8px;
    background: rgba(42, 49, 66, 0.5);
    color: var(--text-primary);
}

.total-section {
    background: rgba(42, 49, 66, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.total-label {
    color: var(--text-secondary);
    font-size: 1em;
}

.total-amount {
    font-size: 2em;
    font-weight: bold;
    color: var(--text-primary);
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-to-cart-btn, .buy-now-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn {
    background: var(--success);
    color: white;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: #0d9369;
}

.buy-now-btn {
    background: #fd7e14;
    color: white;
}

.buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.4);
    background: #e8690a;
}

.buy-now-btn:disabled {
    cursor: not-allowed;
    transform: none;
}

.buy-now-btn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.2);
}

.security-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    color: var(--success);
}

.security-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
}

/* Guarantee Section */
.guarantee-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(42, 49, 66, 0.3);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.guarantee-item:hover {
    background: rgba(42, 49, 66, 0.5);
    transform: translateX(5px);
}

.guarantee-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.guarantee-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guarantee-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.guarantee-text span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--dark-surface);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-right {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dark-surface);
        border-top: 2px solid var(--border-color);
        padding: 1rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .language-switcher {
        flex: 1;
        max-width: 120px;
    }

    .language-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .nav-cart, .nav-account, .nav-logout, .nav-login, .nav-register {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .main-content {
        padding: 90px 15px 100px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .main-panels {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-panel {
        position: static;
        order: -1;
    }

    .details-panel, .payment-card {
        padding: 20px;
    }

    .product-title {
        font-size: 2em;
    }

    .trust-badges {
        flex-wrap: wrap;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.75em;
    }

    .product-header {
        padding: 30px 15px;
    }

    .nav-right {
        padding: 0.75rem 0.5rem;
        gap: 0.25rem;
    }

    .nav-cart, .nav-account, .nav-logout, .nav-login, .nav-register {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

/* Buyer Behavior Styles */
.buyer-behavior {
    margin-top: 10px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
}

.activity-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.activity-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-text strong {
    display: block;
    margin-bottom: 2px;
}

.activity-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.stats-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

/* Testimonials & Social Proof */
.social-proof-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 30px;
    border-radius: 15px;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.testimonial-item {
    background: rgba(42, 49, 66, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.stats-summary-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 25px;
    background: rgba(42, 49, 66, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-large {
    text-align: center;
}

.stat-large-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-large-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 0 0 0;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 2rem 0 0 0;
        margin-bottom: 70px;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom p {
    margin: 0;
}

/* Animation for smooth loading */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
