:root {
    --color-brown: #4a3530;
    --color-gold: #c45c6a;
    --color-gold-dark: #a34856;
    --color-cream: #fff8f5;
    --color-text: #6b5348;
}

/* Layout shell */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-cream);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    padding-bottom: 80px;
}

.coming-soon-banner {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    color: var(--color-brown);
    text-align: center;
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.coming-soon-banner-text {
    font-size: 1.05rem;
    font-weight: 770;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #ececec;
    z-index: 1000;
    padding: 10px 0;
    width: 100%;
    max-width: 1200px;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-brown);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--color-gold);
    background-color: rgba(196, 92, 106, 0.1);
    transform: translateY(-2px);
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Inner page hero (50vh). Home uses .hero-home */
.hero-section {
    background-color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
                url('../imgs/main_top_cake.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-home {
    min-height: 100vh;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.hero-home .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.hero-home .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons — bakery brown (overrides app.css / Bootstrap blue) */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 92, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 92, 106, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-brown);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-brown);
    border: 2px solid var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: white;
    transform: translateY(-2px);
}

.product-footer .btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
}

.form-submit .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brown);
    margin-bottom: 1rem;
}

.page-products .section-title,
.schedule-section .section-title {
    margin-bottom: 2rem;
    text-align: center;
}

.category-section,
.schedule-category {
    margin-bottom: 4rem;
}

.products-section,
.order-section,
.contact-section,
.schedule-section {
    padding: 5rem 0;
    background: var(--color-cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.page-home .products-grid {
    margin-bottom: 3rem;
}

.product-card,
.schedule-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.page-home .product-image {
    height: 200px;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content,
.schedule-content {
    padding: 1.5rem;
}

.product-content h5 {
    color: var(--color-brown);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-content p {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Forms (Order + Contact) */
.form-card,
.tips-card,
.info-card,
.faq-card,
.map-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.form-header,
.tips-header,
.info-header,
.faq-header,
.map-header,
.schedule-header {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.schedule-header {
    padding: 1.5rem;
}

.form-header h2,
.tips-header h3,
.info-header h3,
.faq-header h3,
.map-header h3,
.schedule-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
}

.schedule-header h3 {
    font-size: 1.3rem;
}

.form-content,
.tips-content,
.info-content,
.faq-content,
.map-content {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-brown);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(196, 92, 106, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    outline: none;
    border-color: #c44b32;
    background: #fafafa;
    box-shadow: 0 0 0 2px rgba(196, 75, 50, 0.08);
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #c44b32;
    box-shadow: 0 0 0 2px rgba(196, 75, 50, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.validation-message {
    color: #c44b32;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.4rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status.is-success {
    color: var(--color-brown);
}

.form-status.is-error {
    color: #c44b32;
    font-weight: 500;
}

.order-toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: 380px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.order-toast.is-success {
    border-left: 4px solid var(--color-gold);
}

.order-toast.is-error {
    border-left: 4px solid #c44b32;
}

.order-toast i {
    font-size: 1.4rem;
    margin-top: 0.1rem;
}

.order-toast.is-success i {
    color: var(--color-gold);
}

.order-toast.is-error i {
    color: #c44b32;
}

.order-toast-body {
    flex: 1;
}

.order-toast-body strong {
    display: block;
    color: var(--color-brown);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.order-toast-body p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.45;
}

.order-toast-close {
    border: none;
    background: transparent;
    color: var(--color-brown);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
    opacity: 0.6;
}

.order-toast-close:hover {
    opacity: 1;
}

.product-options,
.additional-options {
    display: grid;
    gap: 1rem;
}

.product-options {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.additional-options {
    grid-template-columns: 1fr 1fr;
}

.product-option,
.option-item {
    position: relative;
}

.product-option input,
.option-item input {
    position: absolute;
    opacity: 0;
}

.product-option label,
.option-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-item label {
    padding: 0.8rem;
    border-radius: 8px;
}

.product-option input:checked + label,
.option-item input:checked + label {
    border-color: var(--color-gold);
    background: #fafafa;
}

.product-name,
.option-name {
    color: var(--color-brown);
    font-weight: 600;
}

.product-price,
.option-price {
    color: var(--color-gold);
    font-weight: 700;
}

.info-details h4 {
    color: var(--color-brown);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-details p,
.faq-answer p {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1200px) {
    .page-container {
        max-width: 100%;
    }

    .page {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }

    .bottom-nav {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .order-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
        top: 1rem;
    }
}
