
.wct {
    --wct-border: #e5e5e5;
    --wct-text: #171717;
    --wct-muted: #696969;
    --wct-surface: #fff;
    --wct-tab-active: #171717;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--wct-surface);
    color: var(--wct-text);
    box-sizing: border-box;
}

.wct *, .wct *::before, .wct *::after { box-sizing: border-box; }

.wct__tabs-wrap {
    position: sticky;
    top: var(--wct-sticky-top);
    z-index: 20;
    width: 100%;
    overflow: hidden;
    background: var(--wct-surface);
    border-bottom: 1px solid var(--wct-border);
}


.wct__tabs-shell {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}

.wct__panels {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}

.wct__panel,
.wct__products {
    width: 100%;
}

.wct__tabs {
        grid-column: 1;
    }
}

.wct__tabs {
        padding-inline: 3.25rem;
    }
}

.wct__tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: .35rem;
    overflow: visible;
    padding: .65rem .85rem;
}

.wct__tabs::-webkit-scrollbar { display: none; }

.wct__tab {
    flex: 0 0 auto;
    border: 0;
    border-radius: .65rem;
    padding: .58rem .9rem;
    background: transparent;
    color: var(--wct-muted);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
}

.wct__tab.is-active {
    background: var(--wct-tab-active);
    color: #fff;
}

.wct__panel[hidden] { display: none !important; }

.wct__product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(120px, 20vw, 210px);
    gap: clamp(.8rem, 2.2vw, 1.5rem);
    align-items: center;
    width: 100%;
    min-height: 175px;
    padding: clamp(1rem, 2vw, 1.55rem);
    border-bottom: 1px solid var(--wct-border);
}

.wct__title { margin: 0 0 .5rem; font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.25; }

.wct__product-open {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
}

.wct__description {
    margin: 0 0 .55rem;
    color: var(--wct-muted);
    font-size: clamp(.82rem, .95vw, .90rem);
    line-height: 1.4;
}

.wct__price { font-size: clamp(.92rem, 1.25vw, 1.08rem); font-weight: 800; }

.wct__media { position: relative; min-height: 135px; }
.wct__image-button { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.wct__image { display: block; width: 100%; height: 100%; border-radius: .55rem; object-fit: cover; aspect-ratio: 4 / 3; }

.wct__add {
    position: absolute;
    right: -.4rem;
    bottom: -.4rem;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 2px solid #111;
    border-radius: .65rem;
    background: #fff;
    color: #111;
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.wct__empty { padding: 2rem 1rem; text-align: center; }

body.wct-modal-open { overflow: hidden; }
.wct-modal[hidden], .wct-options[hidden] { display: none !important; }

.wct-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 1rem;
}

.wct-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(9px);
}

.wct-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: 94vh;
    overflow: hidden;
    border-radius: 1.1rem;
    background: #1b1b1b;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
}

.wct-modal__main { display: flex; flex-direction: column; max-height: 94vh; }
.wct-modal__scroll { overflow-y: auto; }
.wct-modal__close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.wct-modal__image { display: block; width: 100%; max-height: 45vh; object-fit: cover; background: #eee; }
.wct-modal__content { padding: 1.15rem 1.25rem; }
.wct-modal__title { margin: 0 0 .45rem; font-size: clamp(1.15rem, 2.6vw, 1.55rem); line-height: 1.25; }
.wct-modal__description { margin: 0 0 .75rem; color: #d0d0d0; font-size: .9rem; line-height: 1.45; }
.wct-modal__price { font-size: 1.15rem; font-weight: 800; }

.wct-modal__selections { width: 100%; padding: 0 .65rem .65rem; }

.wct-selection {
    width: 100%;
    margin-top: .45rem;
    border: 0;
    border-radius: .75rem;
    padding: .85rem .95rem;
    background: #242424;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.wct-selection__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
}

.wct-selection__label { font-size: .9rem; font-weight: 800; }
.wct-selection__value { margin-top: .35rem; color: #c8c8c8; font-size: .82rem; }
.wct-selection__plus { font-size: 1.45rem; line-height: 1; }
.wct-selection__badge {
    display: inline-block;
    margin-top: .38rem;
    border-radius: .3rem;
    padding: .2rem .42rem;
    background: #303030;
    color: #64d8ae;
    font-size: .7rem;
    font-weight: 800;
}

.wct-modal__footer {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    gap: .8rem;
    align-items: center;
    width: 100%;
    padding: .8rem 1rem;
    border-top: 1px solid #3a3a3a;
    background: #171717;
}

.wct-modal__quantity {
    display: grid;
    grid-template-columns: 2.65rem 2rem 2.65rem;
    align-items: center;
    text-align: center;
}

.wct-modal__quantity button {
    width: 2.65rem;
    height: 2.65rem;
    border: 0;
    border-radius: .55rem;
    background: #fff;
    color: #111;
    font-size: 1.45rem;
    cursor: pointer;
}

.wct-modal__submit {
    width: 100%;
    min-height: 2.9rem;
    border: 0;
    border-radius: .65rem;
    padding: .65rem 1rem;
    background: #62d4aa;
    color: #18352c;
    font: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
}

.wct-options {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 94vh;
}

.wct-options__header {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.wct-options__back {
    width: 2.45rem;
    height: 2.45rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 1.2rem;
    cursor: pointer;
}

.wct-options__header h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.wct-options__header span {
    display: inline-block;
    border-radius: .3rem;
    padding: .2rem .42rem;
    background: #303030;
    color: #64d8ae;
    font-size: .7rem;
    font-weight: 800;
}

.wct-options__list {
    width: 100%;
    overflow-y: auto;
    padding: .2rem 1rem;
}

.wct-option {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    width: 100%;
    min-height: 4rem;
    border-bottom: 1px solid #333;
    padding: .75rem 0;
    cursor: pointer;
}

.wct-option input { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: #62d4aa; }
.wct-option__name { font-size: .94rem; line-height: 1.3; }
.wct-options__done {
    width: calc(100% - 2rem);
    margin: .8rem 1rem 1rem;
    border: 0;
    border-radius: .65rem;
    padding: .8rem 1rem;
    background: #62d4aa;
    color: #18352c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}


/*
 * Tablet/mobile must always remain a single horizontal row.
 * The width breakpoint is intentional because browser device emulation and
 * some hybrid laptops do not reliably report pointer/hover capabilities.
 */

@media (max-width: 1024px) and (hover: hover) and (pointer: fine) {
    .wct__tabs {
        cursor: grab;
        user-select: none;
    }

    .wct__tabs.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
    }

    }

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    .wct__tabs-wrap {
        overflow: hidden;
    }

    .wct__tabs-shell {
        width: 100%;
        max-width: none;
        overflow: hidden;
    }

    .wct__tabs {
        display: flex;
        flex-wrap: nowrap !important;
        gap: .35rem;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: .65rem .75rem;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .wct__tabs::-webkit-scrollbar {
        display: none;
    }

    .wct__tab {
        flex: 0 0 auto !important;
        white-space: nowrap;
        scroll-snap-align: start;
    }
}

@media (max-width: 600px) {
    .wct__description {
        font-size: .82rem;
        line-height: 1.35;
        -webkit-line-clamp: 3;
    }
    .wct__product {
        grid-template-columns: minmax(0, 1fr) 34vw;
        min-height: 155px;
        padding: .9rem;
    }

    .wct__description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .wct__media { min-height: 115px; }
    .wct__add { width: 2.65rem; height: 2.65rem; font-size: 1.65rem; }

    .wct-modal { padding: 0; align-items: end; }
    .wct-modal__dialog {
        width: 100%;
        max-height: 96vh;
        border-radius: 1rem 1rem 0 0;
    }

    .wct-modal__main, .wct-options { max-height: 96vh; }
    .wct-modal__image { max-height: 42vh; }
    .wct-modal__content { padding: 1rem; }
    .wct-modal__selections { padding-inline: .45rem; }
    .wct-modal__footer { grid-template-columns: 120px minmax(0, 1fr); padding: .75rem; }
    .wct-modal__quantity { grid-template-columns: 2.45rem 1.8rem 2.45rem; }
    .wct-modal__quantity button { width: 2.45rem; height: 2.45rem; }
}


/* v1.9.1 interface corrections */
.wct-modal__title,
.wct-modal__content h2,
.wct-modal [data-modal-title] {
    color:#fff !important;
}

.wct-selection.is-disabled,
.wct-selection:disabled {
    cursor:not-allowed;
    opacity:.48;
    filter:grayscale(.15);
}

.wct-selection.is-disabled .wct-selection__plus,
.wct-selection:disabled .wct-selection__plus {
    visibility:hidden;
}


/* v1.9.3: Add to basket is available only after valid selections */



/* v2.0.2: robust Add to basket click handling */
.wct-modal__footer {
    position:relative !important;
    z-index:9999998 !important;
    isolation:isolate;
}

.wct-modal__submit {
    position:relative !important;
    z-index:9999999 !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    touch-action:manipulation !important;
}

.wct-modal__submit:not(:disabled) {
    pointer-events:auto !important;
}

.wct-modal__submit:disabled {
    cursor:wait !important;
}

/* Pseudo-elements must never cover the real control. */
.wct-modal__submit::before,
.wct-modal__submit::after,
.wct-modal__footer::before,
.wct-modal__footer::after {
    pointer-events:none !important;
}
