@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&&display=swap');

html, body, h1, h2, h3, h4, h5, h6, p, a {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}

body {
    background-color: #F8F9FA;
}

/* Shop Header */
.shop-header {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.shop-header h1 {
    font-size: 2rem;
    margin: 2.5vh 0;
}

/* Product Container */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    grid-gap: 2rem;
    padding: 1rem;
    width: 90%;
}

.product-card {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 25vh;
    color: black;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 32px;
}

.product-desc {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    display: flex;
    background-color: rgba(0, 0, 0, 0.25);
    flex-direction: column;
    align-items: flex-end;
    padding: 2.5% 2.5% 2.5% 2.5%;
    text-align: right;
    color: white;
    width: 100%;
}

.product-desc h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.product-desc h3 span {
    font-size: 1.2rem;
    font-weight: normal;
}

.product-desc p {
    font-size: .85rem;
}

/* Product interaction states */
.product-has-events {
    cursor: default;
}

.product-no-events {
    cursor: pointer;
}

/* CALENDAR */
.calendar-month {
    width: 100%;
    border-collapse: collapse;
    margin: 20px;
}

.calendar-left, .calendar-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.calendar-head {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 1vh 0;
    border-bottom: 2px solid #403d3d;
}

.today {
    color: red;
}

.other-month {
    color: #ccc;
}

.booking-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    background-color: white;
    border-radius: 32px;
    margin: 2.5vh 2.5vw;
    padding: 2.5vh 0;
}

.booking-calendar .calendar-bar {
    display: flex;
    justify-content: space-between;
    width: 85%;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.calendar-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.calendar-container {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 5vw;
}

.calendar-month {
    border: 2px solid #403d3d;
    border-radius: 8px;
}

.calendar-dates {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.calendar-week {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border-bottom: 1px solid black;
    min-height: 5vh;
    padding-top: .5rem;
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-week-event {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: left;
}

.event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #90ee90;
    border-radius: 6px;
    align-self: flex-end;
    padding: .15em .5em .15em .5em;
    margin-top: .35em;
    color: black;
}

.event.full {
    opacity: 0.6;
    cursor: not-allowed;
}

.badge-complet {
    background-color: #ff4444;
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
}

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

/* Shop Section */
.shop-section {
    display: flex;
    justify-content: center;
    padding: 1rem 2.5vw;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-primary {
    background: #E22822;
    color: white;
}

.btn-primary:hover {
    background: #c41e1a;
    transform: scale(1.05);
}

.btn-secondary {
    background: white;
    color: #1a1a2e;
    border: 2px solid #E22822;
}

.btn-secondary:hover {
    background: #E22822;
    color: white;
}

.btn-danger {
    background: transparent;
    color: #E22822;
    padding: 0.5rem;
}

.btn-danger:hover {
    background: #fdeaea;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    width: 100%;
}

.cart-empty .material-symbols-outlined {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.cart-empty h2 {
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #666;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    width: 100%;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    overflow: hidden;
}

.cart-summary h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Chip */
.chip {
    display: inline-block;
    background: #F0F0F0;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.75rem 0;
    height: 0;
}

/* Order details */
.order-details .row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.order-details .row.total {
    font-weight: 700;
    font-size: 1.15rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
}

.checkout-step.active {
    color: #E22822;
    font-weight: 700;
}

.checkout-step.done {
    color: #28a745;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-label {
    font-size: 0.95rem;
}

/* Form */
.form-section {
    width: 90%;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.form-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Ubuntu', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E22822;
}

.form-group .error {
    color: #E22822;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Participant Card */
.participant-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.participant-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Confirmation */
.confirmation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.confirmation-box .material-symbols-outlined {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-box.success .material-symbols-outlined {
    color: #28a745;
}

.confirmation-box.error .material-symbols-outlined {
    color: #E22822;
}

.confirmation-box h2 {
    margin-bottom: 0.5rem;
}

.confirmation-box p {
    color: #555;
    margin-bottom: 0.25rem;
}

/* Text utilities */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

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

    .checkout-steps {
        gap: 1rem;
    }

    .step-label {
        display: none;
    }
}

/* Toast */
.toast {
    visibility: hidden;
    min-width: 320px;
    max-width: 480px;
    background-color: #69F0AE;
    font-weight: bold;
    color: black;
    text-align: center;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.06);
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 32px;
    transform: translateX(-50%);
}

.toast.hide {
    opacity: 0;
    transform: translateX(-50%);
}
