/* Additional CSS for category page */
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.category-content {
    padding: 10px 0;
}

.category-description {
    margin-bottom: 20px; /* Reduced to fit the gallery better */
    background-color: #ffffff; /* Soft beige/cream background */
    border: 1px solid #f1eadb; /* Slightly darker border */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Category image gallery styles */
.category-image-gallery {
    display: flex;
    flex-wrap: nowrap; /* Important - prevents wrapping to new line */
    overflow-x: auto; /* Enables horizontal scrolling for small screens */
    gap: 15px;
    margin-bottom: 40px;
    padding: 15px 0;
    scroll-snap-type: x mandatory; /* For better scrolling experience */
    scrollbar-width: thin; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.category-image-gallery::-webkit-scrollbar {
    height: 6px;
    background-color: #f1eadb;
}

.category-image-gallery::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
}

.category-image {
    flex: 0 0 calc(33.333% - 10px); /* Fixed width with gap consideration */
    min-width: 280px; /* Minimum width for smaller screens */
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start; /* Aligns images when scrolling */
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    transition: transform 0.3s ease;
}

.category-image:hover img {
    transform: scale(1.05);
}

.category-description h1,
.category-description h2,
.category-description h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    border-bottom: 1px dotted #e6d9bc; /* Subtle dotted border under headings */
    padding-bottom: 8px;
}

.category-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: none;
}

.category-description ul li {
    position: relative;
    padding-left: 20px;
}

.category-description ul li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.menu-card {
    background: #ffffff; /* Matching the content background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-content {
    padding: 30px;
}

.menu-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.menu-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    min-height: 60px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

.menu-actions {
    margin-top: 25px;
}

.order-section {
    background: #f1e9d8; /* Slightly darker than the content background */
    padding: 50px;
    border-radius: 8px;
    margin-top: 60px;
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.order-text {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-text h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px dotted #e6d9bc;
    padding-bottom: 10px;
}

.order-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6d9bc;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 992px) {
    .order-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .order-section {
        padding: 30px;
    }
}
