@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:.82; transition: opacity .2s, border .2s;
}
.catButtons:hover  { opacity:1; color:#0e0e0e; border:2px solid var(--theme); }
.catButtons:active { opacity:1; }
.menuTitles { font-weight:700; font-size:20px; margin-top:10px; }


/* 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;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Portrait card — width driven by --card-maxw */
.prodMainBox {
  flex: 0 0 var(--card-maxw, 260px);
  max-width: var(--card-maxw, 260px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 16px;
  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;
  box-sizing: border-box;
}

/* 1 column on mobile */
@media (max-width: 599px) {
  .prodDivs  { padding: 10px; gap: 10px; }
  .prodMainBox { flex: 0 0 100%; max-width: 100%; }
}

.prodImg {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.prodMainBoxInfo { display: flex; flex-direction: column; flex: 1; width: 100%; margin-top: 10px; }
.prodMainBoxInfoBox { padding-left: 0; width: 100%; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.mentholBox { font-size:80px; width:80px; color:#2196F3; }

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

/* 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; }

.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){
  .catButtons,
  .prodMainBox {
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
  }
}



/* 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
}
*/


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

/* Search + Filters row */
.search-filters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  background: #f1f1f1;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
  width: 100%;
}

/* Search input wrapper — icon sits inside */
.search-input-wrap {
  position: relative;
  flex: 0 1 460px;
  display: flex;
  align-items: center;
}
.search-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--theme);
  font-size: 14px;
  pointer-events: none;
}
.search-input-wrap .searchBar {
  width: 100%;
  padding-left: 38px;
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}
.search-input-wrap .searchBar:focus {
  border-color: var(--theme);
}

/* Filters button — inline in the row */
.filters-btn {
  flex-shrink: 0;
  background: var(--theme);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 16px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s;
  -webkit-font-smoothing: antialiased;
}
.filters-btn:hover { opacity: .85; }

/* Size − / + buttons */
.size-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.size-btn {
  background: #fff;
  color: var(--theme);
  border: 1.5px solid var(--theme);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, color .15s;
  -webkit-font-smoothing: antialiased;
}
.size-btn:hover  { background: var(--theme); color: #fff; }
.size-btn:active { opacity: .75; }
.size-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }

/* Overlay */
.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.filters-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer */
.filters-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.filters-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme);
}
.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
}
.drawer-close-btn:hover { background: #f0f0f0; }

.drawer-body { padding: 4px 0 48px; }

.drawer-section {
  padding: 14px 20px 12px;
  border-bottom: 1px solid #f2f2f2;
}
.drawer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aaa;
  margin: 0 0 10px;
}
.drawer-subfilters {
  flex-direction: column;
}

/* Drawer: individual pill style — no sliding background */
.filters-drawer .radio-switch {
  height: auto;
  min-height: var(--radio-height);
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.filters-drawer .radio-switch__background {
  display: none;
}
.filters-drawer .radio-switch__label {
  border: 1.5px solid #ddd;
  border-radius: 20px;
  background: #fff;
  padding: 0 14px;
  height: var(--radio-height);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--radio-unselected-color);
  box-shadow: 0 1px 2px rgba(0,0,0,.07);
  transition: background .15s, border-color .15s, color .15s;
  transform: none !important;
  line-height: normal;
  cursor: pointer;
}
.filters-drawer .radio-switch__input:checked + .radio-switch__label {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}
.filters-drawer .radio-switch__label:hover {
  border-color: var(--theme);
}
