/* ===== Аксессуары под модель (inc/shop.php) ===== */

.twc-acc {
    --blue: var(--wd-primary-color, #2e6bc6);
    padding: 60px 0 70px;
    background: #f4f7fb;
    box-shadow: 0 0 0 100vmax #f4f7fb;
    clip-path: inset(0 -100vmax);
    font-family: var(--wd-text-font);
    color: #5b6472;
}

.twc-acc *,
.twc-acc *::before,
.twc-acc *::after {
    box-sizing: border-box;
}

.twc-acc__head {
    margin-bottom: 22px;
}

.twc-acc__kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 107, 198, .1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.twc-acc h2 {
    margin: 0 0 8px;
    color: #14181f;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: none;
}

.twc-acc__head p {
    max-width: 620px;
    margin: 0;
    font-size: 16px;
}

.twc-acc__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.twc-acc .twc-acc__tab {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid rgba(16, 24, 40, .1);
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    color: #14181f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.twc-acc__tab span {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(16, 16, 16, .06);
    font-size: 11px;
}

.twc-acc .twc-acc__tab.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.twc-acc__tab.is-active span {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.twc-acc__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.twc-acc__card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.twc-acc__card[hidden] {
    display: none;
}

.twc-acc__card:hover {
    box-shadow: 0 24px 46px -26px rgba(27, 63, 128, .45);
    transform: translateY(-3px);
}

.twc-acc__img {
    aspect-ratio: 1;
    padding: 6px;
    background: #fff;
}

.twc-acc__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.twc-acc__card:hover .twc-acc__img img {
    transform: scale(1.05);
}

.twc-acc__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 16px 16px;
}

.twc-acc__cat {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.twc-acc__name {
    display: -webkit-box;
    margin: 4px 0 12px;
    overflow: hidden;
    color: #14181f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.twc-acc__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.twc-acc__price {
    color: #14181f;
    font-family: var(--wd-title-font);
    font-size: 20px;
    font-weight: 700;
}

.twc-acc .twc-acc__add {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    box-shadow: 0 8px 18px -8px rgba(46, 107, 198, .8);
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease;
}

.twc-acc .twc-acc__add:hover {
    background: var(--blue);
    color: #fff;
    transform: scale(1.08);
}

/* Видно только админу: закупка и наценка */
.twc-acc__admin {
    margin-top: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff7e6;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .twc-acc__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .twc-acc {
        padding: 40px 0 50px;
    }

    .twc-acc__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .twc-acc__img {
        padding: 10px;
    }

    .twc-acc__body {
        padding: 0 12px 12px;
    }

    .twc-acc__name {
        font-size: 13px;
    }

    .twc-acc__price {
        font-size: 17px;
    }

    .twc-acc .twc-acc__add {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

.twc-acc__tab[hidden] {
    display: none !important;
}
