/* Shop Container */
.shop {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates 3 equal-width columns */
    gap: 6px; /* Space between items */
    padding: 10px;
    background-color: #2d2d2d; /* Dark background for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    color: #fff;
    overflow-y: auto; /* Allow scrolling if items overflow */
    overflow-x:hidden;
    max-height: 100%; /* Prevent the shop from expanding too much */
    box-sizing: border-box;
}

/* Shop Item */
.shop .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between elements within an item */
    padding: 10px 23px;
    background-color: #2a2a2a;
    border: 2px solid #222222;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth hover effect */
}

.shop .item:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Item Image */
.shop .item img {
    width: 64px;
    height: 64px;
    object-fit: cover; /* Ensure the image stays within bounds */
    border-radius: 5px;
    border: 1px solid #555;
}

/* Item Name */
.shop .item p {
    margin: 0;
    font-size:11px;
    font-weight: bold;
    color: #ddd;
}

/* Buy Button */
.shop .item button {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF; /* Primary button color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shop .item button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.shop .item button:active {
    background-color: #003f7f; /* Even darker when clicked */
}

/* Responsive Layout */
@media (max-width: 900px) {
    .shop {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on smaller screens */
    }
}

@media (max-width: 600px) {
    .shop {
        grid-template-columns: 1fr; /* 1 item per row on very small screens */
    }
}
