/* Six collectible frogs per page */
.boutique-avatar-store .boutique-avatar-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 5px !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

.boutique-avatar-store .boutique-avatar-card {
  min-height: 0 !important;
  height: 100% !important;
  padding: 4px !important;
}

.boutique-avatar-store .boutique-avatar-card[hidden] {
  display: none !important;
}

.boutique-avatar-store .boutique-view-switch {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 28px 34px 28px !important;
  gap: 3px !important;
  align-items: center !important;
}

.boutique-avatar-store .boutique-page-prev,
.boutique-avatar-store .boutique-page-next {
  border: 1px solid #c6a45c;
  border-radius: 7px;
  background: #173653;
  color: #ffe49d;
  font-size: 18px;
  font-weight: 900;
  height: 27px;
  cursor: pointer;
}

.boutique-avatar-store .boutique-page-prev:disabled,
.boutique-avatar-store .boutique-page-next:disabled {
  opacity: .35;
  cursor: default;
}

.boutique-avatar-store .boutique-page-count {
  font-size: 10px;
  text-align: center;
  font-weight: 900;
  color: #65451d;
}
/* Keep six frogs visible and protect their names */
.boutique-avatar-store .boutique-avatar-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 3px 4px !important;
    overflow: hidden !important;
}

.boutique-avatar-store .boutique-avatar-card > strong {
    order: -1 !important;
    flex: 0 0 auto !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    white-space: normal !important;
    text-align: center !important;
}

.boutique-avatar-store .boutique-avatar-card-art {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
}

.boutique-avatar-store .boutique-avatar-card > b {
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
}

.boutique-avatar-store .boutique-avatar-card > small {
    display: none !important;
}

.boutique-avatar-store .boutique-avatar-card[hidden] {
    display: none !important;
}


/* FROGGY SEASONAL TAB FIX */
@media (max-width: 679px) {
  .boutique-view-switch {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 3px 4px 8px !important;
    max-width: 100% !important;
    scroll-snap-type: x proximity;
  }

  .boutique-view-switch > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 100px !important;
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }
}
/* FROGGY TWO-ROW CATEGORY TABS START */

/* Eight equal buttons: four across, two rows. */
.boutique-panel.boutique-avatar-store .boutique-view-switch {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, auto) !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 4px 0 8px !important;
  margin: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  box-sizing: border-box !important;
}

.boutique-panel.boutique-avatar-store .boutique-view-switch > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: initial !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 4px 2px !important;
  margin: 0 !important;
  font-size: clamp(9px, 2.55vw, 12px) !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  scroll-snap-align: none !important;
  box-sizing: border-box !important;
}

/* Keep frog cards underneath the category buttons. */
.boutique-panel.boutique-avatar-store .boutique-product-grid {
  margin-top: 3px !important;
}

/* FROGGY TWO-ROW CATEGORY TABS END */
/* FROGGY SIX-SEASON GRID V3 */
.boutique-panel.boutique-avatar-store .boutique-view-switch {
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,36px)!important;
 gap:6px!important;
 height:78px!important;
 min-height:78px!important;
 max-height:none!important;
 width:100%!important;
 overflow:visible!important;
 padding:0!important;
 margin:0 0 8px!important;
 scroll-snap-type:none!important;
}
.boutique-panel.boutique-avatar-store .boutique-view-switch>button {
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 width:100%!important;
 min-width:0!important;
 max-width:none!important;
 height:36px!important;
 min-height:36px!important;
 max-height:36px!important;
 padding:3px!important;
 margin:0!important;
 font-size:12px!important;
 white-space:normal!important;
 flex:none!important;
}
/* FROGGY COMPACT BOUTIQUE V5 */

/* Remove the redundant wardrobe heading. */
.boutique-panel.boutique-avatar-store .boutique-gallery-header {
    display: none !important;
}

/* Keep categories above the frog cards. */
.boutique-panel.boutique-avatar-store {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding-top: 2px !important;
}

/* Six category boxes in two compact rows. */
.boutique-panel.boutique-avatar-store .boutique-view-switch {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    grid-template-rows: repeat(2,32px) !important;
    gap: 4px !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    flex: 0 0 68px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
}

/* Small character picture on left, name on one line. */
.boutique-panel.boutique-avatar-store .boutique-view-switch > button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 2px !important;
    margin: 0 !important;
    font-size: clamp(9px,2.5vw,12px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    flex: none !important;
}

.boutique-panel.boutique-avatar-store .boutique-view-switch > button::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 26px !important;
    flex: 0 0 18px !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.boutique-view-switch > button:nth-child(1)::before {
    background-image: url("assets/seasonal-frogs/daisy-darling.png");
}
.boutique-view-switch > button:nth-child(2)::before {
    background-image: url("assets/seasonal-frogs/surfer-dude.png");
}
.boutique-view-switch > button:nth-child(3)::before {
    background-image: url("assets/seasonal-frogs/harvest-hank.png");
}
.boutique-view-switch > button:nth-child(4)::before {
    background-image: url("assets/seasonal-frogs/frosty-finn.png");
}
.boutique-view-switch > button:nth-child(5)::before {
    background-image: url("assets/seasonal-frogs/pumpkin-princess.png");
}
.boutique-view-switch > button:nth-child(6)::before {
    background-image: url("assets/seasonal-frogs/elfie-ellie.png");
}

/* Keep the original beautiful character cards below. */
.boutique-panel.boutique-avatar-store .boutique-product-grid {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows: minmax(160px,auto) !important;
    gap: 6px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    overflow: visible !important;
}

.boutique-panel.boutique-avatar-store .boutique-avatar-card {
    height: auto !important;
    min-height: 160px !important;
    max-height: none !important;
}

.boutique-panel.boutique-avatar-store .boutique-avatar-card-art {
    min-height: 105px !important;
}

.boutique-panel.boutique-avatar-store .boutique-selected-panel {
    position: relative !important;
    margin-top: 5px !important;
}

/* END FROGGY COMPACT BOUTIQUE V5 */
/* FROGGY FULL BODY FIT V6 */

/* Smaller seasonal selection boxes. */
.boutique-panel.boutique-avatar-store .boutique-view-switch {
    grid-template-rows: repeat(2, 27px) !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    flex: 0 0 58px !important;
    gap: 4px !important;
}

.boutique-panel.boutique-avatar-store .boutique-view-switch > button {
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
    font-size: 11px !important;
}

.boutique-panel.boutique-avatar-store .boutique-view-switch > button::before {
    width: 15px !important;
    height: 21px !important;
    flex: 0 0 15px !important;
}

/* Three rows of complete frog cards. */
.boutique-panel.boutique-avatar-store .boutique-product-grid {
    grid-auto-rows: 132px !important;
    gap: 4px !important;
}

.boutique-panel.boutique-avatar-store .boutique-avatar-card {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    box-sizing: border-box !important;
    padding: 2px !important;
}

/* Fit the COMPLETE frog image, including shoes. */
.boutique-panel.boutique-avatar-store .boutique-avatar-card-art {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.boutique-panel.boutique-avatar-store .boutique-avatar-card-art img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* END FROGGY FULL BODY FIT V6 */
/* FROGGY BOUTIQUE - REMOVE BOTTOM PLAYER BOX */
.boutique-panel.boutique-avatar-store .boutique-selected-panel {
    display: none !important;
}


/* FROGGY BOUTIQUE - LARGER FROG ART V8 */

/* Preserve the existing navy-blue card dimensions. */
.boutique-panel.boutique-avatar-store .boutique-avatar-card-art img {
    transform: scale(1.15) !important;
    transform-origin: center center !important;
    object-fit: contain !important;
}

/* FROGGY DOUGH PROFESSIONAL PRICE STYLE V9 */
.boutique-panel.boutique-avatar-store .boutique-avatar-card > strong {
    display: block !important;
    width: max-content !important;
    max-width: 98% !important;
    margin: 0 auto !important;
    padding: 2px 5px !important;
    border-radius: 9px !important;
    background: rgba(14, 32, 50, .78) !important;
    color: #ffe0a0 !important;
    font-family: Arial, sans-serif !important;
    font-size: clamp(9px, 2.05vw, 11px) !important;
    font-weight: 800 !important;
    letter-spacing: .15px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.2) !important;
}
/* END FROGGY DOUGH PRICE STYLE V9 */
/* FROGGY BOUTIQUE ELEGANT LETTERING V10 */

/* Small, professional purchase price. */
.boutique-panel.boutique-avatar-store .boutique-avatar-card > strong {
    width: auto !important;
    max-width: 100% !important;
    padding: 1px 2px !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #f4c96c !important;
    font-family: "Trebuchet MS", Arial, sans-serif !important;
    font-size: clamp(8px, 1.75vw, 9px) !important;
    font-weight: 700 !important;
    letter-spacing: .35px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Give the character NAMES the beautiful boutique styling. */
.boutique-panel.boutique-avatar-store .boutique-avatar-card > b {
    display: block !important;
    align-self: center !important;
    width: fit-content !important;
    max-width: 98% !important;
    margin: 0 auto !important;
    padding: 2px 7px !important;
    background: rgba(23, 43, 65, .85) !important;
    border: 1px solid rgba(224, 184, 103, .65) !important;
    border-radius: 9px !important;
    color: #fff0ce !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(11px, 2.55vw, 13px) !important;
    font-weight: 700 !important;
    letter-spacing: .15px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.22) !important;
}

/* END FROGGY BOUTIQUE ELEGANT LETTERING V10 */
/* FROGGY BOUTIQUE - ELEGANT NAMES WITHOUT BOXES V11 */
.boutique-panel.boutique-avatar-store .boutique-avatar-card > b {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1px 2px !important;
    color: #fff0ce !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(11px, 2.55vw, 13px) !important;
    font-weight: 700 !important;
    text-align: center !important;
}
/* END NAME BOX REMOVAL V11 */