
.store-title-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    font-weight: 600;
}

.store-navbar {
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: #333;
    color: #fff;
}

.nav-link.active {
    color: var(--ast-global-color-1);
    border: 1px solid var(--ast-global-color-1);
}

.store-subtitle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 10px;
}

.formatted-date {
    font-size: 18px;
    color: var(--ast-global-color-1);
}

.change-date-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.change-date-button:hover {
    color: #fff;
    text-decoration: underline;
    background: transparent;
    border: none;
}

.change-date-button:focus {
    background: transparent;
}

.date-picker-wrapper {
    margin-top: 10px;
}


/* General Store Page Styles */
.store-page {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.store-page .super-big-window,
.store-page .regular-bundles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 40px;
    justify-items: center;
}

.costumes .regular-bundles {
    column-gap: 4px;
}

.store-page .super-big-window {
    grid-template-columns: repeat(2, 1fr);
}

/* Card Styling */
.super-big-card, .regular-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Desktop Card Sizes */
.super-big-card {
    width: 640px; /* Hardcoded desktop size */
    height: 362px;
}

.regular-card {
    width: 315px;
    height: 210px;
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 80%;
    text-align: center;
}

.background-image {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 70%;
    object-fit: cover;
    z-index: 1;
}

.skin-image {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    object-fit: cover;
    left: -5px;
    transition: filter 0.3s ease-out, transform 0.3s ease-out; /* Smooth transitions for hover-in and hover-out */
    will-change: transform, filter; /* Optimize for performance */
    image-rendering: -webkit-optimize-contrast; /* Keeps images sharp during scaling */
}

/* Bundle Bottom Styling */
.bundle-bottom {
    display: flex;
    align-items: center;
    background: var(--ast-global-color-8); /* Matches the theme color */
    z-index: 3;
    gap: 5px;
    clip-path: polygon(3.2% 0%, 100% 0%, 96.89% 100%, 0% 100%);
    position: absolute;
    bottom: -2px;
    left: -7px;
    width: 294px;
    border-top: 3px solid transparent;
}

.price-container {
    display: flex;
    align-items: end;
    margin-bottom: 3px;
    margin-left: 10px;
}

.unit-icon {
    width: 30px;
    height: 30px;
}

.unit-icon img {
    width: 100%;
    height: 100%;
}

.bundle-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 14px;
    margin-left: -2px;
}

.price.discount {
    font-size: 20px;
    font-weight: bold;
}

.price.original {
    text-decoration: line-through;
    color: #aaa;
}

.bundle-name-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
}

.bundle-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.rarity-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.rarity-icon img {
    width: 100%;
    height: 100%;
    margin-bottom: 4px;
}


.super-big-card .bundle-bottom {
    clip-path: polygon(1.5% 0%, 100% 0%, 98.5% 100%, 0% 100%);
    bottom: 30px;
    left: 0px;
    width: 587px;
}

.super-big-card .bundle-name {
    max-width: 350px;
}

.store-card[data-rarity="1"] .bundle-bottom {
    border-top-color: var(--quality-1-color);
}

.store-card[data-rarity="2"] .bundle-bottom {
    border-top-color: #3483ad; /*var(--quality-2-color);*/
}

.store-card[data-rarity="3"] .bundle-bottom {
    border-top-color: var(--quality-3-color);
}

.store-card[data-rarity="4"] .bundle-bottom {
    border-top-color: var(--quality-4-color);
}

.store-card[data-rarity="5"] .bundle-bottom {
    border-top-color: var(--quality-5-color);
}

a.store-card:hover {
    color: #fff;
    cursor: pointer;
}

a.store-card:hover .skin-image {
    transform: scale(0.98); /* Smooth zoom on hover */
    filter: brightness(1.2); /* Slight brightness increase */
}

/* Responsive Design */
@media (max-width: 360px) {
    .store-page .super-big-window,
    .store-page .regular-bundles {
        grid-template-columns: 1fr; /* 1 item per row for mobile */
    }


    .store-page .super-big-card,
    .store-page .regular-card {
        width: 280px;
        height: 170px;
    }

    .bundle-bottom {
        bottom: -12px !important;
        left: -6px !important;
        width: 261.5px !important;
    }

    .super-big-window .bundle-name,
    .bundle-name {
        max-width: 100px;
    }

    .super-big-card .bundle-bottom {
        clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    }

    .super-big-window .skin-image {
        bottom: -14px;
    }

    .skin-image {
        left: -7px;
        width: calc(100% - 3px);
    }

    .super-big-window .skin-image {
        left: -3px;
    }
}

@media (min-width: 360px) and (max-width: 768px) {
    .store-page .super-big-window,
    .store-page .regular-bundles {
        grid-template-columns: 1fr; /* 1 item per row for mobile */
    }


    .store-page .super-big-card,
    .store-page .regular-card {
        width: 320px;
        height: 192px;
    }

    .bundle-bottom {
        bottom: -8px !important;
        left: -6.28px !important;
        width: 298.35px !important;
        clip-path: polygon(3.2% 0%, 100% 0%, 96.89% 100%, 0% 100%) !important;
    }

    .super-big-window .bundle-name,
    .bundle-name {
        max-width: 139px;
    }

    .super-big-window .skin-image {
        bottom: -14px;
    }

    .skin-image {
        left: -8px;
        width: calc(100% - 3px);
    }
    
    .super-big-window .skin-image {
        left: -3px;
    }
}

@media (min-width: 768px) and (max-width: 1380px) {
    .store-page .super-big-window,
    .store-page .regular-bundles {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-card:nth-child(2n + 2) {
        left: -26px;
    }

    .store-page .super-big-card,
    .store-page .regular-card {
        width: 320px;
        height: 192px;
    }

    .bundle-bottom {
        bottom: -8px !important;
        left: -6.28px !important;
        width: 298.35px !important;
        clip-path: polygon(3.2% 0%, 100% 0%, 96.89% 100%, 0% 100%) !important;
    }

    .super-big-window .bundle-name,
    .bundle-name {
        max-width: 139px;
    }

    .super-big-window .skin-image {
        bottom: -14px;
    }

    .skin-image {
        left: -8px;
        width: calc(100% - 3px);
    }
    
    .super-big-window .skin-image {
        left: -3px;
    }
}

@media (max-width: 1380px) {
    .store-page {
        gap: 20px;
    }

    .unit-icon {
        margin-bottom: 2px;
    }
}

@media (min-width: 1380px) {
    .regular-card:nth-child(4n + 2) { /* 2nd item in each row */
        left: -30px;
    }
    
    .regular-card:nth-child(4n + 3) { /* 3rd item in each row */
        left: -60px;
    }
    
    .regular-card:nth-child(4n + 4) { /* 4th item in each row */
        left: -90px;
    }



    .super-big-card:nth-child(4n + 2) { /* 2nd item in each row */
        left: -60px;
    }

    .store-navbar {
        justify-content: left;
    }
}