/* Дикий Люкс — общие токены и компоненты: карточка товара, бейджи, сетка товаров. */
:root {
    --dl-paper: #F2F1ED;
    --dl-plate: #FFFFFF;
    --dl-ink: #0B0B0E;
    --dl-ink-2: rgba(11, 11, 14, 0.64);
    --dl-ink-3: rgba(11, 11, 14, 0.44);
    --dl-line: rgba(11, 11, 14, 0.10);
    --dl-navy: #1B3060;
    --dl-navy-2: #29457C;
    --dl-gold: #C9A04E;
    --dl-gold-ink: #8A6A26;
    --dl-ok: #39715A;
}

/* ---------------- сетка товаров ---------------- */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
    gap: 18px;
}
@media (max-width: 600px) {
    .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------------- карточка товара ---------------- */
.dl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--dl-plate);
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.dl-card:hover { box-shadow: 0 26px 50px -32px rgba(11, 11, 14, 0.38); }
.dl-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.dl-card-link:focus-visible { outline: 2px solid var(--dl-navy-2); outline-offset: 3px; }
.dl-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 18px 18px 4px;
    display: grid;
    place-items: center;
}
.dl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}
.dl-card:hover .dl-card-media img { transform: scale(1.045); }

.dl-card-badges {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}
.dl-badge {
    display: inline-block;
    padding: 6px 10px 6px;
    border-radius: 999px;
    font: 500 12px/1.05 'Inter', sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: var(--dl-paper);
    color: var(--dl-ink);
}
.dl-badge--offer { background: var(--dl-gold); color: #14234A; }
.dl-badge--note { background: var(--dl-navy); color: #FFFFFF; }

.dl-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px 18px 18px;
}
.dl-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--dl-ink-3);
}
.dl-card-meta span:last-child { white-space: nowrap; }
.dl-card-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: var(--dl-ink);
    overflow-wrap: anywhere;
}
.dl-card-short {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--dl-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dl-card-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.dl-card-price {
    font-size: 17px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--dl-ink);
    white-space: nowrap;
}
.dl-card-offer {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--dl-gold-ink);
    white-space: normal;
}
.dl-card-add {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--dl-navy-2);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}
.dl-card-add svg { width: 20px; height: 20px; }
.dl-card-add .i-check { display: none; }
.dl-card-add:hover { background: var(--dl-navy); transform: scale(1.06); }
.dl-card-add:focus-visible { outline: 2px solid var(--dl-gold); outline-offset: 3px; }
.dl-card-add.is-added { background: var(--dl-ok); }
.dl-card-add.is-added .i-bag { display: none; }
.dl-card-add.is-added .i-check { display: block; }

@media (max-width: 600px) {
    .dl-card { border-radius: 18px; }
    .dl-card-media { padding: 12px 12px 2px; }
    .dl-card-badges { top: 10px; left: 10px; }
    .dl-badge { font-size: 11px; padding: 5px 8px; }
    .dl-card-body { padding: 4px 12px 12px; }
    .dl-card-meta { font-size: 11px; flex-direction: column; gap: 2px; margin-bottom: 6px; }
    .dl-card-name { font-size: 13px; letter-spacing: 0.02em; }
    .dl-card-short { display: none; }
    .dl-card-price { font-size: 15px; }
    .dl-card-add { width: 40px; height: 40px; }
    .dl-card-add svg { width: 18px; height: 18px; }
}

/* бейдж акции на «Бестселлерах» главной (разметка там своя, .p-card) */
.p-card { position: relative; }
.p-card > .dl-card-badges { top: 18px; left: 18px; }
