@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--theme) transparent;
}
*::-webkit-scrollbar { width: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background-color: var(--theme);
  border-radius: 20px;
  border: 3px solid var(--theme);
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f1f1f1;
}

/* Loader (unchanged)… */
/* ... keep your loader CSS here ... */

/* Root vars */
:root {
  --theme: #2d73ff;               /* default, overridden by menu.php */
  --radio-bg-color: var(--theme);  /* selected pill background */
  --radio-border-color: #ddd;
  --radio-selected-color: #ffffff;
  --radio-unselected-color: #333;
  --radio-height: 36px;
  --transition-duration: 0.3s;
}

/* Landing menu */
.MainFlavMenuDiv { flex-wrap: wrap; display:flex; justify-content:center; align-items:center; gap:20px; }
.MainFlavMenuDiv2 { flex-wrap: wrap; display:flex; justify-content:center; align-items:center; height:90vh; gap:20px; }
.catButtons {
  padding: 20px;
  box-shadow: 0px 1px 1px rgba(23,32,38,0.09), 0px 2px 1px rgba(23,32,38,0.08), 0px 1px 3px rgba(23,32,38,0.12);
  color: #000; background-color:#fff; border: 2px solid var(--theme);
  height: 330px; width: 250px; margin: 6px; border-radius: 10px;
  display:flex; flex-direction:column; justify-content:space-between; align-items:center;
  text-decoration:none; opacity:.3; transition: opacity .2s, border .2s;
}
.catButtons:hover { opacity:1; color:#0e0e0e; border:2px solid var(--theme); }
.menuTitles { font-weight:700; font-size:20px; margin-top:10px; }

/* Filter bar */
.filters-row {
  margin-top:15px; margin-bottom:15px;
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:8px; padding:15px; position:sticky; top:0; background-color:#f1f1f1; border-bottom:1px solid #ddd; z-index:1000;
}

/* Radio switch */
.radio-switch {
  display:inline-flex; position:relative;
  box-shadow: 0px 1px 1px rgba(23,32,38,0.09), 0px 2px 1px rgba(23,32,38,0.08), 0px 1px 3px rgba(23,32,38,0.12);
  align-items:center; border:1px solid var(--radio-border-color); border-radius:25px; background-color:#fff; overflow:hidden;
  height:var(--radio-height); margin:0;
}
.radio-switch.sub-category { width:auto; }
.radio-switch__background {
  position:absolute; top:0; left:0; height:100%;
  background-color: var(--radio-bg-color);
  border-radius:25px;
  transition: transform var(--transition-duration) ease-in-out, width var(--transition-duration) ease-in-out;
  z-index:1;
}
.radio-switch__input { display:none; }
.radio-switch__label {
  position:relative; display:inline-flex; align-items:center; justify-content:center; z-index:2;
  font-weight:bold; font-size:12px; color:var(--radio-unselected-color);
  cursor:pointer; white-space:nowrap; padding:0 8px; transform: translateY(3.5px);
  height:100%; border-radius:25px; transition: color var(--transition-duration);
}
.radio-switch__input:checked + .radio-switch__label { color: var(--radio-selected-color); }

/* leave Puffs group untouched (it's already centered) */
#puffs_group .radio-switch__label { transform: none; }

/* Dropdown */

/* Title */
.flavMenuTitle { font-weight:600; height:auto; font-size:30px; color: var(--theme); }

/* Search */
.input-container { display:flex; align-items:center; border-radius:4px; padding:5px; margin:20px auto; width:90%; max-width:500px; }
.input-container i { margin-right:10px; color: var(--theme); }
.input-container .searchBar { width:100%; border:none; outline:none; font-size:1rem; }
.input-container .result { display:none; }
.searchBar{
  padding-left:40px; column-gap:1.25rem; width:600px; height:40px; font-size:.9rem;
  border-radius:10px; border:none; border-bottom:1px solid #a7a7a7;
}
.searchBar:focus { outline:none; border-bottom:1px solid var(--theme); transform: border-bottom 1s ease-in-out; }
.searchBarBox{
  overflow:auto; margin:5px; display:flex; width:600px; height:400px; flex-direction:column; background:#fff;
  box-shadow: rgb(23 32 38 / 9%) 0px 1px 1px 0px, rgb(23 32 38 / 8%) 0px 2px 1px -1px, rgb(23 32 38 / 12%) 0px 1px 3px 0px;
}

/* Products grid */
.prodDivs { display:flex; justify-content:center; align-items:center; flex-direction:column; width:100%; }
.prodMainBox {
  margin-top:10px; display:flex; flex-direction:row; justify-content:center; align-items:center;
  width:80%; height:370px; background:#fff; border:1px solid #ddd; padding:30px; border-radius:20px;
  box-shadow: 0px 1px 1px rgba(23,32,38,0.09), 0px 2px 1px rgba(23,32,38,0.08), 0px 1px 3px rgba(23,32,38,0.12);
  position: relative;
}
.prodImg { width:300px; border-radius:5px; }
.prodMainBoxInfo { display:flex; flex-direction:row; height:100%; width:100%; }
.prodMainBoxInfoBox { padding-left:20px; width:100%; display:flex; justify-content:space-between; flex-direction:column; }
.mentholBox { font-size:80px; width:80px; color:#2196F3; }

/* Flavour text */
.flavName { font-weight:700; font-size:35px; line-height:1.2; color:var(--theme); }
.flavBrand { font-weight:600; font-size:25px; color:#555; }
.flavour { color:#333; }

/* Mobile */
@media (max-width: 768px) {
  .prodMainBox { width:90%; height:auto; margin:10px auto; display:block; }
  .prodImg { width:100%; height:auto; display:block; margin:0 auto; }
  .prodMainBoxInfo { display:block; margin-top:10px; }
  .prodMainBoxInfoBox { display:block; }
  .mentholBox { width:100%; text-align:center; }
}

/* Titles + badges */
.titleStack { margin-top:5px; }
.badgesRow { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:5px; }
.tag-badge { display:inline-block; padding:6px 10px; border-radius:25px; font-size:13px; line-height:1; color:#fff; }

.menthol-dot {
  display:inline-block; font-size:25px; margin: 5px 0 0 6px; color: var(--theme);
  line-height:1; transform: translateY(3px);
}

/* Badge colors */
.tag-sale     { background-color:#e53935; color:#fff; }
.tag-featured { background-color:#ffeb3b; color:#000; }
.tag-best     { background-color:#fb8c00; color:#fff; }
.tag-new      { background-color: #2d73ff; }

/* Status border (faded) */
.prodMainBox.has-status-border {
  border: 2px solid var(--border-color, 0.5);
}

.orig-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
  
}
.sale-price {
  
  color:rgb(239, 72, 72);
}
.descr { color:#444; }

/* Mobile topbar toggle */
.topbar-toggle{
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 9999;
  border: none;
  outline: none;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  cursor: pointer;
}
.topbar-toggle .chev{ transition: transform .2s ease; }
body.topbar-collapsed .topbar-toggle .chev{ transform: rotate(180deg); }

/* Only show the toggle on small screens */
@media (min-width: 769px){
  .topbar-toggle{ display: none; }
}

/* When collapsed, hide big bars */
body.topbar-collapsed #filtersRow,
body.topbar-collapsed #searchRow{
  display: none !important;
}
.flexMid{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.loginFormF{
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    
}
.loginForm{
    width:350px;
    height: auto;
    background-color: white;
    border-top: 0.5px solid rgb(226, 226, 226);
    border-right: 0.5px solid rgb(226, 226, 226);
    border-left: 0.5px solid rgb(226, 226, 226);
    border-bottom: 2px solid #2d73ff;
    border-radius: 10px;
    align-items: center;
    justify-content: space-around;
    padding: 18px;
    box-shadow: rgb(23 32 38 / 9%) 0px 1px 1px 0px, rgb(23 32 38 / 8%) 0px 2px 1px -1px, rgb(23 32 38 / 12%) 0px 1px 3px 0px;;
    display: flex;
    flex-direction: column;
   
}
.loginInput:focus{
    width: 100%;
    outline: none;
    border: 2px solid #2d73ff;
    border-radius: 5px;
}

.loginInput{
    border:none;
    width: 100%;
    border: 2px solid #d6d6d6;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out;
}
.loginBut{
    margin-top:15px;
    border-radius: 10px;
    width: 100%;
    border:none;
    border: 1px solid #aeafb1;
   
    color:#aeafb1;
}

.loginBut:hover{
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid grey;
    color:black;
    
    
    transition: border-color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}
/* 1) Make the moving pill use `left` instead of `transform` */
.radio-switch__background {
  position: absolute;
  top: 0;
  left: 0; /* was 0 + animated with translateX(...) */
  height: 100%;
  background-color: var(--radio-bg-color);
  border-radius: 25px;
  /* was: transition: transform ... */
  transition: left var(--transition-duration) ease-in-out,
              width var(--transition-duration) ease-in-out;
  will-change: left, width;
  z-index: 1;
}

/* 2) Remove vertical transform on labels (causes sub-pixel blur) */
.radio-switch__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: bold;
  font-size: 12px;
  color: var(--radio-unselected-color);
  cursor: pointer;
  white-space: nowrap;
  padding: 0 8px;
  height: 100%;
  border-radius: 25px;
  transition: color var(--transition-duration);
  /* REMOVE this line: transform: translateY(3.5px); */
  line-height: var(--radio-height); /* keeps text centered vertically */
}

/* you already had a special case—keep it clean */
#puffs_group .radio-switch__label { /* no transform needed */ }

/* 3) Make text rendering crisp on tablets */
.radio-switch,
.radio-switch__label {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.selectFlav{
  height: 36px;
  line-height: 36px;         /* centers text, no vertical transform needed */
  padding: 0 12px;           /* horizontal only so height stays exact */
  background:#fff;
  border: 1px solid #ddd;    /* lighter than box-shadow for crisp text */
  border-radius: 6px;
  box-shadow: none;          /* shadows can blur text on some tablets */
  font-size: 14px;           /* 12px bold looks jaggier; use 14 regular */
  font-weight: 500;          /* medium instead of bold for better hinting */
  color:#333;

  -webkit-appearance: none;  /* remove OEM styling that can blur */
  -moz-appearance: none;
  appearance: none;

  /* font smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* A) Soften heavy shadows on mobile/tablets */
@media (max-width: 1024px){
  .filters-row,
  .catButtons,
  .prodMainBox {
    box-shadow: 0 1px 2px rgba(0,0,0,.06); /* much cheaper than multi-shadow */
  }
}

/* B) Contain each product card’s paint work (Chrome/Android supports this) */
.prodMainBox{
  contain: content;                  /* prevents large repaints */
  /* If you want to keep the bigger desktop shadow, keep it only >1024px */
}

/* Optional reserve size for content-visibility if you want to try it:
.prodMainBox{
  content-visibility: auto;
  contain-intrinsic-size: 370px 800px;  // approximate height x width
}
*/

/* C) Make the sticky bar cheaper to scroll */
.filters-row{
  will-change: transform;            /* hint compositing */
  transform: translateZ(0);          /* promote to GPU without blurring text */
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* D) Reduce image cost a bit */
.prodImg{
  max-width: 300px;
  width: 100%;
  height: auto;
  image-rendering: auto;             /* ensure browser chooses best */
}
