:root {
    --wk-store-bg: linear-gradient(180deg, rgba(248, 255, 251, 0.96), rgba(239, 247, 243, 0.98));
    --wk-store-border: rgba(79, 165, 117, 0.16);
    --wk-store-border-strong: rgba(58, 145, 98, 0.26);
    --wk-store-shadow: 0 22px 48px rgba(20, 58, 36, 0.08);
    --wk-store-shadow-hover: 0 26px 56px rgba(16, 52, 31, 0.14);
    --wk-store-title: #153124;
    --wk-store-text: #4d6358;
    --wk-store-muted: #6f8378;
    --wk-store-surface: rgba(255, 255, 255, 0.78);
    --wk-store-surface-strong: rgba(255, 255, 255, 0.92);
    --wk-store-accent: #279766;
    --wk-store-accent-strong: #17784f;
    --wk-store-accent-soft: rgba(60, 183, 122, 0.1);
    --wk-store-danger: #d85a68;
}

body.dark {
    --wk-store-bg: linear-gradient(180deg, rgba(15, 31, 23, 0.96), rgba(10, 22, 16, 0.99));
    --wk-store-border: rgba(103, 222, 161, 0.12);
    --wk-store-border-strong: rgba(103, 222, 161, 0.22);
    --wk-store-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
    --wk-store-shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.38);
    --wk-store-title: #f0fff5;
    --wk-store-text: rgba(223, 245, 231, 0.9);
    --wk-store-muted: rgba(193, 223, 204, 0.72);
    --wk-store-surface: rgba(255, 255, 255, 0.04);
    --wk-store-surface-strong: rgba(255, 255, 255, 0.06);
    --wk-store-accent: #6fdb9c;
    --wk-store-accent-strong: #42b378;
    --wk-store-accent-soft: rgba(111, 219, 156, 0.12);
    --wk-store-danger: #ff8a97;
}

.wk-store-shell {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 26px;
    border: 1px solid var(--wk-store-border);
    background: var(--wk-store-bg);
    box-shadow: var(--wk-store-shadow);
}

.wk-store-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 210, 151, 0.16), transparent 34%);
    pointer-events: none;
}

.wk-store-shell > * {
    position: relative;
    z-index: 1;
}

.wk-store-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: var(--wk-store-title);
    font-size: clamp(1.6rem, 1.35rem + .7vw, 2.15rem);
    line-height: 1.15;
}

.wk-store-spacer {
    height: 1rem;
}

.wk-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
    flex-wrap: wrap;
}

.wk-store-toolbar__actions {
    margin-left: auto;
}

.wk-store-toolbar__buttons.ui.buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .35rem;
    border-radius: 18px;
    background: var(--wk-store-surface);
    border: 1px solid var(--wk-store-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wk-store-toolbar__buttons.ui.buttons>.button,
.wk-store-toolbar__buttons.ui.buttons>.or,
.wk-store-toolbar__buttons.ui.buttons form {
    border-radius: 14px !important;
}

.wk-store-toolbar__buttons form {
    margin: 0;
}

.wk-store-account-chip,
.wk-store-cart-button,
.wk-store-logout-button {
    min-height: 42px;
    border-radius: 14px !important;
    font-weight: 700 !important;
}

.wk-store-account-chip {
    background: var(--wk-store-surface-strong) !important;
    color: var(--wk-store-title) !important;
    border: 1px solid var(--wk-store-border) !important;
}

.wk-store-cart-button,
.wk-store-cart-button:link,
.wk-store-cart-button:visited,
.wk-store-cart-button:hover,
.wk-store-cart-button:focus {
    background: linear-gradient(135deg, var(--wk-store-accent), var(--wk-store-accent-strong)) !important;
    color: #fff !important;
    box-shadow: 0 16px 30px rgba(39, 151, 102, 0.24);
}

.wk-store-cart-button.disabled {
    opacity: .55 !important;
    box-shadow: none !important;
}

.wk-store-logout-button,
.wk-store-logout-button:hover,
.wk-store-logout-button:focus {
    background: rgba(216, 90, 104, 0.12) !important;
    color: var(--wk-store-danger) !important;
    border: 1px solid rgba(216, 90, 104, 0.2) !important;
}

.wk-store-nav-menu.ui.menu {
    width: 100%;
    margin: 0;
    padding: .55rem;
    border: 1px solid var(--wk-store-border);
    border-radius: 20px 20px 16px 16px !important;
    background: var(--wk-store-surface) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    gap: .35rem;
    flex-wrap: wrap;
    position: sticky;
    top: 84px;
    z-index: 9;
}

.wk-store-nav-menu::-webkit-scrollbar {
    display: none;
}

.wk-store-nav-menu .item,
.wk-store-nav-menu .item:link,
.wk-store-nav-menu .item:visited {
    margin: 0 !important;
    border-radius: 14px !important;
    color: var(--wk-store-text) !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.wk-store-nav-menu .item:hover,
.wk-store-nav-menu .item.active,
.wk-store-nav-menu .dropdown.item.active {
    background: var(--wk-store-accent-soft) !important;
    color: var(--wk-store-title) !important;
}

.wk-store-nav-menu .dropdown .menu {
    border-radius: 16px !important;
    border: 1px solid var(--wk-store-border-strong) !important;
    box-shadow: 0 18px 36px rgba(16, 41, 27, 0.12) !important;
}

.wk-store-panel.ui.segment,
.wk-store-section,
.wk-store-summary-table.ui.table,
.wk-store-table.ui.table {
    border: 1px solid var(--wk-store-border) !important;
    background: var(--wk-store-surface) !important;
    box-shadow: none !important;
}

.wk-store-panel.ui.segment {
    margin-top: 1rem;
    border-radius: 0 0 22px 22px;
}

.wk-store-copy,
.wk-store-shell p,
.wk-store-shell .content,
.wk-store-shell .description,
.wk-store-shell label {
    color: var(--wk-store-text);
}

.wk-store-products.ui.grid {
    row-gap: 1rem;
}

.wk-store-product-card.ui.card,
#widget-featured-products .ui.card {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--wk-store-border);
    background: var(--wk-store-surface-strong);
    box-shadow: var(--wk-store-shadow);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.wk-store-product-card.ui.card:hover,
#widget-featured-products .ui.card:hover {
    transform: translateY(-6px);
    border-color: var(--wk-store-border-strong);
    box-shadow: var(--wk-store-shadow-hover);
}

.wk-store-product-card__image,
#widget-featured-products .ui.card>.image {
    background: linear-gradient(180deg, rgba(120, 219, 167, 0.12), transparent 78%);
}

.wk-store-product-card__image img,
#widget-featured-products .ui.card>.image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.wk-store-product-card__content,
#widget-featured-products .center.aligned.content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .9rem;
    padding: 1.1rem 1.15rem 1.2rem !important;
}

.wk-store-product-card__title,
#widget-featured-products .header {
    display: block;
    color: var(--wk-store-title) !important;
    font-size: 1.06rem;
    font-weight: 800;
}

.wk-store-price-old {
    color: var(--wk-store-danger);
    text-decoration: line-through;
    font-weight: 700;
    opacity: .92;
}

.wk-store-price-current {
    color: var(--wk-store-title);
    font-size: 1.05rem;
    font-weight: 800;
}

.wk-store-price-stack {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.wk-store-product-card__button,
#widget-featured-products .ui.bottom.attached.button,
.wk-store-submit.ui.button,
.wk-store-submit.ui.button:hover,
.wk-store-submit.ui.button:focus {
    background: linear-gradient(135deg, var(--wk-store-accent), var(--wk-store-accent-strong)) !important;
    color: #fff !important;
    border: none !important;
}

.wk-store-product-card__button {
    min-height: 48px;
    font-weight: 800 !important;
}

.wk-store-modal.ui.modal {
    border-radius: 24px;
    overflow: hidden;
}

.wk-store-modal.ui.modal>.header {
    color: var(--wk-store-title);
    background: var(--wk-store-surface-strong);
}

.wk-store-modal.ui.modal>.content,
.wk-store-modal.ui.modal>.actions {
    background: var(--wk-store-surface);
}

.wk-store-modal__description {
    color: var(--wk-store-text);
}

.wk-store-section {
    margin-top: 1.15rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 20px;
}

.wk-store-section h3,
.wk-store-user-card h3,
.wk-store-shell h3,
.wk-store-shell h4 {
    color: var(--wk-store-title) !important;
}

.wk-store-table.ui.table {
    border-radius: 18px;
    overflow: hidden;
}

.wk-store-table.ui.table thead th {
    background: rgba(94, 195, 136, 0.08) !important;
    color: var(--wk-store-title) !important;
    font-weight: 800;
    border-bottom: 1px solid var(--wk-store-border) !important;
}

.wk-store-table.ui.table tbody td {
    color: var(--wk-store-text) !important;
    border-top: 1px solid rgba(79, 165, 117, 0.08) !important;
    vertical-align: middle;
}

.wk-store-table.ui.table tbody tr:nth-child(even) {
    background: rgba(94, 195, 136, 0.035);
}

.wk-store-remove-button.ui.button,
.wk-store-remove-button.ui.button:hover,
.wk-store-remove-button.ui.button:focus {
    border-radius: 12px !important;
    background: rgba(216, 90, 104, 0.12) !important;
    color: var(--wk-store-danger) !important;
    box-shadow: none !important;
}

.wk-store-summary-table.ui.table {
    margin-top: 1rem;
    border-radius: 18px;
}

.wk-store-summary-table.ui.table td {
    color: var(--wk-store-title) !important;
    font-weight: 700;
}

.wk-store-summary-table.ui.table tr:last-child td {
    font-size: 1.02rem;
}

.wk-store-form .field {
    margin-bottom: 1rem;
}

.wk-store-form.ui.form input:not(.button),
.wk-store-form.ui.form textarea,
.wk-store-form.ui.form .ui.selection.dropdown,
.wk-store-form.ui.form .ui.action.input:not(.disabled) > input {
    border-radius: 14px !important;
    border-color: var(--wk-store-border) !important;
    background: var(--wk-store-surface-strong) !important;
    color: var(--wk-store-title) !important;
}

.wk-store-form.ui.form input:not(.button):focus,
.wk-store-form.ui.form textarea:focus,
.wk-store-form.ui.form .ui.selection.dropdown.active,
.wk-store-form.ui.form .ui.selection.dropdown.visible {
    border-color: var(--wk-store-border-strong) !important;
    box-shadow: 0 0 0 3px rgba(60, 183, 122, 0.1) !important;
}

.wk-store-form.ui.form .ui.checkbox label,
.wk-store-form.ui.form .ui.radio.checkbox label {
    color: var(--wk-store-text) !important;
}

.wk-store-action-input.ui.action.input {
    width: min(100%, 520px);
}

.wk-store-action-input.ui.action.input > .button {
    border-radius: 0 14px 14px 0 !important;
}

.wk-store-checkout-actions.ui.grid {
    align-items: end;
}

.wk-store-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .74fr);
    gap: 1rem;
    align-items: start;
}

.wk-store-checkout-layout__main {
    display: grid;
    gap: 1rem;
}

.wk-store-checkout-layout__aside {
    min-width: 0;
}

.wk-store-summary-card {
    position: sticky;
    top: 94px;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid var(--wk-store-border-strong);
    background: var(--wk-store-surface-strong);
    box-shadow: var(--wk-store-shadow);
}

.wk-store-summary-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    color: var(--wk-store-accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.wk-store-summary-card__eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.wk-store-summary-card h3 {
    margin-top: .65rem;
}

.wk-store-summary-card__meta {
    margin: .85rem 0 0;
    color: var(--wk-store-muted);
    line-height: 1.6;
}

.wk-store-summary-card__cta.ui.button,
.wk-store-summary-card__cta.ui.button:hover,
.wk-store-summary-card__cta.ui.button:focus {
    width: 100%;
    margin-top: .95rem;
}

.wk-store-table--cart td:nth-child(2) {
    white-space: normal !important;
}

.wk-store-checkout-submit {
    min-width: 200px;
}

.wk-store-user-grid {
    margin-top: .1rem !important;
}

.wk-store-user-card.ui.segment {
    border-radius: 22px;
}

.wk-store-balance {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: var(--wk-store-accent-soft);
    color: var(--wk-store-title);
    font-weight: 800;
}

#widget-featured-products .content,
#widget-latest-purchases .content,
#widget-store-account .content {
    background: transparent;
}

#widget-featured-products,
#widget-latest-purchases,
#widget-store-account {
    border-radius: 22px;
    border: 1px solid var(--wk-store-border);
    background: var(--wk-store-bg);
    box-shadow: var(--wk-store-shadow);
}

#widget-latest-purchases .item .header,
#widget-store-account .ui.header {
    color: var(--wk-store-title) !important;
}

#widget-latest-purchases small,
#widget-store-account .description,
#widget-featured-products .description {
    color: var(--wk-store-text) !important;
}

@media only screen and (max-width: 767px) {
    .wk-store-shell {
        padding: 1rem;
        border-radius: 22px;
    }

    .wk-store-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wk-store-toolbar__actions {
        margin-left: 0;
        width: 100%;
    }

    .wk-store-toolbar__buttons.ui.buttons {
        width: 100%;
        justify-content: stretch;
    }

    .wk-store-toolbar__buttons.ui.buttons > .button,
    .wk-store-toolbar__buttons.ui.buttons form,
    .wk-store-toolbar__buttons.ui.buttons form .button {
        width: 100%;
    }

    .wk-store-nav-menu.ui.menu {
        padding: .45rem;
        top: 72px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scroll-snap-type: x proximity;
    }

    .wk-store-nav-menu .item {
        width: auto;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .wk-store-checkout-layout {
        grid-template-columns: 1fr;
    }

    .wk-store-checkout-layout__aside {
        order: -1;
    }

    .wk-store-summary-card {
        top: 72px;
        padding: .95rem;
    }

    .wk-store-action-input.ui.action.input {
        width: 100%;
        flex-direction: column;
    }

    .wk-store-action-input.ui.action.input > input,
    .wk-store-action-input.ui.action.input > .button {
        width: 100%;
        border-radius: 14px !important;
    }

    .wk-store-checkout-submit {
        width: 100%;
        min-width: 0;
    }
}