:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #25D366; /* WhatsApp Green */
    --hover: #444444;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: skyblue;
    color: var(--text);
    padding-bottom: 120px; /* Increased to ensure content doesn't hide behind bar */
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: bisque;
    font-weight: bold;
    align-items: center; /* Keeps logo and nav centered vertically */
}

/* Nav & Logo */
nav { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 20px; 
    border-bottom: 1px solid #eee; 
}

.logo { font-size: 3rem; letter-spacing: 10px; font-weight: 900; }
.logo-small { font-size: 1.2rem; letter-spacing: 3px; font-weight: 900; }

/* Landing Page */
.landing-container { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
}

.btn-primary { 
    background: black; 
    color: whitesmoke; 
    padding: 10px 30px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 8px;
    transition: background-color 0.3s ease; /* FIXED: added 's' to 0.3 */
}

.btn-primary:hover { background-color: var(--hover); }

/* Shop Grid */
.shop-grid {
    display: flex; 
    flex-wrap: wrap; /* Fixed: standard layout order */
    gap: 20px; 
    padding: 40px; 
    max-width: 1000px;
    margin: auto;
    justify-content: center;
}

.product-card {
    overflow: hidden; 
    border: 1px solid #f0f0f0; 
    padding: 20px; 
    text-align: center; 
    border-radius: 12px;
    background: white; /* Added background so text is readable against skyblue */
    max-width: 300px; 
    flex: 1 1 250px; /* Allows cards to grow/shrink properly */
}

.product-img { 
    background: #f9f9f9; 
    height: auto; 
    margin-bottom: 10px; 
    border-radius: 10px; 
    width: 100%; /* Better for responsiveness */
    max-width: 200px;
    transition: transform 0.4s ease; /* FIXED: specified property */
}

/* Buttons */
.order-btn { 
    width: 100%; /* More consistent button width */
    padding: 12px; 
    background: black; 
    color: white; 
    border: none; 
    cursor: pointer; 
    border-radius: 8px; 
    margin-top: 10px; 
    transition: background-color 0.3s ease; /* FIXED syntax */
}

.order-btn:hover { background-color: var(--hover); }

/* Checkout Bar - FIXED Layout */
#checkout-bar {
    position: fixed; 
    bottom: 0; 
    left: 0; /* Ensure it starts at the edge */
    width: 100%; 
    background: white;
    min-height: 80px; /* Changed from fixed height to min-height */
    border-top: 2px solid #ddd; 
    padding: 10px 0; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* Added for depth */
}

#whatsapp-checkout { 
    background: var(--accent); 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    font-weight: bold; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: transform 0.2s ease;
}

#whatsapp-checkout:hover {
    transform: scale(1.05); /* Slight pop effect */
}

.product-image-file {
    width: 140px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* General Typography */
.p { font-size: 18px; margin: 10px 0; }

.options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.options select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
    background: white;
    cursor: pointer;
}
/* Styles for the clickable images */
.product-image-file {
    width: 140px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    cursor: pointer; /* Shows it's clickable */
    transition: 0.3s;
}

.product-image-file:hover {
    opacity: 0.8;
}

/* The Modal (Background) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; /* Must be higher than checkout bar */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Dark black background */
}

/* Modal Content (The Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-weight: bold;
}
