body {
    margin: 0;
    padding: 0;
    background-color: var(--Color3);
}

#Store-Space {
    position: absolute;
    top: 10vh;
    width: 100vw;
    height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    box-sizing: border-box;
}

#Shop-Header {
    width: 90vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3vh;
    margin-bottom: 2vh;
}

#Shop-txt {
    font-family: "Bebas nueve", sans-serif;
    font-weight: 600;
    letter-spacing: 0.8vw;
    color: var(--Text);
    margin: 0;
    font-size: 3rem;
}

#Shop-Controls {
    display: flex;
    gap: 20px;
}

.control-pill {
    background-color: rgba(255, 255, 255, 0.05);
    /* Glass feel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--Text);
    transition: 0.3s;
}

.control-pill:hover,
.control-pill:focus-within {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--Color1);
}

.control-pill input,
.control-pill select {
    background: transparent;
    border: none;
    color: var(--Text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    width: 150px;
    /* Base width */
}

/* Remove default appearance for select to style it cleanly */
.control-pill select {
    appearance: none;
    cursor: pointer;
}

.control-pill svg {
    stroke: var(--Accent);
}

#Shop-Container {
    width: 90vw;
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    /* Dug-in effect */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Contain scroll */
    position: relative;
}

#Item-Area {
    width: 100%;
    height: 100%;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Keep items left-aligned generally */
    overflow-y: auto;
    padding: 20px;
    gap: 30px;
    box-sizing: border-box;
}

/* Footer nested inside container */
#Shop-Footer {
    padding: 10px;
    display: flex;
    justify-content: center;
    color: var(--Accent);
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-item-li {
    /* Ensure no extra margin messes up flex layout */
    margin: 0;
}

.item {
    width: 250px;
    /* Fixed width for consistency */
    height: auto;
    background-color: #e6e7e6;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: #891214 solid 4px;
    font-family: "Inter", sans-serif;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.item h1 {
    font-size: 1.2rem;
    padding: 10px 10px 0 10px;
    margin: 0;
    color: #1a1a1a;
}

.item h2 {
    font-size: 1.1rem;
    padding: 5px 10px 15px 10px;
    margin: 0;
    color: var(--Color1);
    font-weight: 700;
}

/* Shop Empty State */
.shop-empty-state {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: whitesmoke;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border: 3px solid whitesmoke;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2vh;
    opacity: 0.8;
}

.shop-empty-state h2 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 2px;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #Shop-Header {
        flex-direction: column;
        gap: 20px;
    }

    #Shop-Controls {
        width: 100%;
        flex-direction: column;
    }

    .control-pill {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .control-pill input,
    .control-pill select {
        width: 100%;
    }

    #Item-Area {
        justify-content: center;
    }
}