/* css/style.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    border-bottom: #77aaff 3px solid;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    float: left;
    margin: 0;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
}

/* Sections */
section {
    padding: 60px 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section:nth-of-type(even) {
    background: #e9e9e9;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

/* Hero Section */
#hero {
    text-align: center;
    background: #555 url('http://laser-jeans.com//images/Space.jpg') no-repeat center center/cover; /* Add a background image here */
    color: #fff;
    padding: 100px 0;
    border-radius: 0; /* Remove border-radius for full width */
    box-shadow: none;
    margin-top: -20px; /* Adjust to cover header margin */
}
#hero h2 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 10px;
}
#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    color: #fff;
    background: #77aaff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background: #5588dd;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 100%;
    height: 200px;
    object-fit: contain; /* Ensures images fit without cropping */
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-item h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #333;
}

.product-item .category {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.product-item .description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    height: 40px; /* Limit description height */
    overflow: hidden;
}

.product-item .price {
    font-size: 1.4em;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-item .btn {
    margin: 5px;
}

/* Shopping Cart & Checkout */
#cart, #checkout {
    text-align: center;
}

#cart-items {
    border: 1px solid #ddd;
    padding: 20px;
    min-height: 100px;
    margin-bottom: 20px;
    text-align: left;
}

#checkout-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

#checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#checkout-form input[type="text"],
#checkout-form input[type="email"],
#checkout-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Modals (Product Detail) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more responsive */
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-product-content {
    text-align: left;
}
#modal-product-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}
#modal-product-content h3 {
    font-size: 2em;
    margin-bottom: 10px;
}
#modal-product-content .price {
    font-size: 1.8em;
    color: #28a745;
    margin-bottom: 20px;
}
#modal-product-content p {
    margin-bottom: 15px;
}


/* YouTube Videos */
#youtube-videos .video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

#youtube-videos iframe {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Social Links */
.social-links {
    margin-top: 20px;
    text-align: center;
}

.social-links a {
    color: #333;
    font-size: 2em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #77aaff;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1, header nav {
        float: none;
        text-align: center;
    }
    header nav ul li {
        display: block;
        padding: 5px 0;
    }
    .product-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}