* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.85rem;
    color: #cccccc;
    font-style: italic;
}

nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #cccccc;
}

.cart-button {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.cart-button:hover {
    background-color: #f0f0f0;
}

#cart-count {
    background-color: #000000;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #000000;
}

.hero h2 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    color: #333333;
    font-size: 1.1rem;
}

/* Products Grid */
.section-title {
    text-align: center;
    color: #000000;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid #000000;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #666666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.product-card h3 {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.product-card p {
    color: #333333;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    color: #000000;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.add-to-cart:hover {
    background-color: #333333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s;
    border: 2px solid #000000;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close, .close-checkout, .close-success {
    color: #000000;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover, .close-checkout:hover {
    color: #666666;
}

.modal-content h2 {
    color: #000000;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 5px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #000000;
    background-color: #f5f5f5;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #000000;
    margin-bottom: 5px;
    font-weight: bold;
}

.cart-item-info p {
    color: #333333;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.qty-btn:hover {
    background-color: #333333;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s;
    font-weight: bold;
}

.remove-btn:hover {
    background-color: #c82333;
}

/* Cart Summary */
.cart-summary {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 2px solid #000000;
}

.cart-summary > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #333333;
}

.cart-summary .total {
    border-top: 2px solid #000000;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #000000;
}

.checkout-btn {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.checkout-btn:hover {
    background-color: #218838;
}

/* Checkout */
.checkout-content {
    max-width: 900px;
    display: flex;
    gap: 30px;
}

.checkout-steps {
    flex: 2;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step h3 {
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
    font-weight: bold;
}

#address-form input,
#address-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #000000;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #000000;
}

#address-form input:focus,
#address-form select:focus {
    outline: none;
    border-color: #333333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.next-btn, .submit-btn, .back-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.next-btn, .submit-btn {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    border: 2px solid #000000;
}

.next-btn:hover, .submit-btn:hover {
    background-color: #333333;
}

.back-btn {
    background-color: #666666;
    color: white;
    border: 2px solid #666666;
}

.back-btn:hover {
    background-color: #555555;
}

.checkout-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    border: 2px solid #cccccc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    background-color: #ffffff;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: #000000;
    background-color: #f5f5f5;
}

.payment-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.payment-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 2px solid #000000;
}

.payment-form label {
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-weight: bold;
}

.payment-form select,
.payment-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #000000;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #000000;
}

.payment-form select:focus,
.payment-form input:focus {
    outline: none;
    border-color: #333333;
}

/* Order Summary Sidebar */
.order-summary {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 2px solid #000000;
}

.order-summary h3 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9rem;
    color: #333333;
}

.summary-totals {
    margin-top: 15px;
}

.summary-totals > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #333333;
}

.summary-total {
    border-top: 2px solid #000000;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #000000 !important;
    font-weight: bold;
}

/* Success Modal */
.success {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-weight: bold;
}

.order-number {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 2px solid #000000;
}

.close-success {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    font-weight: bold;
}

.close-success:hover {
    background-color: #333333;
}

/* Footer */
footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        flex-direction: column;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}