/* ==============================================
   Khorshid-Theme - MAIN STYLESHEET
   WooCommerce
   ============================================== */

/* ---- LOCAL VAZIRMATN FONTS ---- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-300.woff2') format('woff2'),
       url('../fonts/Vazirmatn-300.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-400.woff2') format('woff2'),
       url('../fonts/Vazirmatn-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-500.woff2') format('woff2'),
       url('../fonts/Vazirmatn-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-600.woff2') format('woff2'),
       url('../fonts/Vazirmatn-600.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-700.woff2') format('woff2'),
       url('../fonts/Vazirmatn-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-800.woff2') format('woff2'),
       url('../fonts/Vazirmatn-800.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* ---- VARIABLES ---- */
:root {
  --primary:      #C8102E;
  --primary-dark: #a50d26;
  --accent:       #D0A884;
  --accent-dark:  #A57751;
  --dark:         #2D2F30;
  --gray:         #848484;
  --gray-light:   #D3D3D3;
  --bg-light:     #EAEAEA;
  --bg:           #ffffff;
  --white:        #ffffff;
  --font:         'Vazirmatn', Tahoma, Arial, sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 30px rgba(0,0,0,.14);
  --trans:        .2s ease;
}

/* ---- RESET ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }

/* جلوگیری از overflow افقی */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body { font-family: var(--font); color: var(--dark); background: var(--bg); direction: rtl; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul,ol { list-style: none; }
button,input,select,textarea { font-family: var(--font); font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---- CONTAINER ---- */
.kh-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* ==============================================
   TOP BAR
   ============================================== */
.kh-topbar { background: var(--primary); color: #fff; padding: 8px 0; font-size: 13px; }
.kh-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.kh-topbar-phone { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.kh-topbar-phone a { color: #fff; }
.kh-topbar-msg { font-size: 12px; opacity: .9; }

/* ==============================================
   HEADER
   ============================================== */
.kh-header { background: var(--white); border-bottom: 1px solid var(--bg-light); position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,.05); }

.kh-header-main { display: flex; align-items: center; gap: 16px; padding: 14px 0; }

/* Logo */
.kh-logo img { height: 56px; width: auto; }
.kh-logo a { display: block; }

/* Search */
.kh-search { flex: 1; min-width: 0; }
.kh-search-form { display: flex; border: 1.5px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; transition: border-color var(--trans); }
.kh-search-form:focus-within { border-color: var(--accent-dark); }
.kh-search-input { flex: 1; padding: 10px 12px; border: none; outline: none; font-size: 14px; background: transparent; direction: rtl; color: var(--dark); min-width: 0; }
.kh-search-btn { background: var(--primary); color: #fff; padding: 0 16px; border: none; cursor: pointer; transition: background var(--trans); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kh-search-btn:hover { background: var(--primary-dark); }

/* Actions */
.kh-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.kh-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 10px; border-radius: var(--radius); font-size: 11px; color: var(--dark); transition: color var(--trans), background var(--trans); position: relative; cursor: pointer; white-space: nowrap; }
.kh-action-btn:hover { color: var(--primary); background: var(--bg-light); }
.kh-action-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.kh-badge { position: absolute; top: 3px; left: 6px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.kh-cart-total-header { border: 1px solid var(--gray-light); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg-light); flex-shrink: 0; }

/* همبرگر - پنهان در دسکتاپ */
.kh-mob-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; flex-shrink: 0; }
.kh-mob-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--trans); }

/* mobile drawer - پنهان در دسکتاپ */
@media (min-width: 769px) {
  .kh-mobile-drawer { display: none !important; }
}

/* ==============================================
   NAVBAR
   ============================================== */
.kh-navbar { background: var(--white); border-top: 1px solid var(--bg-light); }
.kh-navbar-inner { display: flex; align-items: center; direction: rtl; }

/* Categories button */
.kh-all-cats { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--dark); padding: 14px 16px 14px 16px; cursor: pointer; transition: color var(--trans); flex-shrink: 0; border-left: 1px solid var(--bg-light); }
.kh-all-cats:hover { color: var(--primary); }
.kh-all-cats svg { width: 20px; height: 20px; }

/* Spacer */
.kh-nav-spacer { flex: 1; }

/* Desktop nav */
.kh-nav { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.kh-nav > li { position: relative; }
.kh-nav > li > a { display: block; padding: 14px 14px; font-size: 14px; font-weight: 600; color: var(--dark); transition: color var(--trans); white-space: nowrap; position: relative; }
.kh-nav > li > a::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform var(--trans); }
.kh-nav > li:hover > a, .kh-nav > li.current-menu-item > a { color: var(--primary); }
.kh-nav > li:hover > a::after, .kh-nav > li.current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown */
.kh-nav > li > ul { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--bg-light); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 190px; padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--trans); z-index: 200; list-style: none; }
.kh-nav > li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.kh-nav > li > ul li a { display: block; padding: 9px 16px; font-size: 13px; transition: background var(--trans), color var(--trans); }
.kh-nav > li > ul li a:hover { background: var(--bg-light); color: var(--primary); }


/* ==============================================
   HERO TILES (IKEA-style)
   ============================================== */
.kh-hero-tiles { padding: 12px 0; background: #fff; }

.kh-ht-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 8px;
  align-items: stretch;
}

/* اسلاید اصلی */
.kh-ht-main { position: relative; border-radius: 8px; overflow: hidden; }

.kh-hero-big {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-light);
}

.kh-hero-big-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.kh-hero-big-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.kh-hbs-link {
  display: block; width: 100%; height: 100%;
  text-decoration: none; position: relative;
}
.kh-hero-big-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.kh-hbs-caption {
  position: absolute;
  bottom: 32px; right: 32px;
  background: rgba(255,255,255,.92);
  padding: 18px 22px;
  border-radius: 6px;
  max-width: 320px;
  backdrop-filter: blur(6px);
}
.kh-hbs-sub {
  font-size: 12px; color: var(--gray);
  margin: 0 0 6px; font-weight: 500;
}
.kh-hbs-title {
  font-size: 18px; font-weight: 700;
  color: var(--dark); display: block;
}

/* دکمه‌های اسلاید */
.kh-hbn-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background var(--trans), box-shadow var(--trans);
}
.kh-hbn-arr:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.kh-hbn-arr.prev { right: 14px; }
.kh-hbn-arr.next { left: 14px; }
.kh-hbn-arr svg { width: 16px; height: 16px; }

.kh-hbn-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}

.kh-ht-fallback {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; height: 480px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: 20px; font-weight: 700; text-decoration: none;
}

/* ستون کناری */
.kh-ht-side {
  display: flex; flex-direction: column; gap: 8px;
}

/* CTA تایل */
.kh-ht-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px;
  background: #FFF0B3;
  border-radius: 8px; text-decoration: none;
  transition: background var(--trans);
  flex-shrink: 0;
}
.kh-ht-cta:hover { background: #ffe680; }
.kh-ht-cta-text {
  font-size: 17px; font-weight: 700; color: #111;
}
.kh-ht-cta-icon { color: #111; }
.kh-ht-cta-icon svg { width: 28px; height: 28px; }

/* تایل دسته‌بندی */
.kh-ht-cat {
  flex: 1; min-height: 100px;
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: flex-end;
  position: relative; text-decoration: none;
  background: var(--bg-light);
  transition: transform var(--trans);
}
.kh-ht-cat:hover { transform: scale(1.01); }
.kh-ht-cat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.kh-ht-cat-label {
  position: relative; z-index: 2;
  width: 100%; display: flex;
  align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,.92);
  font-size: 14px; font-weight: 700; color: #111;
  backdrop-filter: blur(4px);
}
.kh-ht-cat-label svg { width: 16px; height: 16px; }

/* ==============================================
   TILE GRID — گرید تایل محصولات
   ============================================== */
.kh-tile-section { padding: 24px 0 8px; }
.kh-tile-section--sub { padding: 8px 0 24px; }

.kh-tile-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.kh-tile-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--dark); margin: 0;
}
.kh-tile-more {
  font-size: 13px; font-weight: 600;
  color: var(--primary); display: flex;
  align-items: center; gap: 4px;
  text-decoration: none;
}
.kh-tile-more:hover { text-decoration: underline; }

/* گرید اصلی: ۴ ستون، تایل wide = ۲ ستون */
.kh-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.kh-tile-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.kh-tile {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform var(--trans), box-shadow var(--trans);
}
.kh-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.kh-tile--wide {
  grid-column: span 2;
}

/* card داخل تایل */
.kh-tile .kh-product-card {
  border: none;
  border-radius: 0;
  height: 100%;
}
.kh-tile--wide .kh-product-img {
  height: 280px;
}

/* ==============================================
   CATEGORY BANNER
   ============================================== */
.kh-cat-banner-wrap { padding: 28px 0 8px; }

.kh-cat-banner {
  display: flex; align-items: flex-end;
  min-height: 160px; border-radius: 8px;
  overflow: hidden; position: relative;
  text-decoration: none;
  background-size: cover; background-position: center;
  transition: box-shadow var(--trans);
}
.kh-cat-banner:hover { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.kh-cat-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
}
.kh-cat-banner--solid {
  background: var(--primary);
}
.kh-cat-banner--solid::after { display: none; }

.kh-cat-banner-inner {
  position: relative; z-index: 2;
  padding: 24px 28px; width: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
}
.kh-cat-banner-title {
  font-size: 1.3rem; font-weight: 700;
  color: #fff; margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.kh-cat-banner-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
  transition: background var(--trans);
  white-space: nowrap;
}
.kh-cat-banner:hover .kh-cat-banner-btn {
  background: rgba(255,255,255,.3);
}
.kh-cat-banner-btn svg { width: 14px; height: 14px; }

/* ==============================================
   CATEGORY SELECT (دایره‌ها — جدید)
   ============================================== */
.kh-cs-section { padding: 28px 0; }

.kh-cs-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--dark); margin: 0 0 20px;
}

.kh-cs-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.kh-cs-tab {
  padding: 8px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 600;
  color: var(--dark);
  background: var(--bg-light);
  border: 1.5px solid #e0d8cc;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.kh-cs-tab:hover { border-color: var(--accent); }
.kh-cs-tab.active {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
}

.kh-cs-panel { display: none; }
.kh-cs-panel.active { display: block; }

.kh-cs-row {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.kh-cs-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  text-decoration: none;
  transition: transform var(--trans);
  flex: 0 0 auto;
}
.kh-cs-item:hover { transform: translateY(-4px); }

.kh-cs-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 3px 12px rgba(0,0,0,.14), 0 0 0 1.5px #e8d8b8;
  display: flex; align-items: center;
  justify-content: center; position: relative;
  transition: box-shadow var(--trans), transform var(--trans);
}
.kh-cs-item:hover .kh-cs-circle {
  box-shadow: 0 6px 20px rgba(0,0,0,.2), 0 0 0 2px var(--accent-dark);
}
.kh-cs-circle img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.kh-cs-item:hover .kh-cs-circle img { transform: scale(1.1); }

.kh-cs-letter {
  font-size: 1.8rem; font-weight: 800;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.kh-cs-label {
  font-size: 12px; font-weight: 600;
  color: var(--dark); text-align: center;
  background: rgba(255,255,255,.75);
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid #e8d8b8; white-space: nowrap;
  transition: background var(--trans), color var(--trans);
}
.kh-cs-item:hover .kh-cs-label {
  background: var(--accent-dark); color: #fff; border-color: var(--accent-dark);
}

/* overlay متن روی دایره */
.kh-cs-item--ov .kh-cs-circle { position: relative; }
.kh-cs-ov-label {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 11px; font-weight: 700;
  text-align: center; padding: 14px 4px 6px;
  border-radius: 0 0 50% 50%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==============================================
   BANNERS
   ============================================== */
.kh-banners { padding: 20px 0; }
.kh-banner-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kh-banner-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-top: 12px; }
.kh-banner-item { border-radius: var(--radius-lg); overflow: hidden; display: block; position: relative; }
.kh-banner-3 .kh-banner-item { aspect-ratio: 4/3; }
.kh-banner-2 .kh-banner-item { aspect-ratio: 16/9; }
.kh-banner-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.kh-banner-item:hover img { transform: scale(1.04); }

/* ==============================================
   SECTION HEADER
   ============================================== */
.kh-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.kh-section-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); padding-right: 14px; position: relative; }
.kh-section-title::before { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 22px; background: var(--primary); border-radius: 2px; }
.kh-section-link { font-size: 13px; color: var(--primary); font-weight: 600; }
.kh-section-link:hover { text-decoration: underline; }

/* ==============================================
   PRODUCT CARD
   ============================================== */
.kh-product-card { background: #fff; border: 1px solid var(--bg-light); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--trans), transform var(--trans); display: flex; flex-direction: column; }
.kh-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.kh-product-img { aspect-ratio: 1; overflow: hidden; background: var(--bg-light); display: block; }
.kh-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kh-product-card:hover .kh-product-img img { transform: scale(1.06); }
.kh-product-body { padding: 10px 12px; flex: 1; }
.kh-product-title { font-size: 13px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--dark); }
.kh-product-title a { color: inherit; }
.kh-product-title a:hover { color: var(--primary); }
.kh-product-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.kh-product-price del { font-weight: 400; color: var(--gray); font-size: 12px; }
.kh-product-foot { padding: 0 12px 12px; }
.kh-atc-btn { width: 100%; padding: 9px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--trans); font-family: var(--font); display: block; text-align: center; }
.kh-atc-btn:hover { background: var(--primary-dark); }
.kh-atc-btn.added { background: #2a7a3b; }

/* Grids */
.kh-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.kh-grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }

/* ==============================================
   PRODUCT SLIDER
   ============================================== */
.kh-products-section { padding: 30px 0; }
.kh-slider-wrap { position: relative; }
.kh-products-slider { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.kh-products-slider::-webkit-scrollbar { display: none; }
.kh-slide-card { min-width: 210px; flex: 0 0 210px; }
.kh-title-card { min-width: 180px; flex: 0 0 180px; background: var(--dark); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 20px; }
.kh-title-card-text { font-size: 1rem; font-weight: 700; color: #fff; text-align: right; line-height: 1.5; }
.kh-title-card-link { font-size: 12px; color: var(--accent); margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.kh-title-card-link:hover { color: #fff; }
.kh-slider-nav { display: flex; gap: 8px; margin-top: 14px; }
.kh-slider-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gray-light); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--trans); }
.kh-slider-btn:hover { border-color: var(--primary); color: var(--primary); }
.kh-slider-btn svg { width: 16px; height: 16px; }

/* ==============================================
   BREADCRUMB
   ============================================== */
.kh-breadcrumb { background: var(--bg-light); padding: 46px 0; text-align: center; }
.kh-breadcrumb-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; }
.kh-breadcrumb-nav { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--gray); flex-wrap: wrap; }
.kh-breadcrumb-nav a { color: var(--dark); transition: color var(--trans); }
.kh-breadcrumb-nav a:hover { color: var(--primary); }
.kh-breadcrumb-nav .kh-sep { color: var(--gray-light); }
.kh-breadcrumb-nav .kh-current { color: var(--primary); font-weight: 600; }

/* ==============================================
   SHOP PAGE
   ============================================== */
.kh-shop-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0; }
.kh-widget { background: #fff; border: 1px solid var(--bg-light); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.kh-widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--bg-light); }
.kh-cat-list li { border-bottom: 1px solid var(--bg-light); }
.kh-cat-list li:last-child { border-bottom: none; }
.kh-cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: var(--dark); transition: color var(--trans); }
.kh-cat-list li a:hover, .kh-cat-list li.active a { color: var(--primary); font-weight: 600; }
.kh-cat-count { background: var(--bg-light); border-radius: 20px; padding: 1px 8px; font-size: 11px; color: var(--gray); }
.kh-shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--bg-light); flex-wrap: wrap; gap: 12px; }
.kh-shop-count { font-size: 13px; color: var(--gray); }
.kh-toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kh-sort-select { padding: 8px 12px; border: 1px solid var(--gray-light); border-radius: var(--radius); font-size: 13px; color: var(--dark); background: #fff; cursor: pointer; direction: rtl; font-family: var(--font); }
.kh-perpage { display: flex; gap: 4px; }
.kh-perpage a { font-size: 12px; padding: 5px 9px; border: 1px solid var(--gray-light); border-radius: var(--radius); color: var(--dark); transition: all var(--trans); }
.kh-perpage a.active, .kh-perpage a:hover { border-color: var(--primary); color: var(--primary); }
.kh-products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.kh-pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; flex-wrap: wrap; }
.kh-pagination a, .kh-pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-light); border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: all var(--trans); color: var(--dark); }
.kh-pagination a:hover, .kh-pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ==============================================
   SINGLE PRODUCT
   ============================================== */
.kh-single-product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 36px 0; }
.kh-gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-light); aspect-ratio: 1; cursor: zoom-in; }
.kh-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kh-gallery-main:hover img { transform: scale(1.05); }
.kh-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.kh-thumb { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color var(--trans); }
.kh-thumb.active { border-color: var(--accent-dark); }
.kh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-product-info-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.kh-product-info-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.kh-product-meta-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bg-light); font-size: 13px; }
.kh-meta-label { color: var(--gray); min-width: 100px; }
.kh-meta-val { font-weight: 600; }
.kh-qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; flex-wrap: wrap; }
.kh-qty { display: flex; align-items: center; border: 1.5px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.kh-qty-btn { width: 36px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); cursor: pointer; font-size: 18px; border: none; transition: background var(--trans); }
.kh-qty-btn:hover { background: var(--gray-light); }
.kh-qty-input { width: 50px; text-align: center; border: none; outline: none; font-size: 15px; font-weight: 700; font-family: var(--font); padding: 6px 0; }
.kh-single-atc { flex: 1; min-width: 180px; padding: 12px 22px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: background var(--trans); font-family: var(--font); }
.kh-single-atc:hover { background: var(--primary-dark); }
.kh-tabs { padding: 30px 0 50px; border-top: 1px solid var(--bg-light); margin-top: 20px; }
.kh-tabs-nav { display: flex; border-bottom: 2px solid var(--bg-light); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.kh-tabs-nav::-webkit-scrollbar { display: none; }
.kh-tab-btn { padding: 12px 22px; font-size: 14px; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--gray); font-family: var(--font); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color var(--trans), border-color var(--trans); white-space: nowrap; }
.kh-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.kh-tab-content { display: none; font-size: 14px; line-height: 1.9; }
.kh-tab-content.active { display: block; }

/* ==============================================
   ABOUT PAGE
   ============================================== */
.kh-about-page { padding: 50px 0 70px; }
.kh-about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: start; }
.kh-about-sidebar { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.kh-logo-box { display: flex; align-items: center; justify-content: center; background: #fafafa; border-radius: var(--radius-lg); padding: 20px; border: 1.5px solid var(--bg-light); width: 100%; }
.kh-logo-box img { width: 100%; max-width: 140px; height: auto; max-height: 65px; object-fit: contain; display: block; }
.kh-about-badge { background: var(--dark); color: rgba(255,255,255,.8); font-size: 12px; padding: 7px 14px; border-radius: 20px; text-align: center; width: 100%; }
.kh-about-content { font-size: 15px; color: var(--gray); line-height: 1.95; }
.kh-about-content p { margin-bottom: 16px; }
.kh-about-text { font-size: 15px; color: var(--gray); line-height: 1.9; }

/* ==============================================
   CONTACT PAGE
   ============================================== */
.kh-contact-page { padding: 50px 0 70px; }
.kh-contact-info { display: flex; flex-direction: column; }
.kh-contact-form-wrap { display: flex; flex-direction: column; }
.kh-contact-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 44px; align-items: start; margin-bottom: 60px; }
.kh-contact-label { display: inline-block; background: #fff0f3; color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; border: 1px solid #ffc0cc; margin-bottom: 14px; letter-spacing: .5px; }
.kh-contact-head { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.kh-contact-desc { font-size: 14px; color: var(--gray); line-height: 1.9; margin-bottom: 28px; }
.kh-contact-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.kh-contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--bg-light); border-radius: var(--radius-lg); transition: box-shadow var(--trans); }
.kh-contact-item:hover { box-shadow: var(--shadow); background: #fff; }
.kh-contact-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.kh-contact-icon svg { width: 17px; height: 17px; }
.kh-contact-item-body { display: flex; flex-direction: column; gap: 2px; }
.kh-contact-item-body strong { font-size: 11px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.kh-contact-item-body a, .kh-contact-item-body span { font-size: 13px; color: var(--dark); font-weight: 500; line-height: 1.7; }
.kh-contact-item-body a:hover { color: var(--primary); }
.kh-working-hours { background: var(--dark); border-radius: var(--radius-lg); padding: 20px 22px; }
.kh-wh-title { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.kh-wh-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.06); }
.kh-wh-row:last-child { border-bottom: none; }
.kh-wh-off { color: rgba(255,255,255,.35) !important; }
.kh-wh-off span:last-child { color: var(--primary); }
.kh-form-card { background: #fff; border: 1.5px solid var(--bg-light); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow); }
.kh-form-card-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--bg-light); position: relative; }
.kh-form-card-title::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 46px; height: 2px; background: var(--primary); }
.kh-form .kh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.kh-form .kh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.kh-form .kh-form-row .kh-field { margin-bottom: 0; }
.kh-form label { font-size: 13px; font-weight: 600; color: var(--dark); }
.kh-req { color: var(--primary); margin-right: 2px; }
.kh-form input, .kh-form textarea { padding: 11px 14px; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-size: 14px; color: var(--dark); direction: rtl; outline: none; background: #fafafa; font-family: var(--font); transition: border-color var(--trans), background var(--trans), box-shadow var(--trans); width: 100%; }
.kh-form input:focus, .kh-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(200,16,46,.07); }
.kh-form input::placeholder, .kh-form textarea::placeholder { color: #bbb; font-size: 13px; }
.kh-form textarea { resize: vertical; min-height: 130px; }
.kh-submit-wrap { margin-top: 6px; }
.kh-submit-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 24px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: background var(--trans), transform var(--trans), box-shadow var(--trans); }
.kh-submit-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(200,16,46,.3); transform: translateY(-1px); }
.kh-submit-btn:active { transform: translateY(0); }

/* ==============================================
   FAQ SECTION
   ============================================== */
.kh-faq-section { border-top: 1px solid var(--bg-light); padding-top: 50px; padding-bottom: 60px; }
.kh-faq-header { text-align: center; margin-bottom: 36px; }
.kh-faq-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.kh-faq-sub { font-size: 14px; color: var(--gray); }
.kh-faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.kh-faq-item { border: 1.5px solid var(--bg-light); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: border-color var(--trans), box-shadow var(--trans); }
.kh-faq-item.open { border-color: #ffc0cc; box-shadow: 0 3px 14px rgba(200,16,46,.09); }
.kh-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; background: transparent; border: none; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--dark); text-align: right; transition: background var(--trans), color var(--trans); }
.kh-faq-q:hover { background: #fff8f9; color: var(--primary); }
.kh-faq-item.open .kh-faq-q { background: #fff0f3; color: var(--primary); }
.kh-faq-icon { width: 28px; height: 28px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 300; line-height: 1; flex-shrink: 0; transition: background var(--trans), transform var(--trans), color var(--trans); }
.kh-faq-item.open .kh-faq-icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.kh-faq-a { display: none; padding: 4px 20px 18px; font-size: 14px; color: var(--gray); line-height: 1.9; border-top: 1px dashed #ffd0d9; }
.kh-faq-item.open .kh-faq-a { display: block; }

/* ==============================================
   FOOTER
   ============================================== */
.kh-footer { background: var(--dark); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.kh-footer-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .15; pointer-events: none; }
.kh-footer-main { position: relative; padding: 50px 0 36px; }
.kh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.kh-footer-col-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.15); }
.kh-footer-text { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.72); }
.kh-footer-contact { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,.78); }
.kh-footer-contact svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.kh-footer-contact a { color: inherit; transition: color var(--trans); }
.kh-footer-contact a:hover { color: var(--accent); }
.kh-footer-enamad { margin-top: 20px; }
.kh-footer-nav li { margin-bottom: 7px; }
.kh-footer-nav li a { font-size: 13px; color: rgba(255,255,255,.72); transition: color var(--trans); }
.kh-footer-nav li a:hover { color: var(--accent); }
.kh-footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.kh-footer-bottom .kh-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.kh-footer-copy { font-size: 12px; color: rgba(255,255,255,.45); }

/* ==============================================
   DRAWERS & OVERLAYS
   ============================================== */
.kh-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans);
  pointer-events: none;
}
.kh-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Cart Drawer */
.kh-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,.18);
}
.kh-cart-drawer.open { transform: translateX(0); }

/* --- Header --- */
.kh-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.kh-cart-head-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kh-cart-head-title::before { content: '🛒'; font-size: 18px; }
.kh-cart-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  font-size: 16px; color: #555;
  transition: background .2s, color .2s;
}
.kh-cart-close:hover { background: var(--primary); color: #fff; }

/* --- Body / list --- */
.kh-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: #ddd #fafafa;
}
.kh-cart-body::-webkit-scrollbar { width: 5px; }
.kh-cart-body::-webkit-scrollbar-track { background: #fafafa; }
.kh-cart-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* Mini-cart list */
.kh-mc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }

.kh-mc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  transition: box-shadow .2s;
}
.kh-mc-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }

.kh-mc-thumb {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  display: flex; align-items: center; justify-content: center;
}
.kh-mc-img { width: 100%; height: 100%; object-fit: cover; }

.kh-mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kh-mc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.kh-mc-name:hover { color: var(--primary); }
.kh-mc-variation { font-size: 11px; color: #999; }
.kh-mc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.kh-mc-qty { font-size: 12px; color: #888; background: #eee; padding: 2px 8px; border-radius: 20px; }
.kh-mc-price { font-size: 13px; font-weight: 700; color: var(--primary); }

/* Remove button */
.kh-mc-remove {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #bbb;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}
.kh-mc-remove:hover { background: #fce4ec; color: #c62828; border-color: #f8bbd0; }
.kh-mc-item.removing { opacity: .4; pointer-events: none; transition: opacity .25s; }

/* Empty state */
.kh-mc-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 20px; text-align: center; gap: 12px;
}
.kh-mc-empty-icon { font-size: 48px; opacity: .4; }
.kh-mc-empty p { color: #999; font-size: 14px; margin: 0; }
.kh-mc-shop-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.kh-mc-shop-btn:hover { background: var(--primary-dark); color: #fff; }

/* --- Footer --- */
.kh-cart-foot { padding: 16px 20px; border-top: 1px solid #f0f0f0; background: #fafafa; }
.kh-cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 15px;
}
.kh-cart-total span { color: #666; font-size: 13px; }
.kh-cart-total strong { font-size: 16px; font-weight: 800; color: var(--primary); }
.kh-checkout-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  text-align: center; border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  transition: background .2s;
  text-decoration: none;
}
.kh-checkout-btn:hover { background: var(--primary-dark); color: #fff; }
.kh-cart-foot .kh-cart-view-link {
  display: block; text-align: center; margin-top: 10px;
  font-size: 13px; color: #888; text-decoration: none;
}
.kh-cart-foot .kh-cart-view-link:hover { color: var(--primary); }

/* Categories Panel - فقط دسکتاپ */
.kh-cats-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1200;
  transition: right .3s cubic-bezier(.77,0,.175,1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.kh-cats-panel.open { right: 0; }
.kh-cats-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--bg-light); font-weight: 700; font-size: 15px; }
.kh-cats-close { background: none; border: none; cursor: pointer; }
.kh-cats-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; font-size: 14px; color: var(--dark); border-bottom: 1px solid var(--bg-light); transition: color var(--trans), background var(--trans); }
.kh-cats-list > li > a:hover { color: var(--primary); background: #fff5f7; }
.kh-sub-list { background: var(--bg-light); display: none; }
.kh-sub-list.open { display: block; }
.kh-sub-list li a { display: block; padding: 8px 30px; font-size: 13px; color: var(--gray); transition: color var(--trans); }
.kh-sub-list li a:hover { color: var(--primary); }

/* ==============================================
   MOBILE DRAWER - منوی یکپارچه موبایل
   ============================================== */
.kh-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 1300;
  transform: translateX(100%);   /* RTL: مثبت = خارج از صفحه سمت راست */
  transition: transform .35s cubic-bezier(.77,0,.175,1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.kh-mobile-drawer.open {
  transform: translateX(0);
}

.kh-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bg-light);
  font-weight: 700;
  font-size: 16px;
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.kh-mobile-drawer-close {
  background: rgba(255,255,255,.15);
  border: none;
  cursor: pointer;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.kh-mobile-drawer-close:hover { background: rgba(255,255,255,.3); }

.kh-mobile-drawer-body { padding-bottom: 30px; }

/* منوی اصلی داخل drawer */
.kh-mob-nav { list-style: none; margin: 0; padding: 0; }
.kh-mob-nav li a {
  display: block;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--bg-light);
  transition: color var(--trans), background var(--trans);
}
.kh-mob-nav li a:hover { color: var(--primary); background: #fff5f7; }

/* عنوان بخش دسته‌بندی */
.kh-mob-section-title {
  padding: 14px 18px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--bg-light);
  background: var(--bg-light);
}

/* دسته‌بندی‌ها در drawer */
.kh-mob-cats-list { list-style: none; margin: 0; padding: 0; }
.kh-mob-cat-item { border-bottom: 1px solid var(--bg-light); }
.kh-mob-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kh-mob-cat-row > a {
  display: block;
  flex: 1;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--dark);
  transition: color var(--trans);
}
.kh-mob-cat-row > a:hover { color: var(--primary); }
.kh-mob-cat-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--gray);
  transition: transform var(--trans), color var(--trans);
  display: flex;
  align-items: center;
}
.kh-mob-cat-toggle.open { transform: rotate(-90deg); color: var(--primary); }

/* زیردسته در drawer */
.kh-mob-sub-list {
  display: none;
  background: var(--bg-light);
  list-style: none;
  padding: 4px 0;
}
.kh-mob-sub-list.open { display: block; }
.kh-mob-sub-list li a {
  display: block;
  padding: 9px 32px;
  font-size: 13px;
  color: var(--gray);
  transition: color var(--trans);
}
.kh-mob-sub-list li a:hover { color: var(--primary); }

/* Scroll to top */
.kh-scroll-top { position: fixed; bottom: 24px; left: 24px; width: 42px; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all var(--trans); z-index: 800; }
.kh-scroll-top.visible { opacity: 1; visibility: visible; }
.kh-scroll-top:hover { background: var(--primary-dark); }

/* ==============================================
   COLOR FILTER WIDGET
   ============================================== */
.kh-color-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kh-color-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--trans);
  text-decoration: none;
  color: var(--dark);
  font-size: 13px;
  position: relative;
}
.kh-color-swatch:hover { background: var(--bg-light); }
.kh-color-swatch.active { background: #fff0f3; font-weight: 600; }
.kh-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--trans);
}
.kh-color-swatch:hover .kh-color-dot { transform: scale(1.15); }
.kh-color-swatch.active .kh-color-dot {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.kh-color-name { flex: 1; }
.kh-color-x {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-right: auto;
}
.kh-clear-filter {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  transition: opacity var(--trans);
}
.kh-clear-filter:hover { opacity: .7; }

/* فیلتر فعال */
.kh-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.kh-active-filter-label { font-size: 12px; color: var(--gray); }
.kh-active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff0f3;
  border: 1px solid #ffc0cc;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}
.kh-active-filter-tag a {
  color: var(--primary);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}
.kh-color-dot-sm {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* ==============================================
   WooCommerce
   ============================================== */
.woocommerce-notices-wrapper { margin: 20px 0; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--primary) !important; color: #fff !important; border-radius: var(--radius) !important; font-family: var(--font) !important; padding: 10px 20px !important; transition: background var(--trans) !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--primary-dark) !important; }

/* ==============================================
   MY ACCOUNT PAGE
   ============================================== */
.woocommerce-account .woocommerce { padding: 40px 0 70px; }

/* منوی سمت راست */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid rgba(255,255,255,.07); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 13px 20px; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; transition: all var(--trans); }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: rgba(255,255,255,.07); color: #fff; padding-right: 26px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--primary); color: #fff; font-weight: 700; }

/* محتوای حساب */
.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1.5px solid var(--bg-light);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.8;
}

/* هدرها */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--bg-light); position: relative; }
.woocommerce-account .woocommerce-MyAccount-content h2::after,
.woocommerce-account .woocommerce-MyAccount-content h3::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 40px; height: 2px; background: var(--primary); }

/* پیام خوش‌آمد */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { background: var(--bg-light); border-radius: var(--radius); padding: 14px 18px; border-right: 3px solid var(--primary); margin-bottom: 24px; }

/* جدول سفارشات */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .shop_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .shop_table th { background: var(--bg-light); padding: 11px 14px; font-weight: 700; color: var(--dark); text-align: right; font-size: 12px; }
.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .shop_table td { padding: 12px 14px; border-bottom: 1px solid var(--bg-light); color: var(--gray); vertical-align: middle; }
.woocommerce-account .woocommerce-orders-table tr:last-child td { border-bottom: none; }
.woocommerce-account .woocommerce-orders-table tr:hover td { background: #fafafa; }

/* وضعیت سفارش */
.woocommerce-account mark.order-status { background: transparent; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.woocommerce-account mark.order-status.processing { background: #e3f2fd; color: #1565c0; }
.woocommerce-account mark.order-status.completed  { background: #e8f5e9; color: #2e7d32; }
.woocommerce-account mark.order-status.cancelled  { background: #fce4ec; color: #c62828; }
.woocommerce-account mark.order-status.on-hold    { background: #fff8e1; color: #e65100; }
.woocommerce-account mark.order-status.pending    { background: #f3e5f5; color: #6a1b9a; }

/* دکمه مشاهده سفارش */
.woocommerce-account .woocommerce-orders-table__cell-order-actions a { display: inline-block; padding: 5px 14px; background: var(--primary); color: #fff !important; border-radius: var(--radius); font-size: 12px; font-weight: 600; transition: background var(--trans); }
.woocommerce-account .woocommerce-orders-table__cell-order-actions a:hover { background: var(--primary-dark); }

/* فرم‌های اطلاعات */
.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"],
.woocommerce-account .woocommerce-address-fields input,
.woocommerce-account .woocommerce-address-fields select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-light); border-radius: var(--radius); font-size: 14px; font-family: var(--font); direction: rtl; outline: none; background: #fafafa; transition: border-color var(--trans), box-shadow var(--trans); }
.woocommerce-account .woocommerce-form input:focus,
.woocommerce-account .woocommerce-address-fields input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(200,16,46,.07); }
.woocommerce-account .woocommerce-form label,
.woocommerce-account .woocommerce-address-fields label { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; display: block; }

/* دکمه‌های فرم */
.woocommerce-account button[type="submit"],
.woocommerce-account .woocommerce-Button { background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--radius) !important; padding: 11px 28px !important; font-size: 14px !important; font-weight: 700 !important; font-family: var(--font) !important; cursor: pointer !important; transition: background var(--trans), box-shadow var(--trans) !important; }
.woocommerce-account button[type="submit"]:hover { background: var(--primary-dark) !important; box-shadow: 0 4px 14px rgba(200,16,46,.25) !important; }

/* 404 */
.kh-404 { text-align: center; padding: 100px 20px; }
.kh-404-code { font-size: 7rem; font-weight: 800; color: var(--primary); line-height: 1; }
.kh-404-title { font-size: 1.4rem; margin: 10px 0 16px; }
.kh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; background: var(--primary); color: #fff; border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: background var(--trans); }
.kh-btn:hover { background: var(--primary-dark); color: #fff; }

/* Variation buttons */
.kh-var-wrap { margin: 16px 0 22px; }
.kh-var-group { margin-bottom: 18px; }
.kh-var-label { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.kh-var-label .kh-selected-val { font-weight: 500; color: var(--primary); }
.kh-var-options { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-var-btn { padding: 7px 18px; border: 1.5px solid var(--gray-light); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--dark); background: #fff; cursor: pointer; transition: all .18s ease; font-family: var(--font); white-space: nowrap; }
.kh-var-btn:hover { border-color: var(--primary); color: var(--primary); }
.kh-var-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.kh-var-btn.disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.kh-var-native { display: none !important; }
.kh-var-price-box { background: var(--bg-light); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; font-weight: 700; color: var(--primary); display: none; }
.kh-var-price-box.visible { display: block; }
.kh-var-stock { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 14px; }
.kh-var-stock.in { background: #e8f5e9; color: #2e7d32; }
.kh-var-stock.out { background: #fce4ec; color: #c62828; }

/* ==============================================
   HERO SLIDER
   ============================================== */
.kh-hero-slide {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.kh-hero-slide-link {
  display: block;
  position: relative;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.kh-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-hero-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  z-index: 10;
  text-align: center;
}

.kh-hero-slide-text {
  color: #333;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 20px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.kh-hero-slide-btn {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: var(--font);
  width: fit-content;
}

.kh-hero-slide-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.kh-hero-slide-btn:active {
  transform: translateY(0);
}

/* ==============================================
   ████  RESPONSIVE  ████
   ============================================== */

/* --- Tablet 900-1100 --- */
@media (max-width: 1100px) {
  .kh-grid-4, .kh-products-grid { grid-template-columns: repeat(3,1fr); }
  .kh-grid-5 { grid-template-columns: repeat(4,1fr); }
  .kh-slide-card { min-width: 185px; flex: 0 0 185px; }
  .kh-title-card { min-width: 155px; flex: 0 0 155px; }
  .kh-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Tablet 640-900 --- */
@media (max-width: 900px) {
  .kh-shop-wrap { grid-template-columns: 1fr; }
  .kh-sidebar { display: none; }
  .kh-single-product { grid-template-columns: 1fr; gap: 24px; }
  .kh-banner-3 { grid-template-columns: 1fr 1fr; }
  .kh-banner-2 { grid-template-columns: 1fr; }
  .kh-about-grid, .kh-contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .kh-about-sidebar { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .kh-logo-box { max-width: 140px; }
  .kh-about-badge { width: auto; }
  .kh-form-card { padding: 20px 18px; }
  .kh-grid-4, .kh-products-grid { grid-template-columns: repeat(2,1fr); }
  .woocommerce-account .woocommerce-MyAccount-content { padding: 20px 16px; }
}

/* --- Mobile: max 768px --- */
@media (max-width: 768px) {

  /* Container */
  .kh-container { padding: 0 14px; }

  /* جلوگیری از overflow افقی */
  #kh-page { overflow-x: hidden; width: 100%; }

  /* Topbar */
  .kh-topbar { padding: 6px 0; }
  .kh-topbar-msg { display: none; }
  .kh-topbar-inner { justify-content: center; }

  /* Header layout */
  .kh-header-main { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .kh-logo { order: 1; }
  .kh-actions { order: 2; margin-right: auto; gap: 0; }
  .kh-search { order: 3; flex: 0 0 100%; }

  /* Hide text labels in actions */
  .kh-action-label { display: none; }
  .kh-cart-total-header { display: none; }
  .kh-action-btn { padding: 6px 8px; }

  /* مقایسه در موبایل مخفی */
  .kh-compare-btn-desktop { display: none; }

  /* نمایش همبرگر در موبایل */
  .kh-mob-toggle { display: flex !important; }

  /* مخفی کردن navbar در موبایل */
  .kh-navbar { display: none !important; }

  /* مخفی کردن cats panel دسکتاپ در موبایل */
  .kh-cats-panel { display: none !important; }

  /* Hero */
  .kh-hero-slide img { height: 220px; }
  .kh-hero-arrow { width: 36px; height: 36px; }
  .kh-hero-arrow.prev { right: 10px; }
  .kh-hero-arrow.next { left: 10px; }

  /* Color circles - horizontal scroll */
  .kh-cat-circles-section { padding: 16px 0 10px; }
  .kh-color-frame { padding: 18px 16px 22px; border-radius: 12px; }
  .kh-color-frame-title { font-size: 1rem; }
  .kh-color-frame-header { margin-bottom: 16px; padding-bottom: 12px; }
  .kh-cat-circles-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; scrollbar-width: none; gap: 14px; padding-right: 4px; }
  .kh-cat-circles-row::-webkit-scrollbar { display: none; }
  .kh-cat-circle { flex-shrink: 0; }
  .kh-cat-circle-img { width: 72px; height: 72px; }

  /* Banners */
  .kh-banner-3, .kh-banner-2 { grid-template-columns: 1fr; gap: 8px; }

  /* Product sliders */
  .kh-products-section { padding: 18px 0; }
  .kh-slide-card { min-width: 158px; flex: 0 0 158px; }
  .kh-title-card { min-width: 130px; flex: 0 0 130px; padding: 14px; }
  .kh-title-card-text { font-size: .85rem; }
  .kh-product-title { font-size: 12px; }
  .kh-atc-btn { font-size: 12px; padding: 7px; }

  /* Grids */
  .kh-products-grid, .kh-grid-4, .kh-grid-5 { grid-template-columns: repeat(2,1fr); gap: 10px; }

  /* Shop toolbar */
  .kh-shop-toolbar { flex-direction: column; align-items: flex-start; }
  .kh-toolbar-right { width: 100%; justify-content: space-between; }
  .kh-sort-select { flex: 1; }

  /* Breadcrumb */
  .kh-breadcrumb { padding: 28px 0; }
  .kh-breadcrumb-title { font-size: 1.2rem; }

  /* Single product */
  .kh-single-product { padding: 20px 0; gap: 16px; }
  .kh-product-info-title { font-size: 1.1rem; }
  .kh-single-atc { flex: 0 0 100%; }
  .kh-qty-row { gap: 8px; }

  /* Footer */
  .kh-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .kh-footer-main { padding: 28px 0 18px; }
  .kh-footer-bottom .kh-container { flex-direction: column; text-align: center; }

  /* Contact */
  .kh-form .kh-form-row { grid-template-columns: 1fr; }

  /* Cart drawer full width on mobile */
  .kh-cart-drawer { width: 100%; }

  /* 404 */
  .kh-404 { padding: 60px 20px; }
  .kh-404-code { font-size: 5rem; }
}

/* --- Very small: 380px --- */
@media (max-width: 380px) {
  .kh-slide-card { min-width: 138px; flex: 0 0 138px; }
  .kh-title-card { min-width: 115px; flex: 0 0 115px; }
  .kh-hero-slide img { height: 180px; }
}
/* ==============================================
   TILE LAYOUT — RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .kh-ht-wrap { grid-template-columns: 1fr 240px; }
  .kh-hero-big { height: 400px; }
  .kh-tile-grid { grid-template-columns: repeat(3, 1fr); }
  .kh-tile-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Hero tiles: ستون‌ها روی هم */
  .kh-ht-wrap { grid-template-columns: 1fr; gap: 6px; }
  .kh-hero-big { height: 260px; }
  .kh-hbs-caption { bottom: 14px; right: 14px; padding: 12px 14px; max-width: 220px; }
  .kh-hbs-title { font-size: 14px; }
  .kh-hbs-sub { font-size: 11px; }

  /* ستون کناری: ردیف افقی */
  .kh-ht-side { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .kh-ht-side::-webkit-scrollbar { display: none; }
  .kh-ht-cta { min-width: 140px; flex-shrink: 0; }
  .kh-ht-cat { min-width: 130px; flex: 0 0 130px; min-height: 90px; }

  /* گرید محصولات: ۲ ستون */
  .kh-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .kh-tile-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .kh-tile--wide { grid-column: span 2; }
  .kh-tile--wide .kh-product-img { height: 200px; }

  /* بنر دسته */
  .kh-cat-banner { min-height: 110px; }
  .kh-cat-banner-inner { padding: 16px 18px; }
  .kh-cat-banner-title { font-size: 1.1rem; }
  .kh-cat-banner-btn { font-size: 12px; padding: 6px 12px; }
  .kh-cat-banner-wrap { padding: 18px 0 6px; }

  /* دایره‌ها */
  .kh-cs-circle { width: 72px; height: 72px; }
  .kh-cs-label { font-size: 11px; }
  .kh-cs-row { gap: 10px; }
  .kh-cs-section { padding: 20px 0; }

  /* tile section */
  .kh-tile-section { padding: 16px 0 6px; }
}

@media (max-width: 480px) {
  .kh-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .kh-hero-big { height: 220px; }
  .kh-ht-cta-text { font-size: 14px; }
  .kh-cs-circle { width: 62px; height: 62px; }
  .kh-cat-banner-title { font-size: 1rem; }
  .kh-tile--wide .kh-product-img { height: 160px; }
}

/* ==============================================
   INFO BANNERS — بنرهای اطلاع‌رسانی
   ============================================== */
.kh-info-banners { padding: 8px 0 24px; }

.kh-ib-grid {
  display: grid;
  gap: 12px;
}
/* یک بنر: تمام عرض */
.kh-ib-grid--1 { grid-template-columns: 1fr; }
/* دو بنر: نصف نصف */
.kh-ib-grid--2 { grid-template-columns: 1fr 1fr; }
/* سه بنر: اولی بزرگ‌تر */
.kh-ib-grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }

.kh-ib {
  position: relative;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
}
.kh-ib:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}

/* overlay تیره روی تصویر */
.kh-ib-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}

/* محتوا */
.kh-ib-body {
  position: relative; z-index: 2;
  padding: 28px 28px 24px;
  width: 100%;
  display: flex; flex-direction: column; gap: 8px;
}

.kh-ib-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
  margin: 0;
}

.kh-ib-text {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

.kh-ib-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  align-self: flex-start;
  transition: background var(--trans), border-color var(--trans);
}
.kh-ib:hover .kh-ib-btn {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.65);
}

/* بنر بزرگ‌تر در گرید ۳تایی */
.kh-ib-grid--3 .kh-ib:first-child,
.kh-ib--hero {
  min-height: 280px;
  align-items: center;
}
.kh-ib-grid--3 .kh-ib:first-child .kh-ib-body,
.kh-ib--hero .kh-ib-body {
  padding: 36px 32px;
}
.kh-ib-grid--3 .kh-ib:first-child .kh-ib-title,
.kh-ib--hero .kh-ib-title {
  font-size: 1.7rem;
}
.kh-ib-grid--3 .kh-ib:first-child .kh-ib-text,
.kh-ib--hero .kh-ib-text {
  font-size: 14px;
}
.kh-ib-grid--3 .kh-ib:first-child .kh-ib-overlay,
.kh-ib--hero .kh-ib-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 100%);
}

/* responsive */
@media (max-width: 900px) {
  .kh-ib-grid--3 { grid-template-columns: 1fr 1fr; }
  .kh-ib-grid--3 .kh-ib:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .kh-ib-grid--2,
  .kh-ib-grid--3 { grid-template-columns: 1fr; }
  .kh-ib-grid--3 .kh-ib:first-child { grid-column: span 1; }
  .kh-ib { min-height: 180px; }
  .kh-ib-body { padding: 20px 18px; }
  .kh-ib-title { font-size: 1.1rem; }
  .kh-ib-grid--3 .kh-ib:first-child .kh-ib-title { font-size: 1.2rem; }
  .kh-ib-grid--3 .kh-ib:first-child { min-height: 200px; }
}
