:root {
    --primary-color: #2c2c31;
    --accent-green: #1d6b4a;
    --accent-limited: #d48c00;
    --accent-error: #e30613;
    --bg-light: #f8f8f8;
    --text-muted: #666;
    --border-color: #eee;

    /* Universe Logic Overrides */
    --ver-primary: #1d6b4a;
    --ver-primary-hover: #169165;
    --ver-primary-light: rgba(29, 107, 74, .15);
    --ver-font: 'Montserrat', sans-serif;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-color);
    line-height: 1.6;
}

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

.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.pm-logo {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.1;
}

.pm-text { font-size: 1.2rem; font-weight: 300; letter-spacing: 2px; }
.pm-text-bold { font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; }
.pm-subtext { font-size: 0.7rem; font-weight: 400; color: #888; margin-top: 4px; }
.pm-billetterie { 
    background: #4a4af4; 
    color: white; 
    font-size: 0.8rem; 
    padding: 2px 6px; 
    align-self: flex-start; 
    margin-top: 5px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    gap: 15px;
}

.lang-btn {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-icon {
    cursor: pointer;
    color: #4a4af4;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: #f0f0f0;
}

/* Sub Nav */
.sub-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item.active {
    color: #4a4af4;
    border-bottom: 2px solid #4a4af4;
}

/* Main Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 50px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
}

/* Intro Section */
.intro-section {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.intro-image img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.intro-details .badge-official {
    color: #4a4af4;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.warning-text {
    color: #4a4af4;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.limit-info {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.important-note {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.description {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #444;
}

/* Selection Box */
.card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.instruction-text-red {
    color: var(--accent-error);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.card-body { padding: 30px; }

/* Calendar */
.calendar-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.calendar-container {
    width: 320px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
}

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

.month-display {
    font-weight: 700;
    font-size: 1.1rem;
}

.cal-btn {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}

.day-header {
    font-weight: 600;
    font-size: 0.8rem;
    color: #999;
    padding-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.calendar-day:hover:not(.disabled) {
    background: #f4f4f4;
}

.calendar-day.active {
    background: var(--accent-green) !important;
    color: white !important;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: default;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 3px;
}

.dot-available { background: var(--accent-green); }
.dot-limited { background: var(--accent-limited); }
.dot-none { background: var(--accent-error); }

.calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

/* Time Selection Dropdown */
.selection-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.time-dropdown-container {
    max-width: 400px;
}

.time-dropdown-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #4a4af4;
    box-shadow: 0 0 0 3px rgba(74,74,244,0.1);
}

.btn-primary-filled {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 12px 25px;
    font-family: inherit;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
}

.btn-primary-filled:hover {
    background: var(--ver-primary-hover);
    transform: translateY(-2px);
}

.btn-primary-filled:active {
    transform: translateY(0);
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Checkout Form Styles */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--ver-primary-light);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.card-type-icon {
    position: absolute;
    right: 15px;
    width: 35px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.7;
}

.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #999;
    margin-top: 15px;
}

/* Basket Summary */
.basket-item {
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.item-quantity {
    font-size: 0.8rem;
    color: #888;
}

.item-total {
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: -15px;
}

.basket-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #eee;
}

/* Hide bits for step flow */
#confirmChoiceSection {
    animation: fadeIn 0.5s ease;
}

#checkoutForm {
    animation: slideUp 0.6s ease;
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
.sidebar-box {
    margin-bottom: 20px;
}

.card-header {
    background: #fff;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px dotted var(--border-color);
    text-align: center;
    letter-spacing: 1px;
}

.basket-body {
    padding: 40px 20px;
}

.empty-basket {
    text-align: center;
    color: #999;
}

.payment-body p {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 20px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.payment-icons img {
    height: 25px;
    opacity: 0.8;
}

.info-links {
    list-style: none;
}

.info-links li a {
    text-decoration: none;
    color: #4a4af4;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

/* Footer */
.simple-footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.simple-footer p {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .intro-section {
        flex-direction: column;
    }
    .intro-image img {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .calendar-wrapper {
        flex-direction: column;
    }
    .calendar-container {
        width: 100%;
    }
}
