/* =========================================================
   TOKOGI HEADER + SEARCH + DRAWER MENU + SIDE CART
========================================================= */

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position:relative;
  z-index:1000;
  background:#ffffff;
  transition:background .25s ease, box-shadow .25s ease;
}

.site-header .container{
  width:98vw;
  max-width:none;
  padding-left:12px;
  padding-right:12px;
}

.site-header.is-scrolled{
  position:fixed;
  top:0;
  left:0;
  right:0;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}

.header__inner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:18px 0;
  min-height:var(--header-h, 74px);
}

.header__left,
.header__center,
.header__right{
  display:flex;
  align-items:center;
}

.header__left{
  justify-content:flex-start;
  gap:10px;
}

.header__center{
  justify-content:center;
}

.header__right{
  justify-content:flex-end;
  gap:14px;
}

.site-header .brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.site-header .brand .site-logo{
  height:40px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  display:block;
}

/* =========================================================
   ICON BUTTONS
========================================================= */
.icon-btn,
.menu-toggle.fancy{
  appearance:none;
  background:none;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  line-height:0;
  border-radius:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  text-decoration:none;
  color:#111;
  position:relative;
}

.icon-btn{
  padding:6px;
}

.icon-btn:hover,
.menu-toggle.fancy:hover{
  opacity:.6;
}

.header-icon{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block;
}

.icon-cart .header-icon circle{
  fill:currentColor;
  stroke:none;
}

.icon-cart{
  position:relative;
}

.cart-badge{
  position:absolute;
  top:-6px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:700;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

/* =========================================================
   HAMBURGER
========================================================= */
.hamburger-lines{
  width:20px;
  height:14px;
  position:relative;
  display:inline-block;
}

.hamburger-lines span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background:currentColor;
  border-radius:999px;
  transition:transform .25s ease, opacity .25s ease, top .25s ease;
}

.hamburger-lines span:nth-child(1){ top:0; }
.hamburger-lines span:nth-child(2){ top:6px; }
.hamburger-lines span:nth-child(3){ top:12px; }

.menu-toggle.fancy.active .hamburger-lines span:nth-child(1){
  top:6px;
  transform:rotate(45deg);
}

.menu-toggle.fancy.active .hamburger-lines span:nth-child(2){
  opacity:0;
}

.menu-toggle.fancy.active .hamburger-lines span:nth-child(3){
  top:6px;
  transform:rotate(-45deg);
}

/* =========================================================
   VISIBILITY HELPERS
========================================================= */
.only-mobile{
  display:none;
}

.only-desktop{
  display:inline-flex;
}

/* =========================================================
   SEARCH PANEL
========================================================= */
.header-search{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  z-index:1001;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);
  border-top:1px solid rgba(0,0,0,.08);
  padding:14px 0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.header-search.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.header-search-form{
  display:flex;
  align-items:center;
  gap:8px;
}

.header-search-form input[type="search"]{
  width:100%;
  height:46px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  color:#111;
  padding:0 14px;
  font-size:14px;
  outline:none;
  box-sizing:border-box;
}

.header-search-form button{
  height:46px;
  padding:0 18px;
  border:0;
  background:#111;
  color:#fff;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

/* =========================================================
   MOBILE BACKDROP
========================================================= */
.mobile-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:900;
  opacity:0;
  transition:opacity .25s ease;
}

.mobile-backdrop.show{
  opacity:1;
}

@media (min-width:901px){
  .mobile-backdrop{
    display:none !important;
  }
}

/* =========================================================
   DRAWER MENU - BASE
========================================================= */
.mobile-dropdown{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#fff;
  box-shadow:0 10px 18px -8px rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transform:translateY(0);
  transition:opacity .3s ease;
  z-index:999;
}

.mobile-dropdown.open{
  opacity:1;
  pointer-events:auto;
}

.tk-menu-drawer{
  overflow:hidden;
}

.tk-menu-drawer__mobile-head{
  display:none;
}

.tk-menu-drawer__inner{
  display:grid;
  grid-template-columns:minmax(320px, 460px) minmax(0, 1fr);
  gap:36px;
  align-items:stretch;
  padding-top:24px;
  padding-bottom:0px;
}

.tk-menu-drawer__nav{
  min-width:0;
}

.tk-drawer-menu,
.tk-drawer-menu ul,
.tk-drawer-menu li{
  list-style:none;
  margin:0;
  padding:0;
}

.tk-drawer-menu > li{
  position:relative;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.tk-drawer-menu > li > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:60px;
  padding:0;
  color:#111;
  text-decoration:none;
  font-size:18px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-radius:0;
  background:transparent;
}

.tk-drawer-menu > li > a:hover{
  opacity:.65;
}

.tk-drawer-menu > li.menu-item-has-children > a::after{
  content:"+";
  font-size:24px;
  line-height:1;
  font-weight:300;
  transition:transform .22s ease;
}

.tk-drawer-menu > li.is-open > a::after{
  content:"−";
}

.tk-drawer-menu > li > .sub-menu{
  display:none;
  padding:0 0 18px;
}

.tk-drawer-menu > li.is-open > .sub-menu{
  display:block;
}

.tk-drawer-menu > li > .sub-menu li a{
  display:block;
  padding:11px 0;
  color:#444;
  text-decoration:none;
  font-size:14px;
  line-height:1.45;
  letter-spacing:.05em;
  text-transform:uppercase;
  border-radius:0;
}

.tk-drawer-menu > li > .sub-menu li a:hover{
  color:#111;
  opacity:.68;
}

/* =========================================================
   DRAWER VISUAL - DESKTOP
========================================================= */
.tk-menu-drawer__visual{
  position:relative;
  min-height:560px;
  overflow:hidden;
  background:#f4f4f2;
}

.tk-menu-visual{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease, visibility .28s ease;
}

.tk-menu-visual.is-active{
  opacity:1;
  visibility:visible;
}

.tk-menu-visual::before{
  content:"";
  position:absolute;
  inset:0;
  background:#ffffff;
  z-index:1;
}

.tk-menu-visual img{
  position:absolute;
  right:0;
  bottom:0;
  width:min(100%, 820px);
  height:100%;
  object-fit:contain;
  object-position:right bottom;
  display:block;
  z-index:2;
}

.tk-menu-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0.08) 100%
  );
  pointer-events:none;
  z-index:3;
}

/* =========================================================
   DESKTOP MENU BACKDROP
========================================================= */
.tk-menu-backdrop{
  position:fixed;
  top:88px;
  left:0;
  right:0;
  bottom:0;
  background:rgb(0 0 0 / 80%);
  z-index:950;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
}

.tk-menu-backdrop.is-active{
  opacity:1;
  visibility:visible;
}

.mobile-dropdown.tk-menu-drawer{
  z-index:1000;
}

@media (max-width:900px){
  .tk-menu-backdrop{
    display:none !important;
  }
}

/* =========================================================
   SIDE CART
========================================================= */
.tk-side-cart{
  position:fixed;
  inset:0;
  z-index:3000;
  pointer-events:none;
}

.tk-side-cart.is-open{
  pointer-events:auto;
}

.tk-side-cart-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.28);
  opacity:0;
  transition:opacity .28s ease;
}

.tk-side-cart.is-open .tk-side-cart-overlay{
  opacity:1;
}

.tk-side-cart-panel{
  position:absolute;
  top:0;
  right:0;
  width:min(100%, 760px);
  height:100%;
  background:#fff;
  color:#111;
  transform:translateX(100%);
  transition:transform .34s ease;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.tk-side-cart.is-open .tk-side-cart-panel{
  transform:translateX(0);
}

body.tk-side-cart-open{
  overflow:hidden;
}

.tk-side-cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px 18px;
  border-bottom:1px solid rgba(0,0,0,.08);
  flex:0 0 auto;
}

.tk-side-cart-head-title{
  font-size:15px;
  line-height:1.3;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:400;
}

.tk-side-cart-close{
  appearance:none;
  border:0;
  background:transparent;
  color:#111;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  padding:0;
  transition:opacity .2s ease;
}

.tk-side-cart-close:hover{
  opacity:.58;
}

.tk-side-cart-scroll{
  flex:1 1 auto;
  overflow-y:auto;
  padding:0 24px 26px;
}

.tk-side-cart-items-wrap{
  padding-top:18px;
}

.tk-side-cart-empty{
  font-size:14px;
  line-height:1.6;
  color:#666;
  padding:12px 0;
}

.tk-mini-cart-item{
  display:grid;
  grid-template-columns:132px 1fr;
  gap:18px;
  padding:0 0 22px;
  margin:0 0 22px;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.tk-mini-cart-item:last-child{
  margin-bottom:0;
}

.tk-mini-cart-item-image{
  display:block;
  background:#efefed;
  aspect-ratio:3 / 4;
  overflow:hidden;
}

.tk-mini-cart-item-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tk-mini-cart-item-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.tk-mini-cart-item-title{
  display:block;
  margin:0 0 8px;
  text-decoration:none;
  color:#111;
  font-size:15px;
  line-height:1.45;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.tk-mini-cart-item-title:hover{
  opacity:.7;
}

.tk-mini-cart-item-price{
  font-size:14px;
  line-height:1.45;
  margin-bottom:10px;
}

.tk-mini-cart-item-attrs{
  font-size:12px;
  color:#666;
  line-height:1.55;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.tk-mini-cart-item-actions{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.tk-mini-cart-qty{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(0,0,0,.14);
  min-height:40px;
  background:rgba(255,255,255,.55);
}

.tk-mini-cart-qty-btn{
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  color:#111;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:background .2s ease, opacity .2s ease;
}

.tk-mini-cart-qty-btn:hover{
  background:rgba(0,0,0,.04);
}

.tk-mini-cart-qty-value{
  min-width:34px;
  text-align:center;
  font-size:14px;
  line-height:1;
}

.tk-mini-cart-remove-btn{
  appearance:none;
  border:1px solid rgba(0,0,0,.14);
  background:transparent;
  color:#111;
  font-size:11px;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  padding:11px 12px;
  min-height:40px;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.tk-mini-cart-remove-btn:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}

.tk-side-cart-bottom{
  border-top:1px solid rgba(0,0,0,.08);
  padding:18px 24px 24px;
  background:#f6f6f4;
  flex:0 0 auto;
}

.tk-side-cart-subtotal-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.tk-side-cart-subtotal-label,
.tk-side-cart-subtotal-value{
  font-size:14px;
  line-height:1.4;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.tk-side-cart-bottom-actions{
  display:grid;
  gap:10px;
}

.tk-side-cart-basket-btn,
.tk-side-cart-checkout-btn{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
  padding:16px 18px;
  font-size:13px;
  line-height:1.2;
  letter-spacing:.14em;
  text-transform:uppercase;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.tk-side-cart-basket-btn{
  border:1.5px solid #111;
  color:#111;
  background:transparent;
}

.tk-side-cart-basket-btn:hover{
  background:#111;
  color:#fff;
}

.tk-side-cart-checkout-btn{
  border:1.5px solid #111;
  background:#111;
  color:#fff;
}

.tk-side-cart-checkout-btn:hover{
  opacity:.88;
}
/* =========================================================
   MOBILE / TABLET
========================================================= */
@media (max-width:900px){

  .site-header .brand .site-logo{
    height:35px;
  }

  .header__inner{
    grid-template-columns:1fr auto 1fr;
    padding:12px 0;
  }

  .header__left{
    gap:5px;
  }

  .header__right{
    gap:5px;
  }

  .only-mobile{
    display:inline-flex;
  }

  .only-desktop{
    display:none;
  }

  .header-search{
    padding:10px 0;
  }

  .header-search-form{
    gap:6px;
  }

  .header-search-form input[type="search"]{
    height:42px;
    font-size:14px;
  }

  .header-search-form button{
    height:42px;
    padding:0 14px;
  }

  /* Fullscreen drawer */
  .mobile-dropdown.tk-menu-drawer{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    height:100dvh;
    background:#fff;
    z-index:2000;
    opacity:0;
    pointer-events:none;
    transform:none;
    box-shadow:none;
    overflow:hidden;
  }

  .mobile-dropdown.tk-menu-drawer.open{
    opacity:1;
    pointer-events:auto;
  }

  /* top bar */
  .tk-menu-drawer__mobile-head{
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:20;
    height:84px;
    background:#fff;
    border-bottom:1px solid rgba(0,0,0,.08);
    display:grid;
    grid-template-columns:56px 1fr 56px;
    align-items:center;
    padding:10px 10px 8px;
  }

  .tk-menu-drawer__close{
    appearance:none;
    border:0;
    background:transparent;
    color:#111;
    font-size:34px;
    line-height:1;
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
  }

  .tk-menu-drawer__mobile-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
  }

  .tk-menu-drawer__mobile-logo-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
  }

  .tk-menu-drawer__mobile-logo{
    height:34px;
    width:auto;
    max-width:160px;
    object-fit:contain;
    display:block;
  }

  .tk-menu-drawer__mobile-title{
    font-size:11px;
    line-height:1.2;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#111;
  }

  .tk-menu-drawer__mobile-spacer{
    width:44px;
    height:44px;
  }

  /* layout */
  .tk-menu-drawer__inner{
    position:relative;
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    padding:84px 0 0;
    gap:0;
    overflow:hidden;
  }

  .tk-menu-drawer__nav{
    position:relative;
    z-index:3;
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    background:transparent;
  }

  /* حذف لایه سفید روی منو */
  .tk-menu-drawer__nav::before{
    display:none;
  }

  .tk-drawer-menu{
    position:relative;
    z-index:4;
    padding:0 28px 28px;
  }

  .tk-drawer-menu > li{
    position:relative;
    border-bottom:1px solid rgba(0,0,0,.08);
  }

  .tk-drawer-menu > li > a{
    min-height:58px;
    font-size:16px;
    background:transparent;
  }

  .tk-drawer-menu > li > .sub-menu{
    display:none;
    padding:0 0 18px;
    position:relative;
    z-index:4;
  }

  .tk-drawer-menu > li.is-open > .sub-menu{
    display:block;
  }

  .tk-drawer-menu > li > .sub-menu li a{
    display:block;
    padding:12px 0;
    color:#111;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    letter-spacing:.05em;
    text-transform:uppercase;
    background:transparent;
  }

  /* image layer */
  .tk-menu-drawer__visual{
    position:absolute;
    left:0;
    right:0;
    top:84px;
    bottom:0;
    display:block !important;
    overflow:hidden;
    background:#fff;
    z-index:1;
    min-height:0;
  }

  /* حذف لایه سفید روی تصویر */
  .tk-menu-drawer__visual::before{
    display:none;
  }

  .tk-menu-visual{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    transition:opacity .28s ease, visibility .28s ease;
    z-index:2;
  }

  .tk-menu-visual.is-active{
    opacity:1;
    visibility:visible;
  }

  /* حذف لایه گرادیانت روی تصویر */
  .tk-menu-visual::after{
    display:none;
  }

  .tk-menu-visual img{
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:min(85vw, 760px);
    height:auto;
    max-height:70vh;
    object-fit:contain;
    display:block;
    z-index:2;
  }

  /* Side cart */
  .tk-side-cart-panel{
    width:100%;
  }

  .tk-side-cart-head{
    padding:18px 18px 16px;
  }

  .tk-side-cart-scroll{
    padding:0 18px 18px;
  }

  .tk-mini-cart-item{
    grid-template-columns:104px 1fr;
    gap:14px;
    padding-bottom:18px;
    margin-bottom:18px;
  }

  .tk-mini-cart-item-title{
    font-size:13px;
  }

  .tk-mini-cart-item-price{
    font-size:13px;
  }

  .tk-mini-cart-item-attrs{
    font-size:11px;
  }

  .tk-mini-cart-item-actions{
    align-items:flex-start;
    flex-direction:column;
  }

  .tk-mini-cart-remove-btn{
    width:100%;
    text-align:center;
  }

  .tk-side-cart-bottom{
    padding:16px 18px 18px;
  }
}
/* =========================================================
   FIX MOBILE DRAWER LOGO ON WOOCOMMERCE PAGES
========================================================= */
.site-header .tk-menu-drawer__mobile-logo,
.woocommerce .site-header .tk-menu-drawer__mobile-logo,
.woocommerce-page .site-header .tk-menu-drawer__mobile-logo{
  width:auto;
  max-width:160px;
  height:34px;
  object-fit:contain;
  display:block;
}


.tk-side-cart-head-actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.tk-side-cart-continue{
  appearance:none;
  border:0;
  background:transparent;
  color:#111;
  font-size:11px;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  padding:0;
  transition:opacity .2s ease;
}

.tk-side-cart-continue:hover{
  opacity:.58;
}
@media (max-width:900px){
  .tk-side-cart-head-actions{
    gap:10px;
  }

  .tk-side-cart-continue{
    font-size:10px;
    letter-spacing:.1em;
  }
}


.tk-top-rewards-bar{
  background:#1f5947;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.tk-top-rewards-bar__inner{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:8px 0;
  text-align:center;
}

.tk-top-rewards-bar__text{
  font-size:13px;
  line-height:1.4;
  color:#e7e7e7;
}

.tk-top-rewards-bar__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  transition:all .2s ease;
}

.tk-top-rewards-bar__link:hover{
  background:#fff;
  color:#111;
}

@media (max-width: 767px){
  .tk-top-rewards-bar__inner{
    min-height:auto;
    flex-direction:column;
    gap:8px;
    padding:10px 4px;
  }

  .tk-top-rewards-bar__text{
    font-size:16px;
    line-height: 1.8;
  }

  .tk-top-rewards-bar__link{
    font-size:12px;
    padding:6px 10px;
  }
}