:root {
    --store-hero: url('');
}
#store-container-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: scroll;
    z-index: 200;
}
#store-container-container.hidden {
    pointer-events: none;
}
#store-container-container::-webkit-scrollbar, #store-container-container::-webkit-scrollbar-track {
    display: none;
}
#store-container-container backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #264b409e;
    opacity: 1;
    transition: opacity 0.4s ease;
}
#store-container-container.hidden backdrop {
    opacity: 0;
}

#store-container-container cusion {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 40px;
    z-index: 201;
    pointer-events: none;
    transform: translateY(0) scale(1);
    transition: transform 0.4s ease;
}
#store-container-container.hidden cusion {
    transform: translateY(150%) scale(0.5);
}
/* Container */
.store-container {
    position: relative;
    pointer-events: auto;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.store-container .close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 30px;
    z-index: 3;
    box-shadow: 0 0 5px -2px black;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-container img[src=""] {
    display: none;
}
.store-container a {
    text-decoration: underline;
    color: var(--color-primary);
}
/* Header with blurred hero image effect */
.store-container .header {
    position: relative;
    display: flex;
    padding: 40px;
    min-height: 300px;
    background-color: #faf7f2;
    overflow: hidden;
    justify-content: space-between;
}
.store-container .header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    /* extend beyond for smoother fade */
    bottom: 0;
    left: 0;
    background: var(--store-hero) center right;
    background-size: cover;
    filter: blur(30px);
    transform: scale(1.1);
    z-index: 0;
}
.store-container .header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(250, 247, 242, 0) 40%, rgba(250, 247, 242, 1) 80%);
    z-index: 1;
}
.store-container .header-left {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
}
.store-container .header-right {
    pointer-events: none;
    position: relative;
    z-index: 2;
    width: 45%;
    max-width: calc(100% - 400px);
    border-radius: 8px;
    box-shadow: 0 0 8px 8px transparent inset;
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 90%);
    object-fit: contain;
}
.store-container .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}
.store-container .app-icon img {
    width: 100%;
    height: 100%;
}
.store-container .title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.store-container .tagline {
    margin: 16px 0;
    font-size: 1rem;
}
.store-container .purchase {
    margin: 20px 0;
}
.store-container .price-btn {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}
/* Screenshots section */
.store-container .screenshots {
    padding: 40px;
    background: #f5f5f5;
}
.store-container .screenshots:has(.gallery:empty) {
    display: none;
}
.store-container .screenshots h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.store-container .screenshots .gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.store-container .screenshots .gallery img {
    width: 450px;
    height: 310px;
    border-radius: 4px;
    object-fit: cover;
}
/* Description */
.store-container .description {
    padding: 40px;
}
.store-container .description:has(p:empty) {
    display: none;
}
.store-container .description h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.store-container .description p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 16px;
}