/* =========================================================
   NAKAMA STORE — TIENDA
   Archivo independiente para tienda.php
========================================================= */

.nk-shop {
    --nk-bg: #080808;
    --nk-panel: #111111;
    --nk-panel-2: #171717;
    --nk-line: #292929;
    --nk-gold: #d4af37;
    --nk-text: #ffffff;
    --nk-muted: #929292;
    background: var(--nk-bg);
    color: var(--nk-text);
}

.nk-shop * {
    box-sizing: border-box;
}

.nk-shop a {
    text-decoration: none;
}

.nk-kicker {
    display: block;
    color: var(--nk-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.4px;
}

/* HERO */

.nk-shop-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--nk-line);
    background:
        radial-gradient(circle at 78% 35%, rgba(212,175,55,.16), transparent 25%),
        linear-gradient(120deg, #050505 0%, #111 62%, #17130a 100%);
}

.nk-shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 55px 55px;
    pointer-events: none;
}

.nk-shop-hero-inner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.nk-shop-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 75px 0;
}

.nk-shop-hero h1 {
    max-width: 700px;
    margin: 13px 0 22px;
    font-size: clamp(48px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -3px;
    font-weight: 900;
}

.nk-shop-hero h1 em {
    color: var(--nk-gold);
    font-style: normal;
}

.nk-shop-hero p {
    max-width: 620px;
    margin: 0;
    color: #b1b1b1;
    font-size: 17px;
    line-height: 1.75;
}

.nk-shop-hero-mark {
    width: 330px;
    height: 330px;
    flex: 0 0 330px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212,175,55,.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(212,175,55,.025),
        0 0 0 70px rgba(212,175,55,.018);
    color: rgba(212,175,55,.13);
    font-size: 82px;
    font-weight: 900;
    letter-spacing: -6px;
    transform: rotate(-8deg);
}

.nk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.nk-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    transition: .2s ease;
}

.nk-btn:hover {
    transform: translateY(-2px);
}

.nk-btn-gold {
    background: var(--nk-gold);
    color: #090909;
}

.nk-btn-gold:hover {
    background: #fff;
    color: #090909;
}

.nk-btn-dark {
    border-color: #3a3a3a;
    background: #151515;
    color: #fff;
}

.nk-btn-dark:hover {
    border-color: var(--nk-gold);
    color: var(--nk-gold);
}

/* TCG */

.nk-games {
    padding: 58px 0;
    border-bottom: 1px solid #202020;
    background: #0c0c0c;
}

.nk-section-head,
.nk-catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
}

.nk-section-head {
    margin-bottom: 25px;
}

.nk-section-head h2,
.nk-catalog-head h2 {
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
}

.nk-text-link {
    color: #8e8e8e;
    font-size: 13px;
    font-weight: 800;
}

.nk-text-link:hover {
    color: var(--nk-gold);
}

.nk-game-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.nk-game {
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #282828;
    border-radius: 10px;
    background: #131313;
    color: #fff;
    transition: .2s ease;
}

.nk-game:hover,
.nk-game.active {
    border-color: var(--nk-gold);
    background: #191919;
    transform: translateY(-2px);
}

.nk-game-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1e1e1e;
    font-size: 21px;
}

.nk-game strong {
    min-width: 0;
    overflow: hidden;
    color: #eaeaea;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nk-game-singles {
    border-color: rgba(212,175,55,.42);
    background: rgba(212,175,55,.07);
}

/* CATÁLOGO */

.nk-catalog {
    padding: 72px 0 90px;
    background: var(--nk-bg);
}

.nk-catalog-head {
    margin-bottom: 24px;
}

.nk-catalog-head p {
    margin: 8px 0 0;
    color: #777;
    font-size: 12px;
}

.nk-search {
    width: min(430px, 100%);
    display: flex;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 9px;
    background: #141414;
}

.nk-search:focus-within {
    border-color: var(--nk-gold);
}

.nk-search input {
    min-width: 0;
    flex: 1;
    padding: 13px 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
}

.nk-search input::placeholder {
    color: #686868;
}

.nk-search button {
    padding: 0 18px;
    border: 0;
    background: var(--nk-gold);
    color: #080808;
    font-weight: 900;
    cursor: pointer;
}

.nk-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nk-filter-row a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #2d2d2d;
    border-radius: 999px;
    color: #8d8d8d;
    font-size: 11px;
    font-weight: 800;
}

.nk-filter-row a:hover,
.nk-filter-row a.active {
    border-color: var(--nk-gold);
    background: var(--nk-gold);
    color: #080808;
}

.nk-search-note {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: -10px 0 25px;
    padding: 12px 15px;
    border: 1px solid #252525;
    border-radius: 8px;
    background: #101010;
    color: #858585;
    font-size: 12px;
}

.nk-search-note a {
    color: var(--nk-gold);
    font-weight: 800;
}

/* PRODUCTOS */

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

.nk-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #242424;
    border-radius: 12px;
    background: #101010;
    transition: .25s ease;
}

.nk-product-card:hover {
    border-color: #454545;
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.nk-product-image {
    position: relative;
    height: 285px;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(212,175,55,.08), transparent 55%),
        #151515;
}

.nk-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 18px;
    object-fit: contain;
    transition: transform .3s ease;
}

.nk-product-card:hover .nk-product-image img {
    transform: scale(1.035);
}

.nk-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 64px;
}

.nk-product-category,
.nk-stock-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .3px;
}

.nk-product-category {
    top: 10px;
    left: 10px;
    border: 1px solid #343434;
    background: rgba(8,8,8,.9);
    color: var(--nk-gold);
}

.nk-stock-badge {
    right: 10px;
    bottom: 10px;
    background: var(--nk-gold);
    color: #080808;
}

.nk-stock-out {
    background: #651b1b;
    color: #fff;
}

.nk-product-body {
    padding: 17px;
}

.nk-product-name {
    min-height: 45px;
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nk-product-name:hover {
    color: var(--nk-gold);
}

.nk-product-body > p {
    min-height: 38px;
    margin: 8px 0 14px;
    overflow: hidden;
    color: #737373;
    font-size: 11px;
    line-height: 1.6;
}

.nk-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    margin-top: 13px;
    padding-top: 14px;
    border-top: 1px solid #222;
}

.nk-product-meta strong {
    color: var(--nk-gold);
    font-size: 21px;
    line-height: 1;
}

.nk-product-meta span {
    color: #696969;
    font-size: 10px;
}

.nk-product-actions {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    margin-top: 14px;
}

.nk-add,
.nk-details {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 900;
}

.nk-add {
    background: var(--nk-gold);
    color: #080808;
}

.nk-add:hover {
    background: #fff;
}

.nk-add-disabled {
    background: #222;
    color: #6f6f6f;
}

.nk-details {
    border: 1px solid #303030;
    background: #171717;
    color: #bdbdbd;
    font-size: 18px;
}

.nk-details:hover {
    border-color: var(--nk-gold);
    color: var(--nk-gold);
}

/* VACÍO */

.nk-empty {
    padding: 75px 20px;
    border: 1px dashed #303030;
    border-radius: 12px;
    background: #101010;
    text-align: center;
}

.nk-empty > span {
    font-size: 46px;
}

.nk-empty h3 {
    margin: 15px 0 7px;
    font-size: 25px;
}

.nk-empty p {
    margin: 0 0 22px;
    color: #777;
}

/* SINGLES */

.nk-singles-strip {
    padding: 0 0 85px;
    background: var(--nk-bg);
}

.nk-singles-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 38px 42px;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 50%, rgba(212,175,55,.13), transparent 28%),
        #111;
}

.nk-singles-inner h2 {
    margin: 7px 0;
    font-size: 29px;
}

.nk-singles-inner p {
    margin: 0;
    color: #858585;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .nk-game-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nk-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nk-shop-hero-mark {
        width: 250px;
        height: 250px;
        flex-basis: 250px;
    }
}

@media (max-width: 820px) {
    .nk-shop-hero-inner {
        min-height: auto;
    }

    .nk-shop-hero-mark {
        display: none;
    }

    .nk-game-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nk-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nk-catalog-head {
        align-items: stretch;
        flex-direction: column;
    }

    .nk-search {
        width: 100%;
    }

    .nk-singles-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .nk-shop-hero-copy {
        padding: 58px 0;
    }

    .nk-shop-hero h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .nk-shop-hero p {
        font-size: 15px;
    }

    .nk-hero-actions .nk-btn {
        flex: 1;
    }

    .nk-games {
        padding: 45px 0;
    }

    .nk-section-head {
        align-items: flex-start;
    }

    .nk-text-link {
        display: none;
    }

    .nk-game-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nk-game {
        min-height: 76px;
        padding: 11px;
    }

    .nk-game-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        font-size: 17px;
    }

    .nk-game strong {
        font-size: 11px;
    }

    .nk-catalog {
        padding: 55px 0 70px;
    }

    .nk-products {
        gap: 9px;
    }

    .nk-product-card {
        border-radius: 9px;
    }

    .nk-product-image {
        height: 185px;
    }

    .nk-product-image img {
        padding: 8px;
    }

    .nk-product-category {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 12px);
        padding: 4px 6px;
        overflow: hidden;
        font-size: 7px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nk-stock-badge {
        right: 6px;
        bottom: 6px;
        padding: 4px 6px;
        font-size: 7px;
    }

    .nk-product-body {
        padding: 11px;
    }

    .nk-product-name {
        min-height: 39px;
        font-size: 12px;
    }

    .nk-product-body > p {
        display: none;
    }

    .nk-product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .nk-product-meta strong {
        font-size: 18px;
    }

    .nk-product-actions {
        grid-template-columns: 1fr 36px;
    }

    .nk-add,
    .nk-details {
        min-height: 38px;
    }

    .nk-add {
        padding: 0 5px;
        font-size: 9px;
    }

    .nk-singles-strip {
        padding-bottom: 55px;
    }

    .nk-singles-inner {
        padding: 27px 22px;
    }

    .nk-singles-inner h2 {
        font-size: 24px;
    }
}
