/*
Theme Name:  ابزارتمام
Theme URI:   https://abzartamam.ir
Author:      Farzad Roozbahani
Author URI:  https://farzadroozbahani.ir
Description: فروشگاه تخصصی ابزار و ماشین‌آلات صنعتی — طراحی سفارشی با هویت صنعتی
Version:     1.8.6
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abzartamam
Tags:        rtl-language, woocommerce, e-commerce, custom-colors, custom-logo
WC requires at least: 8.0
WC tested up to: 9.0
*/

/* ==========================================================================
   DESIGN TOKENS — همه رنگ‌ها و مقادیر از اینجا کنترل می‌شن
   هیچ مقداری در کد hardcode نشده — همه از CSS custom properties هستن
   ========================================================================== */

:root {

  /* ---------- Brand Colors ---------- */
  --clr-primary:          #E8610A;   /* steel orange — رنگ اصلی برند */
  --clr-primary-dark:     #c9520a;   /* نارنجی تیره — hover، active */
  --clr-primary-light:    #FEE8D6;   /* نارنجی خیلی روشن — bg badge */
  --clr-primary-rgb:      232, 97, 10;

  --clr-secondary:        #0F4C81;   /* آبی فولادی */
  --clr-secondary-dark:   #0A3560;
  --clr-secondary-light:  #DBEAFE;

  /* ---------- Neutral / UI ---------- */
  --clr-bg:               #FFFFFF;
  --clr-bg-secondary:     #F8F9FA;   /* پس‌زمینه بخش‌های خاکستری */
  --clr-bg-tertiary:      #F1F3F5;   /* hover روی آیتم‌های لیست */

  --clr-surface:          #FFFFFF;   /* کارت‌ها، modal‌ها */
  --clr-surface-raised:   #FFFFFF;   /* کارت با سایه */

  --clr-border:           #E5E7EB;
  --clr-border-strong:    #D1D5DB;

  /* ---------- Text ---------- */
  --clr-text-primary:     #1C1C1E;   /* عنوان‌های اصلی */
  --clr-text-secondary:   #6B7280;   /* متن فرعی */
  --clr-text-muted:       #9CA3AF;   /* placeholder، disabled */
  --clr-text-inverse:     #FFFFFF;   /* متن روی پس‌زمینه تیره */
  --clr-text-link:        #0F4C81;
  --clr-text-link-hover:  #D97706;

  /* ---------- Semantic ---------- */
  --clr-success:          #16A34A;
  --clr-success-light:    #DCFCE7;
  --clr-warning:          #D97706;
  --clr-warning-light:    #FEF3C7;
  --clr-danger:           #DC2626;
  --clr-danger-light:     #FEE2E2;
  --clr-info:             #0284C7;
  --clr-info-light:       #E0F2FE;

  /* ---------- Product Status ---------- */
  --clr-available:        #16A34A;   /* موجود */
  --clr-last-units:       #D97706;   /* آخرین موجودی */
  --clr-out-of-stock:     #6B7280;   /* ناموجود */
  --clr-discount-badge:   #DC2626;   /* درصد تخفیف */

  /* ---------- Typography ---------- */
  --font-primary:         'Vazirmatn', system-ui, sans-serif;
  --font-mono:            'Courier New', monospace;

  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   1.875rem;   /* 30px */
  --text-3xl:   2.25rem;    /* 36px */
  --text-4xl:   3rem;       /* 48px */

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  --leading-tight:   1.25;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* ---------- Spacing (4px base) ---------- */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

  /* ---------- Layout ---------- */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1440px;

  --header-height:       64px;
  --header-height-lg:    80px;
  --topbar-height:       36px;
  --sidebar-width:       260px;
  --product-card-width:  220px;

  /* ---------- Border Radius ---------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-xs:   0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg:   0 10px 15px rgba(0, 0, 0, 0.10), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl:   0 20px 25px rgba(0, 0, 0, 0.10), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* ---------- Transitions ---------- */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-bounce:  300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---------- Z-index ---------- */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:    10;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-header:    300;
  --z-overlay:   400;
  --z-modal:     500;
  --z-toast:     600;
  --z-tooltip:   700;
}

/* ==========================================================================
   --abzr-* ALIASES — برای سازگاری CSS فایل‌های جداگانه
   ========================================================================== */

:root {
  /* Colors */
  --abzr-primary:        var(--clr-primary);
  --abzr-primary-dark:   var(--clr-primary-dark);
  --abzr-primary-light:  var(--clr-primary-light);
  --abzr-white:          #FFFFFF;
  --abzr-danger:         var(--clr-danger);
  --abzr-success:        var(--clr-success);
  --abzr-border:         var(--clr-border);
  --abzr-text:           var(--clr-text-primary);

  /* Grays */
  --abzr-gray-50:   #F9FAFB;
  --abzr-gray-100:  #F3F4F6;
  --abzr-gray-200:  #E5E7EB;
  --abzr-gray-300:  #D1D5DB;
  --abzr-gray-400:  #9CA3AF;
  --abzr-gray-500:  #6B7280;
  --abzr-gray-600:  #4B5563;
  --abzr-gray-700:  #374151;
  --abzr-gray-800:  #1F2937;
  --abzr-gray-900:  #111827;

  /* Typography */
  --abzr-text-xs:    var(--text-xs);
  --abzr-text-sm:    var(--text-sm);
  --abzr-text-base:  var(--text-base);
  --abzr-text-lg:    var(--text-lg);
  --abzr-text-xl:    var(--text-xl);

  /* Spacing */
  --abzr-space-1:   var(--space-1);
  --abzr-space-2:   var(--space-2);
  --abzr-space-3:   var(--space-3);
  --abzr-space-4:   var(--space-4);
  --abzr-space-5:   var(--space-5);
  --abzr-space-6:   var(--space-6);
  --abzr-space-8:   var(--space-8);
  --abzr-space-10:  var(--space-10);

  /* Radius */
  --abzr-radius-sm:   var(--radius-sm);
  --abzr-radius-md:   var(--radius-md);
  --abzr-radius-lg:   var(--radius-lg);
  --abzr-radius-xl:   var(--radius-xl);
  --abzr-radius-full: var(--radius-full);

  /* Shadows */
  --abzr-shadow-sm:  var(--shadow-sm);
  --abzr-shadow-md:  var(--shadow-md);
  --abzr-shadow-lg:  var(--shadow-lg);

  /* Transitions */
  --abzr-transition: var(--transition-base);

  /* Layout */
  --abzr-header-h:   var(--header-height);

  /* Z-index */
  --abzr-z-header:   var(--z-header);
  --abzr-z-dropdown: var(--z-dropdown);
  --abzr-z-modal:    var(--z-modal);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--clr-text-primary);
  background-color: var(--clr-bg-secondary);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clr-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--clr-text-link-hover);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.abzr-container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .abzr-container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1280px) {
  .abzr-container {
    padding-inline: var(--space-8);
  }
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.abzr-breadcrumb {
    padding-block: 12px;
    margin-bottom: 8px;
}
.abzr-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--abzr-text-sm, .875rem);
}
.abzr-breadcrumb__item { display: flex; align-items: center; }
.abzr-breadcrumb__link {
    color: var(--abzr-gray-500, #6B7280);
    text-decoration: none;
    transition: color .15s;
}
.abzr-breadcrumb__link:hover { color: var(--abzr-primary, #e8610a); }
.abzr-breadcrumb__current {
    color: var(--abzr-text, #1C1C1E);
    font-weight: 500;
    /* متن بلند رو کوتاه می‌کنیم */
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abzr-breadcrumb__separator {
    color: var(--abzr-gray-300, #D1D5DB);
    font-size: .75rem;
    user-select: none;
    list-style: none;
}

.abzr-grid {
  display: grid;
  gap: var(--space-4);
}

.abzr-flex {
  display: flex;
  gap: var(--space-4);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */

.abzr-heading-1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--clr-text-primary);
}

.abzr-heading-2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

.abzr-heading-3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

.abzr-section-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--clr-text-primary);
  margin-block-end: var(--space-6);
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.abzr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.abzr-btn:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

.abzr-btn:active {
  transform: scale(0.98);
}

/* Primary */
.abzr-btn--primary {
  background-color: var(--clr-primary);
  color: var(--clr-text-inverse);
}

.abzr-btn--primary:hover {
  background-color: var(--clr-primary-dark);
  color: var(--clr-text-inverse);
}

/* Secondary */
.abzr-btn--secondary {
  background-color: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.abzr-btn--secondary:hover {
  background-color: var(--clr-primary);
  color: var(--clr-text-inverse);
}

/* Ghost */
.abzr-btn--ghost {
  background-color: transparent;
  color: var(--clr-text-secondary);
  border-color: var(--clr-border);
}

.abzr-btn--ghost:hover {
  background-color: var(--clr-bg-tertiary);
  color: var(--clr-text-primary);
}

/* Sizes */
.abzr-btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.abzr-btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-md);
}

.abzr-btn--full {
  width: 100%;
}

/* Disabled */
.abzr-btn:disabled,
.abzr-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   BADGE / TAG SYSTEM
   ========================================================================== */

.abzr-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.abzr-badge--discount {
  background-color: var(--clr-discount-badge);
  color: white;
}

.abzr-badge--available {
  background-color: var(--clr-success-light);
  color: var(--clr-available);
}

.abzr-badge--last-units {
  background-color: var(--clr-warning-light);
  color: var(--clr-last-units);
}

.abzr-badge--out-of-stock {
  background-color: var(--clr-bg-tertiary);
  color: var(--clr-out-of-stock);
}

.abzr-badge--new {
  background-color: var(--clr-secondary);
  color: white;
}

.abzr-badge--special {
  background-color: var(--clr-primary);
  color: white;
}

/* ==========================================================================
   CARD BASE
   ========================================================================== */

.abzr-card {
  background-color: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.abzr-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.abzr-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--clr-text-primary);
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  direction: rtl;
}

.abzr-input::placeholder {
  color: var(--clr-text-muted);
}

.abzr-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(var(--clr-primary-rgb), 0.15);
}

/* ==========================================================================
   PRICE DISPLAY
   ========================================================================== */

.abzr-price {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.abzr-price__original {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.abzr-price__final {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--clr-text-primary);
  direction: ltr;
  text-align: right;
}

.abzr-price__unit {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--clr-text-secondary);
  margin-inline-start: var(--space-1);
}

.abzr-price--discounted .abzr-price__final {
  color: var(--clr-danger);
}

/* ==========================================================================
   RATING STARS
   ========================================================================== */

.abzr-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  direction: ltr;
}

.abzr-rating__stars {
  color: #FBBF24;
  font-size: var(--text-sm);
}

.abzr-rating__count {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

.abzr-section {
  padding-block: var(--space-10);
}

.abzr-section--gray {
  background-color: var(--clr-bg-secondary);
}

.abzr-section--white {
  background-color: var(--clr-bg);
}

/* ==========================================================================
   LOADING / SKELETON
   ========================================================================== */

@keyframes abzr-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.abzr-skeleton {
  background: linear-gradient(
    90deg,
    var(--clr-bg-tertiary) 25%,
    var(--clr-border) 50%,
    var(--clr-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: abzr-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.abzr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   WOOCOMMERCE — RESET & BASE OVERRIDES
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-inline-start: none;
  border-inline-end: 4px solid var(--clr-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background-color: var(--clr-primary-light);
  color: var(--clr-text-primary);
  margin-block-end: var(--space-6);
}

.woocommerce-error {
  border-color: var(--clr-danger);
  background-color: var(--clr-danger-light);
}

/* ==========================================================================
   RESPONSIVE HELPERS
   ========================================================================== */

@media (max-width: 767px) {
  .abzr-hide-mobile  { display: none !important; }
}

@media (min-width: 768px) {
  .abzr-hide-desktop { display: none !important; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .abzr-no-print { display: none !important; }
}

/* ==========================================================================
   PROMO BANNERS — 4-column & 2-column
   ========================================================================== */

/* ---- 4-column ---- */
.abzr-promo4 { padding: 40px 0; }
.abzr-promo4__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.abzr-promo4__item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
    background: var(--abzr-gray-100, #f5f5f5);
    text-decoration: none;
    transition: transform .25s;
}
.abzr-promo4__item:hover { transform: translateY(-3px); }
.abzr-promo4__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.abzr-promo4__overlay {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 16px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.abzr-promo4__title {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}
.abzr-promo4__sub {
    color: rgba(255,255,255,.8);
    font-size: .8rem;
}

/* ---- 2-column ---- */
.abzr-promo2 { padding: 0 0 40px; }
.abzr-promo2__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.abzr-promo2__item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
    background: var(--abzr-gray-100, #f5f5f5);
    text-decoration: none;
    transition: transform .25s;
}
.abzr-promo2__item:hover { transform: translateY(-3px); }
.abzr-promo2__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.abzr-promo2__overlay {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.abzr-promo2__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}
.abzr-promo2__sub {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .abzr-promo4__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .abzr-promo4__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .abzr-promo2__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BLOG POSTS SECTION
   ========================================================================== */

.abzr-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.abzr-section-head .abzr-section-title { margin: 0; }

.abzr-section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .875rem;
    color: var(--abzr-primary, #1a2a4c);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.abzr-section-more:hover { text-decoration: underline; }

.abzr-blog { background: var(--abzr-bg-white, #fff); }

/* swiper-slide بلاگ — ارتفاع یکسان */
.abzr-blog-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* کارت بلاگ — درون swiper-slide قرار می‌گیرد */
.abzr-blog__card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--abzr-bg-white, #fff);
    border: 1px solid var(--abzr-border, #e8e8e8);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.abzr-blog__card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.abzr-blog__thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--abzr-bg-gray, #f5f5f5);
}
.abzr-blog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.abzr-blog__card:hover .abzr-blog__thumb img { transform: scale(1.04); }

.abzr-blog__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.abzr-blog__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    color: var(--abzr-text-muted, #888);
}
.abzr-blog__cat {
    background: var(--abzr-primary-light, #e8edf5);
    color: var(--abzr-primary, #1a2a4c);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.abzr-blog__title {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
}
.abzr-blog__title a {
    color: var(--abzr-text, #1a1a1a);
    text-decoration: none;
}
.abzr-blog__title a:hover { color: var(--abzr-primary, #1a2a4c); }

.abzr-blog__excerpt {
    font-size: .825rem;
    color: var(--abzr-text-muted, #666);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.abzr-blog__read-more {
    font-size: .8rem;
    font-weight: 600;
    color: var(--abzr-primary, #1a2a4c);
    text-decoration: none;
    margin-top: auto;
}
.abzr-blog__read-more:hover { text-decoration: underline; }

/* عرض کارت در حالت بدون جاوااسکریپت */
.abzr-blog__thumb--empty {
    display: block;
    aspect-ratio: 16/9;
    background: var(--abzr-bg-gray, #f5f5f5);
}


/* ==========================================================================
   SEO TEXT SECTION
   ========================================================================== */

.abzr-seo-text {
    background: var(--abzr-bg-gray, #f5f5f5);
    padding: 48px 0;
    border-top: 1px solid var(--abzr-border, #e8e8e8);
}

.abzr-seo-text__heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--abzr-text, #1a1a1a);
    margin: 0 0 24px;
    text-align: center;
}

.abzr-seo-text__preview,
.abzr-seo-text__full {
    font-size: .9rem;
    line-height: 2;
    color: var(--abzr-text-muted, #555);
}
.abzr-seo-text__preview p,
.abzr-seo-text__full p { margin: 0 0 14px; }

.abzr-seo-text__full {
    margin-top: 0;
}

.abzr-seo-text__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    background: none;
    border: 1.5px solid var(--abzr-primary, #1a2a4c);
    color: var(--abzr-primary, #1a2a4c);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, color .2s;
}
.abzr-seo-text__toggle:hover {
    background: var(--abzr-primary, #1a2a4c);
    color: #fff;
}
.abzr-seo-text__toggle-icon {
    transition: transform .25s;
    flex-shrink: 0;
}

/* ==========================================================================
   SEO TEXT — تک ستون کامل‌عرض + fade
   ========================================================================== */
.abzr-seo-text__inner {
    width: 100%;
}

/* بخش قابل‌بسط با fade */
.abzr-seo-text__full-wrap {
    position: relative;
    max-height: 48px;       /* تقریباً ۱ سطر + fade */
    overflow: hidden;
    transition: max-height .5s ease;
}
.abzr-seo-text__full-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--abzr-bg-gray, #f5f5f5)
    );
    transition: opacity .4s ease;
    pointer-events: none;
}
.abzr-seo-text__full-wrap.abzr-seo-full--open {
    max-height: 2000px;
}
.abzr-seo-text__full-wrap.abzr-seo-full--open::after {
    opacity: 0;
}

/* دکمه وسط */
.abzr-seo-text__toggle-wrap {
    text-align: center;
    margin-top: 20px;
}

.abzr-seo-text__image { display: none; }

/* ==========================================================================
   TRUST BAR — نوار اعتماد (footer.php)
   ========================================================================== */
.abzr-trust-bar {
    background: var(--abzr-bg-white, #fff);
    border-top: 1px solid var(--abzr-border, #e8e8e8);
    border-bottom: 1px solid var(--abzr-border, #e8e8e8);
    padding: 24px 0;
}
.abzr-trust-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.abzr-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 8px 0;
}
.abzr-trust-bar__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--abzr-primary-light, #e8edf5);
    color: var(--abzr-primary, #1a2a4c);
    display: flex;
    align-items: center;
    justify-content: center;
}
.abzr-trust-bar__text {
    font-size: .88rem;
    font-weight: 600;
    color: var(--abzr-text, #1a1a1a);
    line-height: 1.4;
}
@media (max-width: 768px) {
    .abzr-trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .abzr-trust-bar__inner { grid-template-columns: 1fr; }
}
/* نسخه قدیمی با ul/li (در صورت استفاده) */
.abzr-trust-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ==========================================================================
   SHOP PAGE — صفحه فروشگاه / آرشیو محصولات
   ========================================================================== */

/* ── Layout ────────────────────────────────────────────────────── */
.abzr-shop-page { padding-bottom: 64px; }

.abzr-shop-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width, 260px) 1fr;
    gap: 28px;
    align-items: start;
    direction: rtl;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.abzr-shop-sidebar {
    background: var(--abzr-bg-white, #fff);
    border: 1px solid var(--abzr-border, #e8e8e8);
    border-radius: 10px;
    padding: 0;
    position: sticky;
    top: 100px;
}

.abzr-shop-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--abzr-border, #e8e8e8);
}

.abzr-shop-sidebar__header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--abzr-text, #1a1a1a);
}

.abzr-shop-sidebar__close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--abzr-text-muted, #888);
    line-height: 1;
    border-radius: 4px;
}
.abzr-shop-sidebar__close:hover { color: var(--abzr-text, #1a1a1a); }

.abzr-shop-sidebar__cat-desc {
    padding: 14px 18px;
    font-size: .85rem;
    color: var(--abzr-text-muted, #888);
    border-bottom: 1px solid var(--abzr-border, #e8e8e8);
}

/* ── Filter boxes ──────────────────────────────────────────────── */
.abzr-filter-box {
    padding: 16px 18px;
    border-bottom: 1px solid var(--abzr-border, #e8e8e8);
}
.abzr-filter-box:last-child { border-bottom: none; }

.abzr-filter-box__title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--abzr-text, #1a1a1a);
    margin: 0 0 12px;
}

/* WooCommerce widget overrides inside sidebar */
.abzr-shop-sidebar .widget { margin: 0; }
.abzr-shop-sidebar .widget_title,
.abzr-shop-sidebar .widgettitle { display: none; }

.abzr-shop-sidebar .woocommerce-widget-layered-nav-list,
.abzr-shop-sidebar .product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.abzr-shop-sidebar .woocommerce-widget-layered-nav-list li,
.abzr-shop-sidebar .product-categories li {
    margin: 0;
}

.abzr-shop-sidebar .woocommerce-widget-layered-nav-list li a,
.abzr-shop-sidebar .product-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    font-size: .875rem;
    color: var(--abzr-text, #1a1a1a);
    text-decoration: none;
    border-bottom: 1px solid var(--abzr-border-light, #f0f0f0);
    transition: color .2s;
}
.abzr-shop-sidebar .product-categories li:last-child a { border-bottom: none; }
.abzr-shop-sidebar .woocommerce-widget-layered-nav-list li a:hover,
.abzr-shop-sidebar .product-categories li a:hover {
    color: var(--abzr-primary, #e8610a);
}

.abzr-shop-sidebar .count {
    font-size: .8rem;
    color: var(--abzr-text-muted, #888);
    background: var(--abzr-bg-gray, #f5f5f5);
    padding: 2px 7px;
    border-radius: 20px;
}

/* Price filter — override رنگ بنفش پیش‌فرض WC */
.abzr-shop-sidebar .price_slider_wrapper { margin-top: 8px; }
.abzr-shop-sidebar .price_label { font-size: .85rem; margin-top: 10px; color: var(--abzr-text-secondary, #555); }

/* jQuery UI slider — رنگ برند */
.abzr-shop-sidebar .ui-slider {
    background: var(--abzr-border, #e8e8e8);
    border: none;
    border-radius: 4px;
    height: 4px;
}
.abzr-shop-sidebar .ui-slider .ui-slider-range {
    background: var(--abzr-primary, #e8610a) !important;
    border: none;
}
.abzr-shop-sidebar .ui-slider .ui-slider-handle {
    background: var(--abzr-primary, #e8610a) !important;
    border-color: var(--abzr-primary, #e8610a) !important;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    top: -5px;
    cursor: pointer;
}
.abzr-shop-sidebar .ui-slider .ui-slider-handle:focus {
    outline: 2px solid var(--abzr-primary, #e8610a);
    outline-offset: 2px;
}
.abzr-shop-sidebar button.button {
    background: var(--abzr-primary, #e8610a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: .82rem !important;
    cursor: pointer !important;
    transition: background .2s !important;
}
.abzr-shop-sidebar button.button:hover {
    background: var(--abzr-primary-dark, #c9520a) !important;
}

/* ── Mobile overlay ────────────────────────────────────────────── */
.abzr-shop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 399;
}

/* ── Shop content area ─────────────────────────────────────────── */
.abzr-shop-content { min-width: 0; }

/* ── Sort / toolbar bar ────────────────────────────────────────── */
.abzr-shop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--abzr-bg-white, #fff);
    border: 1px solid var(--abzr-border, #e8e8e8);
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.abzr-shop-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.abzr-shop-bar__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.abzr-shop-bar__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--abzr-text, #1a1a1a);
    margin: 0;
}

.abzr-shop-bar__count {
    font-size: .82rem;
    color: var(--abzr-text-muted, #888);
    background: var(--abzr-bg-gray, #f5f5f5);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Filter toggle button (mobile only) */
.abzr-shop-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--abzr-primary, #e8610a);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.abzr-shop-filter-toggle:hover { background: var(--abzr-primary-dark, #c9520a); }

/* Sort label */
.abzr-shop-bar__label {
    font-size: .82rem;
    color: var(--abzr-text-muted, #888);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Sort links — خطی پشت سر هم */
.abzr-shop-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.abzr-shop-sort__item {
    font-size: .82rem;
    color: var(--abzr-text-secondary, #555);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all .2s;
}
.abzr-shop-sort__item:hover {
    color: var(--abzr-primary, #e8610a);
    border-color: var(--abzr-primary, #e8610a);
}
.abzr-shop-sort__item--active {
    background: var(--abzr-primary, #e8610a);
    color: #fff !important;
    border-color: var(--abzr-primary, #e8610a);
    font-weight: 600;
}

/* Products grid */
.abzr-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
}

/* WC ممکنه ul.products هم بسازه */
.abzr-products-grid ul.products,
.abzr-products-grid .products {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* کارت محصول — فریم‌ورک WC رو override می‌کنیم */
.abzr-products-grid .abzr-product-card,
.abzr-product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .abzr-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 800px) {
    .abzr-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    /* Switch to drawer sidebar on tablet/mobile */
    .abzr-shop-layout {
        grid-template-columns: 1fr;
    }

    .abzr-shop-sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 270px;
        height: 100%;
        overflow-y: auto;
        z-index: 400;
        border-radius: 0;
        border: none;
        box-shadow: -4px 0 20px rgba(0,0,0,.15);
        transition: right .3s ease;
        direction: rtl;
    }
    .abzr-shop-sidebar.abzr-shop-sidebar--open {
        right: 0;
    }

    .abzr-shop-sidebar__close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .abzr-shop-filter-toggle {
        display: inline-flex;
    }

    body.abzr-sidebar-open { overflow: hidden; }
}

@media (max-width: 520px) {
    .abzr-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .abzr-shop-bar { padding: 8px 12px; }
}

/* ── Brand filter list ──────────────────────────────────────────── */
.abzr-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.abzr-brand-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .88rem;
    color: var(--abzr-text, #222);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.abzr-brand-list__item:hover {
    color: var(--abzr-primary, #e8610a);
    background: rgba(232,97,10,.06);
}
.abzr-brand-list__item.active {
    color: var(--abzr-primary, #e8610a);
    font-weight: 600;
}
.abzr-brand-list__item .count {
    color: var(--abzr-text-secondary, #888);
    font-size: .8rem;
}
.abzr-filter-empty {
    font-size: .85rem;
    color: var(--abzr-text-secondary, #888);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SINGLE PRODUCT — صفحه تکی محصول
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────────── */
.abzr-single-product { padding-block: 32px 64px; }

.abzr-sp__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}

/* ── Gallery ─────────────────────────────────────────────────────── */
.abzr-sp-gallery {
    position: sticky;
    top: calc(var(--abzr-header-h, 64px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abzr-sp-gallery__main-wrap { position: relative; }

.abzr-sp-gallery__main {
    position: relative;
    border-radius: var(--abzr-radius-lg, 12px);
    overflow: hidden;
    background: var(--abzr-gray-50, #F9FAFB);
    border: 1px solid var(--abzr-border, #E5E7EB);
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

.abzr-sp-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
}
.abzr-sp-gallery__main:hover .abzr-sp-gallery__main-img {
    transform: scale(1.04);
}

.abzr-sp-gallery__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--abzr-radius-full, 9999px);
    line-height: 1;
}
.abzr-sp-gallery__badge--sale {
    background: var(--abzr-danger, #DC2626);
    color: #fff;
}
.abzr-sp-gallery__badge--new {
    background: var(--abzr-success, #16A34A);
    color: #fff;
}

/* دکمه زوم */
.abzr-sp-gallery__zoom-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--abzr-gray-700, #374151);
    transition: background .2s, color .2s;
}
.abzr-sp-gallery__zoom-btn:hover {
    background: var(--abzr-primary, #e8610a);
    color: #fff;
    border-color: var(--abzr-primary, #e8610a);
}

/* تامب‌نیل‌ها */
.abzr-sp-gallery__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.abzr-sp-gallery__thumb {
    width: 68px;
    height: 68px;
    border-radius: var(--abzr-radius-md, 8px);
    overflow: hidden;
    border: 2px solid var(--abzr-border, #E5E7EB);
    background: var(--abzr-gray-50, #F9FAFB);
    cursor: pointer;
    padding: 0;
    transition: border-color .2s;
    flex-shrink: 0;
}
.abzr-sp-gallery__thumb:hover {
    border-color: var(--abzr-gray-400, #9CA3AF);
}
.abzr-sp-gallery__thumb--active {
    border-color: var(--abzr-primary, #e8610a);
}
.abzr-sp-gallery__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Product Info ────────────────────────────────────────────────── */
.abzr-sp-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.abzr-sp-info__cats {
    font-size: var(--abzr-text-xs, .75rem);
    color: var(--abzr-primary, #e8610a);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.abzr-sp-info__cats a {
    color: inherit;
    text-decoration: none;
}
.abzr-sp-info__cats a:hover { text-decoration: underline; }

.abzr-sp-info__title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--abzr-text, #1C1C1E);
    margin: 0;
}

.abzr-sp-info__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.abzr-sp-info__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.abzr-rating__stars { display: flex; gap: 2px; }

.abzr-sp-info__review-link {
    font-size: var(--abzr-text-sm, .875rem);
    color: var(--abzr-primary, #e8610a);
    text-decoration: none;
    border-bottom: 1px dashed var(--abzr-primary, #e8610a);
}

.abzr-sp-info__sku {
    font-size: var(--abzr-text-sm, .875rem);
    color: var(--abzr-gray-500, #6B7280);
    border-right: 1px solid var(--abzr-border, #E5E7EB);
    padding-right: 16px;
}

/* قیمت */
.abzr-sp-info__price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--abzr-gray-50, #F9FAFB);
    border-radius: var(--abzr-radius-lg, 12px);
    border: 1px solid var(--abzr-border, #E5E7EB);
}

.abzr-sp-info__price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.abzr-sp-info__price-original {
    font-size: var(--abzr-text-sm, .875rem);
    color: var(--abzr-gray-400, #9CA3AF);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.abzr-sp-info__discount-badge {
    font-size: .75rem;
    font-weight: 700;
    color: var(--abzr-danger, #DC2626);
    background: rgba(220,38,38,.1);
    padding: 2px 8px;
    border-radius: var(--abzr-radius-full, 9999px);
}

.abzr-sp-info__price-final {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--abzr-text, #1C1C1E);
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: right;
}
.abzr-sp-info__price-final--na {
    font-size: 1.2rem;
    color: var(--abzr-gray-500, #6B7280);
}

/* وضعیت موجودی */
.abzr-sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--abzr-text-sm, .875rem);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--abzr-radius-full, 9999px);
}
.abzr-sp-stock--in {
    color: var(--abzr-success, #16A34A);
    background: rgba(22,163,74,.08);
}
.abzr-sp-stock--out {
    color: var(--abzr-danger, #DC2626);
    background: rgba(220,38,38,.08);
}
.abzr-sp-stock--low {
    color: #d97706;
    background: rgba(217,119,6,.1);
}

/* توضیح کوتاه */
.abzr-sp-info__short-desc {
    font-size: var(--abzr-text-sm, .875rem);
    color: var(--abzr-gray-600, #4B5563);
    line-height: 1.8;
    border-right: 3px solid var(--abzr-primary, #e8610a);
    padding-right: 14px;
}

/* دکمه‌های اکشن */
.abzr-sp-info__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* WC add to cart override */
.abzr-sp-info__actions .quantity { display: flex; align-items: center; gap: 8px; }
.abzr-sp-info__actions .cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.abzr-sp-info__actions .single_add_to_cart_button {
    flex: 1;
    min-width: 160px;
    background: var(--abzr-primary, #e8610a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--abzr-radius-md, 8px) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    padding: 14px 28px !important;
    cursor: pointer;
    transition: background .2s !important;
}
.abzr-sp-info__actions .single_add_to_cart_button:hover {
    background: var(--abzr-primary-dark, #c9520a) !important;
}

/* دکمه علاقه‌مندی */
.abzr-sp-info__wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--abzr-border, #E5E7EB);
    border-radius: var(--abzr-radius-md, 8px);
    background: transparent;
    color: var(--abzr-gray-600, #4B5563);
    font-size: var(--abzr-text-sm, .875rem);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    width: fit-content;
}
.abzr-sp-info__wishlist-btn:hover,
.abzr-sp-info__wishlist-btn.abzr-product-card__wishlist--active {
    color: #ef4444;
    border-color: #fecaca;
    background: #fff1f2;
}
.abzr-sp-info__wishlist-btn.abzr-product-card__wishlist--active svg {
    fill: #ef4444;
}

/* notify form */
.abzr-sp-notify { display: flex; flex-direction: column; gap: 10px; }
.abzr-sp-notify__label { font-size: var(--abzr-text-sm, .875rem); color: var(--abzr-gray-600, #4B5563); margin: 0; }
.abzr-sp-notify__form { display: flex; gap: 8px; }
.abzr-sp-notify__email {
    flex: 1;
    border: 1.5px solid var(--abzr-border, #E5E7EB);
    border-radius: var(--abzr-radius-md, 8px);
    padding: 10px 14px;
    font-size: var(--abzr-text-sm, .875rem);
    font-family: inherit;
    background: var(--abzr-white, #fff);
    color: var(--abzr-text, #1C1C1E);
    outline: none;
    direction: ltr;
}
.abzr-sp-notify__email:focus { border-color: var(--abzr-primary, #e8610a); }

/* Trust bar */
.abzr-sp-info__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--abzr-gray-50, #F9FAFB);
    border-radius: var(--abzr-radius-lg, 12px);
    border: 1px solid var(--abzr-border, #E5E7EB);
}

.abzr-sp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: var(--abzr-gray-600, #4B5563);
}
.abzr-sp-trust-item svg { color: var(--abzr-primary, #e8610a); flex-shrink: 0; }
.abzr-sp-trust-item strong { display: block; font-size: .8rem; color: var(--abzr-text, #1C1C1E); }
.abzr-sp-trust-item span { font-size: .72rem; color: var(--abzr-gray-400, #9CA3AF); }

/* برچسب‌ها */
.abzr-sp-info__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--abzr-text-xs, .75rem);
    color: var(--abzr-gray-500, #6B7280);
    flex-wrap: wrap;
}
.abzr-sp-info__tags svg { flex-shrink: 0; color: var(--abzr-gray-400, #9CA3AF); }
.abzr-sp-info__tags a {
    color: var(--abzr-gray-600, #4B5563);
    text-decoration: none;
    background: var(--abzr-gray-100, #F3F4F6);
    padding: 3px 10px;
    border-radius: var(--abzr-radius-full, 9999px);
    transition: background .15s, color .15s;
}
.abzr-sp-info__tags a:hover {
    background: var(--abzr-primary-light, #FEE8D6);
    color: var(--abzr-primary, #e8610a);
}

/* ── Tabs ────────────────────────────────────────────────────────── */
.abzr-sp-tabs {
    margin-bottom: 60px;
    border-radius: var(--abzr-radius-xl, 16px);
    border: 1px solid var(--abzr-border, #E5E7EB);
    overflow: hidden;
}

.abzr-sp-tabs__nav {
    display: flex;
    background: var(--abzr-gray-50, #F9FAFB);
    border-bottom: 1px solid var(--abzr-border, #E5E7EB);
    overflow-x: auto;
    scrollbar-width: none;
}
.abzr-sp-tabs__nav::-webkit-scrollbar { display: none; }

.abzr-sp-tabs__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: var(--abzr-text-sm, .875rem);
    font-weight: 600;
    font-family: inherit;
    color: var(--abzr-gray-500, #6B7280);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.abzr-sp-tabs__btn:hover { color: var(--abzr-primary, #e8610a); }
.abzr-sp-tabs__btn--active {
    color: var(--abzr-primary, #e8610a);
    border-bottom-color: var(--abzr-primary, #e8610a);
    background: var(--abzr-white, #fff);
}

.abzr-sp-tabs__panel { display: block; }
.abzr-sp-tabs__panel--hidden { display: none; }

.abzr-sp-tabs__content {
    padding: 32px;
}
.abzr-sp-tabs__empty {
    color: var(--abzr-gray-400, #9CA3AF);
    font-size: var(--abzr-text-sm, .875rem);
    text-align: center;
    padding: 24px 0;
    margin: 0;
}

/* prose داخل تب توضیحات */
.abzr-prose { line-height: 1.9; color: var(--abzr-gray-700, #374151); }
.abzr-prose p { margin: 0 0 1em; }
.abzr-prose h2, .abzr-prose h3 { color: var(--abzr-text, #1C1C1E); margin: 1.5em 0 .5em; }
.abzr-prose ul, .abzr-prose ol { margin: 0 0 1em; padding-right: 1.5em; }
.abzr-prose img { max-width: 100%; border-radius: var(--abzr-radius-md, 8px); }

/* جدول مشخصات فنی */
.abzr-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--abzr-text-sm, .875rem);
}
.abzr-specs-table__row {
    border-bottom: 1px solid var(--abzr-border, #E5E7EB);
}
.abzr-specs-table__row:last-child { border-bottom: none; }
.abzr-specs-table__row:nth-child(even) {
    background: var(--abzr-gray-50, #F9FAFB);
}
.abzr-specs-table__label {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--abzr-gray-700, #374151);
    width: 35%;
    white-space: nowrap;
}
.abzr-specs-table__value {
    padding: 14px 16px;
    color: var(--abzr-gray-600, #4B5563);
}

/* ── محصولات مرتبط ───────────────────────────────────────────────── */
.abzr-sp-related {}
.abzr-sp-related .abzr-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--abzr-text, #1C1C1E);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--abzr-border, #E5E7EB);
    position: relative;
}
.abzr-sp-related .abzr-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 48px;
    height: 2px;
    background: var(--abzr-primary, #e8610a);
}

.abzr-sp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.abzr-sp-related__grid .abzr-product-card {
    width: 100% !important;
    margin: 0 !important;
}

/* ── لایت‌باکس ───────────────────────────────────────────────────── */
.abzr-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--abzr-z-modal, 500);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.abzr-lightbox[hidden] { display: none; }

.abzr-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    cursor: zoom-out;
}

.abzr-lightbox__body {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abzr-lightbox__img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--abzr-radius-lg, 12px);
    display: block;
}

.abzr-lightbox__close {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.abzr-lightbox__close:hover { background: rgba(255,255,255,.3); }

body.abzr-lb-open { overflow: hidden; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .abzr-sp__top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .abzr-sp-related__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .abzr-sp__top { grid-template-columns: 1fr; gap: 28px; }
    .abzr-sp-gallery { position: static; }
    .abzr-sp-info__trust { grid-template-columns: 1fr 1fr 1fr; }
    .abzr-sp-related__grid { grid-template-columns: repeat(2, 1fr); }
    .abzr-sp-tabs__content { padding: 20px; }
}

@media (max-width: 600px) {
    .abzr-sp-info__trust { grid-template-columns: 1fr; }
    .abzr-sp-related__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .abzr-sp-info__price-final { font-size: 1.4rem; }
    .abzr-sp-notify__form { flex-direction: column; }
    .abzr-sp-tabs__btn { padding: 12px 16px; font-size: .8rem; }
    .abzr-specs-table__label { width: 40%; }
}
