body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    background: #333;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
}

ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

a {
    text-decoration: none;
    color: #fff;
}

.hero {
    background-image: url("img/main-pic.png");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.products-hero {
    background-image: url("img/main-pic.png");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: auto;
}

.cta-button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #45a049;
}

.benefits, .products-list {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit, .product {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.benefit:hover, .product:hover {
    transform: scale(1.05);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price {
    font-weight: bold;
    color: #4CAF50;
    margin: 10px 0;
}

.view-details, .add-to-cart {
    background: #4CAF50;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    transition: background 0.4s;
    margin-bottom: 10px;
}

.view-details:hover, .add-to-cart:hover {
    background: #45a049;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: expand 0.3s ease;
}

.accordion {
    background: #4CAF50;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: background 0.4s;
}

.accordion:hover {
    background: #45a049;
}

.panel {
    padding: 0 18px;
    display: none;
    text-align: left;
    background: white;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.close, .close-cart {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close-cart:hover,
.close:focus, .close-cart:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    margin: 10px 0;
    border-radius: 8px;
}

#cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.remove-item {
    color: red;
    cursor: pointer;
}

#cart-total {
    font-weight: bold;
    text-align: right;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}



@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero, .products-hero {
        padding: 100px 20px;
    }
    .modal-content {
        width: 95%;
    }
}

.justify { text-align: justify; }
.bookstyle        { text-indent: 4em; }
.bookstyle > *    { text-indent: 0; }
.center  { text-align: center; }
/* h3 { color: blue; } */
