/* ================================================= */
/* CATEGORY 3-COLUMN LAYOUT                          */
/* ================================================= */

.cat-layout {
    display: grid;
    grid-template-columns: 180px 1fr 280px;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 60px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* ── LEFT SIDEBAR: Category Navigation ── */
.cat-nav {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    padding-bottom: 24px;
}

.cat-nav::-webkit-scrollbar {
    width: 4px;
}
.cat-nav::-webkit-scrollbar-track {
    background: transparent;
}
.cat-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.cat-nav-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    padding: 0 12px 10px;
    margin: 0;
}

.cat-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cat-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.18s ease;
    line-height: 1.3;
}

.cat-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}

.cat-nav-item.active {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
    font-weight: 700;
}

.cat-nav-item.active .cat-nav-item-icon {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

.cat-nav-item-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--hover-overlay);
}

.cat-nav-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--hover-overlay);
    color: var(--text-3);
    font-size: 14px;
}

.cat-nav-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── RELATED CATEGORY TABS ── */
.cat-related-tabs {
    display: flex;
    gap: 6px;
    padding: 0 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-related-tabs::-webkit-scrollbar {
    display: none;
}

.cat-related-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    text-decoration: none;
    background: var(--hover-overlay);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.cat-related-tab i {
    font-size: 13px;
    opacity: 0.7;
}

.cat-related-tab:hover {
    color: var(--text);
    background: var(--hover-overlay-strong);
    border-color: var(--border);
}

.cat-related-tab.active {
    background: rgba(124, 58, 237, 0.14);
    color: #a78bfa;
    border-color: rgba(124, 58, 237, 0.25);
}

.cat-related-tab.active i {
    opacity: 1;
    color: #a78bfa;
}

/* ── DELIVERY INFO BAR ── */
.cat-delivery-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.cat-delivery-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.cat-delivery-item i {
    font-size: 13px;
    color: #a78bfa;
}

.cat-delivery-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
}

/* ── CENTER: Main Content ── */
.cat-center {
    min-width: 0;
    overflow: hidden;
}

/* Override page-level wrapper styles when inside the 3-column grid */
.cat-center .vc-page {
    background: none;
    min-height: 0;
    padding: 0;
}

.cat-center .psplus-page,
.cat-center .sub-page,
.cat-center .ms-page,
.cat-center .sharing-page {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.cat-center .steam-page {
    padding: 0;
}

.cat-center .content-wrapper {
    padding-top: 0;
}

/* Remove inner padding/margin overrides for 3-col layout */
.cat-center .sharing-page {
    padding: 0;
}

.cat-center .sub-page {
    padding: 0;
}

.cat-center .ms-page {
    padding: 0;
}

.cat-center .psplus-page {
    padding: 0;
}

/* PS Plus: balanced layout — wider nav, bigger configurator */
.cat-layout.has-configurator {
    grid-template-columns: 200px 1fr 320px;
    gap: 14px;
    max-width: 1520px;
    padding: 0 28px 60px;
}

/* ── RIGHT SIDEBAR: Quick Buy ── */
.cat-right {
    position: sticky;
    top: 84px;
}

.cat-right-widget {
    background: var(--surface-solid, var(--card));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-right-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-right-widget-title i {
    color: var(--purple, #7c3aed);
    font-size: 14px;
}

.cat-right-placeholder {
    text-align: center;
    padding: 20px 0;
}

.cat-right-placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.cat-right-placeholder-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

/* ── PS PLUS CONFIGURATOR ── */
.cfg-step {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cfg-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cfg-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.cfg-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--purple, #7c3aed);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.cfg-plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cfg-plan-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.cfg-plan-price {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.cfg-change-btn {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 0;
    font-family: inherit;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.cfg-change-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.cfg-radios {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cfg-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.cfg-radio:hover {
    border-color: rgba(124, 58, 237, 0.3);
    color: rgba(255,255,255,0.75);
}

.cfg-radio.active {
    border-color: rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.08);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(124,58,237,0.08);
}

.cfg-radio input[type="radio"] {
    display: none;
}

.cfg-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: all 0.15s;
    position: relative;
}

.cfg-radio.active .cfg-radio-dot {
    border-color: var(--purple, #7c3aed);
    background: var(--purple, #7c3aed);
    box-shadow: inset 0 0 0 3px var(--card, #1a1a2e);
}

.cfg-radio-text {
    font-weight: 600;
}

.cfg-fee {
    font-size: 11px;
    font-weight: 800;
    color: var(--purple, #7c3aed);
}

.cfg-fee.free {
    color: #34d399;
    text-decoration: line-through;
}

.cfg-fields {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfg-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.cfg-input:hover {
    border-color: rgba(255,255,255,0.15);
}

.cfg-input:focus {
    border-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.04);
    box-shadow: 0 0 0 2px rgba(124,58,237,0.08);
}

.cfg-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.cfg-input-pass {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

.cfg-info-box {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
}

.cfg-info-box i {
    color: #34d399;
    flex-shrink: 0;
    margin-top: 2px;
}

.cfg-gift-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.1);
    font-size: 12px;
    font-weight: 700;
    color: #34d399;
}

.cfg-step-total {
    border-bottom: none;
}

.cfg-total-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.cfg-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.cfg-total-row .cfg-strikethrough {
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 4px;
}

.cfg-total-row .cfg-free {
    color: #34d399;
    font-weight: 700;
}

.cfg-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
}

.cfg-total-line span:first-child {
    font-size: 13px;
    color: var(--text-2);
}

.cfg-total-price {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.cfg-buy-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.cfg-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.3);
}

.cfg-buy-btn:active {
    transform: translateY(0);
}

.cfg-cart-btn {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.15s;
}

.cfg-cart-btn:hover {
    border-color: rgba(124, 58, 237, 0.25);
    color: rgba(255,255,255,0.75);
}

/* Quick info items */
.cat-right-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.cat-right-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.cat-right-info-row i {
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.cat-right-info-row i.fa-bolt { color: #fbbf24; }
.cat-right-info-row i.fa-shield-halved { color: #34d399; }
.cat-right-info-row i.fa-headset { color: #60a5fa; }
.cat-right-info-row i.fa-credit-card { color: #a78bfa; }

/* ── SECTION TITLE ── */
.cat-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.cat-section-title i {
    color: #a78bfa;
    font-size: 16px;
}

/* ── HOW IT WORKS VIDEO (Stage 4) ── */
.cat-how-it-works {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cat-hiw-media {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: block;
}

/* ── REVIEWS (Stage 5) ── */
.cat-reviews {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cat-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cat-reviews-header .cat-section-title {
    margin-bottom: 0;
}

.cat-reviews-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-reviews-avg {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}

.cat-reviews-stars {
    color: #fbbf24;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.cat-reviews-count {
    font-size: 13px;
    color: var(--text-3);
}

.cat-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-review-card {
    background: var(--hover-overlay);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}

.cat-review-stars {
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 6px;
    display: flex;
    gap: 2px;
}

.cat-review-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0 0 8px;
}

.cat-review-date {
    font-size: 12px;
    color: var(--text-3);
}

/* ── SECURITY BLOCK (Stage 6) ── */
.cat-security {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cat-security-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-security-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--hover-overlay);
}

.cat-security-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    font-family: inherit;
}

.cat-security-q > i:first-child {
    color: #34d399;
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.cat-security-q > span {
    flex: 1;
}

.cat-security-arrow {
    font-size: 11px;
    color: var(--text-3);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.cat-security-item[data-open="true"] .cat-security-arrow {
    transform: rotate(180deg);
}

.cat-security-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 18px;
}

.cat-security-item[data-open="true"] .cat-security-a {
    max-height: 200px;
    padding: 0 18px 14px;
}

.cat-security-a p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
    padding-left: 32px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .cat-layout {
        grid-template-columns: 160px 1fr 260px;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .cat-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cat-nav {
        position: static;
        max-height: none;
        overflow: visible;
        display: flex;
        padding: 0 0 16px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 16px;
    }

    .cat-nav-title {
        display: none;
    }

    .cat-nav-list {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
        width: 100%;
    }

    .cat-nav-list::-webkit-scrollbar {
        display: none;
    }

    .cat-nav-item {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
    }

    .cat-nav-item-img,
    .cat-nav-item-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 11px;
    }

    .cat-related-tabs {
        padding: 0 0 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid var(--border);
    }

    .cat-related-tab {
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .cat-delivery-info {
        padding: 8px 12px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .cat-delivery-item {
        font-size: 12px;
    }

    .cat-right {
        position: static;
        margin-top: 24px;
    }

    /* Voucher sidebar: let vouchers.css handle mobile (fixed bottom sheet at ≤900px) */
    .cat-layout > .vc-sidebar {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .cat-layout {
        padding: 0 16px 40px;
    }

    .cat-right {
        display: none;
    }

    /* PS Plus: show configurator below content on mobile */
    .cat-layout.has-configurator .cat-right {
        display: block;
        position: static;
        margin-top: 20px;
    }

    .cat-delivery-info {
        flex-wrap: wrap;
    }

    .cat-section-title {
        font-size: 16px;
    }

    .cat-review-card {
        padding: 12px 14px;
    }

    .cat-security-q {
        padding: 12px 14px;
        font-size: 13px;
    }

    .cat-security-a p {
        padding-left: 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cat-layout {
        padding: 0 12px 32px;
    }

    .cat-nav-item {
        padding: 6px 10px;
        font-size: 11px;
    }

    .cat-related-tab {
        padding: 6px 12px;
        font-size: 11px;
    }

    .cat-delivery-info {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 10px;
    }

    .cat-delivery-item {
        font-size: 11px;
    }
}
