:root {
    /* Color variables - easy to customize later */
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

section {
    margin: 4rem 0;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e5006a;
}

.main-product {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 4rem 0;
}

.product-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.accessories {
    margin-top: 4rem;
}

.accessories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.accessory-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.accessory-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.accessory-info {
    padding: 1rem;
}

.accessory-info h3 {
    margin-bottom: 0.5rem;
}

.accessory-price {
    font-weight: bold;
    color: var(--secondary-color);
}

.buy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #2e6dce;
}

.features {
    background-color: var(--light-color);
    padding: 3rem 1rem;
    border-radius: 10px;
    margin: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonials {
    margin: 4rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
}

.payment-section {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 4rem 0;
}

.payment-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.payment-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.payment-option {
    padding: 1rem;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .main-product {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Add these styles to your existing CSS file */

/* Cart Summary Styles */
.cart-summary {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.cart-summary h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-price {
    color: var(--secondary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.quantity-value {
    margin: 0 10px;
}

.cart-item-remove {
    border: none;
    background: none;
    color: #ff0000;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
}

.cart-total {
    font-weight: bold;
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Payment Options Styles */
.payment-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.payment-option {
    padding: 1rem;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-logo {
    max-width: 100%;
    max-height: 30px;
}

/* Stripe Elements Styles */
#payment-form-container {
    max-width: 600px;
    margin: 2rem auto;
}

#payment-form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#card-element {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#card-errors {
    color: #fa755a;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#checkout-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 1.1rem;
}

#checkout-button.processing {
    background-color: #cccccc;
    cursor: not-allowed;
}

.order-success {
    text-align: center;
    padding: 2rem;
    background-color: #d4edda;
    border-radius: 8px;
    margin: 2rem 0;
    display: none;
}

.order-success h3 {
    color: #155724;
    margin-bottom: 1rem;
}
}
