/*
Theme Name: گالری خانم رژ
Theme URI: https://khanomerozh.ir
Author: Khanom Rozh Gallery
Author URI: https://khanomerozh.ir
Description: قالب اختصاصی فروشگاهی گالری خانم رژ برای لوازم آرایشی و بهداشتی، طراحی‌شده روی وردپرس و ووکامرس با ورود/ثبت‌نام پیامکی (OTP)، جستجوی زنده، اسلایدر محصولات و نماد اعتماد.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khanom-rozh
Tags: e-commerce, custom-colors, custom-menu, custom-logo, rtl-language-support, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   پالت رنگی: قرمز یاقوتی لوکس + سرمه‌ای تیره + طلایی رزگلد
   ========================================================= */
:root{
  --kr-red-900:#5c0d1f;
  --kr-red-700:#7a1128;
  --kr-red-600:#93172f;
  --kr-red-500:#a91f38;
  --kr-navy-900:#0b1226;
  --kr-navy-800:#101a34;
  --kr-navy-700:#182548;
  --kr-gold-500:#c9a66b;
  --kr-gold-300:#e3cd9e;
  --kr-cream-50:#fbf7f3;
  --kr-cream-100:#f3e9e1;
  --kr-blush-100:#f3e4e1;
  --kr-ink-900:#241f26;
  --kr-ink-600:#6b6470;
  --kr-white:#ffffff;
  --kr-success:#2e7d4f;
  --kr-danger:#b3261e;

  --kr-radius-sm:10px;
  --kr-radius-md:16px;
  --kr-radius-lg:26px;
  --kr-shadow-sm:0 2px 10px rgba(16,26,52,.06);
  --kr-shadow-md:0 10px 30px rgba(16,26,52,.10);
  --kr-shadow-lg:0 20px 50px rgba(16,26,52,.16);

  --kr-container:1280px;
  --kr-font-body:"Vazirmatn",Tahoma,sans-serif;
  --kr-font-display:"Vazirmatn",Tahoma,sans-serif;
}

/* =========================================================
   FONT — Vazirmatn (وزیرمتن) از طریق jsDelivr (بدون وابستگی به گوگل)
   ========================================================= */
@font-face{
  font-family:"Vazirmatn";
  src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfont/woff2/Vazirmatn-Regular.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Vazirmatn";
  src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfont/woff2/Vazirmatn-Medium.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Vazirmatn";
  src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfont/woff2/Vazirmatn-Bold.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Vazirmatn";
  src:url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfont/woff2/Vazirmatn-Black.woff2") format("woff2");
  font-weight:900; font-style:normal; font-display:swap;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden; width:100%;}
body{
  margin:0;
  font-family:var(--kr-font-body);
  background:var(--kr-cream-50);
  color:var(--kr-ink-900);
  direction:rtl;
  text-align:right;
  line-height:1.9;
  font-size:16px;
  overflow-x:hidden;
  width:100%;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}
input,textarea,select{font-family:inherit;}
:focus-visible{outline:2px solid var(--kr-gold-500); outline-offset:2px;}
h1,h2,h3,h4{font-family:var(--kr-font-display); font-weight:700; margin:0 0 .5em; color:var(--kr-navy-900);}
.container{max-width:var(--kr-container); width:100%; margin:0 auto; padding:0 26px; box-sizing:border-box;}
.skip-link{position:absolute; right:-999px; top:0; background:var(--kr-navy-900); color:#fff; padding:10px 16px; z-index:9999;}
.skip-link:focus{right:10px; top:10px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* جلوگیری از سرریز افقی روی موبایل به‌طور کلی */
img, svg, video{max-width:100%;}
.kr-header, .kr-header__inner, .kr-topbar, .kr-topbar__inner, .kr-footer, .kr-hero, .kr-header__nav{max-width:100%;}

/* =========================================================
   TOPBAR — آدرس / تلفن / ساعات کاری
   ========================================================= */
.kr-topbar{
  background:linear-gradient(90deg, var(--kr-navy-900), var(--kr-navy-800) 60%, var(--kr-navy-900));
  color:var(--kr-cream-100);
  font-size:12px;
  border-bottom:1px solid rgba(201,166,107,.35);
  position:relative;
}
.kr-topbar::after{content:""; position:absolute; inset-inline:0; bottom:-1px; height:1px; background:linear-gradient(90deg, transparent, var(--kr-gold-500), transparent);}
.kr-topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:6px 0; flex-wrap:wrap; min-height:30px;
}
.kr-topbar__item{display:flex; align-items:center; gap:6px; opacity:.9; position:relative; padding-inline-end:14px;}
.kr-topbar__item:not(:last-child)::after{content:""; position:absolute; inset-inline-end:0; top:50%; transform:translateY(-50%); width:1px; height:12px; background:rgba(255,255,255,.16);}
.kr-topbar__item svg{width:13px; height:13px; flex:none; color:var(--kr-gold-500);}
.kr-topbar a:hover{color:var(--kr-gold-300);}
.kr-topbar__phone{
  display:inline-flex; align-items:center; gap:6px; background:rgba(201,166,107,.14);
  border:1px solid rgba(201,166,107,.4); border-radius:999px; padding:3px 12px 3px 4px;
  font-weight:700; font-size:12px; line-height:1; transition:background .2s, transform .2s;
}
.kr-topbar__phone:hover{background:var(--kr-gold-500); color:var(--kr-navy-900); transform:translateY(-1px);}
.kr-topbar__phone span{
  width:18px; height:18px; border-radius:50%; background:var(--kr-gold-500); color:var(--kr-navy-900);
  display:flex; align-items:center; justify-content:center; flex:none; overflow:hidden;
}
.kr-topbar__phone:hover span{background:var(--kr-navy-900); color:var(--kr-gold-300);}
.kr-topbar__phone svg{width:10px; height:10px; display:block;}
.kr-topbar__social{display:flex; gap:7px;}
.kr-topbar__social a{
  width:24px; height:24px; border-radius:50%; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  transition:background .2s, transform .2s, border-color .2s;
}
.kr-topbar__social a:hover{background:var(--kr-gold-500); border-color:var(--kr-gold-500); color:var(--kr-navy-900); transform:translateY(-2px);}
.kr-topbar__social svg{width:12px; height:12px; display:block;}
@media (max-width:560px){
  .kr-topbar__addr-hours{display:none;}
  .kr-topbar__inner{justify-content:center;}
}

/* =========================================================
   HEADER اصلی
   ========================================================= */
.kr-header{
  background:var(--kr-white);
  border-bottom:1px solid var(--kr-cream-100);
  position:sticky; top:0; z-index:500;
  box-shadow:var(--kr-shadow-sm);
}
.kr-header__inner{
  display:flex; align-items:center; gap:22px;
  padding:14px 0;
  flex-wrap:wrap;
  width:100%;
}
.kr-header__hamburger{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  border:1px solid var(--kr-cream-100); background:var(--kr-cream-50);
  flex:none;
}
.kr-header__hamburger svg{width:20px; height:20px; color:var(--kr-navy-900);}

.kr-logo{display:flex; align-items:center; gap:10px; flex:none;}
.kr-logo__mark{
  width:46px; height:46px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--kr-red-500), var(--kr-red-900));
  border:2px solid var(--kr-gold-500);
  display:flex; align-items:center; justify-content:center;
  color:var(--kr-gold-300); font-weight:900; font-size:18px;
  box-shadow:var(--kr-shadow-sm);
}
.kr-logo__text{display:flex; flex-direction:column; line-height:1.25;}
.kr-logo__text strong{font-size:18px; color:var(--kr-navy-900); font-weight:900;}
.kr-logo__text span{font-size:11px; color:var(--kr-gold-500); letter-spacing:.5px;}

.kr-header__search{flex:1; min-width:0; position:relative;}
.kr-header__search form{display:flex; align-items:center; background:var(--kr-cream-50); border:1px solid var(--kr-cream-100); border-radius:999px; padding:4px 6px 4px 4px;}
.kr-header__search input[type="search"]{
  flex:1; border:0; background:transparent; padding:10px 14px; font-size:14px; color:var(--kr-ink-900);
}
.kr-header__search button{
  width:38px; height:38px; border-radius:50%; border:0;
  background:var(--kr-red-700); color:#fff; display:flex; align-items:center; justify-content:center; flex:none;
}
.kr-header__search button svg{width:17px; height:17px;}
.kr-live-results{
  position:absolute; inset-inline:0; top:calc(100% + 8px);
  background:#fff; border:1px solid var(--kr-cream-100); border-radius:var(--kr-radius-md);
  box-shadow:var(--kr-shadow-lg); max-height:420px; overflow:auto; z-index:600; display:none;
}
.kr-live-results.is-open{display:block;}
.kr-live-results a{display:flex; align-items:center; gap:12px; padding:10px 14px; border-bottom:1px solid var(--kr-cream-50);}
.kr-live-results a:hover{background:var(--kr-cream-50);}
.kr-live-results img{width:44px; height:44px; border-radius:8px; object-fit:cover; flex:none;}
.kr-live-results .kr-lr-title{font-size:13.5px; font-weight:500;}
.kr-live-results .kr-lr-price{font-size:12px; color:var(--kr-red-700); font-weight:700;}
.kr-live-results__empty, .kr-live-results__loading{padding:16px; font-size:13px; color:var(--kr-ink-600); text-align:center;}
.kr-live-results__more{display:block; text-align:center; padding:12px; font-weight:700; color:var(--kr-red-700); background:var(--kr-cream-50);}

.kr-header__actions{display:flex; align-items:center; gap:8px; flex:none;}
.kr-icon-btn{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%; border:1px solid var(--kr-cream-100);
  background:var(--kr-cream-50); color:var(--kr-navy-900); transition:background .2s, color .2s;
}
.kr-icon-btn:hover{background:var(--kr-red-700); color:#fff;}
.kr-icon-btn svg{width:20px; height:20px;}
.kr-icon-btn__badge{
  position:absolute; top:-4px; left:-4px; min-width:19px; height:19px; padding:0 4px; border-radius:999px;
  background:var(--kr-gold-500); color:var(--kr-navy-900); font-size:11px; font-weight:900;
  display:flex; align-items:center; justify-content:center; border:2px solid #fff;
}

.kr-header__nav{background:var(--kr-navy-900);}
.kr-header__nav .container{display:flex; align-items:center; justify-content:center; flex-wrap:wrap;}
.kr-main-menu{display:flex; align-items:center; gap:4px; flex-wrap:wrap;}
.kr-main-menu li a{
  display:block; padding:13px 16px; color:#efe6da; font-size:14.5px; font-weight:500;
  border-bottom:2px solid transparent; transition:border-color .2s, color .2s;
}
.kr-main-menu li a:hover, .kr-main-menu li.current-menu-item a{color:var(--kr-gold-300); border-color:var(--kr-gold-500);}

/* منوی همبرگری کشویی (موبایل) */
.kr-drawer{
  position:fixed; inset-block:0; right:0; width:min(320px,86vw); background:#fff; z-index:1000;
  transform:translateX(100%); transition:transform .3s ease; box-shadow:var(--kr-shadow-lg);
  overflow-y:auto; display:flex; flex-direction:column;
}
.kr-drawer.is-open{transform:translateX(0);}
.kr-drawer__head{display:flex; align-items:center; justify-content:space-between; padding:16px; border-bottom:1px solid var(--kr-cream-100);}
.kr-drawer__close{width:36px; height:36px; border-radius:50%; border:1px solid var(--kr-cream-100); background:var(--kr-cream-50); display:flex; align-items:center; justify-content:center;}
.kr-drawer nav ul li{position:relative;}
.kr-drawer nav ul li a{
  display:flex; align-items:center; gap:10px;
  padding:15px 22px; border-bottom:1px solid var(--kr-cream-100);
  font-weight:700; font-size:14.5px; color:var(--kr-navy-900) !important;
  transition:background .2s, color .2s, padding-right .2s;
  position:relative;
}
.kr-drawer nav ul li a::before{
  content:""; position:absolute; right:0; top:0; bottom:0; width:3px;
  background:var(--kr-gold-500); transform:scaleY(0); transition:transform .2s;
}
.kr-drawer nav ul li a:hover, .kr-drawer nav ul li.current-menu-item a{
  background:var(--kr-cream-50); color:var(--kr-red-700) !important; padding-right:26px;
}
.kr-drawer nav ul li a:hover::before, .kr-drawer nav ul li.current-menu-item a::before{transform:scaleY(1);}

.kr-drawer__contact{padding:20px 22px; margin-top:auto; background:linear-gradient(160deg,var(--kr-cream-50),var(--kr-cream-100)); border-top:1px solid var(--kr-cream-100);}
.kr-drawer__contact-item{display:flex; align-items:flex-start; gap:12px; margin-bottom:14px;}
.kr-drawer__contact-item:last-of-type{margin-bottom:0;}
.kr-drawer__contact-icon{
  width:36px; height:36px; border-radius:50%; flex:none;
  background:var(--kr-navy-900); color:var(--kr-gold-300);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--kr-shadow-sm);
}
.kr-drawer__contact-icon svg{width:16px; height:16px;}
.kr-drawer__contact-text{font-size:13px; color:var(--kr-ink-600); line-height:1.7; padding-top:6px;}
.kr-drawer__contact-text a{color:var(--kr-navy-900); font-weight:700;}
.kr-drawer__cta{display:flex; gap:8px; margin-top:16px;}
.kr-drawer__cta a{flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:11px 0; border-radius:999px; font-size:13px; font-weight:700;}
.kr-drawer__cta a svg{width:15px; height:15px;}
.kr-drawer__cta .kr-cta-call{background:var(--kr-navy-900); color:#fff;}
.kr-drawer__cta .kr-cta-whatsapp{background:#25D366; color:#fff;}
.kr-overlay{position:fixed; inset:0; background:rgba(11,18,38,.55); z-index:900; opacity:0; pointer-events:none; transition:opacity .25s;}
.kr-overlay.is-open{opacity:1; pointer-events:auto;}

@media (min-width:1025px){
  .kr-header__hamburger{display:none;}
}
@media (max-width:1024px){
  .kr-header__nav{display:none;}
}

/* --- ریسپانسیو هدر: زیر ۹۰۰ پیکسل، جستجو به ردیف دوم و تمام‌عرض منتقل می‌شود --- */
@media (max-width:900px){
  .kr-header__inner{gap:10px;}
  .kr-header__hamburger{order:1;}
  .kr-logo{order:2; min-width:0;}
  .kr-header__actions{order:3; margin-inline-start:auto;}
  .kr-header__search{order:4; flex:1 1 100%; width:100%; min-width:0;}
}
@media (max-width:560px){
  .container{padding:0 18px;}
  .kr-header__inner{padding:10px 0; gap:8px;}
  .kr-header__hamburger, .kr-icon-btn{width:38px; height:38px; flex:none;}
  .kr-logo{gap:8px;}
  .kr-logo__mark{width:38px; height:38px; font-size:15px; flex:none;}
  .kr-logo__text{min-width:0;}
  .kr-logo__text strong{
    font-size:14px; max-width:34vw; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block;
  }
  .kr-logo__text span{display:none;}
  .kr-header__actions{gap:6px;}
  .kr-topbar__inner{justify-content:center; text-align:center;}
}
@media (max-width:370px){
  .kr-logo__text{display:none;} /* روی کوچک‌ترین صفحه‌ها فقط نشان دایره‌ای گالری نمایش داده می‌شود */
}

/* =========================================================
   دکمه‌ها
   ========================================================= */
.kr-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-weight:700; font-size:14.5px;
  border:1px solid transparent; transition:transform .2s, box-shadow .2s, background .2s;
}
.kr-btn--primary{background:linear-gradient(135deg,var(--kr-red-600),var(--kr-red-900)); color:#fff; box-shadow:var(--kr-shadow-sm);}
.kr-btn--primary:hover{transform:translateY(-2px); box-shadow:var(--kr-shadow-md);}
.kr-btn--outline{background:transparent; border-color:var(--kr-navy-900); color:var(--kr-navy-900);}
.kr-btn--outline:hover{background:var(--kr-navy-900); color:#fff;}
.kr-btn--gold{background:linear-gradient(135deg,var(--kr-gold-300),var(--kr-gold-500)); color:var(--kr-navy-900);}
.kr-btn--block{width:100%;}
.kr-btn[disabled]{opacity:.55; pointer-events:none;}

/* =========================================================
   بخش‌های صفحه اصلی
   ========================================================= */
.kr-section{padding:56px 0;}
.kr-section--tight{padding:36px 0;}
.kr-section__head{display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:26px; gap:12px;}
.kr-section__eyebrow{color:var(--kr-red-700); font-weight:700; font-size:13px; letter-spacing:.5px;}
.kr-section__title{font-size:26px; margin:4px 0 0;}
.kr-section__more{font-size:13.5px; font-weight:700; color:var(--kr-red-700); white-space:nowrap;}
.kr-section__more:hover{text-decoration:underline;}

/* هیرو */
.kr-hero{
  background:linear-gradient(120deg,var(--kr-navy-900),var(--kr-navy-700) 60%, var(--kr-red-900));
  color:#fff; border-radius:0 0 40px 40px; overflow:hidden; position:relative;
}
.kr-hero__inner{
  display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:30px; padding:64px 0;
}
.kr-hero__eyebrow{display:inline-block; color:var(--kr-gold-300); border:1px solid var(--kr-gold-500); border-radius:999px; padding:6px 16px; font-size:12.5px; font-weight:700; margin-bottom:16px;}
.kr-hero h1{color:#fff; font-size:38px; line-height:1.4; max-width:14ch;}
.kr-hero p{color:#e7dfd3; max-width:44ch; font-size:15.5px;}
.kr-hero__cap{
  width:100%; aspect-ratio:1/1; max-width:340px; margin:0 auto; border-radius:50%;
  border:8px solid var(--kr-gold-500); background:radial-gradient(circle at 32% 28%, var(--kr-red-500), var(--kr-red-900) 70%);
  display:flex; align-items:center; justify-content:center; position:relative; box-shadow:var(--kr-shadow-lg);
}
.kr-hero__cap::before{content:""; position:absolute; inset:14px; border:1px solid rgba(255,255,255,.35); border-radius:50%;}
.kr-hero__cap span{font-family:var(--kr-font-display); color:var(--kr-gold-300); font-weight:900; font-size:15px; text-align:center;}
@media (max-width:900px){
  .kr-hero__inner{grid-template-columns:1fr; text-align:center; padding:44px 0;}
  .kr-hero p{margin-inline:auto;}
  .kr-hero h1{max-width:none;}
}

/* دسته‌بندی‌ها — نشان مدور مثل درب عطر/کمپکت (المان امضادار) */
.kr-cats{display:grid; grid-template-columns:repeat(7,1fr); gap:18px; min-width:0;}
.kr-cat{min-width:0;}
.kr-cat{display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center;}
.kr-cat__badge{
  width:84px; height:84px; border-radius:50%; background:var(--kr-white);
  border:3px solid var(--kr-gold-500); box-shadow:var(--kr-shadow-sm);
  display:flex; align-items:center; justify-content:center; color:var(--kr-red-700);
  transition:transform .25s, box-shadow .25s;
}
.kr-cat__badge svg{width:34px; height:34px;}
.kr-cat:hover .kr-cat__badge{transform:translateY(-6px) rotate(-4deg); box-shadow:var(--kr-shadow-md); background:var(--kr-red-700); color:var(--kr-gold-300);}
.kr-cat span{font-size:13.5px; font-weight:700;}
@media (max-width:980px){.kr-cats{grid-template-columns:repeat(4,1fr);}}
@media (max-width:560px){.kr-cats{grid-template-columns:repeat(3,1fr);} .kr-cat__badge{width:68px; height:68px;} .kr-cat__badge svg{width:26px; height:26px;}}

/* اسلایدر افقی محصولات */
.kr-slider{position:relative;}
.kr-slider__track{
  display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px;
  scrollbar-width:none;
}
.kr-slider__track::-webkit-scrollbar{display:none;}
.kr-slider__nav{
  position:absolute; top:38%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%;
  background:#fff; border:1px solid var(--kr-cream-100); box-shadow:var(--kr-shadow-sm);
  display:flex; align-items:center; justify-content:center; z-index:5;
}
.kr-slider__nav svg{width:18px; height:18px; color:var(--kr-navy-900);}
.kr-slider__nav--prev{right:-6px;}
.kr-slider__nav--next{left:-6px;}
@media (max-width:640px){.kr-slider__nav{display:none;}}

/* کارت محصول — کوچک و فشرده تا تعداد بیشتری در هر ردیف دیده شود؛ نام و قیمت همیشه برجسته و خوانا */
.kr-product-card{
  scroll-snap-align:start; flex:0 0 118px; background:#fff; border-radius:var(--kr-radius-sm);
  border:1px solid var(--kr-cream-100); box-shadow:0 1px 4px rgba(16,26,52,.05); overflow:hidden; position:relative; transition:box-shadow .25s, transform .25s;
}
@media (min-width:481px){.kr-product-card{flex-basis:144px;}}
@media (min-width:641px){.kr-product-card{flex-basis:165px;}}
@media (min-width:1025px){.kr-product-card{flex-basis:190px;}}
.kr-product-card:hover{box-shadow:var(--kr-shadow-md); transform:translateY(-4px);}
.kr-product-card__img{aspect-ratio:1/1; overflow:hidden; background:var(--kr-cream-50); position:relative;}
.kr-product-card__img img{width:100%; height:100%; object-fit:cover; transition:transform .4s;}
.kr-product-card:hover .kr-product-card__img img{transform:scale(1.06);}
.kr-product-card__badge{position:absolute; top:8px; right:8px; background:var(--kr-red-700); color:#fff; font-size:10px; font-weight:700; padding:3px 8px; border-radius:999px; line-height:1.4;}
.kr-product-card__badge--new{background:var(--kr-navy-900);}
.kr-product-card__body{padding:9px 8px 10px;}
.kr-product-card__cat{font-size:10px; color:var(--kr-ink-600); margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.kr-product-card__title{font-size:12.5px; font-weight:700; margin:0 0 6px; min-height:32px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35; color:var(--kr-navy-900);}
.kr-product-card__price{display:flex; align-items:baseline; gap:6px; flex-wrap:wrap;}
.kr-product-card__price ins{text-decoration:none; color:var(--kr-red-700); font-weight:900; font-size:14px;}
.kr-product-card__price del{color:var(--kr-ink-600); font-size:11px; opacity:.7;}
.kr-product-card__add{
  margin-top:8px; width:100%; border-radius:999px; padding:7px; font-size:11.5px; font-weight:700;
  background:var(--kr-navy-900); color:#fff; border:0; display:flex; align-items:center; justify-content:center; gap:5px;
}
.kr-product-card__add:hover{background:var(--kr-red-700);}

/* بنر اطمینان خرید */
.kr-trustband{background:var(--kr-cream-100); border-radius:var(--kr-radius-lg); padding:28px; display:grid; grid-template-columns:repeat(4,1fr); gap:20px; min-width:0;}
.kr-trustband__item{min-width:0;}
.kr-trustband__item{display:flex; align-items:center; gap:12px;}
.kr-trustband__item svg{width:30px; height:30px; color:var(--kr-red-700); flex:none;}
.kr-trustband__item strong{display:block; font-size:14px;}
.kr-trustband__item span{font-size:12px; color:var(--kr-ink-600);}
@media (max-width:900px){.kr-trustband{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.kr-trustband{grid-template-columns:1fr;}}

/* =========================================================
   فوتر
   ========================================================= */
.kr-footer{background:var(--kr-navy-900); color:#cfd3de; margin-top:60px;}
.kr-footer__top{padding:50px 0 30px;}
.kr-footer__grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:30px; min-width:0;}
.kr-footer__grid > div{min-width:0;}
.kr-footer p, .kr-footer li, .kr-footer h4{overflow-wrap:break-word; word-break:break-word;}
.kr-footer h4{color:#fff; font-size:15px; margin-bottom:16px; position:relative; padding-bottom:10px;}
.kr-footer h4::after{content:""; position:absolute; bottom:0; right:0; width:36px; height:2px; background:var(--kr-gold-500);}
.kr-footer p, .kr-footer li a{font-size:13.5px; color:#b8bccb; line-height:2;}
.kr-footer li a:hover{color:var(--kr-gold-300);}
.kr-footer__logo{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.kr-footer__social{display:flex; gap:10px; margin-top:14px;}
.kr-footer__social a{width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; transition:background .2s, transform .2s;}
.kr-footer__social a:hover{background:var(--kr-gold-500); color:var(--kr-navy-900); transform:translateY(-3px);}
.kr-footer__social svg{width:18px; height:18px;}
.kr-footer__contact li{display:flex; gap:10px; margin-bottom:12px; font-size:13.5px; color:#b8bccb; min-width:0;}
.kr-footer__contact li span{min-width:0; overflow-wrap:break-word; word-break:break-word;}
.kr-footer__contact svg{width:18px; height:18px; color:var(--kr-gold-500); flex:none; margin-top:2px;}
.kr-footer__badges{border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); padding:22px 0;}
.kr-footer__badges .container{display:flex; align-items:center; justify-content:center; gap:26px; flex-wrap:wrap;}
.kr-trust-badge{display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.04); padding:10px 18px; border-radius:14px; border:1px solid rgba(255,255,255,.08);}
.kr-trust-badge svg{width:26px; height:26px; color:var(--kr-gold-500);}
.kr-trust-badge span{font-size:12.5px; color:#dfe2ea;}
.kr-footer__bottom{padding:16px 0; font-size:12.5px; color:#8b90a3; text-align:center;}
@media (max-width:980px){.kr-footer__grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.kr-footer__grid{grid-template-columns:1fr;}}

/* =========================================================
   صفحه اختصاصی ورود / ثبت‌نام با OTP (جایگزین صفحه پیش‌فرض وردپرس/ووکامرس)
   ========================================================= */
.kr-auth-page{
  background:linear-gradient(135deg,var(--kr-navy-900),var(--kr-navy-700) 55%, var(--kr-red-900));
  min-height:70vh;
  display:flex; align-items:center; justify-content:center; gap:70px; flex-wrap:wrap;
  padding:60px 26px;
}
.kr-auth-page__decor{color:#fff; text-align:center; max-width:300px;}
.kr-auth-page__cap{
  width:210px; height:210px; margin:0 auto 22px; border-radius:50%; border:6px solid var(--kr-gold-500);
  background:radial-gradient(circle at 32% 28%, var(--kr-red-500), var(--kr-red-900) 70%);
  display:flex; align-items:center; justify-content:center; position:relative; box-shadow:var(--kr-shadow-lg);
}
.kr-auth-page__cap::before{content:""; position:absolute; inset:12px; border:1px solid rgba(255,255,255,.35); border-radius:50%;}
.kr-auth-page__cap span{font-family:var(--kr-font-display); color:var(--kr-gold-300); font-weight:900; font-size:15px; text-align:center; line-height:1.6;}
.kr-auth-page__tagline{color:#e7dfd3; font-size:14.5px; line-height:1.9;}
@media (max-width:860px){
  .kr-auth-page__decor{display:none;}
  .kr-auth-page{padding:34px 18px; min-height:auto;}
}

.kr-auth-wrap{
  max-width:400px; width:100%; background:#fff; border-radius:var(--kr-radius-lg);
  box-shadow:var(--kr-shadow-lg); padding:34px 26px; position:relative; overflow:hidden;
}
.kr-auth-wrap::before{content:""; position:absolute; top:0; right:0; left:0; height:5px; background:linear-gradient(90deg,var(--kr-red-700),var(--kr-gold-500));}
.kr-auth-wrap__head{text-align:center; margin-bottom:22px;}
.kr-auth-wrap__head .kr-logo{justify-content:center; margin-bottom:10px;}
.kr-field{margin-bottom:16px;}
.kr-field label{display:block; font-size:13px; font-weight:700; margin-bottom:7px; color:var(--kr-navy-900);}
.kr-field input{width:100%; padding:13px 16px; border:1px solid var(--kr-cream-100); border-radius:12px; background:var(--kr-cream-50); font-size:14.5px; transition:border-color .2s, background .2s;}
.kr-field input:focus{border-color:var(--kr-gold-500); background:#fff;}
.kr-captcha{display:flex; align-items:center; gap:10px;}
.kr-captcha__q{background:var(--kr-navy-900); color:#fff; font-weight:900; font-size:16px; border-radius:12px; padding:0 16px; height:48px; display:flex; align-items:center; letter-spacing:2px; flex:none;}
.kr-captcha__refresh{width:44px; height:44px; border-radius:12px; border:1px solid var(--kr-cream-100); background:var(--kr-cream-50); display:flex; align-items:center; justify-content:center; flex:none; transition:background .2s, transform .2s;}
.kr-captcha__refresh:hover{background:var(--kr-gold-500); transform:rotate(90deg);}
.kr-otp-inputs{display:flex; gap:8px; justify-content:center; direction:ltr;}
.kr-otp-inputs input{width:44px; height:52px; text-align:center; font-size:19px; font-weight:800; border:1px solid var(--kr-cream-100); border-radius:12px; background:var(--kr-cream-50);}
.kr-otp-inputs input:focus{border-color:var(--kr-gold-500); background:#fff;}
.kr-auth-msg{font-size:13px; border-radius:10px; padding:10px 14px; margin-bottom:14px;}
.kr-auth-msg--error{background:#fdecec; color:var(--kr-danger);}
.kr-auth-msg--success{background:#e9f6ee; color:var(--kr-success);}
.kr-auth-timer{text-align:center; font-size:12.5px; color:var(--kr-ink-600); margin-top:10px;}
.kr-auth-switch{text-align:center; font-size:13px; margin-top:16px; color:var(--kr-ink-600);}
.kr-auth-switch a{color:var(--kr-red-700); font-weight:700;}

/* =========================================================
   صفحه فروشگاه / آرشیو ووکامرس
   ========================================================= */
.kr-shop-toolbar{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:26px; flex-wrap:wrap;}
ul.products{display:grid !important; grid-template-columns:repeat(4,1fr); gap:20px; margin:0 !important; padding:0 !important; min-width:0;}
ul.products li.product{min-width:0;}
ul.products li.product{list-style:none;}
@media (max-width:980px){ul.products{grid-template-columns:repeat(3,1fr);}}
@media (max-width:700px){ul.products{grid-template-columns:repeat(2,1fr);}}

/* =========================================================
   چک‌اوت
   ========================================================= */
.kr-checkout-wrap{background:#fff; border:1px solid var(--kr-cream-100); border-radius:var(--kr-radius-lg); padding:30px; box-shadow:var(--kr-shadow-sm);}
.kr-checkout-security{display:flex; align-items:center; gap:10px; background:var(--kr-cream-50); border-radius:12px; padding:12px 16px; margin-top:18px; font-size:12.5px; color:var(--kr-ink-600);}
.kr-checkout-security svg{width:20px; height:20px; color:var(--kr-success); flex:none;}

/* =========================================================
   صفحه قوانین
   ========================================================= */
.kr-terms{max-width:820px; margin:40px auto; background:#fff; padding:36px; border-radius:var(--kr-radius-lg); box-shadow:var(--kr-shadow-sm);}
.kr-terms h2{color:var(--kr-red-700); font-size:19px; margin-top:28px;}
.kr-terms p, .kr-terms li{color:var(--kr-ink-600); font-size:14.5px;}

/* شبکه دیگری از سبک‌ها این‌جا نیست، اما محافظت در برابر ویجت‌ها/سایدبارهای احتمالی افزونه‌ها */
#secondary, .widget-area, .widget{max-width:100%; overflow-wrap:break-word; word-break:break-word; box-sizing:border-box;}
.kr-admin-note{background:#fff8e6; border:1px solid #f1d98b; padding:12px 16px; border-radius:10px; font-size:13px; margin:16px 0;}

/* =========================================================
   محصولات دارای تنوع (رنگ/کد) — فرم استاندارد ووکامرس
   این استایل روی خروجی پیش‌فرض ووکامرس (فیلدهای انتخاب/کشویی تنوع) اعمال می‌شود
   و در صورت نصب افزونه رایگان «Variation Swatches for WooCommerce»، دایره‌های
   رنگی آن افزونه هم به‌طور خودکار هم‌راستا با تم قرمز/طلایی/سرمه‌ای می‌شوند.
   ========================================================= */
.variations{width:100%; border:0 !important;}
.variations td, .variations th{padding:8px 0 !important; border:0 !important;}
.variations label{font-weight:700; font-size:13.5px; color:var(--kr-navy-900);}
.variations select{
  width:100%; padding:11px 14px; border:1px solid var(--kr-cream-100); border-radius:12px;
  background:var(--kr-cream-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1128' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") left 12px center / 16px no-repeat;
  font-size:14px; appearance:none; -webkit-appearance:none;
}
.woocommerce-variation-price .price{color:var(--kr-red-700); font-weight:900; font-size:19px;}
.woocommerce-variation-add-to-cart{margin-top:14px;}
.single_add_to_cart_button{
  background:linear-gradient(135deg,var(--kr-red-600),var(--kr-red-900)) !important; border:0 !important;
  border-radius:999px !important; padding:13px 30px !important; font-weight:700 !important;
}
.reset_variations{color:var(--kr-red-700); font-size:12.5px;}

/* هم‌راستاسازی ظاهر افزونه Variation Swatches for WooCommerce با تم گالری */
.variable-items-wrapper{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px;}
.variable-items-wrapper .variable-item{
  border:2px solid var(--kr-cream-100) !important; box-shadow:none !important;
}
.variable-items-wrapper .variable-item.selected,
.variable-items-wrapper .variable-item:hover{
  border-color:var(--kr-gold-500) !important; box-shadow:0 0 0 2px rgba(201,166,107,.25) !important;
}
.variable-items-wrapper .variable-item.color-variable-item{width:34px !important; height:34px !important; border-radius:50% !important;}
