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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.logo img {
    display: block;
    max-height: 50px;
    width: auto;
}

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

.nav-links li a {
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links li a:hover {
    color: #007bff;
}

.nav-links li a .fa-shopping-cart {
    font-size: 1rem;
}


/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

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

/* Featured products */
.featured-products {
    padding: 4rem 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

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

.product-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: #f7f7f7;
}

.product-card h3 {
    padding: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.product-card p {
    padding: 0 1rem;
    font-weight: bold;
    color: #007bff;
}

.view-product {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s ease;
}

.view-product:hover {
    background-color: #e9ecef;
}

/* Shop page */
.shop h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-info p {
    margin-bottom: 1rem;
    color: #666;
}

.size-options {
    margin-bottom: 1rem;
}

.size-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.size-options select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Cart */
.cart h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

#cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    margin-left: 1rem;
}

.cart-item-details h3 {
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.remove-item {
    color: #dc3545;
    cursor: pointer;
}

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

/* Checkout */
.checkout h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.checkout-form-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.checkout-form-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.payment-options {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.payment-option input[type="radio"] {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: #007bff;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: #007bff;
    font-weight: bold;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.order-summary-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 1rem;
}

#order-items {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.order-item-info p:first-child {
    color: #333;
    font-weight: bold;
}

.order-item-price {
    font-weight: bold;
    color: #007bff;
}

.order-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ddd;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #333;
}

.total-row.tax {
    color: #666;
    font-size: 0.9rem;
}

.total-row.grand-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    border-top: 1px solid #ddd;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* Responsive checkout */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary-section {
        position: static;
    }

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

    .payment-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-option input[type="radio"] {
        margin-bottom: 0.5rem;
    }
}


/* About */
.about {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 0;
}

.about h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.about p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

/* Contact */
.contact {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

.contact h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

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

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-info {
    padding: 2rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

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

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

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

.social-icons a {
    background-color: #555;
    padding: 0.5rem;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: #777;
}

footer p {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

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

    .product-detail {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}