/**
 * Teklly Product Card V2 - Style
 * Wszystkie klasy używane przez shortcode [product_card_v2]
 */

/* ─── Kafelek (wrapper) ──────────────────────────────────────────────────── */
.teklly-card-v2 {
    border-radius: var(--radius);
    border: 1px solid #eaeaea;
    overflow: hidden;
    padding: 16px;
    max-width: 328px;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    contain: layout;
    background-color: #FFF;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.teklly-card-v2:hover {
    box-shadow: 0 2px 16px 0 var(--secondary-50);
}

/* ─── Main wrapper ───────────────────────────────────────────────────────── */
.teklly-card-v2__main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    flex-grow: 1;
}

/* ─── Media ──────────────────────────────────────────────────────────────── */
.teklly-card-v2__media-wrapper {
    display: flex;
    align-items: center;
}
.teklly-card-v2__media {
    aspect-ratio: 1;
    max-width: 186px;
    margin: 0 auto;
}
.teklly-card-v2__image {}

/* ─── Data wrapper ───────────────────────────────────────────────────────── */
.teklly-card-v2__data-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

/* ─── Tytuł ──────────────────────────────────────────────────────────────── */
.teklly-card-v2__name-wrapper {}
.teklly-card-v2__title {
    font-size: .75rem;
    font-family: "dm-sans";
    display: flex;
    flex-direction: column;
    line-height: 1.1em;
    font-weight: 700;
}

.teklly-card-v2__title a {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.teklly-card-v2__title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.teklly-card-v2__title .inspired {
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.teklly-card-v2__title .title {
    font-size: .875rem;
    width: 182px;
    max-width: 100%;
    margin-block: 0 2px;
}
.teklly-card-v2__concentration {
    font-size: .75rem;
    font-weight: 700;
    color: #c99a54;
}

/* ─── Cena ───────────────────────────────────────────────────────────────── */
.teklly-card-v2__meta-data {
    font-weight: 700;
    margin: auto 0 0 auto;
    width: min-content;
}
.teklly-card-v2__price {}
.teklly-card-v2__price-per-ml {
    font-size: .75rem;
    font-weight: 400;
    color: #73737d;
    display: flex;
    justify-content: flex-end;
    white-space: nowrap;
    gap: 0.2em;
}
.teklly-card-v2__price-per-ml span {}

/* ─── Promocja ───────────────────────────────────────────────────────────── */
.teklly-card-v2__promo {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 10px 16px 6px;
    border-radius: 4px;
    font-size: .875rem;
    gap: 0.25rem;
}
.teklly-card-v2__promo-tooltip {
    background-color: transparent;
    position: relative;
}
.teklly-card-v2__promo-tooltip-i {
    font-weight: 700;
    font-size: 10px;
    border: 1px solid #000000;
    border-radius: 50vw;
    padding-top: 1px;
    padding-right: 5px;
    padding-bottom: 0;
    padding-left: 5px;
    position: relative;
}
.teklly-card-v2__promo-text {
    text-align: center;
}
.teklly-card-v2__promo-text strong {
    text-transform: uppercase;
}
.teklly-card-v2__promo-price {
    font-size: 1.125rem;
    font-weight: 700;
}

/* ─── Interactive wrapper ────────────────────────────────────────────────── */
.teklly-card-v2__interactive {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

/* ─── Swatches ─────────────────────────────────────────────────────────────── */
.teklly-card-v2__swatches {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    contain: paint;
    width: 100%;
}
.teklly-card-v2__swatch {
    border-radius: 4px;
    border: 2px solid #eaeaea;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
    transition: .3s;
    white-space: nowrap;
    align-items: center;
    background-color: #FFFFFF;
    padding: 10px 7px 8px;
    font-size: 0.875rem;
    font-weight: 500;
}
.teklly-card-v2__swatch.is-active {
    border: 2px solid #c99a54;
    color:  #c99a54;
    font-weight: 700;
}

/* ─── Dostawa / dostępność ───────────────────────────────────────────────── */
.teklly-card-v2__delivery {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px 3px;
    border-radius: 4px;
    text-align: center;
    font-size: .875rem;
    color: #fff;
    gap: 0.2em;
    white-space: nowrap;
}
.teklly-card-v2__delivery--available {
    background-color: var(--success);
}
.teklly-card-v2__delivery--backorder {
    background-color: var(--information);
}
.teklly-card-v2__delivery--unavailable {
    background-color: var(--danger);
}

/* ─── Quantity ───────────────────────────────────────────────────────────── */
.teklly-card-v2__quantity {
    width: 97px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    border: 1px solid var(--bricks-border-color);
}
.teklly-card-v2__qty-btn {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.teklly-card-v2__qty-btn svg {
    width: 26px;
    height: 16px;
    color: #9CA3AF;
    padding-inline: 5px;
}
.teklly-card-v2__qty-btn:hover svg {
    stroke: #000;
}
.teklly-card-v2__qty-minus {}
.teklly-card-v2__qty-plus {}
.teklly-card-v2__qty-input {
    border: 0;
    -moz-appearance: textfield;
    padding: 0;
    text-align: center;
}

.teklly-card-v2__qty-input::-webkit-inner-spin-button,
.teklly-card-v2__qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ─── Add to cart ────────────────────────────────────────────────────────── */
.teklly-card-v2__atc {
    width: calc(100% - 97px - 8px);
    border-radius: 4px;
    color: #FFFFFF;
    padding: 10px 10px 6px;
    background-color: #C99A54;
    font-size: .875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.teklly-card-v2__atc.is-loading {}
.teklly-card-v2__atc.is-added {}

/* ─── Bottom product / Slider ────────────────────────────────────────────── */
.teklly-card-v2__bottom-product {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #EAEAEA;
}
.teklly-card-v2__slider-label {
    font-weight: 700;
    font-size: 0.75rem;
}
.teklly-card-v2__slider {
    overflow: hidden;
}
.teklly-card-v2__slides {
    display: flex;
}
.teklly-card-v2__slide {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
}
.teklly-card-v2__slide-media {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
}
.teklly-card-v2__slide-media img {}
.teklly-card-v2__slide-data {
    display: flex;
    flex-direction: column;
    font-size: var(--text-14);
}
.teklly-card-v2__slide-label {
    margin-bottom: 4px;
    color: #C99A54;
}

.teklly-card-v2__slide-label--odpowiednik,
.teklly-card-v2__slide-label--wersja_21_35 {
    color: var(--success);
}
.teklly-card-v2__slide-name::before {
    content: '';
    position: absolute;
    inset: 0;
}

.teklly-card-v2__slide-price {
    font-weight: 700;
}

/* ─── Slider bullets ─────────────────────────────────────────────────────── */
.teklly-card-v2__slider-bullets {
    display: flex;
    justify-content: center;
}
.teklly-card-v2__slider-bullet {
    margin: 2px;
    width: 8px;
    height: 8px;
    background-color: #D9D9D9;
    border-radius: 100%;
    display: inline-block;
    transition: transform .2s linear;
}
.teklly-card-v2__slider-bullet.is-active {
    background-color: #C99A54;
}