/* =========================
   Shop subnav as "wood tiles"
   ========================= */

#subnav{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}

/* SUBNAV buttons: wood texture + glass overlay */

#subnav button{
  position: relative;
  cursor: pointer;

  min-width: 118px;
  padding: 16px 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;

  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.20)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 8px,
      rgba(0,0,0,.06) 8px,
      rgba(0,0,0,.06) 16px
    ),
    linear-gradient(180deg, #7a4a20, #5a3315);

  box-shadow:
    0 10px 18px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.18);

  transition: transform .08s ease, filter .12s ease;

  font-weight: 800;
  font-size: 16px;
  text-transform: capitalize;
  text-shadow: 0 3px 10px rgba(0,0,0,.55);
}

#subnav button:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#subnav button:active{
  transform: translateY(1px);
}

#subnav button.active{
  outline: 2px solid rgba(242, 211, 107, .85);
  box-shadow:
    0 12px 22px rgba(0,0,0,.40),
    0 0 0 4px rgba(242, 211, 107, .18),
    inset 0 1px 0 rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(0,0,0,.42)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 8px,
      rgba(0,0,0,.06) 8px,
      rgba(0,0,0,.06) 16px
    ),
    linear-gradient(180deg, #c17839, #b35a17);
  transform: scale(1.04);
}

#subnav button::before{
  content: attr(data-page);
  position: absolute;
  left: 10px;
  top: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  opacity: .75;
}

/* =========================
   Table frame + table
   ========================= */

#page-content{
  margin-top: 6px;
}

.shop-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  overflow: hidden;
}

#page-content .table-frame{
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(242,211,107,.35), rgba(60,40,10,.55));
  padding: 10px;
  border-radius: 22px;
  box-shadow:
    0 18px 34px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.22);
}

#page-content .table-inner{
  border-radius: 18px;
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

#page-content .table-scroll{
  max-height: 420px;
  overflow: auto;
}

.shop-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;

  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.95);
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shop-table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

.shop-table tbody tr:hover{
  background: rgba(255,255,255,.06);
}

.shop-icon{
  width: 28px;
  height: 28px;
  vertical-align: middle;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

th[data-sort]{
  cursor: pointer;
  user-select: none;
}

th[data-sort].asc::after{
  content: " ▲";
  color: rgba(242,211,107,.95);
  font-size: 12px;
}
th[data-sort].desc::after{
  content: " ▼";
  color: rgba(242,211,107,.95);
  font-size: 12px;
}

/* =========================
   Event accordion (collapsible)
   ========================= */

.event-accordion{
  margin: 10px 0 14px;
  border-radius: 16px;
  overflow: hidden;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  transition: transform 0.2s ease-in-out;
}

.event-summary{
  cursor: pointer;
  list-style: none; /* removes default marker in some browsers */
  padding: 14px 16px;
  transition: filter 0.2s ease, background 0.2s ease;

  font-weight: 900;
  letter-spacing: .3px;
  text-shadow: 0 6px 16px rgba(0,0,0,.55);

  background: rgba(0,0,0,.40);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  gap: 10px;
}

/* remove the default triangle in Chrome/Safari */
.event-summary::-webkit-details-marker{
  display: none;
}

/* custom arrow */
.event-summary::before{
  content: "▶";
  display: inline-block;
  width: 18px;
  color: rgba(242,211,107,.95);
  transform: translateY(-1px);
  transition: transform .15s ease;
}

/* rotate arrow when open */
.event-accordion[open] > .event-summary::before{
  transform: rotate(90deg) translateX(1px);
}

.event-content{
  padding: 12px 14px 16px;
}

/* =========================
   Custom Scrollbar (Gold / Wood)
   ========================= */

#page-content .table-scroll::-webkit-scrollbar{
  width: 14px;
}

#page-content .table-scroll::-webkit-scrollbar-track{
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  margin: 6px;
}

#page-content .table-scroll::-webkit-scrollbar-thumb{
  background:
    linear-gradient(
      180deg,
      rgba(255,235,170,.95),
      rgba(210,165,70,.95)
    );
  border-radius: 999px;

  border: 3px solid rgba(0,0,0,.45);
  box-shadow:
    inset 0 0 6px rgba(255,255,255,.35),
    0 6px 12px rgba(0,0,0,.35);
}

#page-content .table-scroll::-webkit-scrollbar-thumb:hover{
  background:
    linear-gradient(
      180deg,
      rgba(255,245,190,1),
      rgba(230,180,90,1)
    );
}

/* =========================
   Fix shop table image column
   ========================= */

/* Make image column wider */
.shop-table th:first-child,
.shop-table td:first-child{
  width: 56px;
  min-width: 56px;
  padding-left: 14px;
  padding-right: 6px;
}

/* Align image nicely */
.shop-table td:first-child{
  text-align: left;
}

/* Ensure icons are not distorted */
.shop-icon{
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.shop-table tbody tr:hover .shop-icon{
  transform: scale(1.12);
  transition: transform .12s ease;
}

/* Premium table subtle glow */
.premium-table{
  box-shadow: inset 0 0 0 2px rgba(242,211,107,.25);
}

.premium-icon{
  filter:
    drop-shadow(0 0 6px rgba(242,211,107,.65))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

/* EVENT ICON COLORS */
.Beta-icon{
  filter:
    drop-shadow(0 0 6px rgba(242, 237, 107, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

.Christmas-icon{
  filter:
    drop-shadow(0 0 6px rgba(107, 240, 242, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

.Valentines-icon{
  filter:
    drop-shadow(0 0 6px rgba(242, 107, 107, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

.Easter-icon{
  filter:
    drop-shadow(0 0 6px rgba(107, 242, 127, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

.Pirates-icon{
  filter:
    drop-shadow(0 0 6px rgba(72, 191, 145, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

.Happy-Birthday-icon{
  filter:
    drop-shadow(0 0 6px rgba(255, 47, 220, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

.Valentines-Day-icon{
  filter:
    drop-shadow(0 0 6px rgba(255, 47, 193, 0.85))
    drop-shadow(0 3px 6px rgba(0,0,0,.45));
}

/* event colors */
.event-Beta{ background: rgba(252, 227, 114, 0.4); }
.event-Christmas{ background: rgba(128, 193, 254, 0.4); }
.event-Valentines-Day{ background: rgba(254, 128, 128, 0.4); }
.event-April-Fools{ background: rgba(255, 127, 155, 0.4); filter: sepia(4) saturate(0.3); color: gray; }
.event-Easter{ background: rgba(140, 255, 160, 0.40); }
.event-Pirates{ background: rgba(119, 250, 228, 0.4); }
.event-Bee-Shower{ background: rgba(253, 247, 135, 0.4); filter: sepia(4) saturate(0.3); color: gray; }
.event-Happy-Birthday{ background: rgba(249, 128, 255, 0.4); }
.event-Halloween{ background: rgba(255, 187, 127, 0.4); }

/* little hover polish */
.event-summary:hover:not(.event-April-Fools):not(.event-Bee-Shower){
  filter: saturate(2) brightness(1.15);
  opacity: 0.95;
}

.event-accordion:hover:not(:has(.event-April-Fools)):not(:has(.event-Bee-Shower)){
  transform: scale(1.01);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

.ui-icon{
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}

.ui-emoji{
  width: 22px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

.event-title{
  display: inline-block;
}

.event-summary-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}

.event-summary-title{
  flex:1;
}

.event-summary-icon{
  width:22px;
  height:22px;
  object-fit:contain;
  flex:0 0 auto;
}






.price-is-gold-title {
  color: rgb(255, 140, 0) !important;
}

.price-is-gold {
  color: gold !important;
}

.price-is-cash-title {
  color: green !important;
}

.price-is-cash {
  color: #77DD77 !important;
}