/* ============================================
   TICKETING SYSTEM - MAIN STYLESHEET
   Version: 7.0 - Cleaned & Optimized
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */

:root {
    --primary: #873a10;
    --primary-dark: #501e03;
    --primary-light: #c17349;
    --secondary: #331302;
    --success: #48bb78;
    --success-dark: #38a169;
    --danger: #e53e3e;
    --danger-dark: #c53030;
    --warning: #ed8936;
    --warning-dark: #dd6b20;
    --info: #4299e1;
    --dark: #2d3748;
    --gray: #718096;
    --gray-light: #a0aec0;
    --light: #f7fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    /* Frontend theming system (2026-07-25) - a selected theme's own
       style.css (themes/{slug}/style.css) overrides --primary/--secondary/
       --radius*/--page-bg above; a per-company branding customization can
       further override any of --primary/--secondary/--page-bg/--font-body/
       --font-heading on top of that, via a small inline <style> block
       includes/header.php injects last (see buildThemeAssets() in
       includes/functions.php). These two font variables are the ones that
       make that possible without touching every existing font-family
       declaration in this file. */
    --page-bg: #E5E1D5;
    /* box_color/header_color (2026-08-16) - two more per-company theme
       overrides, same mechanism as --primary/--secondary/--page-bg above.
       --box-bg is read by every content-container element (program/
       attendee/ticket/related cards, .filter-section/.filter-panel/
       .mobile-filter-bar, .search-box/.search-input-mobile, .modal-content,
       .cart-container/.checkout-container/.payment-methods, and several
       more - grep this file for "var(--box-bg)" for the exact list).
       --header-bg is read only by the site's own <header> bar. Both
       default to var(--white) here so a company/theme that never touches
       either renders byte-identical to before this feature existed.
       Deliberately NOT applied to a few white-background elements that
       need to stay pure white regardless of theme - .ticket-qr-image
       (a QR code needs real white backing for scan reliability, not a
       themed color) and small interactive controls like .btn-print/
       .pagination span/.quantity-control button (buttons, not "boxes"). */
    --box-bg: var(--white);
    --header-bg: var(--white);
    --font-body: 'Manrope', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-body-size: 13px;
    /* The site's default heading-size scale - a per-company override
       (companies.font_heading_size, admin/themes.php) only ever stores
       one number (the H1 size); buildThemeAssets() derives all six of
       these from it via THEME_HEADING_SIZE_RATIOS (includes/config.php)
       and overrides them together, same "inject last, wins by variable
       value not specificity" mechanism as --primary/--secondary above. */
    --h1-size: 28px;
    --h2-size: 24px;
    --h3-size: 20px;
    --h4-size: 18px;
    --h5-size: 16px;
    --h6-size: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-body-size);
    background: var(--page-bg);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.2rem;
}

input, select, textarea, button {
    font-family: inherit;
}

button {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: bold;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.2;
    font-family: var(--font-heading);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.logo {
    width: 96%;
}

.logo img {
    max-width: 100%;
    max-height: 50px;
}

/* Icons */
i.fa-solid, i.fas {
    opacity: .5;
    margin-right: 5px;
    transition: transform 0.2s, opacity 0.5s;
}

*:hover > i.fa-solid, *:hover > i.fas {
    opacity: 1;
}

/* Cart Icon */
.cart-icon a {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    white-space:nowrap;
}

.cart-icon a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PROGRESS STEPS (Shared)
   ============================================ */

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: var(--gray);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    color: var(--gray);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-transform: uppercase;
    padding:8px 20px 10px 20px; border-radius:5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-dark);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-continue {
    background: none;
    border: 0;
    color: var(--dark);
}

.btn-continue:hover {
    color: var(--primary);
}

.btn-checkout {
    background: var(--success);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-lg);
}

.btn-checkout:hover {
    background: var(--success-dark);
    transform: scale(1.02);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: var(--danger);
    margin-left: 3px;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left-color: var(--success);
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left-color: var(--danger);
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left-color: var(--info);
}

.alert-warning {
    background: #fef5e7;
    color: #975a16;
    border-left-color: var(--warning);
}

/* Program Preview & Sandbox Testing - unmissable, full-width, sits above
   the normal <header> so it's the very first thing visible on every page
   of the funnel a sandbox session touches. */
.sandbox-mode-banner {
    background: #fef5e7;
    color: #975a16;
    border-bottom: 2px solid var(--warning);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.sandbox-mode-banner a {
    background: var(--warning);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.sandbox-mode-banner a:hover {
    opacity: 0.85;
}

/* littleBIG.id paid-client referral banner (2026-08-16) - visually
   distinct from .sandbox-mode-banner above (info/blue, not warning/
   orange - this isn't a caution, just a heads-up) since the two can
   never appear together (sandbox mode is an admin-only preview link,
   this is a public customer-facing littleBIG referral) but share the
   same sticky-top-bar treatment. auto-hide timing + close-button
   handler live in assets/js/common.js per convention #2 (no inline JS). */
.littlebig-referral-banner {
    background: #ebf8ff;
    color: #2c5282;
    border-bottom: 2px solid var(--info, #4299e1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.littlebig-referral-close {
    background: none;
    border: none;
    color: #2c5282;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

/* littleBIG.id Part 1 - unified cross-seller basket persistent banner
   (2026-08-17). Same sticky-top-bar treatment as the two banners above,
   but visually distinct (green/success, not blue/info or orange/warning)
   since this represents an ACTIVE state the customer is meant to keep
   noticing across every page they browse while shopping - unlike
   .littlebig-referral-banner, which is one-shot/dismissible, this stays
   up for as long as littlebig_basket_mode is set. */
.littlebig-basket-mode-banner {
    background: #f0fff4;
    color: #22543d;
    border-bottom: 2px solid var(--success, #38a169);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.littlebig-basket-mode-banner a {
    background: var(--success, #38a169);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.littlebig-basket-mode-banner a:hover {
    opacity: 0.85;
}

.littlebig-referral-close:hover {
    opacity: 0.7;
}

/* ============================================
   PROGRAM CARDS (Catalog)
   ============================================ */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.program-card {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.program-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.program-category {
    padding: 12px 15px 5px;
    font-size: .7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* littleBIG.ID aggregator marketplace (2026-08-15) - a small seller-name
   badge on each card, only ever rendered by aggregate-catalog.php (a
   plain company catalog never groups by seller, so it never shows this).
   Kept visually secondary to .program-category (muted color, no
   uppercase/letter-spacing) since the category is still the card's
   primary grouping signal on this page. */
.program-seller-badge {
    padding: 0 15px 4px;
    font-size: .65rem;
    color: var(--gray, #718096);
}

/* 2-column meta row (2026-08-16) - category left-aligned, seller name
   right-aligned, in place of the two stacking on their own separate
   lines. Only wraps .program-category/.program-seller-badge together on
   aggregate-catalog.php - scoped to this wrapper class rather than
   editing the two rules above directly, since .program-category is a
   shared class also used (with no seller badge alongside it) by
   catalog.php/ajax/load-more-programs.php's own cards, which must stay
   unaffected. flex-wrap is a safety net only - a long category name and
   a long seller name together drop the seller badge to its own line
   below rather than overlapping/overflowing; the normal case is both
   comfortably fitting side by side. */
.program-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 10px;
    padding: 12px 15px 5px;
}

.program-card-meta-row .program-category {
    padding: 0;
    text-align: left;
}

.program-card-meta-row .program-seller-badge {
    padding: 0;
    text-align: right;
}

.program-card h2 {
    padding: 0 15px;
    margin: 5px 0;
}

/* Catalog card brief - full WYSIWYG HTML (bold/italic/lists/headings),
   visually capped to 3 lines via line-clamp rather than character-count
   truncation, so a bold/list tag is never cut in half. display: -webkit-box
   + -webkit-line-clamp is what actually does the clamping (the box-orient/
   overflow rules alone, without these two, do nothing - a real gap this
   replaces, not just a rename). max-height is a plain fallback for the
   rare browser without line-clamp support - 3 lines at this font-size/
   line-height. */
.program-card-brief {
    padding: 0 15px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em;
}

/* The global `* { margin: 0; padding: 0; }` reset (style.css, near the
   top) zeroes out list indentation and paragraph/list-item spacing -
   same fix already applied to program-detail.php's own description
   section (.description-content), needed here for the identical reason:
   without it, list markers render outside the card's left edge. */
.program-card-brief ul,
.program-card-brief ol {
    padding-left: 18px;
}

.program-card-brief p + p,
.program-card-brief li + li {
    margin-top: 4px;
}

.price {
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Trailing "/ N person" note after the price - single-price (no Price
   Options) programs only, when attendee_slots > 1 (one purchased unit
   admits several people, e.g. a family package). Sized relative (em) to
   whichever price it's inside (.price on a catalog card, .program-detail-price
   on the detail page) so it always reads clearly smaller regardless of
   context. */
.price-attendee-slots-suffix {
    font-size: 0.7em;
    font-weight: 400;
    color: var(--gray);
    margin-left: 4px;
}

.quota {
    padding: 0 15px;
    color: var(--gray-light);
    font-size: 12px;
}

.event-date {
    padding: 5px 15px;
    color: var(--gray);
    font-size: 13px;
}

/* Catalog card availability/date row (catalog.php, aggregate-catalog.php,
   ajax/load-more-programs.php) - Available (quota) on the left, the date
   period on the right, sharing one row instead of stacking. flex-wrap is
   a safety net for a long multi-day/occurrence date string that can't fit
   next to the quota text on one line - it drops to its own line below
   rather than overlapping. .event-date's own margin-left:auto (not
   justify-content on the row) is what keeps it right-aligned in BOTH
   cases - when it wraps alone onto its own line, justify-content's
   space-between has nothing to distribute against for a single item and
   would otherwise leave it flush-left. */
.program-card-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 15px;
    padding: 5px 15px;
}

.program-card-info-row .quota,
.program-card-info-row .event-date {
    padding: 0;
}

.program-card-info-row .event-date {
    margin-left: auto;
}

/* On mobile the row almost always wraps to 2 lines (a full-width single-
   column card is still often narrower than quota+date combined) - once
   it does, right-aligning the date reads as a stray floating line rather
   than a real second column, so both rows go flush-left here instead,
   matching this app's existing 768px mobile breakpoint. */
@media (max-width: 768px) {
    .program-card-info-row .event-date {
        margin-left: 0;
    }
}

.icon-text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.event-date i, .quota i {
    opacity: 1;
    width: 15px;
}
.event-date i { color: var(--info); }
.quota i { color: var(--danger-dark); }

/* Add to Cart */
.add-to-cart {
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    transition: border-color 0.2s;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary);
}

.add-to-cart-btn {
    flex: 1;
    /* Was var(--success) (a fixed green, never part of the theme
       system - admin/themes.php only ever overrides --primary/
       --secondary/--page-bg/fonts/radius) - a company's chosen theme
       color never showed up on its own "Add to Cart" button. --success
       stays reserved for actual success/confirmation states elsewhere
       (badges, alerts) - only this button's own color source changes. */
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* .add-to-cart-btn's own rules above already cover flex-sizing/color/
   padding for this <a> (the .add-to-cart container is display:flex, so
   an anchor child becomes a flex item and gets flex:1 automatically) -
   this just adds the anchor-specific bits a <button> gets for free. */
.view-options-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* The global `a:hover { color: var(--primary-dark); }` rule (near the top
   of this file) has higher specificity than .add-to-cart-btn's own plain
   `color: var(--white)` (an element+pseudo-class beats a lone class) -
   invisible on every OTHER .add-to-cart-btn since those are real
   <button> elements, which a/a:hover never match, but this one is a
   plain <a>. Without this override, hovering made the text render in
   the same dark color as its own darkened hover background - text
   technically still there, just perfectly camouflaged. */
.add-to-cart-btn.view-options-btn:hover {
    color: var(--white);
}

/* Sold Out */
.program-card.sold-out {
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.8;
    position: relative;
}

.program-card.sold-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    border-radius: 15px;
}

.sold-out-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Coming Soon (Package, not yet reached its own event_start) - a subtler
   treatment than sold-out's grayscale, since this is a future
   opportunity, not something permanently unavailable. */
.program-card.coming-soon {
    opacity: 0.92;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    background: var(--info);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm, 8px);
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-container {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 10px auto 30px auto;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table tr:hover {
    background: var(--light);
}

.cart-item-name {
    display: inline-block;
    font-size: 1.05rem;
    margin-bottom: .3rem;
    font-weight: 600;
}

.cart-item-date {
    font-size: .8rem;
    margin-left: .2rem;
}

.cart-item-date i {
    color: var(--info);
    opacity: 1;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.remove-item {
    color: var(--danger);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.remove-item:hover {
    color: var(--danger-dark);
}

.cart-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--border);
    text-align: right;
}

.summary-row {
    margin: 10px 0;
    font-size: .9rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.summary-row span:first-child {
    opacity: .7;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin-bottom: 10px;
}

/* ============================================
   PURCHASE NOTE WIDGET (Checkout)
   ============================================ */

.purchase-note-section {
    margin: 10px 0;
}

.purchase-note-display,
.purchase-note-filled {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    transition: background 0.2s;
}

.purchase-note-filled {
    border-style: solid;
}

.purchase-note-icon {
    color: var(--gray);
    flex-shrink: 0;
}

.purchase-note-placeholder {
    flex: 1;
    color: var(--gray);
    font-size: .9rem;
}

.purchase-note-text {
    flex: 1;
    font-size: .9rem;
    color: var(--ink);
    word-break: break-word;
    white-space: pre-line;
}

.purchase-note-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.purchase-note-btn:hover {
    background: rgba(0,0,0,0.06);
}

.purchase-note-editor {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    animation: purchaseNoteFadeIn 0.15s ease;
}

@keyframes purchaseNoteFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.purchase-note-textarea {
    flex: 1;
    min-height: 60px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: .9rem;
    font-family: inherit;
}

.purchase-note-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.purchase-note-save-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.purchase-note-save-btn:hover {
    opacity: 0.85;
}

.purchase-note-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   COUPON SECTION (Shared - Cart & Checkout)
   ============================================ */

.coupon-section {
    margin: 10px 0;
    padding: 10px;
    background: var(--light);
    border-radius: var(--radius);
}

.coupon-header i {
    color: var(--danger-dark);
    opacity: 1;
    margin-bottom: 10px;
}

.coupon-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.coupon-form {
    display: flex;
    gap: 10px;
    flex: 1;
    width: 100%;
}

.coupon-input {
    flex: 1;
    padding: 7px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.coupon-input.has-error {
    border-color: var(--danger);
    background: #fff8f8;
}

.coupon-input.has-success {
    border-color: var(--success);
    background: #f8fff8;
}

.btn-apply-coupon {
    padding: 7px 20px;
    background: var(--gray);
    color: var(--white);
    border: 0;
    border-radius: 10px;
    font-size: .75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-grow: 0;
}

.btn-apply-coupon:hover:not(:disabled) {
    background: var(--primary);
    transform: translateY(-1px);
}

.btn-apply-coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Applied Coupon */
.applied-coupon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.applied-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: #d4edda;
    border: 2px solid var(--success);
    border-radius: 6px;
    color: #155724;
    font-size: .9rem;
    flex: 1;
}

.applied-coupon-badge i {
    color: var(--success);
}

.applied-coupon-badge strong {
    text-transform: uppercase;
}

.coupon-saved-amount {
    background: rgba(40, 167, 69, 0.15);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    margin-left: 4px;
    white-space: nowrap;
}

.btn-remove-coupon {
    min-width: auto;
    padding: 7px 10px;
    background: var(--danger-dark);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: .75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-remove-coupon:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-remove-coupon-small {
    padding: 4px 12px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
}

.btn-remove-coupon-small:hover {
    background: var(--danger-dark);
}

/* Coupon Messages */
.coupon-error-message,
.coupon-success-message,
.coupon-free-message {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.coupon-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.coupon-error-message i {
    color: var(--danger);
}

.coupon-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.coupon-success-message i {
    color: var(--success);
}

.coupon-free-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    font-weight: 500;
}

.coupon-free-message i {
    color: #17a2b8;
}

/* Available Coupons Panel */
.available-coupons-panel {
    margin: 10px 0;
    padding: 10px;
    background: var(--light);
    border-radius: var(--radius);
}

.available-coupons-header {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark, #333);
}

.available-coupons-header i {
    color: var(--primary);
    margin-right: 4px;
}

.available-coupons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.available-coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.available-coupon-card.qualifies {
    background: #f8fff8;
    border: 2px dashed var(--success);
}

.available-coupon-card.near-miss {
    background: #f4f4f4;
    border: 2px dashed var(--border);
    opacity: 0.75;
}

.available-coupon-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.available-coupon-code {
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 0.5px;
}

.available-coupon-card.qualifies .available-coupon-code i {
    color: var(--success);
}

.available-coupon-card.near-miss .available-coupon-code i {
    color: var(--gray);
}

.available-coupon-discount {
    background: rgba(40, 167, 69, 0.12);
    color: var(--success);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.available-coupon-card.near-miss .available-coupon-discount {
    background: rgba(0,0,0,0.06);
    color: var(--gray);
}

.available-coupon-apply-btn {
    padding: 6px 16px;
    background: var(--success);
    color: var(--white);
    border: 0;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.available-coupon-apply-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: 0.9;
}

.available-coupon-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.available-coupon-upsell {
    width: 100%;
    font-size: .75rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.checkout-container {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 10px auto 30px auto;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
}

.checkout-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.order-summary,
.payment-methods {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 2px #F0F0F0 solid;
}

.order-summary h2, .order-summary h3,
.payment-methods h2, .payment-methods h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    color: var(--dark);
}

.order-items {
    margin-bottom: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .9rem;
    gap: 1rem;
    border-top: 1px solid var(--border);
}

.order-item:first-child {
    border-top: none;
}

.price-bx {
    white-space: nowrap;
}

.totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border);
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.total-line.discount-line {
    color: var(--success);
}

.grand-total {
    background: #999999;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    margin-top: 10px;
    padding: 15px 10px;
    border-radius: 8px;
}

.error-text {
    color: var(--danger-dark);
    font-style: italic;
    font-size: .8rem;
}

/* Payment Options */
.payment-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--gray-light);
    background: var(--light);
    transform: translateX(5px);
}

.payment-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: var(--shadow-sm);
}

.payment-option.test-mode-option {
    border-color: var(--warning);
    background: #fffaf0;
}

.payment-option.test-mode-option.selected {
    border-color: var(--warning);
    background: #fef5e7;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-option-header input {
    margin: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.payment-option-header label {
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    display: inline-block;
    background: var(--success);
    color: var(--white);
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.payment-discount {
    margin-top: 8px;
    padding-left: 35px;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef5e7 0%, #fde68a 100%);
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.payment-total-breakdown {
    margin-top: 8px;
    padding-left: 35px;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-total-breakdown .original-price {
    color: var(--gray);
    text-decoration: line-through;
}

.payment-total-breakdown .discount-save {
    color: var(--success);
    font-weight: 600;
}

.payment-total-breakdown .final-price {
    color: var(--primary);
    font-weight: 600;
}

.payment-channels {
    margin-top: 8px;
    padding-left: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payment-channel {
    background: var(--light);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 10px;
    color: var(--gray);
    font-weight: 500;
}

.secure-note {
    background: #ebf4ff;
    border-radius: var(--radius);
    padding: 12px 15px;
    margin-top: 20px;
    font-size: 12px;
    color: #2c5282;
    text-align: center;
}

.secure-note i {
    color: var(--info);
    opacity: 1;
}

.btn-pay {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-pay:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Free Order Styles */
.grand-total-free {
    background: #666666;
    padding: 15px 10px;
    border-radius: 8px;
    color: white;
    font-size: 1.2em;
    margin-top: 10px;
}

.grand-total-free .free-badge {
    background: rgba(255,255,255,0.25);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
}

.free-order-message {
    text-align: center;
    padding: 37px 20px 5px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9f7ef);
    border-radius: 12px;
    border: 2px dashed var(--success);
    margin-bottom: 25px;
}

.free-order-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.free-order-message h3 {
    color: var(--success);
    margin-bottom: 10px;
    font-size: 24px;
}

.free-order-message p {
    color: var(--gray);
    font-size: .85rem;
    max-width: 400px;
    margin: 0 auto 0px;
}

.free-order-details {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 350px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.free-order-details p {
    margin: 8px 0;
    color: var(--dark);
    font-size: 1rem;
}

.free-order-details .free-amount {
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

.btn-free-order {
    background: linear-gradient(135deg, #0099CC, #20c997) !important;
    font-size: 1.2em !important;
    padding: 16px 40px !important;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-free-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1aa37a) !important;
}

.btn-free-order i {
    margin-right: 10px;
}

/* ============================================
   ATTENDEE PAGE
   ============================================ */

.attendee-container {
    max-width: 1000px;
    margin: 10px auto 30px auto;
}

.header-container {
    margin: 0 .3rem 1.5rem .3rem;
}

.attendee-form-wrapper {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.attendee-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 10px;
}

/* Buyer Section */
.buyer-section {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
}

.buyer-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

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

/* Program Group */
.program-group {
    background: var(--box-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 25px;
    overflow: hidden;
}

.program-group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-bottom: 2px solid var(--primary);
}

.program-group-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: var(--dark);
}

.program-group-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
}

.program-group-meta i {
    opacity: 1;
}

.program-group-meta i.fa-calendar-days {
    color: var(--info);
}

.program-group-meta i.fa-ticket {
    color: var(--danger-dark);
}

/* Attendee Cards */
.attendee-card {
    background: var(--box-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 15px;
    transition: all 0.3s;
}

.attendee-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.attendee-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--primary);
}

.attendee-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.copy-buyer-btn {
    background: var(--info);
    color: var(--white);
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-buyer-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.attendee-fields {
    padding-left: 10px;
}

.attendee-custom-fields {
    padding-left: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.attendee-cf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.attendee-cf-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Order Summary Box */
.order-summary-box {
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 25px;
    font-size: .95rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    font-weight: bold;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.summary-item-name {
    flex: 2;
}

.summary-item-qty {
    width: 60px;
    text-align: center;
}

.summary-item-price {
    width: 100px;
    text-align: right;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: bold;
}

/* ============================================
   MY TICKETS PAGE
   ============================================ */

.tickets-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.tickets-search-card {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.search-divider {
    margin: 20px 0;
    color: var(--gray-light);
    font-size: 14px;
}

.tickets-container {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 10px auto 30px auto;
    box-shadow: var(--shadow-md);
    max-width: 1000px;
}

/* Order Info Card */
.order-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    overflow: hidden;
}

.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
    gap: 15px;
}

.order-info-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 20px;
}

.order-info-details {
    padding: 20px 25px;
}

.order-info-details p {
    margin: 1px 0;
    opacity: 0.9;
}

.order-info-details p strong {
    font-weight: 600;
    opacity: .7;
}

.order-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* WhatsApp Scheduling CTA (my-tickets.php) - a program in this order is
   flagged requires_whatsapp_scheduling. The number is its own large bold
   line (.whatsapp-scheduling-number), deliberately not just text inside
   the button - someone who doesn't notice/trust the button as clickable
   (or who prints/screenshots the page) can still read and manually
   message/dial the number. */
.whatsapp-scheduling-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background-color: #e7f9ee;
    border: 1px solid #25d366;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
}

.whatsapp-scheduling-icon {
    font-size: 34px;
    color: #25d366;
    flex-shrink: 0;
    line-height: 1;
}

.whatsapp-scheduling-body {
    flex: 1;
}

.whatsapp-scheduling-title {
    font-weight: 700;
    font-size: 17px;
    color: #075e33;
    margin-bottom: 6px;
}

.whatsapp-scheduling-text {
    font-size: 14px;
    color: #333333;
    margin: 0 0 10px;
}

.whatsapp-scheduling-number {
    font-size: 20px;
    font-weight: 700;
    color: #075e33;
    margin-bottom: 12px;
}

.whatsapp-scheduling-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
}

.whatsapp-scheduling-btn:hover {
    background-color: #1ea952;
}

/* Ticket Card */
.ticket-card {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ticket-header {
    background: var(--light);
    padding: 15px 20px;
    border-bottom: 2px solid var(--border);
}

.ticket-program-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-program {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
}

.ticket-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-used {
    background: #fed7d7;
    color: var(--danger-dark);
}

.status-valid {
    background: #c6f6d5;
    color: var(--success-dark);
}

/* Ticket Body */
.ticket-body {
    display: flex;
    padding: 20px;
    gap: 25px;
    flex-wrap: wrap;
}

/* QR Section */
.ticket-qr-section {
    text-align: center;
    min-width: 160px;
}

.ticket-qr-image {
    width: 150px;
    height: 150px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--white);
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: var(--light);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray);
}

.qr-placeholder span {
    font-size: 48px;
}

/* Voucher Code */
.voucher-code-section {
    margin-top: 15px;
    text-align: left;
}

.voucher-code-section label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.voucher-code-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.voucher-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
    flex: 1;
}

.copy-voucher-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.copy-voucher-btn:hover {
    background: var(--primary-dark);
}

.voucher-note {
    font-size: 10px;
    color: var(--gray-light);
    display: block;
    margin-top: 5px;
}

.btn-download-qr {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 12px;
    width: 100%;
    transition: background 0.2s;
}

.btn-download-qr:hover {
    background: var(--success-dark);
}

.btn-download-pdf {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
    transition: opacity 0.2s;
}

.btn-download-pdf:hover {
    opacity: 0.85;
}

.btn-download-pdf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-print {
    background: var(--white);
    color: var(--dark);
    border: none;
    padding: 4px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: .7rem;
}

/* Ticket Info Section */
.ticket-info-section {
    flex: 1;
}

.attendee-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 12px;
}

.attendee-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    margin: 8px 0;
    font-size: 14px;
}

.detail-icon {
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-icon i, .datetime-icon i, .checkin-icon i {
    color: var(--info);
    margin-right: 0;
    opacity: 1 !important;
}

i.fa-red {
    color: var(--danger) !important;
}

/* Event Date/Time */
.event-datetime {
    background: #ebf4ff;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

.datetime-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 13px;
}

/* Check-in Info */
.checkin-info {
    background: #fef5e7;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 12px;
    color: #975a16;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tickets Footer Info */
.tickets-info-footer {
    background: #fef5e7;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-icon {
    font-size: 20px;
}

.info-content ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.info-content li {
    margin: 5px 0;
    font-size: 13px;
    color: #975a16;
}

/* ============================================
   CATALOG & FILTERS
   ============================================ */

.catalog-layout {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    align-items: flex-start;
}

.sidebar-filters {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.filter-section {
    background: var(--box-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.filter-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--gray);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    background: var(--light);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.category-list label:hover {
    background: #ebf4ff;
    transform: translateX(5px);
}

.category-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.company-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.company-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--dark);
}

.company-contact-item i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.company-contact-item a {
    color: var(--dark);
    text-decoration: none;
}

.company-contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.company-map-embed iframe {
    display: block;
    border-radius: var(--radius-sm);
}

.company-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.company-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.company-social-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* The site-wide `i.fa-solid, i.fas` rule (line ~125) fades solid icons to
   50% opacity and adds a 5px right margin - meant for an icon sitting next
   to a text label, not an icon-only round button. The Website link (the
   only fa-solid icon in this row - the other platforms are all fa-brands,
   untouched by that rule) was inheriting both: rendering visibly dimmer
   than its siblings and sitting 5px off-center. Reset both back to this
   button's own intended look. */
.company-social-link .fa-solid {
    opacity: 1;
    margin-right: 0;
}

/* Visit Us block layout (program-detail.php) - 40% contact / 60% map when
   both exist (was 25%/75% - widened contact/narrowed map on request);
   .visit-us-single collapses to one full-width column when only one side
   has data (map-only, or contact-only). */
.visit-us-columns {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
}

.visit-us-columns.visit-us-single {
    grid-template-columns: 1fr;
}

.visit-us-map-col .company-map-embed {
    height: 100%;
}

.visit-us-map-col .company-map-embed iframe {
    height: 100%;
    min-height: 280px;
}

/* No-map case only: address gets its own column, phone/email their own,
   so the contact block still uses the full width instead of a narrow
   stacked list with a lot of empty space beside it. */
.visit-us-contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

    .visit-us-contact-split {
        grid-template-columns: 1fr;
    }
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.category-count {
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--white);
    font-weight: 600;
}

.search-box {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--box-bg);
    font-size: 14px;
    transition: all 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-apply {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.btn-reset {
    flex: 0;
    background: var(--border);
    color: var(--gray);
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.btn-reset i {
    margin: 0;
}

/* Active Filters */
.active-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 60px;
    z-index: 97;
}

.filter-tag {
    background: var(--border);
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.filter-tag a {
    color: var(--danger);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.filter-tag a:hover {
    color: var(--danger-dark);
}

.clear-all-filters {
    background: var(--danger);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}

.clear-all-filters:hover {
    background: var(--danger-dark);
    color: var(--white);
}

.result-count {
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.4);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.result-count i {
    opacity: 1;
    color: var(--info);
}

/* Shareable Bar */
.shareable-bar {
    background: linear-gradient(135deg, #ebf4ff 0%, #e0e8ff 100%);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #c3dafe;
}

.shareable-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c5282;
}

.share-icon {
    font-size: 18px;
}

.shareable-url {
    flex: 1;
    display: flex;
    gap: 10px;
    min-width: 250px;
}

.shareable-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: white;
    font-family: monospace;
}

.copy-share-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.copy-share-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--white);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-md);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-color: transparent;
}

/* ============================================
   LOAD MORE
   ============================================ */

.load-more-container {
    text-align: center;
    padding: 30px 0;
    grid-column: 1 / -1;
}

.load-more-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

#loading-indicator {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: var(--gray);
}

.program-meta {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.program-description {
    margin: 20px 0;
    line-height: 1.6;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    cursor: pointer;
    font-size: 28px;
    color: var(--gray-light);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

/* ============================================
   MOBILE FILTER BAR
   ============================================ */

.mobile-filter-bar {
    display: none;
    background: var(--box-bg);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    padding: 10px 15px;
    gap: 10px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.filter-toggle-btn,
.search-toggle-btn {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

/* Search Input in Drawer */
.search-input-mobile {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--box-bg);
    font-size: 16px;
    transition: all 0.2s;
}

.search-input-mobile:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-toggle-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.search-toggle-btn {
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--gray);
}

.search-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-badge {
    background: var(--success);
    color: var(--white);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 10px;
    margin-left: 5px;
}

/* Filter Drawer */
.filter-drawer,
.search-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.filter-drawer.active,
.search-drawer.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.filter-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--box-bg);
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.filter-panel-header h3 {
    font-size: 20px;
    margin: 0;
}

.close-drawer {
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-light);
    transition: color 0.2s;
    line-height: 1;
}

.close-drawer:hover {
    color: var(--danger);
}

.drawer-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.drawer-actions button {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply-filter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
}

.btn-apply-filter:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-reset-filter {
    background: var(--border);
    color: var(--gray);
    border: none;
}

.btn-reset-filter:hover {
    background: var(--danger);
    color: var(--white);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 5px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    header, .cart-icon, .mobile-filter-bar, .sidebar-filters,
    .active-filters, .btn, .add-to-cart, .btn-download-qr, .btn-download-pdf,
    .copy-voucher-btn, .tickets-info-footer, .pagination, footer,
    .btn-print, .order-info-actions {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .ticket-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .program-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .order-info-card {
        background: #f0f0f0;
        color: black;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .ticket-qr-image {
        border: 1px solid #ddd;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header .container {
        padding: 12px 15px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkout-container {
        /* Was full 30px on every screen size (no mobile override existed
           at all) - on top of .container's own 15px mobile padding, this
           made the checkout/payment card sit noticeably narrower than
           the now-matching-width program-detail/catalog pages. */
        padding: 15px;
    }

    .checkout-box {
        /* .checkout-box is `display: grid` (grid-template-columns: 1fr
           1.5fr), not flex - `flex-direction: column` was a no-op on a
           grid container, so Payment Methods stayed squeezed into a
           narrow second grid column instead of actually stacking below
           Order Summary. */
        grid-template-columns: 1fr;
    }

    .order-summary,
    .payment-methods {
        padding: 20px;
    }
    
    .catalog-layout {
        flex-direction: column;
    }
    
    .sidebar-filters {
        display: none;
    }
    
    .mobile-filter-bar {
        display: flex;
        position: sticky;
        top: 100px;
        z-index: 98;
    }
    
    .active-filters {
        position: relative;
        top: auto;
        margin-top: 10px;
    }
    
    .desktop-sidebar {
        display: none;
    }
    
    .result-count {
        display: inline-block;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.2);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
    }
    
    /* Cart responsive */
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 10px;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: bold;
        width: 40%;
    }
    
    /* Attendee responsive */
    .attendee-container {
        /* Was `margin: 15px` (all sides) - the 15px left/right doubled
           up with .container's own 15px mobile padding, making this
           page sit narrower than program-detail/catalog. Keep the
           vertical spacing, drop the redundant horizontal margin. */
        margin: 15px 0;
    }
    
    .attendee-form-wrapper {
        padding: 20px;
    }
    
    .attendee-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .program-group-header {
        flex-direction: column;
        text-align: center;
    }
    
    .attendee-header {
        flex-direction: column;
        text-align: center;
    }
    
    .copy-buyer-btn {
        width: 100%;
    }
    
    .attendee-fields {
        padding-left: 0;
    }
    
    /* Tickets responsive */
    .tickets-container {
        padding: 0 15px;
    }
    
    .ticket-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ticket-qr-section {
        text-align: center;
    }
    
    .ticket-info-section {
        text-align: center;
    }
    
    .attendee-detail {
        justify-content: center;
    }
    
    .datetime-row {
        justify-content: center;
    }
    
    .checkin-info {
        justify-content: center;
    }
    
    .order-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .order-stats {
        justify-content: center;
    }
    
    .tickets-search-card {
        padding: 25px;
        margin: 15px;
    }
    
    /* Program detail */
    .program-detail-image {
        height: 250px;
    }
    
    /* Shareable */
    .shareable-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shareable-url {
        flex-direction: column;
    }
    
    /* Coupon */
    .coupon-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon-form {
        flex-direction: column;
    }
    
    .btn-apply-coupon {
        width: 100%;
    }
    
    .applied-coupon-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-remove-coupon {
        width: 100%;
        text-align: center;
    }
    
    /* Progress steps */
    .progress-steps {
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-filter-bar {
        display: none !important;
    }
    
    .filter-drawer,
    .search-drawer {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-filter-bar {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .filter-toggle-btn,
    .search-toggle-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .filter-panel {
        padding: 15px;
    }
    
    .filter-panel-header h3 {
        font-size: 18px;
    }
    
    .drawer-actions button {
        padding: 10px;
        font-size: 14px;
    }
    
    .filter-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .active-filters {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .payment-option-header {
        flex-wrap: wrap;
    }
    
    .payment-description,
    .payment-channels {
        padding-left: 0;
    }
    
    .ticket-header {
        flex-direction: column;
        text-align: center;
    }
    
    .order-info {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .coupon-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .applied-coupon-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-remove-coupon {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   PROGRAM DETAIL PAGE
   ============================================ */

.program-detail-wrapper {
    max-width: 1000px;
    margin: 10px auto 30px auto;
    padding: 0 20px;
}

.back-button-container {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--primary);
}

.program-detail {
    margin: 20px auto 40px auto;
    background: var(--box-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.program-detail-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.program-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.program-detail-image-placeholder .placeholder-text {
    font-size: 24px;
    margin-top: 15px;
    opacity: 0.8;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-out-overlay span {
    background: var(--danger);
    color: var(--white);
    font-size: 48px;
    font-weight: 900;
    padding: 20px 40px;
    border-radius: 12px;
    transform: rotate(-15deg);
    text-transform: uppercase;
    letter-spacing: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.coming-soon-overlay span {
    background: var(--info);
}

.program-detail-content {
    padding: 30px;
}

.program-detail-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* program-detail.php heading scale - the program title is the page's one
   real H1, "About This..." is H2, everything else (Visit Us, sold-out
   message, related-programs, and any admin-authored heading inside the
   WYSIWYG description) follows H3-H6 below. Scoped to .program-detail-wrapper
   (this page's one true outer container) so it never affects any other
   page's own h1-h6. Individual sections below still carry their own
   color/margin/border rules - only font-size moved here, to one place. */
/* font-size intentionally NOT set here (2026-07-25) - these used to
   hardcode the exact same 28/24/20/18/16/14 values the global h1-h6 rule
   above already provides via --h1-size.--h6-size. Redeclaring them here
   with a literal px value would win on specificity over those variables
   and silently block a per-company heading-size customization
   (admin/themes.php) from ever taking visual effect on this page - the
   one page where the H1 IS the actual program title. Margins only. */
.program-detail-wrapper h1 { margin-top:10px; margin-bottom:15px; }
.program-detail-wrapper h2 { margin-top:10px; margin-bottom:15px; }
.program-detail-wrapper h3 { margin-top:10px; margin-bottom:15px; }
.program-detail-wrapper h4 { margin-top:10px; margin-bottom:15px; }
.program-detail-wrapper h5 { margin-top:10px; margin-bottom:15px; }
.program-detail-wrapper h6 { margin-top:10px; margin-bottom:15px; }

.program-detail-title {
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 13px 0;
    line-height: 1;
}

.program-detail-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border);
}

.program-detail-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.program-detail-availability {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.program-detail-availability.available {
    background: #c6f6d5;
    color: var(--success-dark);
}

.program-detail-availability.sold-out {
    background: #fed7d7;
    color: var(--danger-dark);
}

.program-detail-availability.coming-soon {
    background: #bee3f8;
    color: #2b6cb0;
}

.program-detail-availability i {
    margin-right: 6px;
}

/* Flexible, content-sized columns (not a fixed 4-up grid) - category was
   removed from here (already shown above the title, so it was a
   duplicate), leaving 2-3 items depending on availability_mode. Flexbox's
   own default sizing already does what was asked: each item's width
   starts from its own content, and any left-over row width is then split
   evenly across items, so a naturally longer item (e.g. a full date
   range) still ends up wider than a short one (e.g. "12 remaining") -
   the row always fills the full width either way. */
.program-detail-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
    flex: 1 1 auto;
    white-space: nowrap;
}

.meta-item i {
    color: var(--info);
    opacity: 1;
}

.program-detail-description {
    margin-bottom: 30px;
}

.program-detail-video {
    margin-bottom: 30px;
}

/* Direct-child selector - only targets the one main player, not the
   small thumbnail <video> elements nested inside .program-video-thumbnails
   below (those need their own, much smaller sizing). */
.program-detail-video > video {
    display: block;
    width: 100%;
    max-height: 480px;
    border-radius: var(--radius);
    background: #000;
}

/* Only rendered when a program has more than one video - manual
   thumbnail row, deliberately no auto-advance (see program-detail.js's
   initVideoGallerySwitcher() for why). */
.program-video-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.program-video-thumbnail {
    position: relative;
    width: 100px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.program-video-thumbnail.active {
    border-color: var(--primary);
}

.program-video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.program-video-thumbnail-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: none;
}

.program-detail-description h2 {
    display:inline-block;
    font-weight:bold;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom:5px;
    border-bottom:4px #CCCCCC solid;
}

/* Shared spacing for the optional "Additional Sections" tab block below
   "About This {Program}" (2026-07-31, restructured into a real tab
   system 2026-08-01) - same margin-bottom .program-detail-description
   already uses, under a more accurately-named, reusable class since
   this isn't "the description" itself. */
.program-detail-section {
    margin-bottom: 30px;
}

/* The outer "Additional Sections" tab strip - only rendered when a
   program has more than one visible tab (a single tab instead shows its
   own label as a plain h3 subheading, no clickable strip needed).
   Deliberately a different, more prominent underline-tab visual
   language than the inner .itinerary-tab-btn pill tabs, so a Schedule
   tab's own day-tabs never look like a second, nested instance of this
   same strip. */
.program-section-tabs-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.program-section-tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--gray);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.program-section-tab-btn:hover {
    color: var(--dark);
}

.program-section-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.program-section-tab-panel {
    display: none;
}

.program-section-tab-panel.active {
    display: block;
}

/* A richtext-type section tab's content is echoed raw via renderRichText()
   with no wrapping class of its own (unlike .description-content, which
   already has this fix) - the global * { margin:0; padding:0; } reset
   otherwise zeroes out a <ul>/<ol>'s native indentation, so with
   list-style-position:outside (the default) the marker renders to the
   left of the panel's own text, outside its box. Same treatment/value as
   .description-content ul/ol above. */
.program-section-tab-panel ul,
.program-section-tab-panel ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.program-section-tab-panel li {
    margin-bottom: .4rem;
}

/* h3 qualifier needed to match .program-detail-wrapper h3's specificity
   (0,1,1) - a bare .description-format-subheading (0,1,0) was losing to
   it despite appearing later in this file. */
h3.description-format-subheading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 12px;
}

.description-content-wrapper {
    position: relative;
}

.description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark);
    /* No white-space: pre-wrap here (removed) - renderRichText() already
       emits real <p>/<br> elements for line breaks either way, so
       preserving raw whitespace served no purpose and just made the
       template's own incidental indentation/newlines around the echoed
       content show up as a visible blank line. */
}

.description-content p {
    margin: 0 0 12px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content ul,
.description-content ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.description-content li {
    margin-bottom: 2px;
}

.description-content.collapsed {
    position: relative;
    max-height: 200px;
    overflow: hidden;
}

.description-content.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
    pointer-events: none;
}

.description-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 4px 10px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: .7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.description-toggle-btn:hover {
    background: var(--border);
}

.description-toggle-btn i {
    font-size: .65rem;
    transition: transform 0.2s;
}

.description-toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* Itinerary / Schedule description format - fully displayed, no
   collapse/Read-More (unlike .description-content above). Day tabs only
   ever render when grouped into more than one day - program-detail.php
   omits the tab bar entirely for a single day or an ungrouped list. */
.itinerary-day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.itinerary-tab-btn {
    padding: 6px 16px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.itinerary-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.itinerary-day-panel {
    display: none;
}

.itinerary-day-panel.active {
    display: block;
}

/* h3 qualifier needed for the same specificity reason as
   h3.description-format-subheading above. */
h3.itinerary-day-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Grid, not flex - a fixed-width time column is what actually keeps
   every row's divider/label starting at the same x-position ("straight
   line down"); flex's default shrink-to-content would size each row's
   time column independently based on that row's own text (e.g. "9:00"
   vs "14:00"), misaligning every row below it. */
.itinerary-entry {
    display: grid;
    grid-template-columns: 82px 14px 1fr;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.itinerary-entry:last-child {
    border-bottom: none;
}

.itinerary-entry-time {
    font-weight: 600;
    font-size: .8rem;
    color: var(--dark);
    white-space: nowrap;
}

.itinerary-entry-divider {
    color: var(--border);
}

.itinerary-entry-label {
    font-size: .85rem;
    color: var(--dark);
}

@media (max-width: 480px) {
    .itinerary-entry {
        grid-template-columns: 68px 12px 1fr;
        /* Explicit redeclare, not just inherited from the base rule
           above - guards against this row separator ever silently
           disappearing on a narrow viewport again. */
        border-bottom: 1px solid var(--border);
    }

    .itinerary-entry-time {
        font-size: .72rem;
    }
}

/* Highlights / Inclusions description format - a quick-scan icon+text
   grid, fully displayed, same responsive-grid precedent already used
   for the coupon allotment detail grid on the cart/checkout pages. */
.program-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    row-gap: 8px;
    column-gap: 14px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--dark);
}

.highlight-item i {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    color: var(--primary);
    font-size: 1rem;
}

/* FAQ Accordion description format - fully displayed, all collapsed by
   default; no library, plain class toggle. */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

.faq-question i {
    flex-shrink: 0;
    font-size: .8rem;
    color: var(--gray);
    transition: transform 0.2s;
}

.faq-question.open i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 0 10px;
    font-size: .85rem;
    color: var(--gray);
    line-height: 1.6;
}

.faq-answer.open {
    display: block;
}

/* An FAQ answer is also raw renderRichText() output with no wrapping
   class - same list-indentation gap and fix as .program-section-tab-panel
   above. */
.faq-answer ul,
.faq-answer ol {
    margin: 0 0 8px;
    padding-left: 22px;
}

.faq-answer li {
    margin-bottom: 2px;
}

.program-detail-add-to-cart {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 20px;
}

/* Price Options picker - every option sits as its own column in one row
   (not stacked full-width blocks), wrapping responsively on narrow
   screens; each column keeps its own quantity stepper + Add button
   (reuses .quantity-control's existing styling below, since the option
   rows use the identical class names). */
.price-options-picker {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

/* .price-options-heading is a direct child of the flex container above,
   same as every .price-option-row - flex-basis: 100% forces it onto its
   own full-width line (flex-wrap then pushes the actual option cards
   below it) rather than sitting inline as just another column. */
.price-options-heading {
    flex: 1 1 100%;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.price-option-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex: 1 1 220px;
    padding: 15px;
    background: var(--box-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.price-option-row.sold-out {
    opacity: 0.6;
}

.price-option-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

/* Price sits on its own line, deliberately larger/bolder than the
   14px .price-option-label above it (title) - previously crammed into
   the same line as the date/quota text, which read as an afterthought
   rather than the thing a customer actually needs to see first. */
.price-option-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 2px 0 0 0;
}

/* Now a small stack of icon-prefixed lines (date, quota/status) instead
   of one comma-separated run of text - same 13px/var(--gray) size and
   color the single .price-option-meta line always had, just each fact
   on its own row with a colored icon in front. */
.price-option-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    margin-top: 10px;
}

.price-option-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
}

.price-option-meta-item i {
    color: var(--info);
    opacity: 1;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.sold-out-label {
    color: var(--danger);
    font-weight: 600;
}

.price-option-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--dark);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
}

.max-qty-hint {
    font-size: 12px;
    color: var(--gray-light);
}

/* Quantity Price Tiers ("buy more, pay less") - only rendered on a plain
   program (no Price Options) that has at least one active tier. */
.quantity-tier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray);
}

.quantity-tier-item {
    font-weight: 600;
    color: var(--dark);
}

.quantity-tier-live-price {
    font-size: 14px;
    color: var(--dark);
    margin: 10px 0;
}

.quantity-tier-live-price strong {
    color: var(--primary);
    font-size: 16px;
}

.quantity-tier-upsell-note {
    font-size: 13px;
    color: var(--primary-dark, var(--primary));
    background: rgba(102, 126, 234, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
}

.btn-add-to-cart-detail {
    width: 100%;
    padding: 16px;
    /* Was var(--success)/--success-dark (fixed green, not part of the
       theme system) - same fix as .add-to-cart-btn above, this page's
       own main CTA. */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Price-options picker: a smaller Add button so it sits next to the
   quantity stepper without wrapping (.price-option-actions above is now
   flex-wrap: nowrap for the same reason) - the base .btn-add-to-cart-detail
   above is full-width/large, correct for the single-price "one big CTA"
   case further down this page. Scoped to .option-add-to-cart (this
   button's second class) so that single-price button stays untouched. */
.option-add-to-cart {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-add-to-cart-detail:hover {
    transform: translateY(-2px);
    /* Was a hardcoded rgba() matching --success's own green (72,187,120)
       specifically - would have stayed green-tinted even after the fix
       above. A neutral shadow avoids hardcoding any theme-specific color
       here at all. */
    box-shadow: var(--shadow-lg);
}

.btn-add-to-cart-detail:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.add-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.add-message.success {
    background: #c6f6d5;
    color: var(--success-dark);
}

.add-message.error {
    background: #fed7d7;
    color: var(--danger-dark);
}

.program-detail-sold-out-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--light);
    border-radius: var(--radius);
    margin-top: 20px;
}

.program-detail-sold-out-message i {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 15px;
}

.program-detail-sold-out-message h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.program-detail-sold-out-message p {
    color: var(--gray);
    margin-bottom: 20px;
}

.program-detail-coming-soon-message i {
    color: var(--info);
}

/* Related Programs */
.program-detail-location {
    margin-top: 40px;
    background: var(--box-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.program-detail-location h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.related-programs {
    margin-top: 40px;
}

.related-programs h3 {
    color: var(--dark);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--box-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card img,
.related-image-placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.related-image-placeholder {
    color: var(--white);
}

.related-info {
    padding: 15px;
}

.related-info h4 {
    color: var(--dark);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.related-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 4px 0;
}

.related-meta {
    font-size: 12px;
    color: var(--gray);
    margin: 6px 0;
}

.related-meta i {
    color: var(--info);
    opacity: 1;
}

.related-available {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--success-dark);
    background: #c6f6d5;
    padding: 2px 10px;
    border-radius: 12px;
}

.related-sold-out {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--danger-dark);
    background: #fed7d7;
    padding: 2px 10px;
    border-radius: 12px;
}

.related-card.sold-out {
    opacity: 0.7;
    filter: grayscale(50%);
}

/* Responsive */
@media (max-width: 768px) {
    .program-detail-wrapper {
        /* Was `0 15px` - an extra 15px on top of the shared .container's
           own 15px mobile padding (includes/header.php's <main
           class="container">), so this page's content sat 30px in from
           the edge while catalog.php's .programs-grid/.program-card
           (no padding of their own) only ever sat .container's 15px in -
           the "big waste gap" difference. Removed so this page's outer
           width now matches the catalog page's exactly. */
        padding: 0;
        margin: 5px auto 20px auto;
    }
    
    .program-detail-image-container {
        height: 250px;
    }
    
    .program-detail-content {
        padding: 20px;
    }
    
    .program-detail-title {
        /* Was a hardcoded 24px (2026-07-25 finding: happens to exactly
           match the default --h2-size, i.e. "shrink the title to H2 size
           on mobile" was the original intent) - switched to the variable
           so a per-company heading-size customization (admin/themes.php)
           still applies on mobile too, not just desktop. Zero visual
           change for any company with no customization, since the
           default --h2-size value is still 24px. */
        font-size: var(--h2-size);
    }

    .program-detail-price {
        font-size: 24px;
    }
    
    .program-detail-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .program-detail-meta {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 15px;
    }

    .meta-item {
        font-size: 13px;
        flex: 1 1 calc(50% - 4px);
        white-space: normal;
    }

    /* The grey "Add to cart"/price-options box was overlapping/overflowing
       past its own edge on mobile - its white .price-option-row columns
       (each with a quantity stepper + Add button that refuse to shrink
       below ~259px, see .price-option-actions) don't fit inside a 220px
       column once the grey box's own 25px side padding eats into the
       already-narrow mobile width. Smaller padding here (matching
       .program-detail-meta's own mobile padding just above) plus letting
       each option take the full row width - not a 220px column - is what
       actually fixes the overflow, not just the visual crowding. */
    .program-detail-add-to-cart {
        padding: 15px;
    }

    .price-option-row {
        flex-basis: 100%;
        min-width: 0;
    }

    /* .price-option-actions is flex-wrap: nowrap on desktop (deliberately,
       so quantity + Add stay on one line) - its quantity-control (152px)
       + Add button (~95px) content can't shrink below that combined
       width, which is what was actually forcing the row wider than its
       own 100% basis above (a flex item's default min-width:auto refuses
       to shrink past its content's own minimum). Allowing this one row to
       wrap on mobile is what actually lets the option card shrink to fit
       a phone-width column instead of overflowing past it. */
    .price-option-actions {
        flex-wrap: wrap;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .btn-add-to-cart-detail {
        font-size: 16px;
        padding: 14px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .related-card img,
    .related-image-placeholder {
        height: 120px;
    }
    
    .sold-out-overlay span {
        font-size: 28px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    /* .program-detail-meta still stays 2 columns at this narrower width
       too - no override needed here, it just keeps inheriting the 768px
       rule's flex-wrap + 50% basis. */

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Program link */
.program-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-link h3 {
    transition: color 0.2s;
}

.program-link:hover h3 {
    color: var(--primary);
}

/* Share Link */
.program-share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.share-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.share-url-input {
    flex: 1;
    min-width: 200px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: var(--gray);
    font-family: monospace;
}

.share-url-input:focus {
    outline: none;
    border-color: var(--primary);
}

.copy-share-link-btn {
    padding: 3px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.copy-share-link-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   DESKTOP SIDEBAR - STICKY
   ============================================ */

.desktop-sidebar {
    position: sticky;
    top: 90px; /* Adjust based on your header height */
    align-self: flex-start;
    max-height: calc(100vh - 40px); /* Prevents sidebar from going off screen */
    overflow-y: auto; /* Adds scroll if content exceeds viewport height */
}

/* Custom scrollbar for sidebar */
.desktop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.desktop-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.desktop-sidebar::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 10px;
}

.desktop-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Ensure filter sections within sidebar are properly contained */
.desktop-sidebar .filter-section {
    background: var(--box-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* Cap the category list's own height (not the whole sidebar/filter
   section) so a company with many categories doesn't push the Apply/
   Reset buttons far below the fold - the list scrolls within its own
   compact box instead, keeping the actual controls always reachable
   without first scrolling past every category. */
.desktop-sidebar .category-list {
    max-height: 27vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.desktop-sidebar .category-list::-webkit-scrollbar {
    width: 4px;
}

.desktop-sidebar .category-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.desktop-sidebar .category-list::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 10px;
}

.desktop-sidebar .category-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}