/* ==========================================================================
   Ala Carte Tickets — Scoped Styles
   Prefix: .a-la-carte / .alc-
   Uses Uncode Icons (fa fa-*) loaded by Uncode theme.
   ========================================================================== */

/* ── Reset (scoped) ─────────────────────────────────────────────────── */
.a-la-carte *,
.a-la-carte *::before,
.a-la-carte *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.a-la-carte {
    font-family: Georgia, serif;
    background: #fffaf2;
    color: #3d1f12;
    padding: 40px 24px;
    line-height: 1.5;
    /* Prevent any child from overflowing */
    overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.alc-wrap {
    max-width: 100%;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.alc-header {
    text-align: center;
    margin-bottom: 30px;
}

.alc-header h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    color: #3b1d10;
    line-height: 1.1;
}

.alc-header p {
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #5a3a2e;
    margin-top: 8px;
}

/* ── Row Grid ───────────────────────────────────────────────────────── */
.alc-row {
    display: grid;
    grid-template-columns: 170px 1.35fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

/* ── Date Block ─────────────────────────────────────────────────────── */
.alc-date {
    background: #9b321b;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 28px 10px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10c8 12 20 18 20 30s-12 20-20 30c-8-12-20-18-20-30S32 22 40 10z' fill='none' stroke='%23ffffff12' stroke-width='1'/%3E%3Cpath d='M10 40c12-8 18-20 30-20s20 12 30 20c-12 8-18 20-30 20S22 48 10 40z' fill='none' stroke='%23ffffff12' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.alc-date--evening {
    min-height: 210px;
}

.alc-date__day {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.alc-date__month {
    font-size: 32px;
    font-weight: 400;
    margin-top: 8px;
}

.alc-date__num {
    font-size: 72px;
    font-weight: 700;
    line-height: 0.9;
}

.alc-date__year {
    font-size: 28px;
    letter-spacing: 3px;
}

/* ── Icons (Uncode Icons / fa-*) ────────────────────────────────────── */
.alc-icon {
    color: #5a3a2e;
    opacity: 0.7;
    flex-shrink: 0;
}

.alc-card__head .alc-icon {
    font-size: 20px;
}

.alc-tier__label .alc-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.alc-tier__desc {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.alc-card {
    border: 1px solid #ead7bd;
    border-radius: 10px;
    background: #fffdf8;
    padding: 24px;
    /* Prevent content blowout */
    min-width: 0;
    overflow: hidden;
}

.alc-card h2 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.5px;
    margin: 0;
    color: #3d1f12;
}

/* ── Card Header (icon + title row) ──────────────────────────────── */
.alc-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.alc-card__desc {
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin-bottom: 16px;
    color: #2f2a24;
    line-height: 1.45;
}

.alc-note {
    font-style: italic;
}

/* ── Card Header + Speaker Image ────────────────────────────────── */
.alc-card__header--has-img {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.alc-card__header--has-img .alc-card__content {
    flex: 1;
    min-width: 0;
}

.alc-card__speaker-img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

/* ── Ticket Tiers (inside admission card) ───────────────────────────── */
.alc-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.alc-tier {
    border: 1px solid #ead7bd;
    border-radius: 8px;
    padding: 18px;
    background: #fffaf4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Allow grid children to shrink */
    min-width: 0;
}

.alc-tier__label {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #3d1f12;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alc-tier__price {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #3d1f12;
    margin: 6px 0;
}

.alc-free {
    color: #2a7a3a;
    font-weight: 800;
}

/* ── Meal Pass (inside meal card) ───────────────────────────────────── */
.alc-meal {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    min-width: 0;
}

.alc-meal h3 {
    margin: 0 0 8px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #3d1f12;
}

.alc-meal p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    color: #2f2a24;
    /* Prevent long meal descriptions from blowing out */
    word-break: break-word;
}

.alc-meal__price {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #3d1f12;
    white-space: nowrap;
}

/* ── Quantity Selector ──────────────────────────────────────────────── */
.alc-cart {
    margin-top: auto;
    /* Allow grid children to shrink */
    min-width: 0;
}

.alc-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.alc-qty {
    display: flex;
    border: 1px solid #ead7bd;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.alc-qty__btn {
    width: 38px;
    height: 28px;
    border: 0;
    background: #fffaf4;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #3d1f12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alc-qty__btn:hover {
    background: #f5e6d3;
}

.alc-qty__display {
    width: 38px;
    height: 28px;
    border: 0;
    background: #fffaf4;
    text-align: center;
    line-height: 28px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

/* ── Add to Cart Button ─────────────────────────────────────────────── */
.alc-btn {
    background: #df4b00;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 10px 24px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: normal;
    word-wrap: break-word;
    min-width: 0;
    flex-shrink: 1;
}

.alc-btn:hover {
    background: #c44000;
}

.alc-btn.is-added {
    background: #2a7a3a;
}

.alc-btn--sold-out {
    background: #999;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.alc-stock {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #b13a25;
    font-weight: 700;
    margin-top: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* ── Medium screens (tablets / small laptops) ───────────────────────── */
@media (max-width: 1300px) {
    .alc-row {
        grid-template-columns: 140px 1fr;
        gap: 14px;
    }

    /* Meal card spans full width below the admission card */
    .alc-card--meal {
        grid-column: 1 / -1;
    }

    .alc-card {
        padding: 20px;
    }

    .alc-card h2 {
        font-size: 20px;
    }

    .alc-tiers {
        gap: 12px;
    }

    .alc-tier {
        padding: 14px;
    }

    .alc-meal {
        grid-template-columns: 1fr auto auto;
        gap: 12px;
    }
}

/* ── Small tablets / large phones ───────────────────────────────────── */
@media (max-width: 1000px) {
    .a-la-carte {
        padding: 24px 16px;
    }

    .alc-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alc-date {
        min-height: auto;
        padding: 16px 20px;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .alc-date__num {
        font-size: 48px;
    }

    .alc-date__month {
        font-size: 22px;
        margin-top: 0;
    }

    .alc-date__year {
        font-size: 20px;
    }

    .alc-tiers {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .alc-meal {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alc-card__speaker-img {
        width: 120px;
    }

    .alc-meal__price {
        font-size: 28px;
    }
}

/* ── Phones ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .a-la-carte {
        padding: 20px 12px;
    }

    .alc-header {
        margin-bottom: 20px;
    }

    .alc-header p {
        font-size: 15px;
    }

    .alc-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .alc-date {
        padding: 14px 16px;
        gap: 8px;
    }

    .alc-date__day {
        font-size: 14px;
    }

    .alc-date__num {
        font-size: 36px;
    }

    .alc-date__month {
        font-size: 18px;
    }

    .alc-date__year {
        font-size: 16px;
    }

    .alc-card {
        padding: 16px;
    }

    .alc-card h2 {
        font-size: 18px;
    }

    .alc-card__desc {
        font-size: 14px;
    }

    /* Tiers stack vertically on phones */
    .alc-tiers {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .alc-tier {
        padding: 14px;
    }

    .alc-tier__price {
        font-size: 28px;
    }

    .alc-meal h3 {
        font-size: 17px;
    }

    .alc-meal p {
        font-size: 13px;
    }

    .alc-meal__price {
        font-size: 24px;
    }

    .alc-card__speaker-img {
        width: 100%;
        max-width: 100%;
    }

    .alc-card__header--has-img {
        flex-direction: column;
    }

    .alc-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
}
