/*
 * VeganLuck store: shop, product, cart, checkout, and order-received pages.
 *
 * This is the only stylesheet for the store: WooCommerce's own sheets are
 * dequeued in functions.php, so layout lives here too. Everything is scoped
 * to .vl-store, which the site-wide typography rules in interior.css step
 * aside for.
 *
 * Motion: critically damped (no overshoot), instant press feedback,
 * transform/opacity only. Type: tracking tightens as size grows.
 */

:root {
    --vl-store-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --vl-store-ease-press: cubic-bezier(0.2, 0, 0, 1);
    --vl-store-radius: 22px;
    --vl-store-radius-sm: 14px;
    --vl-store-bg: #030a12;
    --vl-store-surface: rgba(255, 255, 255, 0.035);
    --vl-store-surface-2: rgba(255, 255, 255, 0.06);
    --vl-store-surface-3: rgba(255, 255, 255, 0.12);
    --vl-store-hairline: rgba(255, 255, 255, 0.08);
    --vl-store-hairline-2: rgba(255, 255, 255, 0.14);
    --vl-store-edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --vl-store-text: #f5f7fa;
    --vl-store-text-2: rgba(235, 240, 245, 0.72);
    --vl-store-text-3: rgba(235, 240, 245, 0.5);
    --vl-store-accent: #4ade80;
    --vl-store-accent-hover: #86efac;
    --vl-store-on-accent: #04130a;
    --vl-store-price: #fcd34d;
    --vl-store-danger: #f87171;
}

body.woocommerce-page {
    background: var(--vl-store-bg);
}

/* ─── Base type inside the store ───────────────────────── */

.vl-store {
    color: var(--vl-store-text-2);
    font-family: var(--vl-font-body);
    font-size: 1rem;
    line-height: 1.55;
}

.vl-store :where(h1, h2, h3, h4) {
    margin: 0;
    color: var(--vl-store-text);
    font-family: var(--vl-font-display);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.vl-store :where(p, li, dd, label, small, td, th) {
    color: var(--vl-store-text-2);
}

.vl-store a {
    color: var(--vl-store-text);
}

.vl-store .vl-kicker {
    margin: 0 0 0.9rem;
}

/* ─── Back link (product, cart, checkout) ──────────────── */

.vl-store .vl-shop-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--vl-store-text-2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s var(--vl-store-ease);
}

.vl-store .vl-shop-hero__back::before {
    content: "";
    width: 7px;
    height: 7px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s var(--vl-store-ease);
}

.vl-store .vl-shop-hero__back:hover {
    color: var(--vl-store-text);
}

.vl-store .vl-shop-hero__back:hover::before {
    transform: translateX(-3px) rotate(45deg);
}

/* ─── Shop hero ────────────────────────────────────────── */

.vl-shop-hero {
    padding: clamp(7rem, 11vw, 9.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--vl-store-hairline);
    background:
        radial-gradient(60% 80% at 12% 0%, rgba(74, 222, 128, 0.09), transparent 60%),
        radial-gradient(50% 70% at 92% 10%, rgba(56, 189, 248, 0.06), transparent 60%),
        linear-gradient(180deg, #06111c 0%, var(--vl-store-bg) 100%);
}

.vl-shop-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.vl-shop-hero h1 {
    max-width: none;
    margin-bottom: 1.1rem;
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-optical-sizing: auto;
}

.vl-shop-hero h1 span {
    display: block;
}

/* Two-tone headline: the promise, then the payoff in a quieter tone */
.vl-shop-hero h1 span + span {
    color: var(--vl-store-text-3);
}

.vl-shop-hero__copy > p:not(.vl-kicker) {
    max-width: 34rem;
    margin: 0;
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    line-height: 1.55;
}

.vl-shop-hero--compact {
    padding: clamp(6rem, 8vw, 7rem) 0 1.25rem;
    border-bottom: 0;
    background: transparent;
}

.vl-shop-hero--compact .vl-shop-hero__grid {
    display: block;
}

/* How credits work: a glass list with numbered steps */
.vl-shop-steps {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid var(--vl-store-hairline-2);
    border-radius: var(--vl-store-radius);
    background: rgba(18, 28, 40, 0.55);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: var(--vl-store-edge-light), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    list-style: none;
    counter-reset: vl-step;
}

.vl-shop-steps li {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 0.95rem 1rem 0.95rem 3.25rem;
    counter-increment: vl-step;
}

.vl-shop-steps li + li::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 3.25rem;
    right: 1rem;
    height: 1px;
    background: var(--vl-store-hairline);
}

.vl-shop-steps li::after {
    content: counter(vl-step);
    position: absolute;
    top: 0.95rem;
    left: 1rem;
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--vl-store-surface-3);
    color: var(--vl-store-text);
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.vl-shop-steps strong {
    color: var(--vl-store-text);
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.vl-shop-steps span {
    font-size: 0.87rem;
    line-height: 1.45;
}

.vl-shop-steps a {
    justify-self: start;
    margin-top: 0.35rem;
    color: var(--vl-store-accent);
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
}

.vl-shop-steps a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── Product grid ─────────────────────────────────────── */

.vl-shop-content {
    padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(4rem, 8vw, 6rem);
}

.vl-store ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.vl-store ul.products::before,
.vl-store ul.products::after {
    display: none;
}

.vl-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--vl-store-hairline);
    border-radius: var(--vl-store-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    box-shadow: var(--vl-store-edge-light), 0 1px 2px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.45s var(--vl-store-ease),
        box-shadow 0.45s var(--vl-store-ease),
        border-color 0.45s var(--vl-store-ease);
}

.vl-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--vl-store-hairline-2);
    box-shadow: var(--vl-store-edge-light), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

/* Press feedback lands on pointer-down, fast */
.vl-product-card:has(.vl-product-card__media:active) {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 0.1s;
}

.vl-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 320 / 220;
    margin: 6px 6px 0;
    overflow: hidden;
    border-radius: calc(var(--vl-store-radius) - 6px);
    background: #07111b;
    isolation: isolate;
}

.vl-product-card__media img,
.vl-product-card__media .vl-product-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--vl-store-ease);
}

.vl-product-card:hover .vl-product-card__media :is(img, .vl-product-art) {
    transform: scale(1.035);
}

.vl-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--vl-store-price);
    color: #1a1204;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vl-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 1.05rem 1.2rem 1.2rem;
}

.vl-store .vl-product-card .woocommerce-loop-product__title {
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.vl-product-card .woocommerce-loop-product__title a {
    color: var(--vl-store-text);
    text-decoration: none;
}

.vl-product-card__summary {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.vl-product-card__commerce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--vl-store-hairline);
}

.vl-product-card__price {
    display: grid;
    min-width: 0;
}

.vl-product-card__price small {
    color: var(--vl-store-text-3);
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ─── Product art (fallback when a product has no image) ─ */

.vl-product-art {
    display: block;
    width: 100%;
    height: 100%;
}

.vl-product-art__svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ─── Prices ───────────────────────────────────────────── */

.vl-store .price {
    margin: 0;
    color: var(--vl-store-price);
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.vl-store .price del {
    margin-right: 0.3rem;
    color: var(--vl-store-text-3);
    font-size: 0.8em;
    font-weight: 500;
}

.vl-store .price ins {
    text-decoration: none;
}

/* ─── Buttons ──────────────────────────────────────────── */

.vl-store :is(.button, button[type="submit"], .checkout-button, #place_order) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--vl-store-accent);
    color: var(--vl-store-on-accent);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s var(--vl-store-ease), transform 0.12s var(--vl-store-ease-press), opacity 0.2s ease;
}

.vl-store :is(.button, button[type="submit"], .checkout-button, #place_order):hover {
    background: var(--vl-store-accent-hover);
    color: var(--vl-store-on-accent);
}

.vl-store :is(.button, button[type="submit"], .checkout-button, #place_order):active {
    transform: scale(0.96);
    transition-duration: 0.08s;
}

.vl-store :is(.button, button[type="submit"]):disabled,
.vl-store .button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vl-store .button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vl-store .button.added::after {
    content: "✓";
}

/* Secondary buttons: update cart, apply coupon */
.vl-store :is(.actions button[name="update_cart"], .coupon .button, .woocommerce-form-login__submit) {
    background: var(--vl-store-surface-2);
    color: var(--vl-store-text);
    box-shadow: inset 0 0 0 1px var(--vl-store-hairline-2);
}

.vl-store :is(.actions button[name="update_cart"], .coupon .button, .woocommerce-form-login__submit):hover {
    background: var(--vl-store-surface-3);
    color: var(--vl-store-text);
}

.vl-store .added_to_cart {
    margin-left: 0.5rem;
    color: var(--vl-store-accent);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.vl-product-card .added_to_cart {
    display: none;
}

/* ─── Single product ───────────────────────────────────── */

.vl-store div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.vl-store div.product > :not(.woocommerce-product-gallery, .vl-product-detail-art, .summary) {
    grid-column: 1 / -1;
}

.vl-store :is(.woocommerce-product-gallery, .vl-product-detail-art) {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--vl-store-hairline);
    border-radius: 28px;
    background: #07111b;
    box-shadow: var(--vl-store-edge-light), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.vl-store .woocommerce-product-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.vl-store .vl-product-detail-art {
    aspect-ratio: 320 / 220;
}

.vl-store .vl-product-detail-art .vl-product-art {
    position: absolute;
    inset: 0;
}

.vl-store .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(8, 14, 22, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0;
}

.vl-store .summary {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-top: clamp(0rem, 2vw, 1.5rem);
}

.vl-store .summary .product_title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.vl-store .summary .price {
    font-size: 1.6rem;
    font-weight: 700;
}

.vl-store .woocommerce-product-details__short-description {
    padding: 1.1rem 0;
    border-block: 1px solid var(--vl-store-hairline);
    font-size: 1.05rem;
    line-height: 1.6;
}

.vl-store .woocommerce-product-details__short-description p {
    margin: 0;
}

.vl-store form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.vl-store form.cart .quantity {
    margin: 0;
}

.vl-store .quantity input.qty {
    width: 4.5rem;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--vl-store-hairline-2);
    border-radius: 999px;
    background: var(--vl-store-surface);
    color: var(--vl-store-text);
    font: inherit;
    font-weight: 650;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.vl-store .quantity input.qty:focus-visible {
    outline: 2px solid var(--vl-store-accent);
    outline-offset: 2px;
}

.vl-store form.cart .quantity input.qty {
    min-height: 52px;
}

.vl-store form.cart .single_add_to_cart_button {
    flex: 1 1 14rem;
    min-height: 52px;
    padding: 0 2rem;
    font-size: 1rem;
    box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.55);
}

/* Tabs: segmented control */
.vl-store .woocommerce-tabs {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--vl-store-hairline);
    border-radius: var(--vl-store-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    box-shadow: var(--vl-store-edge-light);
}

.vl-store .woocommerce-tabs ul.tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0 0 1.75rem;
    padding: 4px;
    border: 1px solid var(--vl-store-hairline);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    list-style: none;
}

.vl-store .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.vl-store .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    color: var(--vl-store-text-2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s var(--vl-store-ease), color 0.3s var(--vl-store-ease);
}

.vl-store .woocommerce-tabs ul.tabs li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--vl-store-text);
}

.vl-store .woocommerce-tabs ul.tabs li.active a {
    background: var(--vl-store-surface-3);
    color: #ffffff;
    box-shadow: var(--vl-store-edge-light), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.vl-store .woocommerce-tabs .panel {
    max-width: 72ch;
    margin: 0;
    line-height: 1.7;
}

.vl-store .woocommerce-tabs .panel > h2:first-child {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.vl-store :is(.related, .upsells) > h2 {
    margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -0.025em;
}

/* Reviews: text stars in place of WooCommerce's icon font */
.vl-store .star-rating {
    position: relative;
    display: inline-block;
    color: var(--vl-store-surface-3);
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.1em;
}

.vl-store .star-rating::before {
    content: "★★★★★";
}

.vl-store .star-rating span {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    font-size: 0;
}

.vl-store .star-rating span::before {
    content: "★★★★★";
    color: var(--vl-store-price);
    font-size: 0.9rem;
}

.vl-store p.stars a {
    display: inline-block;
    width: 1.4rem;
    color: var(--vl-store-surface-3);
    font-size: 0;
    text-decoration: none;
}

.vl-store p.stars a::before {
    content: "★";
    font-size: 1.3rem;
}

.vl-store p.stars:hover a,
.vl-store p.stars.selected a {
    color: var(--vl-store-price);
}

.vl-store p.stars a:hover ~ a,
.vl-store p.stars.selected a.active ~ a {
    color: var(--vl-store-surface-3);
}

.vl-store .commentlist {
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

/* ─── Notices ──────────────────────────────────────────── */

.vl-store :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--vl-store-hairline-2);
    border-radius: var(--vl-store-radius-sm);
    background: rgba(18, 28, 40, 0.7);
    color: var(--vl-store-text);
    list-style: none;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.vl-store .woocommerce-message {
    border-color: rgba(74, 222, 128, 0.35);
}

.vl-store .woocommerce-error {
    border-color: rgba(248, 113, 113, 0.45);
}

.vl-store .woocommerce-error li {
    color: var(--vl-store-text);
}

.vl-store :is(.woocommerce-message, .woocommerce-info) .button {
    order: 2;
    min-height: 34px;
    font-size: 0.82rem;
}

.vl-store .woocommerce-info a:not(.button) {
    color: var(--vl-store-accent);
}

/* AJAX busy state (cart updates, checkout review); blockUI sets inline styles */
.vl-store .blockUI.blockOverlay {
    background: rgba(3, 10, 18, 0.6) !important;
    cursor: progress !important;
}

/* ─── Store pages: cart, checkout, order received ──────── */

.vl-store-page {
    padding: clamp(6rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}

.vl-store-page__head {
    display: grid;
    gap: 0.75rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.vl-store-page__head h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.vl-store-page .cart-empty {
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.vl-store-page .return-to-shop {
    margin: 0;
    text-align: center;
}

/* Shared table surface */
.vl-store table.shop_table {
    width: 100%;
    margin: 0 0 1.5rem;
    border: 1px solid var(--vl-store-hairline);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--vl-store-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    box-shadow: var(--vl-store-edge-light);
    overflow: hidden;
}

.vl-store table.shop_table :is(th, td) {
    padding: 1rem 1.25rem;
    border: 0;
    border-bottom: 1px solid var(--vl-store-hairline);
    text-align: left;
    vertical-align: middle;
}

.vl-store table.shop_table thead th {
    color: var(--vl-store-text-3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vl-store table.shop_table tr:last-child > :is(th, td) {
    border-bottom: 0;
}

.vl-store table.shop_table a {
    text-decoration: none;
}

.vl-store table.shop_table .product-name a {
    color: var(--vl-store-text);
    font-weight: 650;
}

.vl-store table.shop_table :is(.product-price, .product-subtotal, .product-total) {
    color: var(--vl-store-text);
    font-variant-numeric: tabular-nums;
}

.vl-store table.shop_table .product-remove {
    width: 2.5rem;
}

.vl-store a.remove {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--vl-store-surface-2);
    color: var(--vl-store-text-2);
    font-size: 1.1rem;
    line-height: 1;
    transition: background-color 0.25s var(--vl-store-ease), color 0.25s var(--vl-store-ease);
}

.vl-store a.remove:hover {
    background: rgba(248, 113, 113, 0.18);
    color: var(--vl-store-danger);
}

/* Thumbnails: product image or the fallback art */
.vl-store :is(.product-thumbnail, .vl-checkout-product) :is(img, .vl-product-thumb-fallback) {
    display: block;
    width: 64px;
    height: 44px;
    overflow: hidden;
    border-radius: 10px;
    object-fit: cover;
}

.vl-store .product-thumbnail {
    width: 88px;
}

.vl-checkout-product {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.vl-store .actions {
    padding: 1rem 1.25rem;
}

.vl-store td.actions {
    text-align: right;
}

.vl-store .actions .coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    float: left;
}

.vl-store .actions .coupon label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.vl-store .actions button[name="update_cart"] {
    float: right;
}

/* Totals card */
.vl-store .cart-collaterals .cart_totals {
    width: min(100%, 440px);
    margin-left: auto;
}

.vl-store .cart_totals h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.vl-store .cart_totals table.shop_table th {
    color: var(--vl-store-text-2);
    font-weight: 600;
}

.vl-store .cart_totals table.shop_table td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.vl-store .order-total :is(th, td) {
    color: var(--vl-store-text);
}

.vl-store .order-total .amount {
    color: var(--vl-store-price);
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.vl-store .wc-proceed-to-checkout {
    padding: 0;
}

.vl-store :is(.checkout-button, #place_order) {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.55);
}

/* Checkout: details left, order summary right */
.vl-store form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.vl-store form.checkout > :not(#customer_details, #order_review_heading, #order_review) {
    grid-column: 1 / -1;
}

.vl-store form.checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.vl-store form.checkout #order_review_heading {
    grid-column: 2;
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.vl-store form.checkout #order_review {
    grid-column: 2;
    position: sticky;
    top: 96px;
}

.vl-store .woocommerce-billing-fields__field-wrapper,
.vl-store .woocommerce-shipping-fields__field-wrapper,
.vl-store .woocommerce-account-fields .create-account {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

.vl-store .form-row:not(.form-row-first, .form-row-last) {
    grid-column: 1 / -1;
}

.vl-store .woocommerce-input-wrapper {
    display: block;
}

.vl-store .password-input {
    position: relative;
    display: block;
}

.vl-store .show-password-input {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    padding: 0.2rem 0.4rem;
    border: 0;
    background: none;
    color: var(--vl-store-text-2);
    font-size: 0.78rem;
    font-weight: 600;
    transform: translateY(-50%);
    cursor: pointer;
}

.vl-store .show-password-input::after {
    content: "Show";
}

.vl-store .show-password-input.display-password::after {
    content: "Hide";
}

/* Country/state pickers (select2); the open dropdown is appended to <body> */
.vl-store .select2-container {
    width: 100% !important; /* select2 writes an inline pixel width */
}

.vl-store .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid var(--vl-glass-border);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
}

.vl-store .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 1rem;
    color: var(--vl-store-text);
}

.vl-store .select2-container .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
}

body.woocommerce-checkout .select2-dropdown {
    border: 1px solid var(--vl-store-hairline-2);
    border-radius: 12px;
    background: #0d1824;
    color: var(--vl-store-text);
    overflow: hidden;
}

body.woocommerce-checkout .select2-search__field {
    border: 1px solid var(--vl-store-hairline-2);
    border-radius: 8px;
    background: var(--vl-store-surface);
    color: var(--vl-store-text);
}

body.woocommerce-checkout .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-results__option--highlighted[data-selected] {
    background: var(--vl-store-surface-3);
    color: #ffffff;
}

.vl-store :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-account-fields) {
    margin-bottom: 1.5rem;
}

.vl-store :is(.woocommerce-billing-fields, .woocommerce-additional-fields) > h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.vl-store .form-row {
    margin: 0 0 1rem;
    padding: 0;
}

.vl-store .form-row label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--vl-store-text-2);
    font-size: 0.85rem;
    font-weight: 600;
}

.vl-store .form-row label.checkbox,
.vl-store .form-row label.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vl-store-text);
}

.vl-store .form-row .required {
    color: var(--vl-store-danger);
    text-decoration: none;
}

.vl-store .form-row :is(input.input-text, textarea, select) {
    width: 100%;
    box-sizing: border-box;
}

.vl-store .form-row.woocommerce-invalid :is(input.input-text, select) {
    border-color: var(--vl-store-danger);
}

.vl-store #payment {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--vl-store-hairline);
    border-radius: var(--vl-store-radius);
    background: var(--vl-store-surface);
}

.vl-store #payment ul.payment_methods {
    margin: 0 0 1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--vl-store-hairline);
    list-style: none;
}

.vl-store #payment ul.payment_methods li {
    padding: 0.4rem 0;
}

.vl-store #payment ul.payment_methods li > label {
    display: inline;
    margin-left: 0.4rem;
    color: var(--vl-store-text);
    font-weight: 650;
}

.vl-store #payment .payment_box {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--vl-store-radius-sm);
    background: var(--vl-store-surface-2);
    font-size: 0.88rem;
}

.vl-store #payment .payment_box p {
    margin: 0;
}

.vl-store .woocommerce-privacy-policy-text p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.vl-store .woocommerce-form-coupon-toggle .woocommerce-info,
.vl-store .woocommerce-form-login-toggle .woocommerce-info {
    justify-content: flex-start;
}

.vl-store :is(form.checkout_coupon, form.woocommerce-form-login) {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--vl-store-hairline);
    border-radius: var(--vl-store-radius);
    background: var(--vl-store-surface);
}

/* Order received */
.vl-store ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2px;
    margin: 0 0 2rem;
    padding: 0.5rem;
    border: 1px solid var(--vl-store-hairline);
    border-radius: var(--vl-store-radius);
    background: var(--vl-store-surface);
    list-style: none;
}

.vl-store ul.woocommerce-order-overview li {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 0;
    color: var(--vl-store-text-3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vl-store ul.woocommerce-order-overview li strong {
    color: var(--vl-store-text);
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-transform: none;
}

.vl-store .woocommerce-thankyou-order-received {
    margin: 0 0 1.5rem;
    color: var(--vl-store-text);
    font-size: 1.1rem;
}

.vl-store :is(.woocommerce-order-details, .woocommerce-customer-details) {
    margin-top: 2rem;
}

.vl-store :is(.woocommerce-order-details__title, .woocommerce-column__title) {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.vl-store .woocommerce-customer-details address {
    padding: 1.25rem;
    border: 1px solid var(--vl-store-hairline);
    border-radius: var(--vl-store-radius);
    color: var(--vl-store-text-2);
    font-style: normal;
    line-height: 1.6;
}

.vl-order-credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: var(--vl-store-radius);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.04));
    box-shadow: var(--vl-store-edge-light);
}

.vl-order-credits strong {
    display: block;
    color: var(--vl-store-text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.vl-order-credits p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
}

.vl-store .vl-order-credits__cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: var(--vl-store-accent);
    color: var(--vl-store-on-accent);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s var(--vl-store-ease), transform 0.12s var(--vl-store-ease-press);
}

.vl-store .vl-order-credits__cta:hover {
    background: var(--vl-store-accent-hover);
}

.vl-store .vl-order-credits__cta:active {
    transform: scale(0.96);
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 920px) {
    .vl-shop-hero__grid,
    .vl-store div.product,
    .vl-store form.checkout {
        grid-template-columns: minmax(0, 1fr);
    }

    .vl-store form.checkout :is(#customer_details, #order_review_heading, #order_review) {
        grid-column: 1;
        grid-row: auto;
    }

    .vl-store form.checkout #order_review {
        position: static;
    }
}

@media (max-width: 640px) {
    .vl-shop-hero h1 {
        font-size: clamp(2rem, 8.6vw, 2.6rem);
    }

    /* Stack cart rows: each cell becomes "Label ........ value" */
    .vl-store table.shop_table_responsive thead {
        display: none;
    }

    .vl-store table.shop_table_responsive tr {
        display: block;
        border-bottom: 1px solid var(--vl-store-hairline);
    }

    .vl-store table.shop_table_responsive tr:last-child {
        border-bottom: 0;
    }

    .vl-store table.shop_table_responsive tr td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.65rem 1rem;
        border-bottom: 0;
        text-align: right;
    }

    .vl-store table.shop_table_responsive tr td[data-title]::before {
        content: attr(data-title);
        color: var(--vl-store-text-3);
        font-weight: 600;
        text-align: left;
    }

    .vl-store table.shop_table_responsive :is(.product-thumbnail, .product-remove) {
        display: none;
    }

    .vl-store table.shop_table_responsive td.actions {
        display: block;
    }

    .vl-store .woocommerce-billing-fields__field-wrapper,
    .vl-store .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .vl-store .form-row {
        grid-column: 1 / -1;
    }

    .vl-store .actions .coupon,
    .vl-store .actions button[name="update_cart"] {
        float: none;
        width: 100%;
    }

    .vl-store .actions .coupon :is(.input-text, .button) {
        flex: 1;
    }
}

/* ─── Input & accessibility preferences ────────────────── */

@media (hover: none) {
    .vl-product-card:hover {
        transform: none;
    }

    .vl-product-card:hover .vl-product-card__media :is(img, .vl-product-art) {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vl-store *,
    .vl-store *::before {
        transition-property: opacity, background-color, color, border-color !important;
        transform: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .vl-store :is(.vl-shop-steps, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-product-gallery__trigger) {
        background: #111b27;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    .vl-store :is(.vl-product-card, .vl-shop-steps, .woocommerce-tabs, table.shop_table, #payment) {
        border-color: rgba(255, 255, 255, 0.45);
    }

    .vl-store :is(p, li, span, small, td, th, label) {
        color: #ffffff;
    }
}

.vl-store :is(a, .button, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--vl-store-accent);
    outline-offset: 3px;
}
