/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f3;
    color: black;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.logo img {
    width: 70px;
    height: 90px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 15px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    text-align: center;
    background: url('../images/hero.jpg') no-repeat center center/cover;
    color: rgb(248, 241, 241);
    padding: 100px 20px;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.shop-button {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
}

.shop-button:hover {
    background: #e65c00;
}

/* Product Section */
.product-container {
    padding: 40px;
}

/* Grid Layout for Products */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Product Styling */
.product {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}

/* Ensure images are displayed properly */
.product img {
    width: 100%;
    height: 250px;  /* Adjusted height */
    object-fit: contain; /* Prevents cropping */
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
    background-color: #f1f1f1; /* Light background to handle transparent images */
}

.product img:hover {
    transform: scale(1.05);
}

/* Product Caption */
.product figcaption {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
}

/* View Product Button */
.product button {
    background: linear-gradient(to right, #ff6600, #e65c00);
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.product button:hover {
    background: linear-gradient(to right, #e65c00, #b700ff);
}

/* Product Details */
.product-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 40px;
}

.product-image img {
    width: 350px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.product-info {
    max-width: 400px;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.price {
    font-size: 22px;
    color: #e100ff;
    margin-bottom: 15px;
}

.description {
    font-size: 16px;
    margin-bottom: 20px;
}

button {
    background: #b700ff;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
}

button:hover {
    background: #ff6600;
}

/* Checkout Page */
.checkout-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: Arial, sans-serif;
}

.checkout-container h2,
.checkout-container h3 {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.cart-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-summary ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #555;
}

.cart-summary ul li:last-child {
    border-bottom: none;
}

.cart-summary .total {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-top: 15px;
}

/* Checkout Form */
#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#checkout-form label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

#checkout-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #555;
    transition: border-color 0.3s ease;
}

#checkout-form input:focus {
    border-color: #ff6600;
    outline: none;
}

#checkout-form button {
    background: #ff6600;
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

#checkout-form button:hover {
    background: #e65c00;
}

#checkout-form button:active {
    background: #d95300;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #333;
    color: white;
    margin-top: 50px;
    font-size: 14px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cart-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-content h3 {
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.close-cart {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    color: #ff6600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #e65c00;
}

.checkout-button {
    display: block;
    background: #ff6600;
    color: white;
    padding: 12px;
    margin-top: 20px;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkout-button:hover {
    background: #e65c00;
}

.checkout-button:active {
    background: #d95300;
}

.checkout-button:focus {
    outline: none;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .checkout-container {
        width: 90%;
        padding: 20px;
    }

    .cart-summary {
        padding: 15px;
    }

    .cart-summary ul li {
        font-size: 14px;
    }

    #checkout-form button {
        padding: 12px;
        font-size: 16px;
    }
}


.categories {
    text-align: center;
    margin: 20px 0;
}

.categories ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.categories ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #f1f1f1;
    transition: background-color 0.3s;
}

.categories ul li a:hover {
    background-color: #ff6600;
    color: white;
}

/* Basic Styling for Thank You Page */
.thank-you-container {
    padding: 20px;
    text-align: center;
}

.thank-you-container h2 {
    font-size: 2rem;
    color: #333;
}

.thank-you-container p {
    font-size: 1rem;
    color: #555;
}

.order-item {
    margin: 10px 0;
    font-size: 1.2rem;
}

.order-item strong {
    font-weight: bold;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.button:hover {
    background-color: #0057a6;
}
