/* ================================================================
   PROJECTKART — PROJECT KITS PAGE
================================================================ */

.page-kits {
    background: #07090d;
}

.kits-hero {
    padding: 56px 0 36px;
    background:
        radial-gradient(circle at 88% 0%, rgba(40, 120, 255, 0.16), transparent 34%),
        #07090d;
}

.kits-hero__eyebrow {
    display: block;
    margin-bottom: 16px;
    color: #6ea0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kits-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.kits-hero p {
    max-width: 620px;
    margin-top: 18px;
    color: #8b97ab;
    font-size: 16px;
    line-height: 1.7;
}

.kits-workspace {
    padding: 8px 0 28px;
}

.kits-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.kits-count {
    color: #8b97ab;
    font-size: 14px;
}

.kits-filters {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: #0c1118;
}

.kits-filters button {
    min-height: 36px;
    padding: 0 16px;
    color: #9aa6b8;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
}

.kits-filters button.is-active {
    color: #fff;
    background: #2878ff;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-kit-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: #0c1118;
    transition: transform 240ms ease, border-color 240ms ease;
}

.project-kit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
}

.project-kit-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-kit-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92);
}

.project-kit-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-kit-card__body {
    padding: 20px 22px 18px;
}

.project-kit-card__category {
    display: block;
    margin-bottom: 8px;
    color: #7d8aa0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-kit-card h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.project-kit-card h3 a {
    color: inherit;
    text-decoration: none;
}

.project-kit-card h3 a:hover {
    color: #6ea0ff;
}

.project-kit-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.project-kit-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-kit-card__text {
    min-height: 44px;
    color: #8b97ab;
    font-size: 14px;
    line-height: 1.55;
}

.project-kit-card__includes {
    margin-top: 16px;
}

.project-kit-card__includes span {
    display: block;
    margin-bottom: 8px;
    color: #6d7b90;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-kit-card__includes li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #c5d0e0;
    font-size: 14px;
}

.project-kit-card__includes li::before {
    content: "✓";
    color: #22d39a;
    font-size: 13px;
    font-weight: 700;
}

.project-kit-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 4px;
}

.project-kit-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.project-kit-card__price strong {
    color: #fff;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.project-kit-card__price del {
    color: #6d7b90;
    font-size: 15px;
}

.project-kit-card__link {
    color: #4d8dff;
    font-size: 14px;
    font-weight: 600;
}

.kits-help {
    padding: 28px 0 72px;
}

.kits-help__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 20%, rgba(40, 120, 255, 0.12), transparent 36%),
        #0c121c;
}

.kits-help__copy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.kits-help__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    border: 1px solid rgba(77, 141, 255, 0.35);
    color: #4d8dff;
    font-size: 14px;
    font-weight: 700;
}

.kits-help h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.kits-help p {
    color: #8b97ab;
    font-size: 14px;
}

.kits-help .button {
    flex-shrink: 0;
}

.kits-empty {
    margin-top: 28px;
    padding: 48px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    text-align: center;
    color: #8b97ab;
}

.kits-empty h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.kits-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

[data-admin-only] {
    display: none !important;
}

body.is-kits-admin [data-admin-only],
body.is-kits-admin [data-admin-only].is-admin-visible,
body.is-shop-admin [data-admin-only],
body.is-shop-admin [data-admin-only].is-admin-visible {
    display: revert !important;
}

body.is-kits-admin .project-kit-card__admin-actions[data-admin-only],
body.is-shop-admin .project-kit-card__admin-actions[data-admin-only] {
    display: flex !important;
}

body.is-kits-admin .shop-fab[data-admin-only],
body.is-shop-admin .shop-fab[data-admin-only] {
    display: inline-flex !important;
}

.shop-fab {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 80;
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b86ff, #1768ed);
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 14px 34px rgba(40, 120, 255, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.shop-fab:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow:
        0 18px 40px rgba(40, 120, 255, 0.46),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.shop-fab__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.shop-fab__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.project-kit-card__admin-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: none;
    gap: 8px;
}

.project-kit-card__admin-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.project-kit-card__admin-btn--delete {
    border-color: rgba(255, 92, 92, 0.35);
    color: #ffb4b4;
}

@media (max-width: 640px) {
    .shop-fab {
        right: 16px;
        bottom: 18px;
        min-height: 52px;
        padding: 0 14px 0 12px;
    }

    .shop-fab__label {
        font-size: 12px;
    }
}

@media (max-width: 1100px) {
    .kits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .kits-toolbar,
    .kits-help__card {
        flex-direction: column;
        align-items: flex-start;
    }

    .kits-grid {
        grid-template-columns: 1fr;
    }
}
