@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Main */
html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: 'Inter', sans-serif;
}
/* ------------------------------------------------Header------------------------------------------------ */
header {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #d3d3d3;
    z-index: 1000;
}
.header-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    max-height: 50px;
}
.brand-name {
    font-size: 1.2rem;
    line-height: 50px;
    font-weight: 600;
    align-self: center;
}


.menu-button {
    display: flex;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}
.menu-buttona {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 10px;
    
    transition: color 0.3s ease, transform 0.2s ease;
}
.menu-buttona:hover {
    color: #555;
    transform: scale(1.05);
}
.menu-button:hover {
    color: #555;
    transform: scale(1.05);
}
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps text color unchanged */
}
.logo {
    height: 40px; /* Small logo size */
    margin-left: 10px;
    margin-right: 15px; /* Adds 15px spacing between logo and name */
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 120px;
    max-width: 250px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    top: 50px;
}
.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevents items from breaking into multiple lines */
    text-align: left;
}
.dropdown-content a:hover {
    background-color: #f0f0f0;
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* ------------------------------------------------Header------------------------------------------------ */
/* ------------------------------------------------MainPage------------------------------------------------ */
.image-container {
    margin-top: 130px;
    text-align: center;
}
.main-image {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.text-content {
    text-align: center;
    margin: 0;
    padding: 0;
    margin-top: 15px;
}
.catchphrase {
    font-size: 60px;
    font-weight: 600;
    color: #333;
}
.product-details {
    font-size: 26px;
    margin-top: 0px;
    color: #555;
}
.reserve-button{
    display: inline-block;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.buy-button {
    display: inline-block;
    padding: 1% 1%;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 12px;
    margin-top: 0px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.reserve-button:hover,
.buy-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}
.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.gallery-product-page {
    position: absolute;
    left: 50px;
    max-width: 50%;
    display: flex;
    justify-content: flex-start;
}
.gallery-viewport {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.gallery-track {
    display: flex;
    transition: transform 0.8s ease; /* Smooth scrolling for transitions */
}
.gallery-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    opacity: .3; /* Start fully visible */
    transform: scale(.8); /* Start full-sized */
    transition: transform 0.8s ease, opacity 1s ease; /* Smooth fading and scaling */
}
.gallery-image2 {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    opacity: .3; /* Start fully visible */
    transform: scale(.8); /* Start full-sized */
    transition: transform 0.8s ease, opacity 1s ease; /* Smooth fading and scaling */
}
.gallery-image.center {
    opacity: 0.3; /* Becomes dimmed when centered */
    transform: scale(0.8); /* Becomes smaller when centered */
}
.gallery-image.left,
.gallery-image.right {
    opacity: 1; /* Dimmed but visible on the sides */
    transform: scale(0.95); /* Slightly smaller on the sides */
}
.plus {
    font-size: 1.5em; /* Adjust size as needed */
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}
.arrow.left {
    left: 10px;
}
.arrow.right {
    right: 10px;
}
.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* ------------------------------------------------Main------------------------------------------------ */
/* ------------------------------------------------Footer------------------------------------------------ */
footer {
    background-color: #222; /* Darker footer */
    color: white;
    padding: 40px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Ensures both sides align at the top */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between buttons */
    align-items: flex-start; /* Ensures buttons align to the top */
    margin-top: 0; /* Remove unnecessary spacing */
}
.footer-button {
    background: none;
    border: none; /* Remove border */
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    padding: 5px 0;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.footer-button:hover {
    opacity: 0.7;
    transform: scale(1.05);
}
.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Ensures everything is right-aligned */
    justify-content: flex-start; /* Aligns to the top */
    width: fit-content; /* Prevents unnecessary stretching */
    margin-left: auto; /* Pushes it to the right */
    margin-top: -20px; /* Move the whole section upwards */
}
.footer-copyright {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 5px;
    text-align: right;
}
.company-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0px;
    text-align: right;
}
.company-location {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 2px;

    text-align: right;
}
.scroll-top {
    background: none;
    color: white;
    border: none;
    padding: 6px 0px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 48px;
    border-radius: 5px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between arrow and text */
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.scroll-top:hover {
    opacity: 0.7;
    transform: scale(1.05);
}
/* ------------------------------------------------Footer------------------------------------------------ */
/* ------------------------------------------------Help & Content Popup------------------------------------------------ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5);*/
    display: none; /* Ensures the cart popup is hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.popup-overlay.active {
    display: flex; /* Only show when cart is opened */
}
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
    animation: fadeIn 0.3s ease-in-out;
}
.popup-content p {
    display: none;
}
.popup-overlay.active .popup-content p {
    display: block;
}
.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    float: right;
}
.popup-close:hover {
    transform: scale(1.2);
    opacity: 0.8;
}
/* ------------------------------------------------Help & Content Popup------------------------------------------------ */
/* ------------------------------------------------Cart Popup------------------------------------------------ */
.cart-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 5px;
    filter: grayscale(100%);
    color: black;
    transition: transform 0.2s ease;
}
.cart-icon {
    width: 30px;
    height: 30px;
    align-items: center;
    margin-top: 6px;
    margin-right: 6px;
}
.cart-title {
    text-align: center;
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}
.cart-button:hover {
     transform: scale(1.1);
}
.empty-cart-message {
    text-align: center;
    width: 100%;
    font-size: 16px;
    color: #666;
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-left: 7px; /* Move right */
    /* margin-right: 20px; Move left */
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9998;
    pointer-events: none; /* Prevents issues when multiple overlays exist */
}
.cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    max-width: calc((100% - 6%)/3); /* Ensures margin on both sides */
    min-width: 390px;
    min-height: 200px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in forwards;
    margin-right: 3%;
}
.cart-popup.empty {
    height: 15vh !important; /* Make it small enough so no scrolling happens */
}
.cart-popup h2 {
    text-align: center;
    width: 100%;
    font-weight: bold;
    margin: 0;
    padding: 10px 0;
}
.close-cart {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}
.cart-content {
    flex-grow: 1;
    overflow-y: auto; /* Enable scrolling when needed */
    overflow-x: hidden;
    padding-right: 10px;
    max-height: none; /* Remove height restrictions */
    min-height: auto; /* Prevent excessive space when only one item */
    display: flex;
    flex-direction: column;
}
.cart-content.empty {
    overflow: hidden !important;
    max-height: none; /* Ensure height doesn't force a scrollbar */
}
.cart-item {
    display: flex;
    margin-left: 10px;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
    overflow: hidden;
    height: 50px; 
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
    
}
.cart-item.removed {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
}
.cart-item img {
    width: 50px; 
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.cart-item-name {
    font-size: 22px;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 0px;
    line-height: 1; /* Ensure it stays at the top */
}
.cart-item-price {
    font-size: 16px;
    color: #666;
    margin: 0; /* Remove margin for better vertical alignment */
}
.cart-total {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0px;
}
.cart-totals {
    display: flex;
    margin-bottom: 14px;
    flex-direction: column;
    justify-content: center; /* Ensure top aligns with left */
    align-items: flex-end;
    min-width: 80px; 
    max-width: 105px;/* Prevent it from shrinking too much */
}
.cart-details {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    flex-grow: 1;
    padding-left: 10px; /* Space between image and text */
}
.cart-item div {
    flex: 1;
    overflow: hidden; /* Prevent text from overflowing */
    white-space: nowrap; /* Prevent text from wrapping */
    text-overflow: ellipsis; /* Add "..." if text is too long */
}
.cart-quantity {
    font-size: 16px;
    color: #666;
    margin-top: 0px;
}
.cart-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between quantity input and x price */
}
.cart-quantity-input {
    width: 50px;
    padding: 5px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}
.cart-multiplier {
    font-size: 16px;
    color: #555;
}
.cart-quantity-input:focus {
    border-color: #4CAF50;
}
.remove-cart-item {
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 30px;
    cursor: pointer;
    margin-left: 2%; /* Pushes it to the right */
    margin-right: 1%; /* Ensures 10px gap from total price */
}
.remove-cart-item:hover {
    color: rgb(0, 0, 0);
    opacity: 0.8;
}
input[type="number"] {
    padding: 0px;
    font-size: 16px;
    width: 18px;
    height: 18px;
    font-weight: 600;
    border: 2px solid #d3d3d3;
    border-radius: 8px;
    text-align: center;
    outline: none;
    background: white;
    transition: border-color 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
}
input[type="number"]:focus {
    border-color: #000000;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}
input[type="number"]:hover {
    border-color: #000000;
}
.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background: white;
    height: 50px; /* Match cart-item height */
    position: absolute;
    bottom: 0;
    left: 0;
}
.subtotal-text {
    font-size: 22px;
    font-weight: bold;
    margin-right: 5px; /* Small spacing */
}
.subtotal-container {
    display: flex;
    align-items: center;
    gap: 5px; /* Small gap between text and amount */
}
.subtotal-amount {
    font-size: 22px;
    font-weight: bold;
}
.checkout-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 30px;
}
.checkout-button:hover {
    color: #ffffff;
    transform: scale(1.05);
}
/* ------------------------------------------------Cart Popup------------------------------------------------ */
/* ------------------------------------------------Cart Banner------------------------------------------------ */
.cart-banner {
    position: fixed;
    top: -50px; /* Start above the page */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background: green;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Start hidden */
    transition: top 0.5s ease-out, opacity 0.5s ease-out;
    z-index: 9999;
}
.cart-banner.visible {
    top: 10px;
}
.banner-close {
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.banner-close:hover {
    opacity: 0.8;
}
/* ------------------------------------------------Cart Banner------------------------------------------------ */
/* ------------------------------------------------Animations------------------------------------------------ */


.fade-in {
    animation: fadeIn 0.3s ease-in forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}





@media (max-width: 768px) {
    .catchphrase {
        font-size: 40px;
    }

    .product-details {
        font-size: 18px;
    }

    .reserve-button,
    .buy-button {
        padding: 15px 30px;
        font-size: 16px;
    }

    .gallery-image {
        max-width: 100%;
    }
    .popup-content {
        opacity: 1; /* Start hidden */
        transition: opacity 0.5s ease-in-out;
        text-align: center;
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 75vh) {
    .brand-name {
        display: none;
        font-size: 200px;
    }
    .menu-button {
        font-size: 14px;
        padding: 4px;
        }
    header {
        height: 40px;
    }
    .cart-button {
     scale: 80% ;
    }
    .logo {
        scale: 80%;
    }
    .cart-item-name{
      font-size: 16px;  
    }
    .cart-item-price{
        font-size: 12px;
    }
    .cart-total {
        font-size: 16px;
    }
    .cart-multiplier {
        font-size: 12px;
    }
    input[type="number"] {
        font-size: 12px;
        margin: 0px;
    }
    .cart-item img {
        width: 40px;
        height: 40px;
    }
    .subtotal-text, .subtotal-amount {
        font-size: 18px;
    }
    
}