:root {
    --primary-color: #d4a373; /* Warm crust color */
    --secondary-color: #faedcd; /* Dough color */
    --text-dark: #3e2723;
    --text-light: #fefae0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 70vh;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background-color: rgba(62, 39, 35, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    color: var(--text-light);
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-family: Georgia, serif;
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Carousel Section */
.products-section {
    padding: 50px 20px;
    text-align: center;
}

.products-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 0 5px;
    color: var(--primary-color);
}

.card p {
    padding: 0 15px 20px;
    font-size: 0.9rem;
}

/* Booking Form */
.booking-section {
    padding: 50px 20px;
    background-color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.booking-section h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.booking-intro {
    max-width: 700px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.availability-status {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    background: #fff8ee;
    color: #7a5b3c;
}

.availability-status.open {
    background: #ecfdf3;
    border-color: #b7e4c7;
    color: #1f6f4a;
}

.availability-status.closed {
    background: #fff1f1;
    border-color: #f2b8b5;
    color: #9f2d2d;
}

.availability-status.loading {
    opacity: 0.8;
}

.selected-date-text {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.calendar-widget {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fffdf9;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-nav-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a5b3c;
    padding: 4px 0;
}

.calendar-day {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    min-height: 34px;
    cursor: pointer;
}

.calendar-day.is-open {
    border-color: #8fd3a3;
    background: #ecfdf3;
}

.calendar-day.is-closed {
    border-color: #f2b8b5;
    background: #fff1f1;
}

.calendar-day.is-selected {
    border-color: #6b4f2f;
    box-shadow: 0 0 0 2px #d4a37366;
}

.calendar-day.is-outside {
    opacity: 0.45;
}

.calendar-day.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.checkbox-group label {
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #b0895b;
}

input[type="text"], 
input[type="date"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical; /* Allows the user to stretch the box vertically but not horizontally */
}

/* Optional: Add a little extra space for the textarea */
textarea {
    min-height: 100px;
}

/* Admin page */
.admin-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.admin-card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.status-line {
    margin-top: 10px;
    font-weight: 600;
}

.bookings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bookings-list li {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
