/* Events & Afternoon Tea page, plus WooCommerce cart and checkout. */

.sth-bookings {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

/* Alternates with the grey sections so each one on the Events & Afternoon Tea page stands apart. */
.sth-bookings--white {
    background: var(--bg-white);
}

.sth-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sth-product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sth-product-card:hover,
.sth-product-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sth-product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.sth-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
}

.sth-product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.sth-product-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.sth-product-body .sth-price {
    margin: 0;
}

.sth-product-body .btn,
.sth-product-body .sth-status {
    margin-top: auto;
}

.sth-detail-description {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sth-detail-description ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.sth-detail-description li {
    color: var(--text-light);
}

.sth-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 500;
}

.sth-empty {
    text-align: center;
    color: var(--text-light);
}

.sth-tea-list {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.sth-tea-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sth-tea-card img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.sth-tea-body {
    padding: 2rem;
}

.sth-price {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.25rem 0 1rem;
}

.sth-price span {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
}

.sth-description {
    margin-bottom: 1rem;
}

.sth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sth-field--full {
    grid-column: 1 / -1;
}

.sth-field--half {
    grid-column: span 1;
}

.sth-base-price {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 0 1.25rem;
}

.sth-options {
    border: 0;
    padding: 0;
    margin: 0;
}

.sth-options legend {
    font-weight: 700;
    color: var(--primary);
    padding: 0;
    margin-bottom: 0.5rem;
}

.sth-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    color: var(--primary);
    cursor: pointer;
}

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

.sth-option-extra {
    color: var(--text-light);
}

.sth-field label,
.sth-ticket-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.sth-field input,
.sth-field select,
.sth-ticket-form input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: var(--bg-white);
    box-sizing: border-box;
}

.sth-message:empty {
    display: none;
}

.sth-message {
    color: #a33a2a;
    font-size: 0.9rem;
    margin: 0;
}

.sth-ticket-form {
    display: grid;
    grid-template-columns: 90px auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.sth-ticket-form label {
    grid-column: 1 / -1;
    margin: 0;
}

.sth-status {
    font-weight: 600;
    color: var(--primary);
    flex: 0 0 auto;
}

.sth-form .btn {
    justify-content: center;
    text-align: center;
}

.sth-notices .woocommerce-error,
.sth-notices .woocommerce-message,
.sth-notices .woocommerce-info {
    list-style: none;
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    background: var(--bg-light);
}

.sth-notices .woocommerce-error {
    border-left-color: #a33a2a;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
    padding: 3rem 0;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #payment #place_order {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .sth-bookings {
        padding: 3rem 1rem;
    }

    .sth-tea-card,
    .sth-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .sth-tea-card img {
        min-height: 200px;
        max-height: 260px;
    }
}
