/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Child theme for Twenty Twenty-Five
Author: Your Name
Template: twentytwentyfive
Version: 1.0.0
*/

/* =========================================================
   EVENT CATEGORY LIST — SLEEK MODERN LAYOUT
   Replaces the previous "PRODUCT CATEGORY / EVENT LIST"
   section of the child theme stylesheet.
   ========================================================= */

:root {
--em-navy:        #3b3b3b;
--em-blue:        #d7075d;
--em-blue-tint:   #fdf0f5;
--em-blue-tint-2: #f9dce8;
--em-text:        #16324f;
--em-muted:       #5c7288;
--em-border:      #e4eaf1;
--em-surface:     #ffffff;
--em-canvas:      #f6f9fc;

    --em-ok-bg:       #e6f7ee;
    --em-ok-fg:       #16794b;
    --em-off-bg:      #f0f2f5;
    --em-off-fg:      #7a8899;

    --em-radius:      14px;
    --em-radius-sm:   10px;

    --em-shadow:      0 1px 2px rgba(16, 44, 74, .05);
    --em-shadow-lift: 0 10px 28px -12px rgba(16, 44, 74, .28);

    --em-gutter:      24px;
}



/* =========================================================
   PRODUCT PAGE — FORCE SINGLE COLUMN / NO GALLERY
   ========================================================= */

/*
 * Twenty Twenty-Five/WooCommerce can render the single product
 * inside a two-column wp-block-columns wrapper. The trade portal
 * does not use product galleries, so remove that column entirely
 * and make the product summary occupy the full available width.
 */

/* The product's columns wrapper */
.single-product .wp-block-columns:has(.woocommerce-product-gallery),
.single-product .wp-block-columns:has(.summary) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove the gallery column itself */
.single-product .wp-block-columns:has(.woocommerce-product-gallery) > .wp-block-column:first-child,
.single-product .wp-block-columns:has(.woocommerce-product-gallery) > .wp-block-column:has(.woocommerce-product-gallery) {
    display: none !important;
}

/* Product column becomes the only column */
.single-product .wp-block-columns:has(.summary) > .wp-block-column,
.single-product .wp-block-columns:has(.summary) > .wp-block-column:last-child {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    margin: 0 !important;
}

/* Full-bleed product content, with controlled inner gutters */
.single-product .wp-block-columns:has(.summary) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    box-sizing: border-box !important;
}

/* Hide every gallery implementation */
.single-product .woocommerce-product-gallery,
.single-product .single-product-main-image,
.single-product .product-gallery,
.single-product .single-product-main-image-container,
.single-product .woocommerce-product-gallery__wrapper {
    display: none !important;
}

/* Summary itself */
.single-product div.product .summary,
.single-product .summary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Never allow a hidden gallery to reserve a flex/grid track */
.single-product .wp-block-columns > .wp-block-column:first-child:has(.woocommerce-product-gallery) {
    display: none !important;
}

/* =========================================================
   PRODUCT CONTENT CLEANUP
   ========================================================= */

.single-product .summary > .price {
    display: none !important;
}

.single-product form.variations_form,
.single-product .single_variation_wrap,
.single-product .reset_variations {
    display: none !important;
}

.single-product .product_meta {
    display: none !important;
}

/* WooCommerce related-product blocks must not reappear */
.single-product .wp-block-woocommerce-related-products,
.single-product .wp-block-woocommerce-product-collection {
    display: none !important;
}

/* Remove the heading generated immediately before a related collection */
.single-product h2.wp-block-heading:has(+ .wp-block-woocommerce-product-collection) {
    display: none !important;
}


/* ---------------------------------------------------------
   CONTAINER
   --------------------------------------------------------- */

.em-category-events-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 0 var(--em-gutter);
    box-sizing: border-box;
}

.em-category-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Hide the stock WooCommerce archive controls */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_cat .wc-block-catalog-sorting,
body.tax-product_cat .wc-block-components-result-count {
    display: none !important;
}


/* ---------------------------------------------------------
   HEADER (quiet guide, not a table head)
   --------------------------------------------------------- */

.em-category-event-header {
    display: grid;
    grid-template-columns:
        104px
        minmax(280px, 2.4fr)
        minmax(160px, 1.2fr)
        minmax(160px, 1.2fr)
        150px;
    align-items: center;
    gap: 20px;
    padding: 0 22px 10px;
    box-sizing: border-box;
    color: var(--em-muted);
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 600;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   ROW CARD
   --------------------------------------------------------- */

.em-category-event-row {
    position: relative;
    display: grid;
    grid-template-columns:
        104px
        minmax(280px, 2.4fr)
        minmax(160px, 1.2fr)
        minmax(160px, 1.2fr)
        150px;
    align-items: center;
    gap: 20px;
    min-height: 96px;
    padding: 18px 22px;
    box-sizing: border-box;
    background: var(--em-surface);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius);
    box-shadow: var(--em-shadow);
    color: var(--em-text);
    text-decoration: none !important;
    overflow: hidden;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

/* sliding accent bar */
.em-category-event-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--em-blue);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.em-category-event-row:hover,
.em-category-event-row:focus-visible {
    transform: translateY(-2px);
    border-color: var(--em-blue-tint-2);
    box-shadow: var(--em-shadow-lift);
}

.em-category-event-row:hover::before,
.em-category-event-row:focus-visible::before {
    transform: scaleY(1);
}

.em-category-event-row:focus-visible {
    outline: 2px solid var(--em-blue);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   DATE CHIP
   --------------------------------------------------------- */

.em-category-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 76px;
    padding: 10px 6px;
    background: var(--em-blue-tint);
    border-radius: var(--em-radius-sm);
    text-align: center;
}

.em-category-event-weekday {
    color: var(--em-blue);
    font-size: 9px;
    letter-spacing: .16em;
    font-weight: 700;
    text-transform: uppercase;
}

.em-category-event-day {
    color: var(--em-blue);
    font-size: 26px;
    line-height: 1.05;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.em-category-event-month {
    color: var(--em-navy);
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 600;
    text-transform: uppercase;
}

/* date fallback when no parseable date */
.em-category-event-date--plain {
    background: var(--em-off-bg);
}

.em-category-event-date--plain .em-category-event-month {
    letter-spacing: .06em;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   EVENT NAME
   --------------------------------------------------------- */

.em-category-event-name {
    min-width: 0;
}

.em-category-event-name strong {
    display: block;
    color: var(--em-navy);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -.01em;
    font-weight: 650;
}


/* ---------------------------------------------------------
   META (competition + venue)
   --------------------------------------------------------- */

.em-category-event-meta {
    display: contents;
}

.em-category-event-competition,
.em-category-event-venue {
    min-width: 0;
    color: var(--em-muted);
    font-size: 14px;
    line-height: 1.4;
}

.em-category-event-venue {
    color: var(--em-text);
}

.em-category-venue-label {
    display: none;
}


/* ---------------------------------------------------------
   STATUS + ACTION
   --------------------------------------------------------- */

.em-category-event-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.em-category-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--em-ok-bg);
    color: var(--em-ok-fg);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 600;
}

.em-category-stock::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.em-category-stock-out {
    background: var(--em-off-bg);
    color: var(--em-off-fg);
}

.em-category-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--em-border);
    border-radius: 50%;
    background: transparent;
    color: var(--em-blue);
    font-size: 15px;
    line-height: 1;
    transition:
        background-color .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .22s ease;
}

.em-category-event-row:hover .em-category-arrow,
.em-category-event-row:focus-visible .em-category-arrow {
    background: var(--em-blue);
    border-color: var(--em-blue);
    color: #fff;
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.em-no-events {
    max-width: 1240px;
    margin: 32px auto;
    padding: 48px 24px;
    background: var(--em-canvas);
    border: 1px dashed var(--em-border);
    border-radius: var(--em-radius);
    color: var(--em-muted);
    text-align: center;
    font-size: 15px;
}


/* ---------------------------------------------------------
   PAGINATION
   --------------------------------------------------------- */

.em-category-pagination {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px var(--em-gutter);
    box-sizing: border-box;
}

.em-category-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.em-category-pagination li {
    margin: 0;
}

.em-category-pagination a,
.em-category-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--em-border);
    border-radius: 999px;
    background: var(--em-surface);
    color: var(--em-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.em-category-pagination a:hover {
    background: var(--em-blue-tint);
    border-color: var(--em-blue-tint-2);
    color: var(--em-blue);
}

.em-category-pagination .current {
    background: var(--em-navy);
    border-color: var(--em-navy);
    color: #fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 1100px) {

    :root {
        --em-gutter: 20px;
    }

    .em-category-event-header {
        display: none;
    }

    .em-category-event-row {
        grid-template-columns: 76px 1fr auto;
        grid-template-areas:
            "date name   action"
            "date meta   action";
        row-gap: 6px;
        column-gap: 18px;
        align-items: center;
    }

    .em-category-event-date  { grid-area: date; }
    .em-category-event-name  { grid-area: name; }
    .em-category-event-action{ grid-area: action; }

    .em-category-event-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        grid-area: meta;
    }

    .em-category-event-competition + .em-category-event-venue::before {
        content: "";
        display: inline-block;
        width: 3px;
        height: 3px;
        margin-right: 10px;
        border-radius: 50%;
        background: currentColor;
        vertical-align: middle;
        opacity: .5;
    }

    .em-category-event-competition,
    .em-category-event-venue {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 767px) {

    :root {
        --em-gutter: 16px;
    }

    .em-category-event-row {
        grid-template-columns: 62px 1fr;
        grid-template-areas:
            "date name"
            "date meta"
            "action action";
        row-gap: 8px;
        column-gap: 14px;
        min-height: 0;
        padding: 16px;
    }

    .em-category-event-date {
        width: 62px;
        align-self: start;
        padding: 8px 4px;
    }

    .em-category-event-day {
        font-size: 22px;
    }

    .em-category-event-name strong {
        font-size: 15px;
    }

    .em-category-event-action {
        justify-content: space-between;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--em-border);
    }

    .em-category-arrow {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}


/* =========================================================
   MOTION PREFERENCES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .em-category-event-row,
    .em-category-event-row::before,
    .em-category-arrow,
    .em-category-pagination a {
        transition: none !important;
    }

    .em-category-event-row:hover {
        transform: none;
    }

    .em-category-event-row:hover .em-category-arrow {
        transform: none;
    }
}

/* =========================================================
   SINGLE PRODUCT (EVENT) PAGE — MATCHING SLEEK LAYOUT
   Paste after the category layout CSS. Uses the same
   design tokens (:root variables) defined there.
   ========================================================= */


/* ---------------------------------------------------------
   EVENT DETAIL STRIP
   --------------------------------------------------------- */

.em-product-event {
    margin: 0 0 34px;
}

.em-event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--em-border);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius);
    overflow: hidden;
    box-shadow: var(--em-shadow);
}

.em-event-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--em-surface);
}

.em-detail-label {
    color: var(--em-muted);
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 600;
    text-transform: uppercase;
}

.em-event-detail strong {
    color: var(--em-navy);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 650;
}


/* ---------------------------------------------------------
   PACKAGES SECTION
   --------------------------------------------------------- */

.em-packages {
    margin: 0 0 48px;
}

.em-packages-title {
    margin: 0 0 16px;
    color: var(--em-navy);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.01em;
    font-weight: 650;
}

.em-package-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ---------------------------------------------------------
   HEADER (quiet guide)
   --------------------------------------------------------- */

.em-package-header {
    display: grid;
    grid-template-columns:
        minmax(240px, 2.4fr)
        110px
        130px
        150px
        170px;
    align-items: center;
    gap: 20px;
    padding: 0 22px 6px;
    color: var(--em-muted);
    font-size: 10px;
    letter-spacing: .14em;
    font-weight: 600;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   PACKAGE ROW CARD
   --------------------------------------------------------- */

.em-package-row {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(240px, 2.4fr)
        110px
        130px
        150px
        170px;
    align-items: center;
    gap: 12px 20px;
    padding: 20px 22px;
    background: var(--em-surface);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius);
    box-shadow: var(--em-shadow);
    color: var(--em-text);
    transition:
        border-color .22s ease,
        box-shadow .22s ease;
}

.em-package-row-expandable {
    cursor: pointer;
}

.em-package-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--em-blue);
    border-radius: var(--em-radius) 0 0 var(--em-radius);
    transform: scaleY(0);
    transition: transform .22s ease;
}

.em-package-row:hover,
.em-package-row.is-expanded {
    border-color: var(--em-blue-tint-2);
    box-shadow: var(--em-shadow-lift);
}

.em-package-row:hover::before,
.em-package-row.is-expanded::before {
    transform: scaleY(1);
}

.em-package-row:focus-visible {
    outline: 2px solid var(--em-blue);
    outline-offset: 3px;
}


/* PACKAGE NAME + CHEVRON */

.em-package-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.em-package-name strong {
    color: var(--em-navy);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -.01em;
    font-weight: 650;
}

.em-package-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--em-blue-tint);
    color: var(--em-blue);
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    transition:
        transform .22s ease,
        background-color .22s ease,
        color .22s ease;
}

.em-package-row.is-expanded .em-package-chevron {
    background: var(--em-blue);
    color: #fff;
    transform: rotate(45deg);
}


/* STOCK */

.em-package-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--em-text);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.em-package-stock::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--em-ok-fg);
    opacity: .8;
}


/* PRICES */

.em-package-price {
    color: var(--em-muted);
    font-size: 14px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.em-package-price del,
.em-package-price ins {
    text-decoration: none;
    background: none;
    color: inherit;
}

.em-package-price:not(.em-trade-price) {
    color: var(--em-muted);
    text-decoration-color: rgba(92, 114, 136, .45);
}

.em-trade-price {
    color: var(--em-navy);
    font-size: 17px;
    font-weight: 700;
}


/* ACTION */

.em-package-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.em-package-add-form {
    margin: 0;
}

.em-add-package {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 150px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--em-blue);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(7, 152, 215, .8);
    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.em-add-package:hover {
    background: var(--em-navy);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(0, 59, 120, .7);
}

.em-add-package:active {
    transform: translateY(0);
}

.em-add-package:focus-visible {
    outline: 2px solid var(--em-navy);
    outline-offset: 3px;
}

.em-sold-out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--em-off-bg);
    color: var(--em-off-fg);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}


/* =========================================================
   EXPANDABLE VARIATION DESCRIPTION
   ========================================================= */

.em-package-description {

    grid-column: 1 / -1;

    /*
     * IMPORTANT:
     * The description must contribute zero height while closed.
     */

    display: block;

    min-height: 0;

    max-height: 0;

    overflow: hidden;

    margin: 0;

    padding: 0;

    border: 0;

    opacity: 0;

    color: var(--em-muted);

    font-size: 14.5px;

    line-height: 1.6;

    transition:
        max-height .3s ease,
        opacity .2s ease,
        margin .3s ease,
        padding .3s ease;

}


/*
 * Description is completely collapsed by default.
 */

.em-package-description > * {

    margin-top: 0;

}


/*
 * Expanded state.
 */

.em-package-row.is-expanded .em-package-description {

    max-height: 2000px;

    margin-top: 6px;

    padding-top: 16px;

    border-top: 1px solid var(--em-border);

    opacity: 1;

}


/*
 * Description paragraphs.
 */

.em-package-description p {

    margin: 0 0 10px;

}


.em-package-description p:last-child {

    margin-bottom: 0;

}


/*
 * Description lists.
 */

.em-package-description ul,
.em-package-description ol {

    margin: 0 0 10px;

    padding-left: 20px;

}


/*
 * Make sure headings inside descriptions don't
 * introduce unexpected spacing.
 */

.em-package-description h1,
.em-package-description h2,
.em-package-description h3,
.em-package-description h4,
.em-package-description h5,
.em-package-description h6 {

    margin-top: 0;

}


/*
 * Make sure the package row itself can shrink
 * around the collapsed description.
 */

.em-package-row {

    min-height: 0;

}


/*
 * Accessibility / reduced motion.
 */

@media (prefers-reduced-motion: reduce) {

    .em-package-description {

        transition: none;

    }

}

/* ---------------------------------------------------------
   MOBILE LABELS (hidden on desktop)
   --------------------------------------------------------- */

.mobile-label {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 1100px) {

    .em-package-header {
        display: none;
    }

    .em-package-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "name  name"
            "stock rrp"
            "trade trade"
            "action action"
            "desc  desc";
        row-gap: 14px;
    }

    .em-package-name   { grid-area: name; }
    .em-package-stock  { grid-area: stock; }
    .em-package-row .em-package-price:not(.em-trade-price) { grid-area: rrp; }
    .em-trade-price    { grid-area: trade; }
    .em-package-action { grid-area: action; justify-content: stretch; }
    .em-package-description { grid-area: desc; }

    .em-package-stock,
    .em-package-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .em-package-stock::before {
        display: none;
    }

    .mobile-label {
        display: block;
        color: var(--em-muted);
        font-size: 10px;
        letter-spacing: .14em;
        font-weight: 600;
        text-transform: uppercase;
    }

    .em-package-price:not(.em-trade-price) {
        text-decoration: none;
    }

    .em-package-price:not(.em-trade-price) .woocommerce-Price-amount {
        text-decoration-color: rgba(92, 114, 136, .45);
    }

    .em-package-add-form,
    .em-sold-out {
        width: 100%;
    }

    .em-sold-out {
        justify-content: center;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 767px) {

    .em-event-details {
        grid-template-columns: 1fr 1fr;
    }

    .em-event-detail {
        padding: 14px 16px;
    }

    .em-package-row {
        padding: 18px 16px;
    }

    .em-packages-title {
        font-size: 18px;
    }
}


/* =========================================================
   MOTION PREFERENCES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .em-package-row,
    .em-package-row::before,
    .em-package-chevron,
    .em-package-description,
    .em-add-package {
        transition: none !important;
    }

    .em-add-package:hover {
        transform: none;
    }
}


/* Product-page content should never inherit the archive/group width. */
body.single-product .wp-block-group.woocommerce.product,
body.single-product .wp-block-group.woocommerce.product.is-layout-flow,
body.single-product .woocommerce.product {
    width: 100% !important;
    max-width: none !important;
}

main#wp--skip-link--target {
    max-width: 75%;
    margin: auto;
}

a.em-package-brochure-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 100%; */
    min-width: 150px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--em-blue);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
 }
 
 .wc-block-components-product-price.wc-block-grid__product-price.has-font-size.has-large-font-size{display:none!important;}
 
 /* ----------------------------------------------------------
 * Category filters / sorting
 * ---------------------------------------------------------- */

.em-category-filters {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 28px;
}

.em-category-filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.em-category-filter-group label {
    margin: 0;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--em-muted);
}

.em-category-filter-group select {
    min-width: 210px;
    height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--em-border);
    border-radius: 8px;
    background: var(--em-surface);
    color: var(--em-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 44px;
    cursor: pointer;
}

.em-category-filter-group select:focus {
    outline: none;
    border-color: var(--em-blue);
    box-shadow: 0 0 0 3px var(--em-blue-tint);
}

/* Put the controls side-by-side */
.em-category-filters-left,
.em-category-filters-right {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

/* Mobile */
@media (max-width: 767px) {

    .em-category-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 22px;
    }

    .em-category-filters-left,
    .em-category-filters-right {
        width: 100%;
        align-items: stretch;
    }

    .em-category-filter-group {
        width: 100%;
    }

    .em-category-filter-group select {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   TOP-LEVEL CATEGORY GRID
   ========================================================= */

.em-top-level-category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 40px auto;
    padding: 0;
    box-sizing: border-box;
}

.em-top-level-category-card {
    display: block;
    width: 100%;
    min-width: 0;
    text-decoration: none !important;
}

.em-top-level-category-image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 15px;
    background: #585858;
}

.em-top-level-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.em-top-level-category-card:hover
.em-top-level-category-image img {
    transform: scale(1.04);
}

.em-top-level-category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(70, 70, 70, 0.65);
    text-align: center;
    box-sizing: border-box;
}

.em-top-level-category-overlay h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.em-top-level-category-button {
    display: block;
    width: 72%;
    padding: 12px 20px;
    background: #ffffff;
    color: #000000;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.em-top-level-category-card:hover
.em-top-level-category-button {
    background: #e61a4d;
    color:#fff!important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 1100px) {

    .em-top-level-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 767px) {

    .em-top-level-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
        margin: 30px 0;
    }

    .em-top-level-category-image {
        height: 200px;
    }

    .em-top-level-category-overlay h3 {
        font-size: 20px;
    }

    .em-top-level-category-button {
        width: 85%;
        padding: 10px 12px;
        font-size: 14px;
    }

}


@media only screen and (max-width: 480px) {

    .em-top-level-category-grid {
        grid-template-columns: 1fr !important;
    }

}

body.tax-product_cat .wc-block-components-notices {
    display: none !important;
}

/* =========================================================
   CATEGORY FILTERS
   ========================================================= */

.em-category-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 32px;
    padding: 0;
    box-sizing: border-box;
}

.em-category-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.em-category-filter label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0b315f;
}

.em-category-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 44px 12px 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #0b315f;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e50063' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    border: 1.5px solid #e1e9f1;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(11, 49, 95, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                background-color 0.2s ease;
    box-sizing: border-box;
}

.em-category-filter-select:hover {
    border-color: #e50063;
    box-shadow: 0 2px 8px rgba(229, 0, 99, 0.08);
}

.em-category-filter-select:focus {
    outline: none;
    border-color: #e50063;
    box-shadow: 0 0 0 3px rgba(229, 0, 99, 0.15);
}

.em-category-filter-select option {
    color: #0b315f;
    background-color: #fff;
    padding: 8px 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 767px) {

    .em-category-filters {
        gap: 18px;
        margin-bottom: 24px;
    }

    .em-category-filter {
        width: 100%;
        min-width: 0;
    }

    .em-category-filter-select {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 14px 44px 14px 16px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .em-category-filter-select {
        transition: none;
    }
}
/* =========================================================
   MODERN WOOCOMMERCE LOGIN
   ========================================================= */

.woocommerce {
    --em-accent: #e50063;
    --em-accent-hover: #c90056;
    --em-heading: #172033;
    --em-text: #4c596a;
    --em-muted: #758195;
    --em-border: #dfe6ee;
    --em-surface: #ffffff;
    --em-field: #f7f9fb;
    --em-radius: 14px;
    --em-shadow: 0 18px 50px rgba(31, 45, 61, 0.1);

    width: 100%;
    color: var(--em-text);
}

/* Page title */

.woocommerce > h2 {
    margin: 0 0 18px;
    color: var(--em-heading);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

/* Login panel */

.woocommerce form.woocommerce-form-login {
    margin: 0;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius);
    background: var(--em-surface);
    box-shadow: var(--em-shadow);
}

/* Form rows */

.woocommerce-form-login .form-row {
    margin: 0 0 22px;
    padding: 0;
}

.woocommerce-form-login .form-row:last-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 4px;
    margin-bottom: 18px;
}

/* Labels */

.woocommerce-form-login label {
    display: block;
    margin: 0 0 8px;
    color: var(--em-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.woocommerce-form-login label .required {
    color: var(--em-accent);
    font-weight: 700;
}

/* Text and password fields */

.woocommerce-form-login input.input-text {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 46px 12px 16px;
    border: 1px solid var(--em-border);
    border-radius: 9px;
    outline: none;
    background: var(--em-field);
    color: var(--em-heading);
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.woocommerce-form-login input.input-text:hover {
    border-color: #c6d0dc;
    background: var(--em-surface);
}

.woocommerce-form-login input.input-text:focus {
    border-color: var(--em-accent);
    background: var(--em-surface);
    box-shadow: 0 0 0 4px rgba(229, 0, 99, 0.11);
}

.woocommerce-form-login input.input-text::placeholder {
    color: var(--em-muted);
}

/* Password field and visibility button */

.woocommerce-form-login .password-input {
    position: relative;
    display: block;
    width: 100%;
}

.woocommerce-form-login .show-password-input {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--em-muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.woocommerce-form-login .show-password-input:hover {
    background: rgba(229, 0, 99, 0.07);
    color: var(--em-accent);
}

.woocommerce-form-login .show-password-input:focus-visible {
    outline: 2px solid var(--em-accent);
    outline-offset: 2px;
}

/* Eye icon */

.woocommerce-form-login .show-password-input::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 50% / 60%;
    transform: translate(-50%, -50%);
}

.woocommerce-form-login .show-password-input::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

/* Remember me */

.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--em-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.woocommerce-form-login input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 0;
    border: 1px solid var(--em-border);
    border-radius: 5px;
    accent-color: var(--em-accent);
    cursor: pointer;
}

/* Login button */

.woocommerce-form-login button[type="submit"] {
    min-height: 48px;
    margin: 0;
    padding: 12px 26px;
    border: 1px solid var(--em-accent);
    border-radius: 9px;
    background: var(--em-accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(229, 0, 99, 0.2);
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.woocommerce-form-login button[type="submit"]:hover {
    border-color: var(--em-accent-hover);
    background: var(--em-accent-hover);
    box-shadow: 0 10px 24px rgba(229, 0, 99, 0.27);
    transform: translateY(-1px);
}

.woocommerce-form-login button[type="submit"]:active {
    box-shadow: 0 4px 12px rgba(229, 0, 99, 0.2);
    transform: translateY(0);
}

.woocommerce-form-login button[type="submit"]:focus-visible {
    outline: 3px solid rgba(229, 0, 99, 0.22);
    outline-offset: 3px;
}

/* Lost-password link */

.woocommerce-form-login .lost_password {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--em-border);
    text-align: center;
}

.woocommerce-form-login .lost_password a {
    color: var(--em-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}

.woocommerce-form-login .lost_password a:hover {
    color: var(--em-accent-hover);
    text-decoration: underline;
}

/* WooCommerce notices */

.woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 20px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    margin: 0 0 20px;
    padding: 15px 18px;
    border: 1px solid var(--em-border);
    border-left: 4px solid var(--em-accent);
    border-radius: 9px;
    background: var(--em-surface);
    color: var(--em-text);
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.07);
}

/* Mobile layout */

@media (max-width: 600px) {
    .woocommerce {
        margin: 24px auto;
    }

    .woocommerce form.woocommerce-form-login {
        padding: 24px 20px;
    }

    .woocommerce-form-login .form-row:last-of-type {
        align-items: stretch;
        flex-direction: column;
    }

    .woocommerce-form-login button[type="submit"] {
        width: 100%;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .woocommerce-form-login input.input-text,
    .woocommerce-form-login .show-password-input,
    .woocommerce-form-login button[type="submit"] {
        transition: none;
    }
}
/* Hide site header on logged-out WooCommerce login page */
body.woocommerce-account:not(.logged-in) header.wp-block-template-part {
    display: none !important;
}


/* Site logo replacing Site Title */
.em-site-logo {
    margin: 0 !important;
    line-height: 0;
}

.em-site-logo a {
    display: inline-block;
}

.em-site-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

h2.em-packages-title {
    display: none;
}

h1.wp-block-post-title, h1.alignwide.wp-block-query-title {
    font-weight: bold;
    font-size: 30px;
    color: #d7075d;
}

nav.woocommerce-breadcrumb {
    text-align: right;
}

/* View From My Seat image */
.em-package-seat-image {
    margin-top: 20px;
}

.em-package-seat-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ----------------------------------------------------------
 * Package images
 * ---------------------------------------------------------- */

.em-package-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--em-border);
}

.em-package-image-card {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--em-border);
    border-radius: 12px;
}

.em-package-image-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--em-text);
}

.em-package-image-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.em-package-image-link img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    transition: transform .25s ease;
}

.em-package-image-link:hover img {
    transform: scale(1.02);
}

.em-package-image-enlarge {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--em-muted);
}


/* Mobile */

@media (max-width: 767px) {

    .em-package-images {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}

/* ==========================================================
   PACKAGE IMAGE LIGHTBOX
   ========================================================== */

.em-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.em-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.em-lightbox-image {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    transform: scale(.96);
    transition: transform .25s ease;
}

.em-lightbox.is-open .em-lightbox-image {
    transform: scale(1);
}

.em-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 30px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease;
}

.em-lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
}

body.em-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .em-lightbox {
        padding: 20px;
    }

    .em-lightbox-image {
        max-width: 94vw;
        max-height: 82vh;
    }

    .em-lightbox-close {
        top: 12px;
        right: 12px;
    }

}

/* Equal-height package images */
.em-package-images {
    align-items: stretch;
}

.em-package-image-card {
    display: flex;
    flex-direction: column;
}

.em-package-image-link {
    display: block;
    height: 355px;
    overflow: hidden;
    border-radius: 6px;
}

.em-package-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.em-package-image-enlarge {
    display: block;
    margin-top: 10px;
}