/*
Theme Name: کلینیک پمپ تهران
Theme URI: https://klinikpump.ir
Author: کلینیک پمپ تهران
Author URI: https://klinikpump.ir
Description: قالب وردپرس حرفه‌ای فروشگاهی برای تجهیزات صنعتی - الکتروموتور، پمپ، موتور برق، هیدرولیک، گیربکس، پنوماتیک و کمپرسور. طراحی مشابه هایپر صنعت فامکو با رنگ‌بندی آبی، سفید و نارنجی.
Version: 1.8.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: klinik-pump
Tags: e-commerce, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* ==========================================================================
   CSS Variables - رنگ‌بندی آبی، سفید، نارنجی
   ========================================================================== */
:root {
  --primary-blue: #0a4d8c;
  --primary-blue-dark: #063a6b;
  --primary-blue-light: #1a6bb5;
  --accent-orange: #f5a623;
  --accent-orange-hover: #e09415;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --light-gray: #eef2f7;
  --text-dark: #1a1a2e;
  --text-muted: #5a6a7a;
  --border-color: #d0d9e6;
  --success: #28a745;
  --shadow: 0 4px 20px rgba(10, 77, 140, 0.08);
  --shadow-hover: 0 8px 30px rgba(10, 77, 140, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --font-main: 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-orange);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 1.85rem;
  color: var(--primary-blue);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-orange {
  background: var(--accent-orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--accent-orange-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: var(--primary-blue-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-contact a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact a:hover {
  color: var(--accent-orange);
}

.top-bar-contact i {
  color: var(--accent-orange);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo img,
.site-logo-img {
  max-height: 52px !important;
  width: auto !important;
  max-width: 300px !important;
  height: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}

@media (max-width: 576px) {
  .site-logo img,
  .site-logo-img {
    max-height: 52px;
  }
}

.site-logo .logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}

.site-logo .logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  outline: none;
  transition: var(--transition);
  background: var(--off-white);
}

.header-search input:focus {
  border-color: var(--primary-blue);
  background: var(--white);
}

.header-search button {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-search button:hover {
  background: var(--accent-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions a {
  color: var(--text-dark);
  font-size: 1.25rem;
  position: relative;
}

.header-actions a:hover {
  color: var(--primary-blue);
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Main Navigation - یک خط در دسکتاپ */
.main-nav {
  background: var(--primary-blue);
  border-top: 3px solid var(--accent-orange);
}

.main-nav .container {
  display: flex;
  align-items: center;
  max-width: 1400px;
  padding-left: 12px;
  padding-right: 12px;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > li {
  position: relative;
  flex: 0 1 auto;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
  background: var(--primary-blue-dark);
  color: var(--accent-orange);
}

@media (min-width: 1200px) {
  .nav-menu > li > a {
    padding: 13px 10px;
    font-size: 0.82rem;
    gap: 6px;
  }
}

@media (min-width: 1400px) {
  .nav-menu > li > a {
    padding: 14px 12px;
    font-size: 0.88rem;
  }
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-hover);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  border-top: 3px solid var(--accent-orange);
}

.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--light-gray);
}

.nav-menu .sub-menu li a:hover {
  background: var(--off-white);
  color: var(--primary-blue);
  padding-right: 24px;
}

.nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-slide {
  width: 100%;
  padding: 60px 0;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-orange);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-placeholder {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  text-align: center;
  padding: 20px;
}

/* Stats Bar */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  padding: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 1.75rem;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.stat-item i {
  font-size: 1.75rem;
  color: var(--accent-orange);
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.categories-section {
  background: var(--off-white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.category-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-orange);
  color: inherit;
}

.category-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background: linear-gradient(135deg, #e8eef5, #d0d9e6);
  overflow: hidden;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-img img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 58, 107, 0.55) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  pointer-events: none;
  opacity: 0.9;
  transition: var(--transition);
}

.category-card-overlay i {
  color: #fff;
  font-size: 1.4rem;
  background: rgba(245, 166, 35, 0.95);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(6, 58, 107, 0.7) 0%, transparent 60%);
}

.category-card-img .placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-img .placeholder i {
  font-size: 3rem;
  color: var(--primary-blue);
}

.category-card-body {
  padding: 18px 20px 22px;
  text-align: center;
}

.category-card-body h3 {
  font-size: 1.15rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
  font-weight: 700;
}

.category-card-body p {
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.category-card-body .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  pointer-events: none;
}

.category-card:hover .category-card-body .btn {
  background: var(--accent-orange);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue-light);
}

.product-card-img {
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-img .placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card-body h3 a {
  color: var(--text-dark);
}

.product-card-body h3 a:hover {
  color: var(--primary-blue);
}

.product-price {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.product-price .old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* ==========================================================================
   About / Intro Section
   ========================================================================== */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-img {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   Features / Why Us
   ========================================================================== */
.features-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
}

.features-section .section-title h2 {
  color: var(--white);
}

.features-section .section-title h2::after {
  background: var(--accent-orange);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.feature-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}

.feature-item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 16px;
  display: block;
}

.feature-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.cta-section {
  background: var(--off-white);
  text-align: center;
}

.cta-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  border-top: 4px solid var(--accent-orange);
}

.cta-box h2 {
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.cta-box p {
  margin-bottom: 24px;
}

.cta-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--primary-blue);
}

.cta-phone i {
  color: var(--accent-orange);
  font-size: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-blue-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
}

.footer-about p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--accent-orange);
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent-orange);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.85);
}

.footer-contact-item a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: var(--accent-orange);
}

/* ==========================================================================
   Page / Archive Templates
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
  color: var(--accent-orange);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--accent-orange);
}

.content-area {
  padding: 50px 0;
}

.sidebar {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-widget {
  margin-bottom: 28px;
}

.sidebar-widget h3 {
  font-size: 1.05rem;
  color: var(--primary-blue);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-orange);
  margin-bottom: 16px;
}

.sidebar-widget ul li {
  margin-bottom: 8px;
}

.sidebar-widget ul li a {
  color: var(--text-dark);
  font-size: 0.9rem;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li a:hover {
  color: var(--primary-blue);
  padding-right: 8px;
}

/* Category Archive Layout */
.archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.contact-info-card h3 {
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 16px;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid,
  .contact-grid,
  .archive-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-blue-dark);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border-radius: 0;
    display: none;
  }
  .nav-menu > li.open > .sub-menu {
    display: block;
  }
  .header-main {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .top-bar-contact {
    gap: 12px;
    font-size: 0.8rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 40px 0; }
}

/* ==========================================================================
   Industrial category navigation / mobile drawer / category landing pages
   ========================================================================== */
.main-nav { position: relative; }
.main-nav > .container { position: relative; }
.nav-menu > li > a > i:first-child {
  color: var(--accent-orange);
  font-size: 0.85em;
  flex-shrink: 0;
}
.menu-chevron {
  font-size: 0.55rem;
  margin-right: 2px;
  margin-left: 0;
  opacity: 0.65;
  flex-shrink: 0;
}
.nav-menu .sub-menu { max-height: 72vh; overflow-y: auto; }
.nav-menu .sub-menu-heading a {
  background: #f4f8fc;
  font-weight: 800;
  color: var(--primary-blue) !important;
  border-bottom: 2px solid var(--accent-orange) !important;
}

/* دسکتاپ: یک ردیف مرتب */
@media (min-width: 769px) {
  .main-nav .container {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
  .nav-menu {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: center;
    overflow: visible;
    width: 100%;
  }
  .nav-menu > li {
    flex: 0 0 auto;
  }
  .nav-menu > li > a {
    padding: 11px 7px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }
  .nav-menu > li > a > i:first-child {
    font-size: 0.8em;
  }
  .menu-chevron {
    display: none; /* در دسکتاپ شلوغی کمتر — زیرمنو با هاور باز می‌شود */
  }
}
@media (min-width: 1100px) {
  .nav-menu > li > a {
    padding: 12px 9px !important;
    font-size: 0.78rem !important;
  }
}
@media (min-width: 1300px) {
  .nav-menu > li > a {
    padding: 13px 11px !important;
    font-size: 0.84rem !important;
  }
  .menu-chevron { display: inline-block; }
}

.category-hero { background: linear-gradient(135deg,#063a6b 0%,#0a4d8c 62%,#1469ad 100%); color:#fff; padding: 28px 0 48px; }
.category-hero .breadcrumb { color:rgba(255,255,255,.78); margin-bottom:25px; }
.category-hero .breadcrumb a { color:#fff; }
.category-hero .breadcrumb strong { color:#ffd27c; }
.category-hero-inner { display:grid; grid-template-columns:120px 1fr; gap:28px; align-items:center; }
.category-hero-icon { width:120px; height:120px; border-radius:24px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); box-shadow:0 15px 45px rgba(0,0,0,.12); }
.category-hero-icon i { color:var(--accent-orange); font-size:3.5rem; }
.category-hero .eyebrow { color:#ffd27c; font-size:.85rem; font-weight:700; }
.category-hero h1 { color:#fff; font-size:2.35rem; margin:8px 0 10px; }
.category-hero p { color:rgba(255,255,255,.9); max-width:900px; margin-bottom:20px; }
.category-contact-actions { display:flex; gap:10px; flex-wrap:wrap; }
.category-contact-actions .btn-outline { color:#fff; border-color:rgba(255,255,255,.65); }
.category-contact-actions .btn-outline:hover { border-color:var(--primary-blue); }
.category-page { background:#f7f9fc; }
.category-subsection,.category-products { padding:58px 0 0; }
.category-subsection .section-title,.category-products .section-title { margin-bottom:28px; }
.category-subsection .section-title h2,.category-products .section-title h2 { margin-bottom:6px; }
.category-subsection .section-title p,.category-products .section-title p { margin:0; }
.category-child-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.category-child-card { display:flex; align-items:center; gap:13px; min-height:76px; background:#fff; border:1px solid #e0e7ef; border-radius:12px; padding:13px 15px; box-shadow:0 4px 16px rgba(10,77,140,.05); color:var(--text-dark); }
.category-child-card:hover { border-color:var(--accent-orange); transform:translateY(-2px); box-shadow:0 10px 25px rgba(10,77,140,.1); }
.child-icon { flex:0 0 42px; width:42px; height:42px; border-radius:10px; background:#edf5fd; display:flex; align-items:center; justify-content:center; color:var(--primary-blue); }
.category-child-card strong { display:block; font-size:.91rem; line-height:1.45; }
.category-child-card small { color:var(--text-muted); display:block; font-size:.73rem; margin-top:2px; }
.category-child-card .arrow { margin-right:auto; color:var(--accent-orange); }
.category-products { padding-bottom:60px; }
.product-more { display:flex; align-items:center; justify-content:space-between; margin-top:12px; font-size:.82rem; font-weight:700; color:var(--primary-blue); }
.product-placeholder-icon,.empty-category { display:flex; align-items:center; justify-content:center; flex-direction:column; }
.product-placeholder-icon { height:100%; width:100%; color:#a7b5c5; font-size:2.4rem; }
.empty-category { padding:60px 20px; margin:30px 0; background:#fff; border:1px dashed #c9d5e2; border-radius:16px; text-align:center; }
.empty-category > i { color:var(--accent-orange); font-size:3rem; margin-bottom:15px; }
.empty-category h3 { color:var(--primary-blue); }
.empty-category p { max-width:600px; }
.shop-category-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:30px; }
.shop-category-strip a { background:#fff; border:1px solid #e0e7ef; border-radius:10px; padding:13px 10px; text-align:center; font-weight:700; font-size:.84rem; }
.shop-category-strip i { display:block; color:var(--accent-orange); margin-bottom:5px; font-size:1.2rem; }

.mobile-nav-head,.mobile-nav-overlay { display:none; }

@media (max-width: 992px) {
  .category-child-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shop-category-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .top-bar .container { justify-content:center; }
  .top-bar-extra { display:none; }
  .top-bar-contact { justify-content:center; }
  .site-header { position:sticky; top:0; }
  .main-nav { padding:0; background:var(--primary-blue-dark); }
  .main-nav > .container { padding:0; }
  .menu-toggle { display:flex; align-items:center; justify-content:center; position:relative; z-index:10002; width:48px; height:48px; margin:0 14px; color:#fff; }
  .nav-menu { position:fixed; top:0; right:0; bottom:0; width:min(88vw,360px); height:100dvh; overflow-y:auto; z-index:10001; background:#fff; display:flex !important; flex-direction:column; align-items:stretch; padding:72px 0 30px; transform:translateX(110%); transition:transform .3s ease; box-shadow:-12px 0 40px rgba(0,0,0,.18); }
  .nav-menu.active { transform:translateX(0); }
  .nav-menu > li { width:100%; }
  .nav-menu > li > a { color:var(--text-dark); background:#fff; border-bottom:1px solid #edf1f5; padding:15px 20px; min-height:52px; justify-content:flex-start; }
  .nav-menu > li > a:hover { background:#f5f9fd; color:var(--primary-blue); }
  .nav-menu > li > a > i:first-child { width:22px; text-align:center; }
  .nav-menu .sub-menu { display:none !important; position:static; width:100%; max-height:none; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; border-radius:0; background:#f6f9fc; overflow:visible; }
  .nav-menu > li.open > .sub-menu { display:block !important; }
  .nav-menu .sub-menu li a { padding:12px 45px 12px 18px; font-size:.82rem; border-bottom:1px solid #e8eef4; color:#304254; }
  .nav-menu .sub-menu-heading a { padding-right:35px !important; background:#eef5fb; }
  .menu-chevron { margin-right:auto !important; transition:transform .25s ease; }
  .nav-menu > li.open > a .menu-chevron { transform:rotate(180deg); }
  .mobile-nav-head { display: none !important; }
  .mobile-menu-close { border:0; background:transparent; color:#fff; font-size:1.25rem; cursor:pointer; }
  .mobile-nav-overlay { position:fixed; inset:0; z-index:10000; background:rgba(4,22,39,.55); opacity:0; visibility:hidden; transition:.25s ease; }
  body.mobile-menu-open .mobile-nav-overlay { opacity:1; visibility:visible; display:block; }
  body.mobile-menu-open { overflow:hidden; }
  .category-hero { padding:22px 0 35px; }
  .category-hero-inner { grid-template-columns:1fr; text-align:center; gap:16px; }
  .category-hero-icon { width:82px; height:82px; border-radius:18px; margin:auto; }
  .category-hero-icon i { font-size:2.3rem; }
  .category-hero h1 { font-size:1.7rem; }
  .category-contact-actions { justify-content:center; }
  .category-child-grid { grid-template-columns:1fr; }
  .shop-category-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .top-bar-contact a:nth-child(3) { display:none; }
  .category-child-card { min-height:68px; }
  .category-subsection,.category-products { padding-top:40px; }
  .shop-category-strip { grid-template-columns:1fr 1fr; }
}

/* ==========================================================================
   Hero with background image
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--primary-blue);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6,58,107,0.92) 0%, rgba(10,77,140,0.78) 45%, rgba(10,77,140,0.55) 100%);
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 640px;
  color: #fff;
  padding: 60px 0;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

/* Product card images */
.product-card-img {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light-gray);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

/* About image */
.about-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 280px;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger via animation-delay still works with transition */
.hero-content .animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUpIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Auth pages (Login / Register)
   ========================================================================== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0 60px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 36px 32px;
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-header i {
  font-size: 2.4rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
  display: block;
}
.auth-header h2 {
  color: var(--primary-blue);
  margin-bottom: 6px;
}
.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.auth-form .form-group {
  margin-bottom: 18px;
}
.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.auth-form label i {
  color: var(--primary-blue);
  margin-left: 6px;
  width: 18px;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--off-white);
  transition: var(--transition);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,77,140,0.12);
}
.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.auth-footer a {
  font-weight: 700;
  color: var(--primary-blue);
}
.auth-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auth-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.auth-alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Header auth links */
.header-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue) !important;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.header-auth-link:hover {
  color: var(--accent-orange) !important;
  background: var(--off-white);
}
.header-register-btn {
  background: var(--primary-blue);
  color: #fff !important;
}
.header-register-btn:hover {
  background: var(--primary-blue-dark);
  color: #fff !important;
}
.auth-label {
  display: inline;
}
@media (max-width: 640px) {
  .auth-label { display: none; }
  .header-register-btn { padding: 8px 12px; }
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding-bottom: 40px;
}
@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}
.dashboard-sidebar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.dash-user-card {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: #fff;
  padding: 28px 20px;
  text-align: center;
}
.dash-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.4);
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-user-card h3 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.dash-user-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin: 0;
  word-break: break-all;
}
.dash-nav {
  padding: 12px 0;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  font-weight: 500;
  border-right: 3px solid transparent;
  transition: var(--transition);
}
.dash-nav-item i {
  width: 20px;
  color: var(--primary-blue);
}
.dash-nav-item:hover,
.dash-nav-item.active {
  background: var(--off-white);
  color: var(--primary-blue);
  border-right-color: var(--accent-orange);
}
.dash-logout {
  color: #b91c1c !important;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
}
.dash-logout i { color: #b91c1c; }

.dashboard-main {
  min-width: 0;
}
.dash-welcome {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.dash-welcome h2 {
  color: var(--primary-blue);
  margin-bottom: 8px;
}
.dash-welcome p {
  margin: 0;
  color: var(--text-muted);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.dash-stat-card i {
  font-size: 1.6rem;
  color: var(--accent-orange);
  width: 36px;
  text-align: center;
}
.dash-stat-card strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.dash-stat-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dash-section {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.dash-section h3 {
  color: var(--primary-blue);
  margin-bottom: 18px;
  font-size: 1.15rem;
}
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.dash-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
}
.dash-quick-card i {
  font-size: 1.6rem;
  color: var(--primary-blue);
}
.dash-quick-card:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.dash-quick-card:hover i {
  color: var(--accent-orange);
}
.dash-contact-box p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-contact-box i {
  color: var(--accent-orange);
  width: 18px;
}
.dash-contact-box a {
  color: var(--primary-blue);
  font-weight: 600;
}

/* ==========================================================================
   جداسازی از قالب قبلی / کاهش تداخل
   ========================================================================== */
body.klinik-pump-theme {
  font-family: var(--font-main) !important;
  background: var(--white);
  color: var(--text-dark);
}
body.klinik-pump-theme .site-header,
body.klinik-pump-theme .main-nav,
body.klinik-pump-theme .top-bar,
body.klinik-pump-theme .site-footer {
  font-family: var(--font-main);
}
body.klinik-pump-theme img {
  max-width: 100%;
  height: auto;
}


/* موبایل: منوی کشویی مرتب، بدون شلوغی هدر */
@media (max-width: 768px) {
  body.mobile-menu-open {
    overflow: hidden;
  }
  body.mobile-menu-open .header-main,
  body.mobile-menu-open .top-bar {
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 30, 60, 0.55);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  body.mobile-menu-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav-head {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    z-index: 10002;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
  }
  .mobile-nav-head strong { color: #fff; font-weight: 700; }
  .mobile-menu-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 4px 8px;
  }
  .nav-menu {
    padding-top: 64px !important;
  }
}




/* === FINAL RESPONSIVE DELIVERY v1.3.1 === */
.site-logo {
  max-width: 220px;
  flex-shrink: 0;
  z-index: 5;
}
.site-logo-img {
  max-height: 78px !important;
  max-width: 220px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* پیش‌فرض: نوار منوی موبایل مخفی */
.mobile-nav-head {
  display: none !important;
}
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 992px) {
  .hero-content h1 { font-size: 1.85rem; }
  .hero-section { min-height: 380px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

@media (max-width: 768px) {
  .top-bar { font-size: 0.75rem; }
  .top-bar-extra { display: none; }
  .header-main {
    padding: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    color: #fff !important;
    border-radius: 8px;
    border: 0;
    font-size: 1.25rem;
    z-index: 5;
  }
  .site-logo-img {
    max-height: 40px !important;
    max-width: 200px !important;
  }
  .auth-label { display: none; }

  /* کشوی منو */
  .main-nav { padding: 0; }
  .main-nav > .container { padding: 0; position: relative; }
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(88vw, 360px) !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    z-index: 10050 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 0 30px !important;
    margin: 0 !important;
    transform: translateX(110%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: -12px 0 40px rgba(0,0,0,.2) !important;
    flex-wrap: nowrap !important;
  }
  .nav-menu.active {
    transform: translateX(0) !important;
  }
  .nav-menu > li { width: 100% !important; flex: none !important; }
  .nav-menu > li > a {
    color: var(--text-dark) !important;
    background: #fff !important;
    border-bottom: 1px solid #edf1f5 !important;
    padding: 15px 20px !important;
    font-size: 0.95rem !important;
    justify-content: flex-start !important;
    min-height: 52px;
  }
  .nav-menu > li > a > i:first-child { color: var(--accent-orange) !important; }
  .nav-menu .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #f6f9fc !important;
  }
  .nav-menu > li.open > .sub-menu { display: block !important; }
  .menu-chevron { display: inline-block !important; margin-right: auto !important; }

  /* هدر کشو فقط وقتی منو باز است */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 25, 50, 0.55);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  body.mobile-menu-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.mobile-menu-open {
    overflow: hidden !important;
  }

  .mobile-nav-head {
    display: none !important;
  }
  body.mobile-menu-open .mobile-nav-head {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(88vw, 360px) !important;
    height: 56px !important;
    z-index: 10060 !important;
    background: var(--primary-blue-dark) !important;
    color: #fff !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.mobile-menu-open .mobile-nav-head strong {
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .mobile-menu-close {
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
  }
  /* فضای خالی زیر هدر کشو برای آیتم‌های منو */
  body.mobile-menu-open .nav-menu {
    padding-top: 56px !important;
  }

  .hero-content { padding: 40px 0; text-align: center; }
  .hero-content h1 { font-size: 1.55rem; }
  .hero-buttons { justify-content: center; }
  .section { padding: 40px 0; }
  .categories-grid { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.35rem; }
}


/* ==========================================================================
   فوتر سوشیال + داک شناور وسط + نوار پایین فروشگاه
   ========================================================================== */
.footer-social-wrap {
  text-align: center;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
}
.footer-social-title {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fs-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.fs-btn:hover {
  transform: translateY(-4px) scale(1.06);
  color: #fff !important;
}
.fs-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.fs-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.fs-telegram { background: linear-gradient(135deg, #2aabee, #229ed9); }
.fs-phone { background: linear-gradient(135deg, #0a4d8c, #063a6b); }

/* داک شناور — وسط پایین صفحه */
.social-dock {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(10, 77, 140, 0.18), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(10, 77, 140, 0.1);
}
.dock-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.dock-btn:hover {
  transform: translateY(-5px) scale(1.08);
  color: #fff !important;
}
.dock-instagram {
  background: linear-gradient(145deg, #f58529, #dd2a7b 45%, #8134af 90%);
}
.dock-whatsapp { background: linear-gradient(145deg, #25d366, #128c7e); }
.dock-telegram { background: linear-gradient(145deg, #2aabee, #1e96c8); }
.dock-phone { background: linear-gradient(145deg, #0a4d8c, #063a6b); }

/* نوار پایین فروشگاه */
.shop-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8990;
  background: #fff;
  border-top: 1px solid #e2eaf2;
  box-shadow: 0 -6px 24px rgba(10, 77, 140, 0.1);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.shop-bottom-inner {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  align-items: stretch;
}
.sbb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.sbb-item i {
  font-size: 1.2rem;
  color: var(--primary-blue);
}
.sbb-item:hover,
.sbb-item:hover i {
  color: var(--accent-orange);
}
.sbb-cart {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: #fff !important;
  border-radius: 12px 12px 0 0;
}
.sbb-cart i { color: #fff !important; }
.sbb-cart:hover { filter: brightness(1.08); color: #fff !important; }
.sbb-count {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 10px;
  background: var(--accent-orange);
  color: #fff;
  font-style: normal;
  font-size: 0.65rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* فاصله پایین صفحه تا زیر نوار نرود */
body.klinik-pump-theme {
  padding-bottom: 70px;
}
@media (min-width: 769px) {
  body.klinik-pump-theme { padding-bottom: 80px; }
  .social-dock { bottom: 88px; }
}

/* منوی شیک‌تر دسکتاپ */
@media (min-width: 769px) {
  .main-nav {
    background: linear-gradient(90deg, #063a6b 0%, #0a4d8c 40%, #0a4d8c 60%, #063a6b 100%);
  }
  .nav-menu > li > a {
    letter-spacing: -0.01em;
    border-radius: 0;
    position: relative;
  }
  .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 12%;
    left: 12%;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .nav-menu > li > a:hover::after,
  .nav-menu > li:hover > a::after {
    transform: scaleX(1);
  }
  .nav-menu .sub-menu {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    min-width: 260px;
  }
}

@media (max-width: 768px) {
  .social-dock {
    bottom: 72px;
    gap: 10px;
    padding: 8px 12px;
  }
  .dock-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .fs-btn { width: 44px; height: 44px; }
}




/* ========== برندها و پرومو — دیزاین شیک ========== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.brands-showcase {
  background: linear-gradient(180deg, #f7fafd 0%, #ffffff 100%);
  padding: 48px 0 56px;
}
.brands-hero-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 77, 140, 0.1);
  border: 1px solid rgba(10, 77, 140, 0.08);
  max-width: 1100px;
  margin: 0 auto 28px;
  background: #fff;
  line-height: 0;
}
.brands-hero-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.brand-chips-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.brand-chip-group {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(10, 77, 140, 0.04);
}
.brand-chip-group h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-chip-group h4 i { color: var(--accent-orange); }
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef5fc;
  color: #0a4d8c;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #d6e6f5;
  transition: all 0.2s ease;
}
.brand-chip:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}
.brand-chip-motor {
  background: #eefaf3;
  border-color: #c8ebd6;
  color: #1a7a45;
}
.brand-chip-motor:hover {
  background: #1a7a45;
  border-color: #1a7a45;
  color: #fff;
}
.promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.promo-duo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e6eef6;
  box-shadow: 0 10px 36px rgba(10, 77, 140, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}
.promo-duo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(10, 77, 140, 0.14);
  color: inherit;
}
.promo-duo-media {
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #f0f5fa;
  line-height: 0;
  aspect-ratio: 16 / 10;
}
.promo-duo-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
  background: #fff;
}
.promo-duo-card:hover .promo-duo-media img {
  transform: scale(1.03);
}
.promo-duo-body {
  padding: 20px 22px 24px;
}
.promo-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #e8f1fb;
  color: var(--primary-blue);
  margin-bottom: 10px;
}
.promo-tag-green {
  background: #e6f7ee;
  color: #1a7a45;
}
.promo-duo-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--primary-blue-dark);
}
.promo-duo-body p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.promo-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-orange);
}
.promo-link i { margin-right: 4px; font-size: 0.75rem; }

.category-brand-banner {
  padding: 0 0 28px;
  background: #f7f9fc;
}
.category-brand-banner .container { max-width: 1100px; }
.category-brand-banner-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(10, 77, 140, 0.1);
  display: block;
  background: #fff;
  line-height: 0;
}

/* ========== ووکامرس: سبد و تسویه شیک ========== */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.page-cart .woocommerce {
  max-width: 100%;
}
.woocommerce table.shop_table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6eef6 !important;
}
.woocommerce table.shop_table th {
  background: #f4f8fc;
  color: var(--primary-blue);
  font-weight: 700;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--primary-blue) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 12px 22px !important;
  transition: background 0.2s ease !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--accent-orange) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--accent-orange) !important;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--primary-blue) !important;
  border-radius: 10px;
}
.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-billing-fields {
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(10, 77, 140, 0.05);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #d8e2ec;
  border-radius: 10px;
  padding: 12px 14px;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.12);
}
.cart-empty-box {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed #c9d5e2;
  max-width: 480px;
  margin: 0 auto;
}
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.checkout-steps span {
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 700;
}
.checkout-steps span.active {
  background: var(--primary-blue);
  color: #fff;
}
.single-product .product {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e8eef5;
}
.single-product .summary .price {
  color: var(--accent-orange) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
}
.single-product .single_add_to_cart_button {
  background: var(--accent-orange) !important;
  min-width: 180px;
}

@media (max-width: 768px) {
  .brand-chips-block,
  .promo-duo,
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr;
  }
  .brands-hero-card img { max-height: none; width: 100%; height: auto; }
  .promo-duo-media { height: auto; aspect-ratio: 16 / 11; }
}
