/* Shop Styles */
#shop-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 35px;
    overflow: hidden;
    font-family: Luckiest;
    z-index: 10;
  }
  
  .shop-background {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 2.5%;
  }
  
  .shop-content {
    background-color: var(--card-color);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    height: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  
  /* Main Tabs */
  .shop-tabs {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    background-color: var(--card-color);
    z-index: 10;
    padding: 10px 0;
    margin-top: 0;
    padding-top: 10px;
  }
  
  .shop-tab {
    background-color: var(--primary-color);
    font-family: Luckiest;
    color: white;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-weight: lighter;
    box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.228);
  }
  
  .shop-tab.active {
    background-color:var(--secondary-color);
  }
  
  /* Sub-Tabs */
  .sub-tabs {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 50px; /* Adjust based on the height of main tabs */
    background-color: var(--card-color);
    z-index: 9;
    padding: 5px 10px 20px 20px;
    font-family: Luckiest;
    font-weight: lighter;
  }
  
  .sub-tabs .shop-tab {
    padding: 8px 16px;
    font-size: 1em;
  }
  
  .sub-tabs .shop-tab.active {
    background-color: var(--secondary-color);
  }
  
/* Shop Sections Container */
.shop-sections-container {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Shop Section */
.shop-section {
    width: 100%;
    height: auto;
    display: none;
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
}

.shop-section.active {
    display: block;
    visibility: visible;
    position: relative;
}

/* Items Grid */
.items-grid {
    width: 100%;
    max-width: 400px;
    display: grid;
    gap: 0px;
    margin: 0 auto;
}

/* Shop Item */
.shop-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin: 10px 20px;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    max-width: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.228);
    border: 1px solid rgb(46, 46, 46);
}

.shop-item img {
    border-radius: 5px;
    object-fit: contain;
    padding: 0 8px;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
}

.item-name {
    display: none;
}

.item-description {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #555;
}

.item-price {
    font-size: 0.8em;
    margin-bottom: 4px;
    color: #666;
    padding: 0 8px;
}

.powerup-quantity {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 8px;
}

.powerup-quantity input {
    width: 35px;
    height: 20px;
    text-align: center;
    padding: 2px;
    font-size: 0.75em;
}

.powerup-quantity label {
    font-size: 0.75em;
}

.item-action {
    padding-bottom: 8px;
}

.item-action .btn {
    padding: 4px 8px;
    font-family: Luckiest;
    font-size: 0.75em;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    min-width: 45px;
    max-width: 60px;
    margin: 0 auto;
    height: 24px;
    line-height: 1;
}

.item-action .btn:hover {
    filter: brightness(110%);
}

.item-action .btn.using {
    background-color: var(--secondary-color); /* Green color for "Using" */
}

.item-action .btn.use {
    background-color: var(--primary-color); /* Blue color for "Use" */
}

.item-action .btn.buy {
    background-color: var(--accent-color); /* Keep existing red color for "Buy" */
}

/* Scrollbar Styling (Optional) */
.shop-section::-webkit-scrollbar {
    width: 8px;
}

.shop-section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
  
/* Ensure consistent styling between cosmetic and powerup sections */
#cosmetics-items .items-grid,
#powerups-items.items-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Cosmetic items - taller */
#cosmetics-section .shop-item {
    min-height: 200px;
}

/* Powerup items - shorter */
#powerups-section .shop-item {
    min-height: 170px;
}

/* Images - larger for cosmetics */
#cosmetics-section .shop-item img {
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
}

/* Images - smaller for powerups */
#powerups-section .shop-item img {
    margin: 0 auto 4px;
}

/* Shop Banner */
.shop-banner {
  background-color: var(--secondary-color);
  padding: 12px;
  text-align: center;
  font-size: 1.8em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Ensure consistent spacing in both sections */
#cosmetics-items,
#powerups-items {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
  
/* Cosmetics and Powerups sections specific styling */
#cosmetics-section,
#powerups-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* New item banner style */
.item-banner {
    background-color: rgb(46, 46, 46);
    /* background-color: var(--accent-color); */
    /* border: 3px solid black; */
    color: white;
    padding: 6px;
    font-size: 0.9em;
    width: 101%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    box-sizing: border-box;
}