/* ===== ITEM SHOP - Fortnite 1:1 Replica ===== */

/* Font Faces - Exact Fortnite fonts */
@font-face {
    font-family: 'HeadingNowVariable';
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('HeadingNowVariable.woff2') format('woff2');
}

@font-face {
    font-family: 'HeadingNowVariable';
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
    src: url('HeadingNowVariableItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('Inter-Medium.woff2') format('woff2');
}

/* Page Background - Exact Fortnite blue with radial gradient */
.item-shop-page {
    background-color: rgb(7, 116, 187);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: #fff;
}

.item-shop-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(at 0px 50%, rgb(7, 116, 187), rgb(5, 47, 111) 75%, rgb(4, 10, 63));
    z-index: 0;
}

/* ===== NAVIGATION BAR ===== */
.item-shop-page .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.item-shop-page .nav-links li a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== SHOP MAIN LAYOUT ===== */
.shop-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 32px;
    padding-top: 80px;
}

.shop-layout {
    position: relative;
    display: flex;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.shop-sidebar {
    width: 48px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 1024px) {
    .shop-sidebar {
        display: block;
    }
}

.sidebar-inner {
    position: sticky;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
}

.sidebar-dots-nav {
    display: flex;
    max-height: 50vh;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.dots-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.dot-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.dot-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    transition: all 0.2s;
    aspect-ratio: 1;
}

.dot-item.active .dot-circle {
    width: 12px;
    height: 12px;
    opacity: 1;
}

.dot-item:hover .dot-circle {
    opacity: 0.8;
}

/* ===== CONTENT AREA ===== */
.shop-content {
    flex: 1;
    max-width: 1760px;
    margin-left: 32px;
}

@media (max-width: 1023px) {
    .shop-content {
        margin-left: 0;
    }
}

/* ===== SHOP HEADER ===== */
.shop-header {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.shop-title {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 43px;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "wdth" 825, "wght" 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    letter-spacing: normal;
    margin: 0;
}

@media (max-width: 1023px) {
    .shop-title {
        font-size: 30px;
    }
}

/* ===== SECTION ===== */
.shop-section {
    scroll-margin-top: 4rem;
    padding-bottom: 60px;
    padding-top: 8px;
    margin-bottom: 8px;
}

@media (max-width: 1023px) {
    .shop-section {
        padding-bottom: 0;
    }
}

.section-title {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 43px;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "wdth" 825, "wght" 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0 0 8px 0;
    letter-spacing: normal;
}

@media (max-width: 1023px) {
    .section-title {
        font-size: 28px;
    }
}

/* ===== CARD ROW / SLIDER ===== */
.shop-row {
    position: relative;
}

.shop-cards-grid {
    position: relative;
    display: grid;
    width: 100%;
    grid-auto-flow: column dense;
    grid-auto-columns: minmax(200px, 25%);
    align-items: start;
    overflow-x: hidden;
    padding: 4px 0;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .shop-cards-grid {
        grid-auto-columns: minmax(33.333%, 1fr);
    }
}

@media (max-width: 767px) {
    .shop-cards-grid {
        grid-auto-columns: minmax(50%, 1fr);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .shop-cards-grid::-webkit-scrollbar {
        display: none;
    }
}

/* ===== CARD WRAPPER ===== */
.card-wrapper {
    position: relative;
    min-width: 0;
    padding: 6px;
    grid-row: span 1;
    grid-column: span 1;
    height: 100%;
    width: auto;
    scroll-snap-align: start;
}

/* ===== SHOP CARD ===== */
.card-outer {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 0.627;
    outline: 3px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.15s;
}

.card-outer:hover {
    outline-color: rgba(255, 255, 255, 0.6);
}

.card-link {
    z-index: 1;
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    outline: 0;
    text-decoration: none;
    color: inherit;
}

/* Card Foreground Overlay */
.card-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Background */
.card-bg {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.card-bg-inner {
    position: absolute;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.card-outer:hover .card-bg-inner {
    transform: scale(1.03);
}

.card-bg-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.card-bg-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-char-img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    top: 0;
    left: 0;
}

.card-char-emoji {
    position: absolute;
    font-size: 120px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    line-height: 1;
    transition: transform 0.3s ease;
}

.card-outer:hover .card-char-emoji {
    transform: translateX(-50%) translateY(-50%) scale(1.03);
}

/* Card Top Area (badge area) */
.card-top {
    z-index: 10;
    display: flex;
    flex: 1;
    align-items: flex-end;
    padding: 16px;
    padding-bottom: 8px;
}

/* Card Info - Bottom Section */
.card-info-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card-info-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding-top: 128px;
    pointer-events: none;
}

.card-info-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    align-self: flex-end;
    padding: 0 16px 16px;
}

/* Card Name */
.card-name {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 668, "wght" 500;
    color: #fff;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 1023px) {
    .card-name {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .card-name {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Card Subtitle - Hidden, shown on hover */
.card-subtitle {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 19px;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 668, "wght" 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}

.card-outer:hover .card-subtitle {
    max-height: 100px;
    margin-bottom: 4px;
}

@media (max-width: 1023px) {
    .card-subtitle {
        font-size: 16px;
    }
}

/* Card Price Row */
.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    display: flex;
    align-items: center;
    line-height: 1;
}

.card-price-label {
    /* Screen reader only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.card-price-value {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 19px;
    font-weight: 400;
    font-variation-settings: "wdth" 668, "wght" 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
    position: relative;
    width: max-content;
}

@media (max-width: 1023px) {
    .card-price-value {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .card-price-value {
        font-size: 14px;
    }
}

.tbucks-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 4px;
    vertical-align: middle;
}

.tbucks-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== ARROW BUTTONS ===== */
.row-arrows {
    pointer-events: none;
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 0 4px;
}

.row-arrow {
    pointer-events: auto;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: rgb(31, 41, 55);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(32px);
    transition: all 0.2s;
    outline: none;
    padding: 0;
}

.row-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
}

.row-arrow.disabled {
    opacity: 0.4;
    background: rgba(236, 237, 238, 0.3);
    cursor: default;
}

.row-arrow svg {
    width: 1.25em;
    height: 1.25em;
}

/* ===== FOOTER ===== */
.item-shop-page .main-footer {
    position: relative;
    z-index: 1;
    background: rgba(4, 10, 63, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .shop-wrapper {
        padding: 0 24px;
        padding-top: 80px;
    }
}

@media (max-width: 767px) {
    .shop-wrapper {
        padding: 0 12px;
        padding-top: 70px;
    }

    .shop-content {
        margin-left: 0;
    }

    .row-arrows {
        display: none;
    }
}
