/* Shop page specific styles */

.shop-header {
    text-align: center;
    padding: 40px 20px;
}

.shop-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.player-info-section {
    padding: 20px;
    text-align: center;
    background-color: transparent;
    max-width: 600px;
    margin: 0 auto;
}

.player-info-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.player-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.player-inputs input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    min-width: 220px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 5px; /* Even further reduced gap */
    padding: 20px 40px 40px 40px;
    align-items: start; /* Let cards have their own height */
}

.shop-item {
    background-color: #d9c2ff;
    border-radius: var(--border-radius);
    text-align: center;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: #333;
}

.shop-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.item-bundle {
    display: flex;
    justify-content: center;
    gap: 5px; /* Reduced gap */
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sub-item {
    background-color: transparent;
    border-radius: 12px;
    width: 68px; /* Reduced width */
    height: 115px; /* Reduced height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 5px 0 5px; /* Adjusted padding */
    position: relative;
}

.sub-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    z-index: -1; /* Behind the content */
}

.sub-item-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    height: 28px;
    text-align: center;
    line-height: 1.2;
}

.sub-item-image {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-item-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sub-item-quantity {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(220, 220, 230, 0.7);
    padding: 4px 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.shop-item-footer {
    margin-top: auto; /* Pushes the footer to the bottom */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers the items in the footer */
    gap: 10px;
    padding-top: 15px; /* Add some space above the footer */
}

.bonus-points {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.bonus-points span {
    background-color: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: max-content;
}

.price-button-wrapper {
    flex-shrink: 0;
}

.buy-btn {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-btn i {
    font-size: 1.2rem;
}

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.6); }
.modal-content { background-color: #fff; margin: 15% auto; padding: 30px; border-radius: var(--border-radius); width: 80%; max-width: 500px; text-align: center; color: #333; }
.modal-content h2 { color: #d9c2ff; margin-bottom: 1rem; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }