.avlab,
.avlab-card,
.avlab-card *,
.avlab-loop-item,
.avlab-loop-item * {
    box-sizing: border-box;
}

.avlab,
.avlab button,
.avlab input,
.avlab select,
.avlab textarea,
.avlab-card,
.avlab-card button,
.avlab-card input {
    font-family: var(--avlab-font);
}

.avlab-storefront {
    overflow-x: clip;
    background: var(--avlab-surface);
    color: var(--avlab-ink);
}

.avlab-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.avlab-wrap {
    width: min(1240px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

/* ── Typography ── */

.avlab-kicker {
    display: block;
    margin: 0 0 10px;
    color: var(--avlab-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.avlab-kicker--light {
    color: var(--avlab-muted-light);
}

.avlab-title,
.elementor-widget-shortcode .avlab .avlab-title {
    margin: 0;
    color: var(--avlab-navy);
    font-size: var(--avlab-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.avlab-lede,
.elementor-widget-shortcode .avlab .avlab-lede {
    max-width: 44rem;
    margin: 14px 0 0;
    color: var(--avlab-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.avlab-lede p {
    margin: 0;
}

/* ── Buttons ── */

.avlab-btn,
.elementor-widget-shortcode .avlab .avlab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    overflow: hidden;
    border: 0;
    border-radius: var(--avlab-radius, 4px);
    background: linear-gradient(135deg, var(--avlab-navy) 0%, var(--avlab-navy-mid) 100%);
    box-shadow: var(--avlab-shadow-sm), inset 0 1px 0 rgb(255 255 255 / 12%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.35s var(--avlab-ease),
        box-shadow 0.35s var(--avlab-ease),
        background 0.35s ease;
}

.avlab-btn::after {
    content: "→";
    font-size: 1.1em;
    opacity: 0;
    transform: translateX(-6px);
    transition: transform 0.35s var(--avlab-ease), opacity 0.35s ease;
}

.avlab-btn:hover,
.avlab-btn:focus-visible {
    background: linear-gradient(135deg, var(--avlab-blue) 0%, var(--avlab-blue-light) 100%);
    box-shadow: var(--avlab-shadow), var(--avlab-shadow-glow);
    color: #fff;
    transform: translateY(-2px);
}

.avlab-btn:hover::after,
.avlab-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.avlab-btn--light,
.elementor-widget-shortcode .avlab .avlab-btn--light {
    background: #fff;
    box-shadow: 0 8px 32px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 80%);
    color: var(--avlab-navy);
}

.avlab-btn--light:hover,
.avlab-btn--light:focus-visible {
    background: #fff;
    box-shadow: 0 16px 48px rgb(0 0 0 / 24%);
    color: var(--avlab-blue);
}

.avlab-btn--ghost,
.elementor-widget-shortcode .avlab .avlab-btn--ghost {
    background: rgb(255 255 255 / 8%);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 35%);
    color: #fff;
    backdrop-filter: blur(8px);
}

.avlab-btn--ghost:hover,
.avlab-btn--ghost:focus-visible {
    background: rgb(255 255 255 / 16%);
    color: #fff;
}

.avlab-btn--cta,
.elementor-widget-shortcode .avlab .avlab-btn--cta {
    min-height: 44px;
    padding: 0 22px;
    background: #21649b;
    box-shadow: none;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.avlab-btn--cta::after,
.avlab-btn--light::after {
    display: none;
}

.avlab-btn--cta:hover,
.avlab-btn--cta:focus-visible {
    background: #173069;
    transform: none;
}

.avlab-btn--light:hover,
.avlab-btn--light:focus-visible {
    transform: none;
}

.avlab-account__signup .avlab-btn--ghost {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 40%);
    color: #fff;
    backdrop-filter: none;
}

.avlab-account__signup .avlab-btn--ghost:hover,
.avlab-account__signup .avlab-btn--ghost:focus-visible {
    background: rgb(255 255 255 / 16%);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%);
    color: #fff;
}

.avlab-textlink {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.avlab-textlink--navy,
.elementor-widget-shortcode .avlab .avlab-textlink--navy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--avlab-blue);
}

.avlab-textlink--navy::after {
    content: "→";
    transition: transform 0.3s var(--avlab-ease);
}

.avlab-textlink--navy:hover::after {
    transform: translateX(4px);
}

.avlab a:focus-visible,
.avlab button:focus-visible,
.avlab input:focus-visible,
.avlab select:focus-visible {
    outline: 2px solid var(--avlab-blue);
    outline-offset: 3px;
}

/* ── Product cards ── */

.avlab-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--avlab-border);
    border-radius: var(--avlab-radius, 4px);
    background: #fff;
    transition:
        transform 0.45s var(--avlab-ease),
        box-shadow 0.45s var(--avlab-ease),
        border-color 0.35s ease;
}

.avlab-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgb(23 48 105 / 4%) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.avlab-card__link,
.elementor-widget-shortcode .avlab .avlab-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.avlab-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgb(33 100 155 / 14%), transparent 50%),
        linear-gradient(160deg, var(--avlab-surface) 0%, var(--avlab-surface-2) 100%);
}

.avlab-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 18%;
    object-fit: contain;
    transition: transform 0.55s var(--avlab-ease);
}

.avlab-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: var(--avlab-radius, 4px);
    background: linear-gradient(135deg, var(--avlab-navy), var(--avlab-blue));
    box-shadow: 0 4px 12px rgb(23 48 105 / 30%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.avlab-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px 24px;
    border-top: 1px solid var(--avlab-border);
}

.avlab-card__title,
.elementor-widget-shortcode .avlab .avlab-card__title {
    margin: 0;
    color: var(--avlab-navy);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-transform: uppercase;
}

.avlab-card__excerpt {
    margin: 0;
    color: var(--avlab-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.avlab-card__price {
    margin-top: auto;
    padding-top: 12px;
    color: var(--avlab-navy);
    font-size: 1.1rem;
    font-weight: 700;
}

.avlab-card__price .price,
.avlab-card__price .amount {
    color: var(--avlab-navy);
}

.avlab-card__price del,
.avlab-card__price del .amount {
    color: rgb(0 0 0 / 38%);
    font-size: 0.9rem;
    font-weight: 500;
}

.avlab-card__price ins {
    text-decoration: none;
}

.avlab-card__price ins,
.avlab-card__price ins .amount {
    color: var(--avlab-blue);
}

.avlab-card:hover {
    border-color: rgb(33 100 155 / 35%);
    box-shadow: var(--avlab-shadow-lg);
    transform: translateY(-6px);
}

.avlab-card:hover::before {
    opacity: 1;
}

.avlab-card:hover .avlab-card__media img {
    transform: scale(1.06);
}

.avlab-card.is-sale {
    border-color: rgb(33 100 155 / 28%);
}

.avlab-card.is-sale:hover {
    border-color: rgb(33 100 155 / 45%);
    box-shadow: 0 20px 56px rgb(23 48 105 / 14%);
}

/* ── Section headers ── */

.avlab-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

@media (max-width: 720px) {
    .avlab-wrap {
        width: min(1240px, calc(100% - 28px));
    }

    .avlab-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avlab-btn,
    .avlab-card,
    .avlab-card__media img {
        transition: none;
    }

    .avlab-btn:hover,
    .avlab-card:hover {
        transform: none;
    }

    .avlab-card:hover .avlab-card__media img {
        transform: none;
    }
}
