/* Basic reset to remove default margins on the browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fdf8f5;
    /* Very soft warm background */
    color: #333;
}

/* --- Navigation Bar Styles --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 50px;
    /* Slightly reduced padding so the image fits snugly */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

/* NEW: Styles specifically for your Tokritales image */
.logo-img {
    height: 80px;
    /* Controls the size of the logo in the menu */
    width: auto;
    mix-blend-mode: multiply;
    /* Blends the white background of the image with the menu */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #d4a373;
}

/* --- Hero Section Styles (The main banner) --- */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #faedcd;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

/* --- Button Styles --- */
.btn {
    display: inline-block;
    background-color: #d4a373;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    /* Added to ensure buttons look clean */
    cursor: pointer;
    /* Added for better interactivity */
}

.btn:hover {
    background-color: #ccd5ae;
}

/* --- Shop Page Styles --- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px;
    justify-content: center;
}

.basket-status h3 {
    background-color: #d4a373;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
}

/* --- Product Image Styles --- */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Restoring the beautiful product cards */
.product-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.price {
    color: #27ae60;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- Modal (Pop-up Window) Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-image {
    display: block;
    margin: 5% auto;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* --- Cart Item & Remove Button Styles --- */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
}

.remove-btn:hover {
    background-color: #cc0000;
}

/* --- Custom Hamper Builder Styles --- */
.custom-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.custom-item-row label {
    font-size: 16px;
    cursor: pointer;
}

.custom-item-row input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* --- Upgraded Fullscreen Image Viewer --- */
#image-modal {
    background-color: rgba(0, 0, 0, 0.95);
    /* Makes the background almost solid black */
}

.fullscreen-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100vh;
    /* Takes up the full height of the screen */
    height: 100%;
    object-fit: contain;
    /* Ensures the whole picture fits without stretching */
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    /* Bigger, easier to click */
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-fullscreen:hover {
    color: #ff4d4d;
}

/* --- Visual Index for Custom Bouquets/Hampers --- */
.custom-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    /* Creates a responsive grid of mini-cards */
    gap: 15px;
    margin-top: 15px;
    max-height: 50vh;
    /* Keeps the window from getting too tall */
    overflow-y: auto;
    /* Adds a scrollbar if there are lots of items */
    padding-right: 10px;
}

.custom-index-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

/* When an item is clicked/selected, it lights up green! */
.custom-index-card.selected {
    border-color: #27ae60;
    background-color: #eafaf1;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
}

.custom-index-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* =========================================
   MOBILE RESPONSIVENESS (PHONES)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Stack the navigation neatly */
    .navbar {
        flex-direction: column !important;
        align-items: center;
        padding: 15px 10px;
    }

    /* 2. Fix the squished text links */
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
        padding: 0;
    }

    .nav-links li a {
        font-size: 15px;
        white-space: nowrap; /* Prevents text from breaking into two lines */
    }

    /* 3. Turn the Basket into a Floating Mobile Button */
    /* Note: Update the selector below if your cart button has a different class/ID */
    .basket-btn, button[onclick="openCart()"] { 
        position: fixed !important;
        bottom: 25px !important;
        right: 25px !important;
        top: auto !important;
        z-index: 9999;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        border-radius: 30px;
        padding: 12px 25px;
        font-size: 16px;
    }
}