/*
Theme Name: Tasty Hub
Theme URI: https://example.com
Description: قالب فرزند اختصاصی، سبک و مدرن-لوکس برای Tasty Hub — فینگرفود، صبحانه، شیرینی و کیترینگ. راست‌چین، فارسی، بدون صفحه‌ساز سنگین.
Author: Omid
Template: storefront
Version: 5.1.0
Text Domain: tastyhub
*/

/* ==========================================================================
   فونت فارسی — وزیرمتن
   ========================================================================== */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ==========================================================================
   متغیرهای پالت لوکس
   ========================================================================== */
:root{
  --th-accent:#ab9363;            /* طلایی لوگو — از پنل قابل تغییر */
  --th-accent-soft:#c4ad81;
  --th-red:#9c2528;               /* قرمز لوگو */
  --th-red-soft:#b83034;
  --th-ink:#12100f;               /* مشکی گرم */
  --th-ink-2:#1c1917;
  --th-ink-3:#2a2421;
  --th-cream:#f8f5ef;             /* کرم روشن */
  --th-cream-2:#efe9de;
  --th-text:#1c1815;
  --th-muted:#7d746c;
  --th-muted-dark:#a89f95;
  --th-line:rgba(171,147,99,.28);
  --th-radius:18px;
  --th-radius-sm:12px;
  --th-shadow:0 10px 40px rgba(14,12,11,.08);
  --th-shadow-lg:0 24px 60px rgba(14,12,11,.16);
  --th-container:1200px;
  --th-ease:cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   ریست و پایه
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-family:'Vazirmatn',Tahoma,-apple-system,sans-serif !important;
  direction:rtl;
  text-align:right;
  background:var(--th-cream);
  color:var(--th-text);
  line-height:1.85;
  margin:0;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;transition:color .2s var(--th-ease);}

/* عنوان‌ها رنگ بخش والدشان را می‌گیرند
   (قالب والد Storefront رنگ تیره اجباری می‌گذارد که روی زمینه مشکی نامرئی می‌شود) */
h1,h2,h3,h4,h5,h6{
  font-weight:800;line-height:1.4;margin:0;letter-spacing:-.01em;
  color:inherit;
}
p{margin:0 0 1em;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;}

.th-container{
  width:100%;
  max-width:var(--th-container);
  margin-inline:auto;
  padding-inline:22px;
}

.screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);
}
.skip-link:focus{position:fixed;top:10px;right:10px;z-index:100000;background:#fff;padding:10px 16px;width:auto;height:auto;clip:auto;}

/* انیمیشن ظاهر شدن هنگام اسکرول */
.th-reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--th-ease),transform .7s var(--th-ease);}
.th-reveal.is-in{opacity:1;transform:none;}
@media(prefers-reduced-motion:reduce){
  .th-reveal{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}

/* --------------------------------------------------------------------------
   تضمین خوانایی متن روی بخش‌های تیره
   -------------------------------------------------------------------------- */
.th-hero,.th-hero h1,.th-hero h2,.th-hero p,
.th-cta,.th-cta h1,.th-cta h2,.th-cta h3,
.th-perks h1,.th-perks h2,.th-perks h3,
.th-pagehead,.th-pagehead h1,.th-pagehead h2,
.th-footer h1,.th-footer h2,.th-footer h3,.th-footer h4,
.th-contact-box h1,.th-contact-box h2,.th-contact-box h3,
.th-cat-card h1,.th-cat-card h2,.th-cat-card h3,
.th-header,.th-header h1,.th-header h2{
  color:#fff;
}

.th-hero__title,
.th-cta__title,
.th-pagehead__title,
.th-contact-box__title,
.th-footer__title{color:#fff !important;}

.th-perk__title{color:var(--th-accent) !important;}
.th-footer__heading{color:#fff !important;}
.th-cat-card__name{color:#fff !important;}

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */
.th-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--th-accent);
  color:var(--th-ink);
  border:1px solid var(--th-accent);
  padding:12px 28px;
  border-radius:999px;
  font-weight:700;font-size:.95rem;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .22s var(--th-ease),background .22s var(--th-ease),box-shadow .22s var(--th-ease),color .22s var(--th-ease);
}
.th-btn:hover{
  background:var(--th-accent-soft);
  border-color:var(--th-accent-soft);
  color:var(--th-ink);
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(200,164,92,.34);
}
.th-btn--lg{padding:15px 36px;font-size:1rem;}
.th-btn--sm{padding:8px 18px;font-size:.82rem;}
.th-btn--ghost{
  background:transparent;
  color:var(--th-accent);
  border-color:currentColor;
}
.th-btn--ghost:hover{background:var(--th-accent);color:var(--th-ink);border-color:var(--th-accent);}

/* ==========================================================================
   نوار بالایی
   ========================================================================== */
.th-topbar{
  background:var(--th-ink);
  color:var(--th-muted-dark);
  font-size:.8rem;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.th-topbar__inner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:40px;
}
.th-topbar__left{display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
.th-topbar__item{position:relative;}
.th-topbar__item:hover{color:var(--th-accent);}

.th-topbar__social{display:flex;align-items:center;gap:12px;}
.th-topbar__social a{
  width:26px;height:26px;display:grid;place-items:center;
  border-radius:50%;
  transition:background .2s var(--th-ease),transform .2s var(--th-ease);
}
.th-topbar__social svg{width:15px;height:15px;fill:currentColor;}
.th-topbar__social a:hover{background:var(--th-accent);color:var(--th-ink);transform:translateY(-2px);}

@media(max-width:760px){
  .th-topbar__left .th-topbar__item:first-child{display:none;}
}

/* ==========================================================================
   هدر
   ========================================================================== */
.th-header{
  position:sticky;top:0;z-index:900;
  background:rgba(14,12,11,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.07);
  transition:background .3s var(--th-ease),box-shadow .3s var(--th-ease),padding .3s var(--th-ease);
}
.th-header.is-stuck{
  background:rgba(14,12,11,.98);
  box-shadow:0 6px 30px rgba(0,0,0,.28);
}
.th-header__inner{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  min-height:76px;
}
.th-header.is-stuck .th-header__inner{min-height:64px;}

/* لوگو */
.th-header__brand .custom-logo-link{display:block;}
.th-header__brand img{max-height:52px;width:auto;transition:max-height .3s var(--th-ease);}
.th-header.is-stuck .th-header__brand img{max-height:44px;}

.th-logo-text{display:flex;flex-direction:column;line-height:1.25;}
.th-logo-text__main{
  font-size:1.4rem;font-weight:800;color:#fff;letter-spacing:.02em;
}
.th-logo-text__sub{font-size:.68rem;color:var(--th-accent);letter-spacing:.14em;}

/* منو */
.th-header__nav{display:flex;align-items:center;gap:28px;}
.th-menu-list{display:flex;align-items:center;gap:26px;}
.th-menu-list li{position:relative;}
.th-menu-list a{
  color:rgba(255,255,255,.86);
  font-size:.94rem;font-weight:600;
  padding:6px 0;display:inline-block;position:relative;
}
.th-menu-list a::after{
  content:'';position:absolute;bottom:0;right:0;
  width:0;height:2px;background:var(--th-accent);
  transition:width .28s var(--th-ease);
}
.th-menu-list a:hover{color:#fff;}
.th-menu-list a:hover::after,
.th-menu-list .current-menu-item > a::after{width:100%;}
.th-menu-list .current-menu-item > a{color:var(--th-accent);}

/* زیرمنو */
.th-menu-list .sub-menu{
  position:absolute;top:100%;right:0;min-width:190px;
  background:var(--th-ink-2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--th-radius-sm);
  padding:8px;
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:all .25s var(--th-ease);
  box-shadow:var(--th-shadow-lg);
}
.th-menu-list li:hover > .sub-menu{opacity:1;visibility:visible;transform:none;}
.th-menu-list .sub-menu a{display:block;padding:9px 14px;border-radius:8px;}
.th-menu-list .sub-menu a:hover{background:rgba(200,164,92,.14);}
.th-menu-list .sub-menu a::after{display:none;}

.th-header__cta{display:flex;align-items:center;gap:12px;}

/* سبد خرید */
.th-cart{position:relative;display:grid;place-items:center;width:40px;height:40px;color:#fff;}
.th-cart svg{width:22px;height:22px;fill:currentColor;}
.th-cart__count{
  position:absolute;top:2px;left:2px;
  background:var(--th-accent);color:var(--th-ink);
  min-width:18px;height:18px;border-radius:9px;
  font-size:.68rem;font-weight:800;
  display:grid;place-items:center;padding:0 4px;
}

/* دکمه منوی موبایل */
.th-nav-toggle{
  display:none;flex-direction:column;gap:5px;
  background:none;border:none;cursor:pointer;padding:8px;
}
.th-nav-toggle span{
  display:block;width:24px;height:2px;background:#fff;border-radius:2px;
  transition:transform .3s var(--th-ease),opacity .3s var(--th-ease);
}
.th-nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(-45deg);}
.th-nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.th-nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(45deg);}

@media(max-width:940px){
  .th-nav-toggle{display:flex;}
  .th-header__nav{
    position:fixed;inset:0 0 0 0;top:var(--th-header-h,116px);
    background:var(--th-ink);
    flex-direction:column;justify-content:flex-start;align-items:stretch;
    gap:0;padding:24px;
    transform:translateX(-100%);
    transition:transform .35s var(--th-ease);
    overflow-y:auto;
  }
  .th-header__nav.is-open{transform:none;}
  .th-menu-list{flex-direction:column;align-items:stretch;gap:0;}
  .th-menu-list > li{border-bottom:1px solid rgba(255,255,255,.07);}
  .th-menu-list a{display:block;padding:16px 4px;font-size:1.05rem;}
  .th-menu-list a::after{display:none;}
  .th-menu-list .sub-menu{
    position:static;opacity:1;visibility:visible;transform:none;
    background:transparent;border:none;box-shadow:none;padding:0 16px 8px;
  }
  .th-header__cta{margin-top:22px;justify-content:center;}
}

/* ==========================================================================
   هیرو
   ========================================================================== */
.th-hero{
  position:relative;
  min-height:clamp(520px,86vh,860px);
  display:flex;align-items:center;
  background-color:var(--th-ink);
  background-size:cover;
  background-position:center;
  color:#fff;
  overflow:hidden;
}
.th-hero--nobg{
  background-image:
    radial-gradient(1000px 500px at 78% 12%,rgba(200,164,92,.20),transparent 62%),
    linear-gradient(160deg,#0e0c0b 0%,#241f1c 55%,#0e0c0b 100%);
}
.th-hero::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(900px 420px at 50% 100%,rgba(200,164,92,.10),transparent 70%);
  pointer-events:none;
}
.th-hero__inner{
  position:relative;z-index:2;
  max-width:820px;
  padding-block:110px 130px;
}
.th-hero__eyebrow{
  color:var(--th-accent);
  font-size:.86rem;font-weight:700;
  letter-spacing:.28em;
  margin-bottom:22px;
  transition-delay:.05s;
}
.th-hero__title{
  font-size:clamp(2.3rem,6.4vw,4.6rem);
  font-weight:900;
  line-height:1.22;
  margin-bottom:22px;
  transition-delay:.14s;
  text-wrap:balance;
}
.th-hero__sub{
  font-size:clamp(1rem,2.1vw,1.22rem);
  color:rgba(255,255,255,.82);
  max-width:640px;
  line-height:2;
  margin-bottom:38px;
  transition-delay:.24s;
}
.th-hero__actions{display:flex;gap:14px;flex-wrap:wrap;transition-delay:.34s;}
.th-hero__actions .th-btn--ghost{color:#fff;border-color:rgba(255,255,255,.42);}
.th-hero__actions .th-btn--ghost:hover{background:#fff;color:var(--th-ink);border-color:#fff;}

.th-hero__scroll{
  position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:2;
  width:24px;height:40px;border:2px solid rgba(255,255,255,.28);border-radius:14px;
}
.th-hero__scroll span{
  position:absolute;top:8px;left:50%;margin-left:-2px;
  width:4px;height:7px;background:var(--th-accent);border-radius:2px;
  animation:thScroll 1.9s infinite;
}
@keyframes thScroll{0%{opacity:0;transform:translateY(0);}35%{opacity:1;}100%{opacity:0;transform:translateY(14px);}}
@media(max-width:640px){.th-hero__scroll{display:none;}}

/* ==========================================================================
   نوار مزیت‌ها
   ========================================================================== */
.th-perks{background:var(--th-ink-2);color:#fff;padding:0;}
.th-perks__grid{
  display:grid;grid-template-columns:repeat(4,1fr);
}
.th-perk{
  padding:34px 26px;
  border-left:1px solid rgba(255,255,255,.07);
  text-align:center;
}
.th-perk:last-child{border-left:none;}
.th-perk__title{font-size:1.02rem;color:var(--th-accent);margin-bottom:6px;}
.th-perk__text{font-size:.86rem;color:rgba(255,255,255,.62);margin:0;line-height:1.8;}

@media(max-width:900px){
  .th-perks__grid{grid-template-columns:repeat(2,1fr);}
  .th-perk:nth-child(2n){border-left:none;}
  .th-perk:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.07);}
}
@media(max-width:480px){
  .th-perks__grid{grid-template-columns:1fr;}
  .th-perk{border-left:none;border-bottom:1px solid rgba(255,255,255,.07);padding:24px 16px;}
}

/* ==========================================================================
   بخش‌های عمومی
   ========================================================================== */
.th-section{padding:clamp(58px,8vw,104px) 0;}

.th-section__head{text-align:center;max-width:680px;margin:0 auto clamp(34px,5vw,56px);}
.th-section__eyebrow{
  display:inline-block;
  color:var(--th-accent);
  font-size:.78rem;font-weight:800;letter-spacing:.24em;
  margin-bottom:14px;
}
.th-section__title{
  font-size:clamp(1.6rem,3.6vw,2.5rem);
  margin-bottom:12px;
  text-wrap:balance;
}
.th-section__sub{color:var(--th-muted);font-size:1rem;margin:0;}
.th-section__more{text-align:center;margin-top:44px;}

/* ==========================================================================
   کارت‌های دسته‌بندی
   ========================================================================== */
.th-cats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(215px,1fr));
  gap:18px;
}
.th-cat-card{
  position:relative;
  min-height:250px;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:26px 22px;
  border-radius:var(--th-radius);
  overflow:hidden;
  color:#fff;
  background-color:var(--th-ink-3);
  background-size:cover;background-position:center;
  transition:transform .4s var(--th-ease),box-shadow .4s var(--th-ease);
}
/* دسته بدون عکس — زمینه تزئینی به‌جای مشکی خالی */
.th-cat-card--noimg{
  background-image:
    radial-gradient(420px 220px at 80% 12%,rgba(171,147,99,.30),transparent 68%),
    linear-gradient(150deg,var(--th-ink-3) 0%,var(--th-ink) 100%);
}
.th-cat-card--noimg::after{
  content:'';position:absolute;top:18px;right:18px;z-index:2;
  width:34px;height:3px;border-radius:2px;background:var(--th-accent);
}

.th-cat-card::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(14,12,11,.9),rgba(14,12,11,.15));
  transition:opacity .4s var(--th-ease);
}
.th-cat-card:hover{transform:translateY(-7px);box-shadow:var(--th-shadow-lg);color:#fff;}
.th-cat-card:hover::before{opacity:.78;}
.th-cat-card__name{
  position:relative;z-index:2;
  font-size:1.28rem;font-weight:800;margin-bottom:4px;
}
.th-cat-card__count{
  position:relative;z-index:2;
  font-size:.8rem;color:var(--th-accent-soft);
}

/* ==========================================================================
   شبکه و کارت محصول
   ========================================================================== */
.th-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(255px,1fr));
  gap:22px;
}

/* وقتی محصولات کم هستند، وسط‌چین شوند و کشیده نشوند */
.th-grid--few{
  grid-template-columns:repeat(auto-fit,minmax(255px,300px));
  justify-content:center;
}

.th-card{
  background:#fff;
  border:1px solid rgba(28,24,21,.06);
  border-radius:var(--th-radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .35s var(--th-ease),box-shadow .35s var(--th-ease),border-color .35s var(--th-ease);
}
.th-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--th-shadow-lg);
  border-color:var(--th-line);
}

.th-card__media{position:relative;overflow:hidden;background:var(--th-cream-2);}
.th-card__img{
  width:100%;aspect-ratio:4/3;object-fit:cover;
  transition:transform .6s var(--th-ease);
}
.th-card:hover .th-card__img{transform:scale(1.07);}
.th-card__img--ph{
  display:grid;place-items:center;
  color:var(--th-muted);font-size:.86rem;
  background:linear-gradient(135deg,var(--th-cream-2),#e5dbcd);
}

.th-badge{
  position:absolute;top:12px;right:12px;
  background:var(--th-red);color:#fff;
  font-size:.7rem;font-weight:800;
  padding:5px 12px;border-radius:999px;
  z-index:2;
}

.th-card__body{
  padding:16px 17px 18px;
  display:flex;flex-direction:column;gap:8px;flex:1;
}
.th-card__name{font-size:1.06rem;font-weight:700;}
.th-card__name a:hover{color:var(--th-accent);}
.th-card__desc{
  font-size:.85rem;color:var(--th-muted);
  margin:0;line-height:1.75;flex:1;
}
.th-card__footer{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:8px;padding-top:12px;
  border-top:1px solid rgba(28,24,21,.07);
}
.th-card__price{font-weight:800;color:var(--th-text);font-size:1rem;}
.th-card__price .woocommerce-Price-amount{font-weight:800;}
.th-card__price del{color:var(--th-muted);font-weight:500;font-size:.85rem;margin-left:6px;}
.th-card__price ins{text-decoration:none;color:var(--th-text);}

@media(max-width:520px){
  .th-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .th-card__body{padding:12px;}
  .th-card__name{font-size:.92rem;}
  .th-card__desc{display:none;}
  .th-card__price{font-size:.88rem;}
  .th-btn--sm{padding:6px 12px;font-size:.75rem;}
}

/* ==========================================================================
   منوی شورت‌کدی [food_menu]
   ========================================================================== */
.th-menu{padding-block:20px;}
.th-filter{
  display:flex;gap:10px;flex-wrap:wrap;justify-content:center;
  margin-bottom:44px;
}
.th-filter__btn{
  background:transparent;
  border:1px solid rgba(28,24,21,.14);
  color:var(--th-text);
  padding:9px 20px;border-radius:999px;
  font-size:.88rem;font-weight:600;cursor:pointer;
  transition:all .24s var(--th-ease);
}
.th-filter__btn:hover{border-color:var(--th-accent);color:var(--th-accent);}
.th-filter__btn.is-active{background:var(--th-ink);border-color:var(--th-ink);color:#fff;}

.th-cat{margin-bottom:58px;}
.th-cat__title{
  font-size:1.5rem;margin-bottom:26px;
  display:flex;align-items:center;gap:16px;
}
.th-cat__title::after{
  content:'';flex:1;height:1px;
  background:linear-gradient(to left,var(--th-line),transparent);
}

/* ==========================================================================
   بخش داستان برند
   ========================================================================== */
.th-story{background:var(--th-cream-2);}
.th-story__inner{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(28px,5vw,64px);align-items:center;
}
.th-story__media{border-radius:var(--th-radius);overflow:hidden;box-shadow:var(--th-shadow-lg);}
.th-story__media img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.th-story__ph{
  aspect-ratio:4/3;display:grid;place-items:center;
  background:linear-gradient(135deg,#e5dbcd,#d9cdba);
  color:var(--th-muted);font-size:.9rem;
}
.th-story__text .th-section__title{margin-bottom:18px;}
.th-story__text p{color:var(--th-muted);line-height:2.05;}
.th-story__list{margin:22px 0 28px;display:flex;flex-direction:column;gap:11px;}
.th-story__list li{
  position:relative;padding-right:28px;
  font-size:.95rem;font-weight:600;
}
.th-story__list li::before{
  content:'';position:absolute;right:0;top:.62em;
  width:9px;height:9px;border-radius:50%;
  background:var(--th-accent);
  box-shadow:0 0 0 4px rgba(200,164,92,.18);
}
@media(max-width:860px){
  .th-story__inner{grid-template-columns:1fr;}
  .th-story__media{order:-1;}
}

/* ==========================================================================
   مناسبت‌ها
   ========================================================================== */
.th-occ-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;
}
.th-occ{
  background:#fff;
  border:1px solid rgba(28,24,21,.07);
  border-radius:var(--th-radius);
  padding:30px 24px;
  transition:transform .32s var(--th-ease),box-shadow .32s var(--th-ease),border-color .32s var(--th-ease);
}
.th-occ:hover{transform:translateY(-5px);box-shadow:var(--th-shadow);border-color:var(--th-line);}
.th-occ h3{font-size:1.1rem;margin-bottom:9px;}
.th-occ h3::before{
  content:'';display:block;width:34px;height:3px;
  background:var(--th-accent);border-radius:2px;margin-bottom:14px;
}
.th-occ p{color:var(--th-muted);font-size:.9rem;margin:0;line-height:1.85;}

/* ==========================================================================
   فراخوان (CTA)
   ========================================================================== */
.th-cta{
  background:
    radial-gradient(800px 400px at 50% 0%,rgba(200,164,92,.16),transparent 68%),
    var(--th-ink);
  color:#fff;
  padding:clamp(56px,8vw,96px) 0;
  text-align:center;
}
.th-cta--slim{padding:clamp(44px,6vw,68px) 0;}
.th-cta__title{font-size:clamp(1.6rem,3.6vw,2.4rem);margin-bottom:12px;}
.th-cta__sub{color:rgba(255,255,255,.72);margin-bottom:30px;}
.th-cta__actions{display:flex;gap:13px;justify-content:center;flex-wrap:wrap;}
.th-cta__actions .th-btn--ghost{color:#fff;border-color:rgba(255,255,255,.4);}
.th-cta__actions .th-btn--ghost:hover{background:#fff;color:var(--th-ink);border-color:#fff;}

/* ==========================================================================
   سربرگ صفحات داخلی
   ========================================================================== */
.th-pagehead{
  background:
    radial-gradient(700px 320px at 82% 0%,rgba(200,164,92,.17),transparent 66%),
    linear-gradient(150deg,var(--th-ink) 0%,var(--th-ink-3) 100%);
  color:#fff;
  padding:clamp(46px,6vw,76px) 0 clamp(38px,5vw,58px);
}
.th-crumb{font-size:.82rem;color:rgba(255,255,255,.55);margin-bottom:14px;}
.th-crumb a:hover{color:var(--th-accent);}
.th-crumb span[aria-hidden]{margin-inline:8px;}
.th-pagehead__title{font-size:clamp(1.7rem,4vw,2.7rem);margin-bottom:10px;}
.th-pagehead__sub{color:rgba(255,255,255,.7);margin:0;max-width:620px;}

/* نوار دسته‌بندی */
.th-catbar{
  background:#fff;
  border-bottom:1px solid rgba(28,24,21,.07);
  position:sticky;top:76px;z-index:600;
}
.th-catbar__inner{
  display:flex;gap:6px;overflow-x:auto;
  padding-block:12px;
  scrollbar-width:none;
}
.th-catbar__inner::-webkit-scrollbar{display:none;}
.th-catbar__item{
  padding:9px 20px;border-radius:999px;
  font-size:.88rem;font-weight:600;white-space:nowrap;
  transition:all .22s var(--th-ease);
}
.th-catbar__item:hover{background:var(--th-cream-2);}
.th-catbar__item.is-active{background:var(--th-ink);color:#fff;}
@media(max-width:940px){.th-catbar{top:64px;}}

/* ==========================================================================
   آرشیو محصولات
   ========================================================================== */
.th-archive__bar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:26px;
}
.th-archive__count{color:var(--th-muted);font-size:.9rem;margin:0;}
.th-archive__sort select,
.woocommerce-ordering select{
  font-family:inherit;font-size:.88rem;
  padding:9px 14px;border-radius:999px;
  border:1px solid rgba(28,24,21,.14);
  background:#fff;color:var(--th-text);cursor:pointer;
}

.th-empty{text-align:center;padding:70px 20px;}
.th-empty h2{font-size:1.35rem;margin-bottom:10px;}
.th-empty p{color:var(--th-muted);margin-bottom:22px;}

.th-pagination{margin-top:48px;display:flex;justify-content:center;}
.th-pagination .page-numbers{
  display:inline-grid;place-items:center;
  min-width:42px;height:42px;padding:0 12px;margin:0 3px;
  border-radius:999px;font-weight:700;font-size:.9rem;
  border:1px solid rgba(28,24,21,.12);
  transition:all .22s var(--th-ease);
}
.th-pagination .page-numbers:hover{border-color:var(--th-accent);color:var(--th-accent);}
.th-pagination .page-numbers.current{background:var(--th-ink);color:#fff;border-color:var(--th-ink);}
.th-pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;}
.th-pagination h2{display:none;}

/* ==========================================================================
   محتوای صفحات و بلاگ
   ========================================================================== */
.th-prose{max-width:820px;margin-inline:auto;font-size:1.02rem;line-height:2.05;}
.th-prose h2{font-size:1.6rem;margin:1.8em 0 .6em;}
.th-prose h3{font-size:1.25rem;margin:1.5em 0 .5em;}
.th-prose ul{list-style:disc;padding-right:1.4em;margin-bottom:1.2em;}
.th-prose li{margin-bottom:.5em;}
.th-prose img{border-radius:var(--th-radius);margin-block:1.5em;}
.th-prose a{color:var(--th-accent);text-decoration:underline;text-underline-offset:4px;}

.th-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;}
.th-post{
  background:#fff;border-radius:var(--th-radius);overflow:hidden;
  border:1px solid rgba(28,24,21,.06);
  transition:transform .32s var(--th-ease),box-shadow .32s var(--th-ease);
}
.th-post:hover{transform:translateY(-5px);box-shadow:var(--th-shadow);}
.th-post__media img{width:100%;aspect-ratio:16/10;object-fit:cover;}
.th-post__body{padding:20px;}
.th-post__title{font-size:1.15rem;margin-bottom:10px;}
.th-post__title a:hover{color:var(--th-accent);}
.th-post__excerpt{color:var(--th-muted);font-size:.9rem;margin-bottom:16px;}

/* ==========================================================================
   فوتر
   ========================================================================== */
.th-footer{
  background:var(--th-ink);
  color:rgba(255,255,255,.72);
  padding-top:clamp(48px,6vw,72px);
  font-size:.92rem;
}
.th-footer__grid{
  display:grid;
  grid-template-columns:1.7fr 1fr 1fr 1.3fr;
  gap:clamp(26px,4vw,48px);
  padding-bottom:46px;
}
.th-footer__logo img{max-height:56px;width:auto;margin-bottom:16px;}
.th-footer__title{color:#fff;font-size:1.35rem;margin-bottom:14px;}
.th-footer__about{line-height:2;color:rgba(255,255,255,.58);max-width:330px;}

.th-footer__heading{
  color:#fff;font-size:1rem;margin-bottom:18px;
  position:relative;padding-bottom:12px;
}
.th-footer__heading::after{
  content:'';position:absolute;bottom:0;right:0;
  width:30px;height:2px;background:var(--th-accent);border-radius:2px;
}

.th-footer__links{display:flex;flex-direction:column;gap:11px;}
.th-footer__links a{color:rgba(255,255,255,.66);}
.th-footer__links a:hover{color:var(--th-accent);padding-right:5px;}

/* دکمه‌های تماس در فوتر */
.th-footer__actions{display:flex;flex-direction:column;gap:9px;margin-bottom:18px;}
.th-fbtn{
  display:flex;align-items:center;gap:11px;
  padding:11px 14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.11);
  border-radius:var(--th-radius-sm);
  color:#fff;font-size:.88rem;font-weight:600;
  transition:all .25s var(--th-ease);
}
.th-fbtn:hover{
  background:rgba(255,255,255,.1);
  border-color:var(--th-accent);
  color:#fff;transform:translateX(-3px);
}
.th-fbtn svg{
  flex:none;width:30px;height:30px;padding:7px;
  border-radius:50%;fill:#fff;
}
.th-fbtn--wa  svg{background:#25D366;}
.th-fbtn--tel svg{background:var(--th-red);}
.th-fbtn--ig  svg{background:linear-gradient(45deg,#f09433,#dc2743,#bc1888);}

.th-footer__contact{display:flex;flex-direction:column;gap:13px;line-height:1.85;}
.th-footer__contact span{color:var(--th-accent);font-weight:700;margin-left:5px;}
.th-footer__contact a:hover{color:var(--th-accent);}

.th-footer__social{display:flex;gap:11px;margin-top:20px;}
.th-footer__social a{
  width:38px;height:38px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.14);border-radius:50%;
  color:rgba(255,255,255,.75);
  transition:all .26s var(--th-ease);
}
.th-footer__social svg{width:17px;height:17px;fill:currentColor;}
.th-footer__social a:hover{
  background:var(--th-accent);border-color:var(--th-accent);
  color:var(--th-ink);transform:translateY(-3px);
}

.th-footer__bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-block:20px;
  font-size:.84rem;color:rgba(255,255,255,.45);
}
.th-footer__bottom-inner{display:flex;justify-content:center;text-align:center;}

@media(max-width:900px){
  .th-footer__grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:560px){
  .th-footer__grid{grid-template-columns:1fr;gap:32px;}
}

/* ==========================================================================
   دکمه شناور واتساپ
   ========================================================================== */
.th-float-wa{
  position:fixed;bottom:24px;left:24px;z-index:950;
  width:56px;height:56px;border-radius:50%;
  background:#25D366;
  display:grid;place-items:center;
  box-shadow:0 8px 26px rgba(37,211,102,.42);
  transition:transform .28s var(--th-ease);
}
.th-float-wa::before{
  content:'';position:absolute;inset:0;border-radius:50%;
  background:#25D366;opacity:.5;
  animation:thPulse 2.4s infinite;
  z-index:-1;
}
@keyframes thPulse{0%{transform:scale(1);opacity:.5;}70%{transform:scale(1.55);opacity:0;}100%{opacity:0;}}
.th-float-wa:hover{transform:scale(1.1);}
.th-float-wa svg{width:29px;height:29px;fill:#fff;}
@media(max-width:520px){
  .th-float-wa{width:50px;height:50px;bottom:18px;left:18px;}
  .th-float-wa svg{width:26px;height:26px;}
}

/* ==========================================================================
   هماهنگ‌سازی با ووکامرس (سبد، تسویه، تک‌محصول)
   ========================================================================== */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error{
  border-top-color:var(--th-accent);
  border-radius:var(--th-radius-sm);
  background:#fff;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before{color:var(--th-accent);}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{
  background:var(--th-accent);
  color:var(--th-ink);
  border-radius:999px;
  font-weight:700;
  font-family:inherit;
  padding:12px 26px;
  transition:all .24s var(--th-ease);
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover{
  background:var(--th-accent-soft);
  color:var(--th-ink);
}

/* صفحه تک‌محصول */
.single-product div.product{
  max-width:var(--th-container);margin-inline:auto;padding-inline:22px;
}
.single-product div.product .product_title{
  font-size:clamp(1.5rem,3.4vw,2.2rem);margin-bottom:14px;
}
.single-product div.product .price{
  color:var(--th-text);font-size:1.5rem;font-weight:800;
}
.single-product .woocommerce-tabs ul.tabs li.active a{color:var(--th-accent);}
.single-product div.product .images img{border-radius:var(--th-radius);}

/* حذف سایدبار پیش‌فرض */
.woocommerce #secondary,
.storefront-sorting + .site-main #secondary{display:none;}
.woocommerce #primary{width:100%;float:none;}

/* پنهان کردن هدر/فوتر قالب والد در صورت وجود */
.storefront-primary-navigation,
.site-header + .storefront-breadcrumb{display:none;}

/* ==========================================================================
   صفحه تک‌محصول (بدون فروش — فقط اطلاعات تماس)
   ========================================================================== */
.th-pagehead--product{padding-block:22px 20px;}

/* حذف فاصله سفید ناخواسته بین هدر و محتوا */
.th-content{padding:0;margin:0;}
.th-content > .th-pagehead:first-child{margin-top:0;}

.th-single__inner{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(28px,5vw,58px);align-items:start;
}

.th-single__media{position:sticky;top:110px;}

/* --- گالری محصول --- */
.th-gallery__ph{
  aspect-ratio:4/3;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--th-cream-2),#e2d7c6);
  color:var(--th-muted);border-radius:var(--th-radius);
}

.th-gallery__stage{
  position:relative;
  background:var(--th-cream-2);
  border-radius:var(--th-radius);
  box-shadow:var(--th-shadow-lg);
  overflow:hidden;
  aspect-ratio:1/1;        /* قاب مربع — عکس کامل پرش می‌کند */
}

.th-gallery__slide{
  display:none;margin:0;
  position:absolute;inset:0;
  cursor:zoom-in;
}
.th-gallery__slide.is-active{display:block;}

/* عکس کل قاب را پر می‌کند، با سایز فول تا کیفیت بالا بماند
   نسخه کامل و بدون برش با کلیک روی عکس در لایت‌باکس دیده می‌شود */
.th-gallery__img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* دکمه‌های قبلی/بعدی روی عکس */
.th-gallery__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border-radius:50%;
  background:rgba(18,16,15,.55);border:none;cursor:pointer;
  display:grid;place-items:center;
  opacity:0;transition:opacity .25s var(--th-ease),background .2s var(--th-ease);
  z-index:3;
}
.th-gallery__nav svg{width:22px;height:22px;fill:#fff;}
.th-gallery__nav:hover{background:var(--th-accent);}
.th-gallery__nav--prev{right:12px;}
.th-gallery__nav--next{left:12px;}
.th-gallery__stage:hover .th-gallery__nav{opacity:1;}

.th-gallery__hint{
  position:absolute;bottom:12px;left:12px;z-index:3;
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(18,16,15,.6);color:#fff;
  padding:6px 12px;border-radius:999px;
  font-size:.75rem;font-weight:600;
  opacity:0;transition:opacity .25s var(--th-ease);
  pointer-events:none;
}
.th-gallery__hint svg{width:15px;height:15px;fill:#fff;}
.th-gallery__stage:hover .th-gallery__hint{opacity:1;}

/* تامبنیل‌ها */
.th-gallery__thumbs{
  display:flex;gap:10px;margin-top:14px;flex-wrap:wrap;
}
.th-gallery__thumb{
  padding:0;border:2px solid transparent;background:none;cursor:pointer;
  border-radius:var(--th-radius-sm);overflow:hidden;line-height:0;
  transition:border-color .22s var(--th-ease),transform .22s var(--th-ease);
}
.th-gallery__thumb img{
  width:76px;height:76px;object-fit:cover;display:block;
}
.th-gallery__thumb:hover{transform:translateY(-3px);border-color:var(--th-accent-soft);}
.th-gallery__thumb.is-active{border-color:var(--th-accent);}

@media(max-width:520px){
  .th-gallery__thumb img{width:60px;height:60px;}
  .th-gallery__nav{opacity:1;width:34px;height:34px;}
}

/* ==========================================================================
   لایت‌باکس (پاپ‌آپ نمایش بزرگ عکس)
   ========================================================================== */
.th-lightbox{
  position:fixed;inset:0;z-index:99999;
  background:rgba(10,9,8,.94);
  display:none;align-items:center;justify-content:center;
  padding:56px 20px;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.th-lightbox.is-open{display:flex;animation:thFade .22s var(--th-ease);}
@keyframes thFade{from{opacity:0}to{opacity:1}}

.th-lb__figure{
  margin:0;max-width:100%;max-height:100%;
  display:flex;align-items:center;justify-content:center;
}
.th-lb__img{
  max-width:100%;max-height:86vh;
  width:auto;height:auto;
  border-radius:10px;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}

.th-lb__close{
  position:absolute;top:18px;left:22px;
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
  color:#fff;font-size:1.7rem;line-height:1;cursor:pointer;
  display:grid;place-items:center;
  transition:background .2s var(--th-ease);
}
.th-lb__close:hover{background:var(--th-red);border-color:var(--th-red);}

.th-lb__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:52px;height:52px;border-radius:50%;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
  cursor:pointer;display:grid;place-items:center;
  transition:background .2s var(--th-ease);
}
.th-lb__nav svg{width:26px;height:26px;fill:#fff;}
.th-lb__nav:hover{background:var(--th-accent);border-color:var(--th-accent);}
.th-lb__nav--prev{right:24px;}
.th-lb__nav--next{left:24px;}

.th-lb__count{
  position:absolute;bottom:20px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.75);font-size:.85rem;font-weight:600;
  background:rgba(255,255,255,.08);
  padding:5px 14px;border-radius:999px;
  direction:ltr;
}

.th-lightbox.is-single .th-lb__nav,
.th-lightbox.is-single .th-lb__count{display:none;}

@media(max-width:640px){
  .th-lightbox{padding:64px 10px;}
  .th-lb__nav{width:42px;height:42px;}
  .th-lb__nav--prev{right:10px;}
  .th-lb__nav--next{left:10px;}
}

.th-single__cat{
  font-size:.84rem;color:var(--th-accent);
  font-weight:700;letter-spacing:.08em;margin-bottom:12px;
}
.th-single__cat a{color:inherit;}
.th-single__cat a:hover{color:var(--th-red);}

.th-single__title{
  font-size:clamp(1.7rem,4vw,2.6rem);
  margin-bottom:16px;text-wrap:balance;
}

.th-single__price{
  display:flex;flex-direction:column;gap:5px;
  padding:16px 20px;margin-bottom:22px;
  background:#fff;border:1px solid var(--th-line);
  border-right:4px solid var(--th-accent);
  border-radius:var(--th-radius-sm);
}
.th-single__price .woocommerce-Price-amount,
.th-single__price .price{
  font-size:1.5rem;font-weight:800;color:var(--th-text);
}
.th-single__price-note{font-size:.8rem;color:var(--th-muted);}

.th-single__short{
  color:var(--th-muted);font-size:1rem;line-height:2;
  margin-bottom:26px;
}
.th-single__short p:last-child{margin-bottom:0;}

.th-single__desc-wrap{background:var(--th-cream-2);}
.th-single__desc-title{
  font-size:1.5rem;margin-bottom:20px;text-align:center;
}

@media(max-width:860px){
  .th-single__inner{grid-template-columns:1fr;}
  .th-single__media{position:static;}
}

/* ==========================================================================
   گزینه‌های سفارش (سینی‌ها و اندازه‌ها)
   ========================================================================== */
.th-options{
  background:#fff;
  border:1px solid var(--th-line);
  border-radius:var(--th-radius);
  padding:20px 20px 14px;
  margin-bottom:24px;
  box-shadow:var(--th-shadow);
}
.th-options__title{
  font-size:1.05rem;margin-bottom:14px;
  display:flex;align-items:center;gap:12px;
}
.th-options__title::after{
  content:'';flex:1;height:1px;
  background:linear-gradient(to left,var(--th-line),transparent);
}
.th-options__list{display:flex;flex-direction:column;}

.th-option{
  display:flex;align-items:center;gap:14px;
  padding:13px 4px;
  border-bottom:1px dashed rgba(28,24,21,.12);
}
.th-option:last-child{border-bottom:none;}

.th-option__name{
  flex:1;font-weight:700;font-size:.98rem;
}
.th-option__price{
  font-weight:800;color:var(--th-text);font-size:1rem;white-space:nowrap;
}
.th-option__price .woocommerce-Price-amount{font-weight:800;}

.th-option__btn{
  flex:none;
  background:var(--th-red);color:#fff;
  padding:7px 18px;border-radius:999px;
  font-size:.8rem;font-weight:700;
  transition:all .22s var(--th-ease);
}
.th-option__btn:hover{
  background:var(--th-ink);color:#fff;transform:translateY(-2px);
}

@media(max-width:480px){
  .th-options{padding:16px 14px 10px;}
  .th-option{gap:10px;padding:11px 2px;flex-wrap:wrap;}
  .th-option__name{flex:1 1 100%;font-size:.92rem;}
  .th-option__price{font-size:.92rem;}
  .th-option__btn{margin-right:auto;}
}

/* ==========================================================================
   بلوک اطلاعات تماس
   ========================================================================== */
.th-contact-box{
  background:var(--th-ink);
  color:#fff;
  border-radius:var(--th-radius);
  padding:26px 24px;
  box-shadow:var(--th-shadow-lg);
  position:relative;overflow:hidden;
}
.th-contact-box::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(500px 240px at 90% 0%,rgba(168,144,96,.22),transparent 70%);
  pointer-events:none;
}
.th-contact-box__title{
  font-size:1.15rem;color:#fff;margin-bottom:6px;position:relative;
}
.th-contact-box__note{
  font-size:.87rem;color:rgba(255,255,255,.6);
  margin-bottom:20px;position:relative;line-height:1.85;
}

.th-contact-box__list{
  display:flex;flex-direction:column;gap:11px;position:relative;
}

.th-contact-item{
  display:flex;align-items:center;gap:14px;
  padding:13px 16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--th-radius-sm);
  color:#fff;
  transition:all .26s var(--th-ease);
}
.th-contact-item:hover{
  background:rgba(255,255,255,.1);
  border-color:var(--th-accent);
  color:#fff;
  transform:translateX(-4px);
}

.th-contact-item__ico{
  flex:none;width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
}
.th-contact-item__ico svg{width:20px;height:20px;fill:#fff;}
.th-contact-item--wa  .th-contact-item__ico{background:#25D366;}
.th-contact-item--tel .th-contact-item__ico{background:var(--th-red);}
.th-contact-item--ig  .th-contact-item__ico{
  background:linear-gradient(45deg,#f09433,#dc2743,#bc1888);
}

.th-contact-item__txt{display:flex;flex-direction:column;line-height:1.5;}
.th-contact-item__txt strong{font-size:.98rem;font-weight:700;}
.th-contact-item__txt small{
  font-size:.8rem;color:rgba(255,255,255,.58);
  direction:ltr;text-align:right;
}

@media(max-width:520px){
  .th-contact-box{padding:20px 16px;}
  .th-contact-item{padding:11px 13px;gap:11px;}
  .th-contact-item__ico{width:38px;height:38px;}
}

/* ==========================================================================
   حالت کاتالوگ — پنهان کردن عناصر فروشگاهی
   ========================================================================== */
.th-catalog .cart,
.th-catalog .single_add_to_cart_button,
.th-catalog .woocommerce-cart-form,
.th-catalog .quantity{display:none !important;}
