/* Hide Breadcrumb Completely */
.breadcrumb {
  display: none !important;
}

:root {
  --primary: #1d5349;       /* main dark-green text */
  --hover-accent: #ed2e4d;  /* crimson for sidebar hover */
  --bg-page: #fafcfd;
  --bg-widget: #fff;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --font: 'Inter', sans-serif;
  
    --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #444;
  
}

/* --- General Reset & Smooth Scrolling --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

[data-bs-theme="dark"] html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

[data-bs-theme="dark"] html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

[data-bs-theme="dark"] html::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--primary);
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────────────────────── */
/* USERNAME ENTRY MODAL — match rankDetailModal styling but keep default positioning */
/* 1. overall size and rounding */
#usernameModal .btn-close:focus,
#usernameModal .btn-close:active {
  outline: none !important;
}
#usernameModal .modal-dialog {
  max-width: 500px;                                    /* a bit narrower than the rank modal */
}
#usernameModal .modal-content {
  border-radius: 12px;                                 /* same rounding as rankDetailModal */
  overflow: hidden;
}

/* 2. header — remove default border, bump padding, use brand font/color */
#usernameModal .modal-header {
  padding: 1.5rem 1.75rem;                             /* same as rankDetailModal */  
  border-bottom: none;
}
#usernameModal .modal-header .modal-title {
  margin: 0;
  font-size: 1.75rem;                                  /* slightly smaller than rank title */
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
}

/* 3. body — consistent padding */
#usernameModal .modal-body {
  padding: 1.5rem 1.75rem;                             /* same gutter as rankDetailModal */  
}

/* 4. form elements — full-width input and matching button colors */
#usernameModal .form-label {
  font-weight: 600;
  color: var(--primary);
}
#usernameModal .form-control {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
#usernameModal .btn-primary {
  background-color: var(--tblr-primary) !important;
  border-color: var(--tblr-primary) !important;
  padding: 0.75rem 1.5rem;                             /* match your other buttons */
  font-weight: 600;
}
#usernameModal .btn-primary:hover {
  background-color: var(--hover-accent) !important;
  border-color: var(--hover-accent) !important;
}

/* 5. preserve default modal positioning (no .modal-dialog-centered added) */

/* ────────────────────────────────────────────────────────────────────── */
/* IMAGE OVERLAY “View” BUTTON */
.card-product .img-container {
  position: relative;
  overflow: hidden;
}
.card-product .img-container img {
  display: block;
  width: 100%;
  height: 300px;
}

/*.view-btn2 {
	background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    color: #6e6e6e !important;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}*/

.card-product .view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29,83,73,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  font-size: 1rem;

}
.card-product:hover .view-btn {
  opacity: 1;
}
.page-title {
  /* your existing rules… */
  scroll-margin-top: 6rem;   /* ← adjust this value until your title sits perfectly */
}

.ti-circle-check {
	color: #ed2e4d;
}

.card-product .img-container {
  position: relative;
}
.card-product .view-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(29,83,73,0.85);
  color: #fff;
  border-radius: 50%;
  width: 3rem; height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.card-product .img-container:hover .view-btn {
  opacity: 1;
}

/* ────────────────────────────────────────────────────────────────────── */
/* RANK DETAIL POPUP: two-column card, custom header & footer styling */
/* 1. horizontal gutter inside the body */
/* ───────────────────────────────────────────────────── */
#rankDetailModal .modal-dialog {
  max-width: 800px;
  width: 100%;
  margin: 1.75rem auto;
}

.btn-success:hover {
	background: var(--hover-accent) !important;
}

/* 2) body → two columns, top-aligned, no nasty wrapping */
#rankDetailModal .modal-body {
  display: flex;
  align-items: flex-start;   /* both columns start at same vertical spot */
  flex-wrap: nowrap;         /* keep them side-by-side until we hit mobile */
  padding: 1.5rem 1.75rem;
  gap: 2rem;
}

/* 3) image column: fixed basis but fluid inside */
#rankDetailModal .image-col {
  flex: 0 0 350px;           /* tweak this to taste */
  max-width: 350px;
  width: 100%;
}
#rankDetailModal .image-col img,
#rankDetailModal #rankDetailImage {
  display: block;
  width: 100% !important;    /* drop that old 80% */
  height: auto !important;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
}

/* 4) content column just flex-grows */
#rankDetailModal .content-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ───────────────────────────────────────────────────── */
/* Header — full‐width title flush to the edges         */
#rankDetailModal .modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: none;
}
#rankDetailModal .modal-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
}

/* ───────────────────────────────────────────────────── */
/* Body — 2‐column flex layout, consistent gutters      */
#rankDetailModal .modal-body {
  display: flex;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
  gap: 2rem;
}
#rankDetailModal .image-col {
  flex: 0 0 320px;
}
#rankDetailModal .image-col img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
#rankDetailModal .content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#rankDetailModal .content-col h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
#rankDetailModal .content-col .sub {
  font-size: 0.95rem;
  color: #555;
}
#rankDetailModal .content-col h4 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
#rankDetailModal .content-col ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}
#rankDetailModal .content-col ul li {
  margin-bottom: 0.5rem;
}
#rankDetailModal .content-col .italic {
  font-style: italic;
  color: #666;
}

/* ───────────────────────────────────────────────────── */
/* Footer — no extra whitespace, button right-aligned   */
#rankDetailModal .modal-footer {
  padding: 1rem 1.75rem;
  border-top: none;
  justify-content: flex-end;
}
#rankDetailModal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

#rankDetailImage {
  display: block;
  width: 80% !important;
  height: auto !important;
  border-radius: 1rem;  /* ↑ bump this up or down to taste */
  overflow: hidden;     /* ensure the image itself is clipped to the rounding */
}


/* ───────────────────────────────────────────────────── */
/* Nix any stray empty text node under the body         */
#rankDetailModal .modal-body > empty-collapsed { display: none; }

/* ────────────────────────────────────────────────────────────────────── */
/* PAGE TITLE: full-width flex + extra bottom spacing */
@font-face {
  font-family: 'GILSANUB';
  src: url('/fonts/GILSANUB.woff2') format('woff2'),
       url('/fonts/GILSANUB.woff')  format('woff'),
       url('/fonts/GILSANUB.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
}
.page-title {
  display: flex;               /* full-width flex container instead of inline-flex */
  align-items: center;
  font-family: 'GILSANUB', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 30px !important;         /* ↑ bottom margin bumped to 8rem */
}

.page-title img.page-title-icon {
  height: 1em;
  width: auto;
  margin-right: 0.75rem;
}



/* --- Store Section & Container Layout --- */
.store-section {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
}
.container.store-page {
  position: relative;
  padding: 2rem 0;
  background: var(--bg-page);
}

/* --- Left Navigation (Store Nav) — Styled like rules-sidebar, enlarged */
/* --- Left Navigation (Store Nav) — Styled like rules-sidebar, centered vertically */
.store-nav {
  position: fixed;
  top: 50%;
  left: 160px;
  transform: translateY(-50%);
  background: transparent;
  border-left: 4px solid var(--primary);
  padding: 2rem;
  width: 260px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.store-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.store-nav li {
  margin-bottom: 1.5rem;
}
.store-nav a,
.store-nav button {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.store-nav a:hover,
.store-nav button:hover,
.store-nav a.active {
  color: var(--hover-accent);
  transform: translateX(6px);
}
.store-nav a:hover::before,
.store-nav button.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: calc(100% - 1.2rem);
  background: var(--hover-accent);
  border-radius: 2px;
}

/* Cart Link Styling: single row and spaced */

/* Highlight the item-count and total price */
.store-nav .cart-nav-link #cartCount {
  color: #ed2e4d;    /* crimson accent */
  font-weight: bold;
}

/* De-emphasize the separator */
.store-nav .cart-nav-link .cart-separator {
  color: var(--primary);
  opacity: 0.6;
  margin: 0 0.25rem;
}

/* Keep the entire link on one line, with a small gap */
.store-nav .cart-nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.5rem;
}


.store-nav ul li:last-child {
  margin-top: auto;
}
.store-nav ul li:last-child a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.store-nav ul li:last-child a:hover {
  background: none;
  color: var(--hover-accent);
  transform: none;
}
.store-nav ul li:last-child {
  margin-top: auto;
}
.store-nav ul li:last-child a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-nav ul {
  list-style: none;
}
.store-nav li + li {
  margin-top: 1.5rem;
}
.store-nav a,
.store-nav button {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.store-nav a:hover,
.store-nav button:hover,
.store-nav a.active {
  color: var(--hover-accent);
  transform: translateX(6px);
}
.store-nav a:hover::before,
.store-nav button.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: calc(100% - 1.2rem);
  background: var(--hover-accent);
  border-radius: 2px;
}

.store-nav h3 {
  /* hide header */
  display: none;
}
.store-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.store-nav li {
  margin-bottom: 0.5rem;
}
.store-nav a {
  display: block;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  color: var(--primary);
  transition: background 0.3s ease, color 0.3s ease;
}
.store-nav a:hover,
.store-nav a:focus {
  background: rgba(0, 0, 0, 0.1);
}

.store-nav a[href="#slotbots"] {
  font-weight: bold !important;
  pointer-events: none;
  cursor: default;
}
.store-nav a[href="#ranks"] {
  font-weight: bold !important;
  background: none !important;
}


/* --- Main Content Area --- */
.store-content {
  margin-left: 300px; /* sidebar width + buffer */
  padding: 1rem;
  background: transparent;
}

/* --- Subcategories & Product Listing --- */
.store-categories,
.row-gap-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ====================================================================
   Product Card Styling: slightly wider (“thicker”) cards
   ==================================================================== */
/* ─── Aligned Bullet List in Product Cards ─────────────────────────── */


.card-product .product-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;          /* keep some space below the list */
}
.card-product .product-content li {
  position: relative;
  padding-left: 24px;        /* 18px icon + 6px gap */
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;          /* ensure wrapped lines sit nicely */
  color: #6e6e6e;
}
.card-product .product-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('assets/icons/check.svg');
}
.card-product .product-content li.enabled {
  color: var(--primary);
  font-weight: 600;
}

.card-product {
  display: flex;
  flex-direction: column;
  width: 180%;
  max-width: 800px;            /* increased from 380px → 420px */
  margin: 1rem;
  background: var(--bg-widget);
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
}
.card-product:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card-product > img {
  width: 100%;
  height: 200px;               /* fixed smaller height */
  object-fit: cover;
}

.card-product .product-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.card-product .product-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-product .product-content li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #6e6e6e;
}
.card-product .product-content li::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url('assets/icons/check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 0.2em;
}
.card-product .product-content li.enabled {
  color: var(--primary);
  font-weight: 600;
}

.card-product .product-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-page);
}
.card-product .product-footer .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
}
.card-product .product-footer .btn {
  background-color: #3AD07F;
  color: #1d5349;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.card-product .product-footer .btn:hover,
.card-product .product-footer .btn:disabled,
.card-product .product-footer .btn.loading {
  background-color: var(--hover-accent);  /* your crimson */
  color: #fff;
  transform: translateY(0);               /* cancel the green-button lift */
}

/* --- Footer Overlap Fix --- */
.footer {
  z-index: 999 !important;
}

/* ────────────────────────────────────────────────────────────────────── */
/* ADDITIONAL: Equal-width, equal-height cards & larger images          */
.store-categories,
.row-gap-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem;           /* sensible spacing between cards */
  align-items: stretch;/* force all cards to match the tallest */
}

.card-product {
  /* grow to fill equally, but cap at 500px wide */
  flex: 1 1 0;
  max-width: 500px;
  margin: 0;           /* no external margins—handled by gap() */
  
  /* full flex‐column so footer always at bottom */
  display: flex;
  flex-direction: column;
}

.card-product > img {
  width: 100%;
  height: 300px;       /* ↑ bumped up from 200px */
  object-fit: cover;
}

/* let the content block grow to push footer down */
.card-product .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* cap the perks list so it scrolls rather than stretching the card */
.card-product .product-content ul {
  max-height: 380px;
  overflow-y: auto;
}
.mobile-cart-float {
  display: none;
}

/* make the whole line clickable */
#cartNavLink {
  display: block;          /* could also be inline-block or inline-flex */
  width: 100%;             /* fill its <li> */
  text-decoration: none;   /* remove the underline */
  color: var(--primary);
  transition: color 0.2s ease, background 0.2s ease;
}

/* hover background + color */
#cartNavLink:hover {
  color: var(--hover-accent);
  background: none !important;;
}

/* optional: pointer cursor on the children too */
#cartNavLink span,
#cartNavLink strong {
  cursor: pointer;
}


/* ────────────────────────────────────────────────────────────────────── */
/* ─── Large Desktop: up to 1440px ───────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1600px) {
  .store-nav {
    left: 20px;
    width: 260px;
    padding: 1.5rem 1rem;
  }
  .store-content {
    margin-left: 300px;   /* sidebar + buffer */
    padding: 2rem;
  }
  .store-content .row.row-gap-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    column-gap: 8rem;
  }
  .card-product {
    width: 450px;
  }
}

@media (max-width: 1024px) and (min-width: 991px) {
  .store-nav {
    left: 10px;
    width: 110px;
    padding: 1.25rem 1rem;
  }
  .store-content {
    margin-left: 250px;  /* tighten up for tablet */
    padding: 1.5rem;
  }
  .store-content .row.row-gap-3 {
    column-gap: 8.5rem;    /* your bigger gap on tablet */
  }
  .store-categories,
  .row-gap-3 {
    gap: 0.5rem;
  }
  .card-product {
    width: 325px;
  }
  #rankDetailModal .modal-body {
    gap: 0.5rem;
  }
  #rankDetailModal .image-col {
    flex: 0 0 280px;
  }
}

@media (max-width: 990px) {
  .store-nav {
    left: 10px;
    width: 110px;
    padding: 1.25rem 1rem;
  }
  .store-content {
    margin-left: 250px;  /* tighten up for tablet */
    padding: 1.5rem;
  }
  .store-content .row.row-gap-3 {
    column-gap: 10rem;    /* your bigger gap on tablet */
  }
  .store-categories,
  .row-gap-3 {
    gap: 0.5rem;
  }
  .card-product {
    width: 500px;
  }
  #rankDetailModal .modal-body {
    gap: 0.5rem;
  }
  #rankDetailModal .image-col {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) and (min-width: 576px) {
  /* Hide sidebar navigation */
  .store-nav {
    display: none;
  }

  /* Make the container full-width and stick to left with 10px padding */
  .container.store-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Content flush left, push below nav, enforce 10px side padding */
  .store-content {
    margin-left: 0;
    padding-top: 1rem;
    padding-left: 0;
    padding-right: 10px;
  }

  /* Page title flush left with 10px inset */
  .page-title {
    margin: 0;
    padding-left: 10px;
  }

  /* Two-column layout: fixed 300px cards side-by-side with 10px gutters */
  .store-content .row.row-gap-3 {
    display: flex;
    flex-wrap: nowrap;     /* keep cards next to each other */
    gap: 10px;             /* 10px between cards */
    margin: 0;             /* remove Bootstrap row margins */
    padding: 0;
  }
  .store-content .row.row-gap-3 > [class*="col-"] {
    flex: 0 0 auto;
    width: 300px;          /* fixed card width */
    padding: 0;
    margin: 0;
  }
  .store-content .row.row-gap-3 .card-product {
    width: 100%;
    margin: 0;
  }

  /* Ensure internal content scales within cards */
  .card-product img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .card-product h3,
  .card-product ul,
  .card-product .price-block {
    word-wrap: break-word;
  }
/* ─── GLOBAL: force the mobile cart float truly fixed ───────────────── */
.mobile-cart-float {
  display: flex !important;           /* restore flex so the button actually shows */
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  top: auto !important;
  left: auto !important;
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow) !important;
  cursor: pointer !important;
  transform: none !important;
  z-index: 9999 !important;
}

/* icon inside it */
.mobile-cart-float img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
}

/* badge inside it */
.mobile-cart-float .cart-count {
  display: flex !important;
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  background: #e34;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}


}

@media (max-width: 575px) and (min-width: 516px) {
  /* ─── Navigation as top bar ───────────────────────────────────── */
  .store-nav {
    display: none;
  }
  .store-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .store-nav li {
    margin: 0;
  }

  /* ─── Push content below nav ──────────────────────────────────── */
  .store-content {
    margin-left: 0;
    padding-top: 1rem;
  }

  /* ─── Page title flush left with 10px inset ──────────────────── */
  .page-title {
    margin: 0;
    padding-left: 10px;
  }
  .page-title img.page-title-icon {
    height: 1em;
  }

  /* ─── Two-column product grid with responsive scaling ─────────── */
  .store-content .row.row-gap-3 {
    display: grid;
    /* two equal columns that shrink/grow fluidly */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* gap between cards */
    column-gap: 1rem;
    /* 5px breathing–room at edges */
    padding: 0 5px;
    margin: 0;  /* reset any Bootstrap row margins */
  }
  /* remove Bootstrap column padding */
  .store-content .row.row-gap-3 > [class*="col-"] {
    padding: 0;
    margin: 0;
  }
  /* cards fill their grid cells */
  .store-content .row.row-gap-3 .card-product {
    width: 100%;
    margin: 0;
  }
  /* ensure images/text can shrink */
  .card-product img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .card-product h3,
  .card-product ul,
  .card-product .price-block {
    word-wrap: break-word;
  }

  /* ─── Other necessary tablet tweaks ───────────────────────────── */
  .store-categories,
  .row-gap-3 {
    gap: 0.5rem;
  }
  #rankDetailModal .modal-body {
    flex-direction: column;
  }
  #rankDetailModal .image-col,
  #rankDetailModal .content-col {
    flex: none;
    width: 100%;
  }
  #usernameModal .btn-primary,
  #usernameModal .form-control {
    width: 100%;
    box-sizing: border-box;
  }
/* ─── GLOBAL: force the mobile cart float truly fixed ───────────────── */
.mobile-cart-float {
  display: flex !important;           /* restore flex so the button actually shows */
  position: fixed !important;
  bottom: 25px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow) !important;
  cursor: pointer !important;
  transform: none !important;
  z-index: 9999 !important;
}

/* icon inside it */
.mobile-cart-float img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
}

/* badge inside it */
.mobile-cart-float .cart-count {
  display: flex !important;
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  background: #e34;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}
}



@media (max-width: 515px) {
  /* Nav becomes a hamburger or hidden (you can plug in your JS toggle) */
    /* Sidebar becomes top nav */
  .store-nav {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    border-left: none;
    border-bottom: 4px solid var(--primary);
    padding: 0.5rem 1rem;
  }
  .store-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .store-nav li {
    margin: 0;
  }
  .store-content {
    margin-left: 0;
    padding-top: 1rem;        /* push content below nav */
  }

  /* Product cards full-width grid */
  .store-categories,
  .row-gap-3 {
    gap: 0.5rem;
  }
  .card-product {
    width: calc(50% - 1rem);
    margin: 0.5rem;
  }

  /* Modals stack columns vertically */
  #rankDetailModal .modal-body {
    flex-direction: column;
  }
  #rankDetailModal .image-col,
  #rankDetailModal .content-col {
    flex: none;
    width: 100%;
  }
  .store-nav {
    display: none;            /* hide for very small screens */
  }
  .store-content {
    padding: 0.5rem;
  }

  /* Make cards truly full-width */
  .card-product {
    width: 100%;
    margin: 0.5rem 0;
  }
  .card-product > img {
    height: auto;
  }

  /* Reduce typography sizes */
  .page-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem !important;
  }
  .page-title img.page-title-icon {
    height: 1em;
  }

  /* Buttons & inputs stretch full-width */
  #usernameModal .btn-primary,
  #usernameModal .form-control {
    width: 100%;
    box-sizing: border-box;
  }
/* ─── GLOBAL: force the mobile cart float truly fixed ───────────────── */
/* ─── Mobile Cart Button: always visible, fixed, and flex layout ───────────────── */
.mobile-cart-float {
  display: flex !important;           /* restore flex so the button actually shows */
  position: fixed !important;
  bottom: 25px !important;
  right: 10px !important;
  top: auto !important;
  left: auto !important;
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow) !important;
  cursor: pointer !important;
  transform: none !important;
  z-index: 9999 !important;
}

/* icon inside it */
.mobile-cart-float img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
}

/* badge inside it */
.mobile-cart-float .cart-count {
  display: flex !important;
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  background: #e34;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}

}

/* 4. Up to 320px (smallest phones) */
@media (max-width: 320px) {
	
  body {
    font-size: 14px;
  }
  	/*.view-btn2 {
		transform: translateY(-32px);
	}*/
  .card-product .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .card-product .product-footer .btn {
    width: 100%;
    text-align: center;
  }
  .card-product .product-footer .price {
    width: 100%;
  }
  /* further tighten gutters */
  .container.store-page {
    padding: 1rem 0.5rem;
  }
  #usernameModal .modal-content {
    border-radius: 6px;
  }
}
/* Undo any transforms on the wrapper that might contain our fixed element */
.store-section,
.container.store-page {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* 1) Cap overall modal to 80vh */
#rankDetailModal .modal-dialog {
  max-height: 80vh;
}

/* 2) Make .modal-content fill that height exactly */
#rankDetailModal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

/* 3) Keep header/footer natural, body grows/shrinks */
#rankDetailModal .modal-header,
#rankDetailModal .modal-footer {
  flex: 0 0 auto;
}
#rankDetailModal .modal-body {
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
  padding: 1rem 1.5rem;
}

/* 4) Force the row to be full‐height flex container */
#rankDetailModal .modal-body .row {
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  width: 100%;
}

/* 5) Image column fixed 50% height/width */
#rankDetailModal .modal-body .col-md-6:first-child {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
}

/* 6) Text column flexes and contains only the scrollable pane */
#rankDetailModal .modal-body .col-md-6:last-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* 7) THIS is the only scrollable area */
#rankDetailModal .scrollable-text {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: normal;
  word-break: break-word;
  min-height: 0;
  padding-right: 0.5rem; /* room for scrollbar */
}

/* 1) force a scrollbar gutter always */
#scrollableText {
  overflow-y: auto;       /* vertical scroll when needed */
  overflow-x: hidden;     /* no horizontal scroll */
  word-break: break-word; /* wrap long words */

  /* *** HERE’S THE KEY *** */
  max-height: 250px;
}

/* base scrollbar */
#scrollableText::-webkit-scrollbar {
  width: 6px;
}

/* track (the “rail” behind the thumb) */
#scrollableText::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);   /* very subtle dark wash */
  border-radius: 4px;
}

/* thumb (the draggable handle) */
#scrollableText::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);  /* inset feel */
  background-clip: padding-box;
  transition: background-color 0.25s ease;
}

/* hover state for better affordance */
#scrollableText::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* corner where two scrollbars meet */
#scrollableText::-webkit-scrollbar-corner {
  background: transparent;
}


.cart-error {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  box-shadow: var(--shadow);
}
