/* General Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}



body {
    font-family: "Merriweather-Sans", sans-serif;
    background-color: #DFE4E8;
    color: #212427;
    
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/image/hero.jpg') no-repeat center / cover;
    color: #DFE4E8;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5rem; /* Adjust for fixed menu */

   
}



.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Place the image behind the content */
    opacity: 0;
    animation: imageFadeIn 1s ease-in forwards;
}




/* Hamburger Icon */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: #DFE4E8;
    cursor: pointer;
}

/* Responsive Menu */
.menu, .menu2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.5s ease, color 0.5s ease; /* Smooth transition */
}

.menu a {
    color: #DFE4E8;
    text-decoration: none;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s, transform 0.3s;
    
}

.menu.scrolled, .menu:hover {
    background-color: #940C0E;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.menu .item, .menu2 .item {
    color: #DFE4E8;
    text-decoration: none;
    margin: 0 1rem;
    position: relative;
    transition: color 0.5s, transform 0.3s ease;
}

.menu.scrolled .item {
    color: #DFE4E8;
}

.menu .item:hover, .menu2 .item:hover {
    color: #212427;
    transform: scale(1.1);
}

.menu .item:active {
    color: #DFE4E8;
    transform: scale(0.95);
}

.menu2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #940C0E;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.menu.scrolled, .menu2.scrolled,
.menu:hover, .menu2:hover  {
    background-color: #940C0E;
}

.menu2.scrolled .item {
    color: #DFE4E8;
}

.menu2 .item:active {
    color: #DFE4E8;
    transform: scale(0.95);
}
/* Scroll-to-Top Button */
.up {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.up.visible {
    opacity: 1;
    visibility: visible;
}

.up:hover {
    background-color: var(--hover-color);
}

.up img {
    width: 80%;
    height: auto;
}

/* Footer */
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    background-color: #940C0E;
    color: #DFE4E8;
    padding: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 0.5rem 0;
}

.footer-column ul li a {
    color: #DFE4E8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #6b090b;
}

.footer-column p {
    margin: 0;
}

.copyright {
    text-align: center;
}


/* Clickable Box Styling */
.clickable-box {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cta-link {
    display: inline-block;
    background-color: #940C0E;
    color: #DFE4E8;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-link:hover {
    background-color: #6b090b;
}

/* Hover Effect */
.box:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* Base Layout for product-grid2 */
.product-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 boxes per row on desktop */
    gap: 1.5rem; /* Space between boxes */
    padding: 2rem;
}

/* Box2 Styling */
.box2 {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.box2 img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.box2 h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.box2 p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.box2 b {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.box2 a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.box2 a:hover {
    transform: scale(1.05);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px; /* Hidden by default */
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-items {
    list-style: none;
    padding: 0;
}

/*.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}*/

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

.checkout-btn {
    background-color: #940C0E;
    color: #DFE4E8;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

/* Sidebar cart styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 300px;
    height: 100%;
    background-color: #DFE4E8;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1000;
}

.cart-sidebar.show {
    right: 0; /* Show the cart */
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #555;
}

.remove-item {
    background: none;
    border: none;
    color: red;
    font-size: 1.2rem;
    cursor: pointer;
}


/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .cart-icon {
        display: inline-block;
    }

    .cart-count {
        position: absolute;
        top: -5px;
        right: -10px;
        font-size: 0.8rem;
    }
}

