﻿/* ==========================================================================
   KADDO DESIGN SYSTEM (Deluxe Modern Edition)
   طراحی هماهنگ، پرانرژی و مینیمال برند کدو برای سرور پرسپاک / رادمان
   ========================================================================== */

:root {
  /* پالت رنگی اختصاصی برند کدو */
     --primary: #124b3a;
  --primary-light: #1c624d;
  --primary-dark: #0a2d23;
  --primary-subtle: rgba(18, 75, 58, 0.08);
  
  --lime: #d9ef7e;
  --lime-soft: #f4fae1;
  --yellow: #f4d35e;
  --accent-warm: #ffb703;
  
  --bg-color: #fcfbf7;
  --card-bg: #ffffff;
  --surface-alt: #f4f6f5;
  
  --text-color: #132b23;
  --text-muted: #5d6f68;
  --text-light: #8d9e97;
  --border-color: #e4e9e6;
  --border-focus: #124b3a;
  
  /* سیستم سایه مدرن و چندلایه (Layered Shadows) */
  --shadow-sm: 0 2px 6px rgba(18, 75, 58, 0.04), 0 1px 2px rgba(18, 75, 58, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(18, 75, 58, 0.08), 0 2px 6px rgba(18, 75, 58, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(18, 75, 58, 0.12), 0 4px 12px rgba(18, 75, 58, 0.06);
  --shadow-hover: 0 20px 40px -8px rgba(18, 75, 58, 0.16);

  /* انحناها و شعاع‌ها */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* ترنزیشن‌های استاندارد */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
}

/* تایپوگرافی عمومی */
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.75rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 40px;
  height: 4px;
  background: var(--lime);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.88); /* تصحیح رنگ صورتی جیغ قبلی به رنگ استخوانی شیشه‌ای */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 75, 58, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px -2px rgba(18, 75, 58, 0.04);
  transition: all var(--transition-base, 0.3s ease);
}

.site-header .container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--lime, #d9ef7e) 0%, #bde43f 100%);
  color: var(--primary);
  border-radius: var(--radius-sm, 10px);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(217, 239, 126, 0.4);
}

.brand-name strong {
  display: block;
  line-height: 1.1;
  color: var(--primary, #124b3a);
}

.brand-name small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* منوی دسکتاپ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color, #153229);
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  position: relative;
  transition: all 0.2s ease;
}

/* افکت خط زیرین مدرن */
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%) scaleX(0);
  width: 14px;
  height: 2px;
  background: var(--primary, #124b3a);
  transition: transform 0.2s ease;
  border-radius: var(--radius-pill);
}

.main-nav a:hover {
  color: var(--primary, #124b3a);
  background-color: rgba(18, 75, 58, 0.05);
}

.main-nav a:hover::after {
  transform: translateX(50%) scaleX(1);
}

/* متمایز کردن دکمه سبد خرید یا لینک‌های خاص در صورت نیاز */
.main-nav a.cart-link {
  background-color: rgba(18, 75, 58, 0.06);
  border: 1px solid rgba(18, 75, 58, 0.1);
}

.main-nav a.cart-link:hover {
  background-color: var(--primary, #124b3a);
  color: #fffdfa;
}

.main-nav form {
  margin: 0;
  display: inline-flex;
}

.main-nav form button {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #d93838;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill, 9999px);
  transition: background-color 0.2s ease;
}

.main-nav form button:hover {
  background-color: rgba(217, 56, 56, 0.08);
}

/* اکشن‌ها و دکمه همبرگری موبایل */
.mobile-header-actions {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: var(--surface-alt, #f4f6f2);
  border: 1px solid var(--border-color, rgba(18, 75, 58, 0.15));
  border-radius: var(--radius-sm, 10px);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  color: var(--primary, #124b3a);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast, 0.2s ease);
}

.mobile-nav-toggle:hover {
  background: var(--card-bg, #fff);
  border-color: var(--primary, #124b3a);
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   DRAWER (منوی کشویی مدرن موبایل)
   ========================================================================== */
.drawer-overlay, #drawerOverlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(10, 45, 35, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

#drawerOverlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer, #mobileDrawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(85vw, 320px);
  background: #ffffff;
  z-index: 999;
  box-shadow: -8px 0 32px rgba(18, 75, 58, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#mobileDrawer.is-open {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

.drawer a, #mobileDrawer a {
  display: block;
  padding: 0.85rem 0.75rem;
  font-weight: 600;
  color: var(--text-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer a:hover, #mobileDrawer a:hover {
  background: var(--surface-alt);
  color: var(--primary);
  padding-right: 1.1rem;
}

#mobileDrawer form button {
  width: 100%;
  text-align: right;
  padding: 0.85rem 0.75rem;
  font-family: inherit;
  font-weight: 600;
  color: #d93838;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#mobileDrawer form button:hover {
  background-color: #feebe8;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn.primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 75, 58, 0.2);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.full {
  width: 100%;
}

.text-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.text-link:hover {
  color: var(--primary-light);
  gap: 0.55rem;
}

/* ==========================================================================
   PAGES (STORE HERO, SHOWCASE, PRODUCTS)
   ========================================================================== */
.store-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(217, 239, 126, 0.25) 0%, rgba(252, 251, 247, 1) 90%);
  border-bottom: 1px solid var(--border-color);
  padding-block: 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-grid h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-grid p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-circle {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--lime) 0%, rgba(217, 239, 126, 0.3) 70%);
  border-radius: 50%;
  position: absolute;
  z-index: 1;
  filter: blur(8px);
}

.hero-product, .hero-art img {
  position: relative;
  z-index: 2;
  max-height: 340px;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.hero-art:hover img {
  transform: translateY(-8px) scale(1.02);
}

/* دسته‌بندی‌ها */
.category-strip {
  padding-block: 3.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  background: #ffffff;
}

/* بخش جستجو و لیست محصولات */
.products-section {
  padding-block: 2.5rem 4.5rem;
}

.home-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.home-search-wrap form, .home-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-search-wrap form:focus-within, .home-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.home-search input {
  border: none;
  padding: 0.65rem 1.1rem;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  background: transparent;
}

.home-search button {
  background: none;
  border: none;
  padding: 0.65rem 1rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.home-search button:hover {
  transform: scale(1.1);
}

.home-showcase {
  position: relative;
  margin-top: 1rem;
}

/* ==========================================================================
   HOME TRACK & PRODUCT SLIDER (اصلاح‌شده برای توازن کامل ارتفاع و تصاویر)
   ========================================================================== */

.home-track {
  display: flex !important;
  align-items: stretch !important; /* 👈 کلید طلایی: تمام کارت‌های داخل اسلایدر هم‌قد می‌شوند */
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-block: 1.25rem;
  scrollbar-width: none;
}

.home-track::-webkit-scrollbar {
  display: none;
}

/* کارت محصول */
.home-track > *,
.product-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  
  /* ابعاد کاملاً مهار شده */
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  transition: transform var(--transition-smooth, 0.3s ease), 
              box-shadow var(--transition-smooth, 0.3s ease), 
              border-color var(--transition-smooth, 0.3s ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover, 0 12px 24px -8px rgba(0,0,0,0.12));
  border-color: rgba(18, 75, 58, 0.25);
}

/* اصلاح تصویر پس‌زمینه: لغو زوم و نمایش کامل تصویر */
.product-image {
  display: flex !important;
  width: 100% !important;
  height: 165px !important;              /* ارتفاع ثابت و مهندسی‌شده */
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  
  /* اصل ماجرا این ۳ خط است: */
  background-color: #f1f5f9 !important; /* پس‌زمینه خنثی تمیز */
  background-size: contain !important;  /* 👈 جلوگیری از زوم و نمایش ۱۰۰٪ تصویر کامل بدون برش */
  background-position: center center !important; /* وسط‌چین دقیق تصویر */
  background-repeat: no-repeat !important;
  
  transition: transform 0.3s ease, background-size 0.3s ease;
}

.product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;       /* 👈 برطرف شدن زوم: کل عکس بدون کراپ نمایش داده می‌شود */
  object-position: center center !important; /* تراز دقیق در مرکز کادر */
  display: block;
  transform: none;
  transition: transform 0.35s ease;
}

/* هاور شیک و زنده */
.product-card:hover .product-image {
  background-color: #e8eef3 !important;
}

/* اطلاعات و متون کارت */
.product-info {
  padding: 1.15rem;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;           /* پر کردن تمام فضای عمودی خالی کارت */
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color, #1f2937);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.product-card:hover .product-title {
  color: var(--primary, #124b3a);
}

/* توضیحات کارت با ارتفاع کنترل شده */
.product-desc,
.product-info p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ردیف قیمت و دکمه مثبت (همیشه چسبیده به ته کارت و در یک تراز خطی) */
.product-price {
  margin-top: auto !important;         /* 👈 هل دادن دائمی قیمت به لبه پایینی */
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color, #e5e7eb);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.product-price del,
.product-price .old-price {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-price .current-price,
.product-price strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary, #124b3a);
}

/* ۵. دکمه مثبت اختصاصی رادمان */
.radman-btn-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, hsl(221, 83%, 97%) 0%, hsl(221, 83%, 93%) 100%);
  color: hsl(221, 83%, 53%);
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.radman-btn-plus .radman-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radman-btn-plus:hover {
  background: linear-gradient(135deg, hsl(348, 83%, 54%) 0%, hsl(340, 82%, 46%) 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px -3px rgba(225, 29, 72, 0.45);
}

.radman-btn-plus:hover .radman-icon {
  transform: rotate(90deg);
}

.radman-btn-plus:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
}

/* ۶. دکمه‌های ناوبری اسلایدر */
.home-track-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #374151;
  cursor: pointer;
  outline: none;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.home-track-arrow .arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.home-track-arrow:hover {
  background: #ffffff;
  color: hsl(348, 83%, 52%);
  border-color: rgba(225, 29, 72, 0.2);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.18);
}

.home-track-arrow.prev:hover .arrow-icon {
  transform: translateX(2px);
}

.home-track-arrow.next:hover .arrow-icon {
  transform: translateX(-2px);
}

.home-track-arrow:active {
  transform: translateY(0) scale(0.94);
}

.home-track-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   DETAIL PAGE & CART
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding-block: 3.5rem;
  align-items: start;
}

.detail-gallery {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.detail-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--lime);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
}

.detail-short {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.detail-full-desc {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1rem;
  color: var(--text-color);
  line-height: 1.9;
}

.cart-page {
  padding-block: 3.5rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.cart-item:hover {
  border-color: rgba(18, 75, 58, 0.2);
  box-shadow: var(--shadow-md);
}

.cart-thumb {
  width: 85px;
  height: 85px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--surface-alt);
}

.cart-layout .summary {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: var(--shadow-md);
}

.empty-state, .cart-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ACCOUNTS & AUTH (Login, Signup, Profile)
   ========================================================================== */
.auth-page,
.account-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  background: radial-gradient(circle at 50% 30%, rgba(217, 239, 126, 0.15) 0%, transparent 70%);
}

.auth-card,
.account-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card h1,
.auth-card h2,
.account-card h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-card form p,
.account-card form p {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-card label,
.account-card label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.account-card input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fafcfb;
  box-sizing: border-box;
  outline: none;
  transition: all var(--transition-fast);
}

.auth-card input:focus,
.account-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 75, 58, 0.12);
  background-color: #ffffff;
}

.auth-card button[type="submit"],
.account-card button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 1.25rem;
  box-shadow: 0 4px 12px rgba(18, 75, 58, 0.25);
  transition: all var(--transition-base);
}

.auth-card button[type="submit"]:hover,
.account-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 75, 58, 0.35);
}

.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #f5f8f6;
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  margin-top: 6rem;
  width: 100%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.footer-brand .socials {
  display: flex;
  gap: 0.75rem;
}

.footer-brand .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.footer-brand .socials a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(18, 75, 58, 0.2);
}

.footer-column,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-column h3,
.footer-contact h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.footer-column a,
.footer-contact a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-column a:hover,
.footer-contact a:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.trust-box {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-box img {
  display: block;
  background: #fafafa;
  border-radius: var(--radius-xs);
  padding: 4px;
}

.trust-box div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-box strong {
  font-size: 0.9rem;
  color: var(--primary);
}

.trust-box small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
  }

  .mobile-header-actions {
    display: flex !important;
    align-items: center;
    gap: 0.85rem;
  }

  .mobile-header-actions a,
  .mobile-header-actions button {
    font-size: 1.15rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  .mobile-header-actions form {
    margin: 0;
    display: inline-flex;
  }

  .hero-grid, .detail-layout, .cart-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-grid h1 {
    font-size: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (min-width: 992px) {
  #mobileDrawer, #drawerOverlay {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .site-header .container.nav {
    height: 64px;
  }
}

/* ==========================================================================
   HERO SLIDER - COMPACT LUXURY BOTANICAL (KADDO BRAND) - HALF HEIGHT
   ========================================================================== */

/* ۱. بدنه اصلی اسلایدر با ارتفاع متراکم و فشرده */
.store-hero.hero-slider {
  position: relative;
  overflow: hidden;
  margin: 1.2rem auto 2.5rem;
  padding: 1.8rem 2rem 2rem !important;  /* 👈 کاهش چشمگیر پدینگ عمودی */
  max-width: 1280px;
  border-radius: 0px;
  background: radial-gradient(circle at 85% 15%, rgba(217, 239, 126, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(31, 107, 83, 0.5) 0%, transparent 50%),
              linear-gradient(135deg, #124b3a 0%, #0d3629 100%);
  border: 1px solid rgba(217, 239, 126, 0.2);
  box-shadow: 0 20px 45px -12px rgba(10, 39, 30, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* پترن هندسی ظریف شبکه‌ای */
.store-hero.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 239, 126, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

/* هاله نوری درخشان گوشه */
.store-hero.hero-slider::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 239, 126, 0.3) 0%, rgba(217, 239, 126, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* ۲. تِرَک و لایه‌بندی فشرده اسلایدها */
.slider-track {
  position: relative;
  width: 100%;
  min-height: 220px !important;       /* 👈 نصف شدن ارتفاع کل بنر */
  z-index: 2;
  display: flex;
  align-items: center;
}

.slider-track .slide {
  display: none;
  opacity: 0;
  width: 100%;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(8px) scale(0.99);
}

.slider-track .slide.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ساختار گرید فشرده داخل هر اسلاید */
.slider-track .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* ۳. تایپوگرافی متناسب با ارتفاع نصف‌شده */
.slide .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #124b3a;
  background-color: #d9ef7e;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.8rem;               /* 👈 کاهش فاصله */
  box-shadow: 0 3px 10px rgba(217, 239, 126, 0.3);
  letter-spacing: -0.01em;
}

.slide h1 {
  font-size: 2.1rem !important;        /* 👈 سایز فونت متوازن و مینی‌مال */
  font-weight: 900;
  color: #fffdfa;
  line-height: 1.28;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.03em;
}

.slide h1 em {
  font-style: normal;
  color: #d9ef7e;
  position: relative;
  display: inline-block;
}

.slide h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(217, 239, 126, 0.3);
  border-radius: 4px;
  z-index: -1;
}

.slide p {
  font-size: 0.95rem !important;
  color: #d4e5df;
  line-height: 1.7;
  margin-bottom: 1.25rem !important;   /* 👈 فاصله کمتر تا دکمه‌ها */
  max-width: 480px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ۴. دکمه‌های اکشن فشرده‌تر */
.slide .hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.slide .hero-actions .btn.primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #d9ef7e;
  color: #124b3a !important;
  font-weight: 800;
  font-size: 0.9rem !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(217, 239, 126, 0.4);
  transition: all 0.25s ease;
}

.slide .hero-actions .btn.primary:hover {
  background-color: #ffffff;
  color: #124b3a !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(255, 255, 255, 0.3);
}

.slide .hero-actions .text-link {
  display: inline-flex;
  align-items: center;
  color: #fffdfa;
  font-size: 0.88rem !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1rem !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 253, 250, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.slide .hero-actions .text-link:hover {
  background-color: rgba(255, 253, 250, 0.12);
  border-color: #d9ef7e;
  color: #d9ef7e;
  transform: translateY(-2px);
}

/* ۵. بخش HERO ART متناسب با ارتفاع جدید (کوچک و مینی‌مال) */
.slide .hero-art {
  position: relative;
  width: 100%;
  height: 200px !important;            /* 👈 متناسب با ارتفاع ۲۲۰ پیکسلی بنر */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide .hero-art .hero-circle {
  position: absolute;
  width: 170px !important;            /* 👈 سایز کوچک‌شده دایره نئونی */
  height: 170px !important;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4d35e 0%, #d9ef7e 50%, #1f6b53 100%);
  filter: drop-shadow(0 10px 25px rgba(217, 239, 126, 0.3));
  animation: floatCircle 8s ease-in-out infinite alternate;
}

.slide .hero-art .hero-product {
  position: relative;
  z-index: 3;
  font-size: 3rem !important;
  font-weight: 900;
  color: #124b3a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px !important;             /* 👈 ابعاد جمع‌وجور کارت شیشه‌ای وسط */
  height: 110px !important;
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2),
              inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transform: rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide .hero-art:hover .hero-product {
  transform: rotate(0deg) scale(1.05);
}

.slide .hero-art .hero-product span {
  font-size: 1.2rem;
  color: #f4d35e;
  position: absolute;
  top: 10px;
  right: 12px;
  animation: pulseSparkle 2.5s infinite;
}

/* کارت شیشه‌ای شناور گوشه (مینی‌مال) */
.slide .hero-art .hero-note {
  position: absolute;
  bottom: 10px;
  left: 15px;
  z-index: 4;
  background: rgba(18, 75, 58, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fffdfa;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(217, 239, 126, 0.4);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  transform: rotate(2deg);
}

.slide .hero-art .hero-note small {
  display: block;
  font-size: 0.55rem;
  color: #d9ef7e;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* انیمیشن‌ها */
@keyframes floatCircle {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ۶. کنترل‌های ناوبری اسلایدر */
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(255, 253, 250, 0.15);
  border: 1px solid rgba(255, 253, 250, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffdfa;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.slider-control:hover {
  background-color: #d9ef7e;
  color: #124b3a;
  border-color: #d9ef7e;
  transform: translateY(-50%) scale(1.08);
}

.slider-prev { right: 18px; }
.slider-next { left: 18px; }

/* ۷. نقطه‌ها */
.slider-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 253, 250, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots button.is-active {
  width: 24px;
  background-color: #d9ef7e;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 992px) {
  .store-hero.hero-slider {
    padding: 1.5rem 1rem 1.8rem !important;
    margin: 1rem 0.75rem 2rem;
    border-radius: 20px;
  }
  .slider-track .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .slide h1 { font-size: 1.65rem !important; }
  .slide p { margin: 0 auto 1rem !important; }
  .slide .hero-actions { justify-content: center; }
  .slide .hero-art { order: -1; height: 160px !important; }
  .slide .hero-art .hero-circle { width: 140px !important; height: 140px !important; }
  .slide .hero-art .hero-product { width: 90px !important; height: 90px !important; font-size: 2.5rem !important; }
  .slider-control { display: none; }
}

/* ==========================================================================
   2. PROFILE DASHBOARD STYLES
   ========================================================================== */
.profile-wrapper {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-color, #e5e9e7);
  box-shadow: 0 2px 12px rgba(18, 75, 58, 0.04);
}

.profile-sidebar .user-info {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color, #e5e9e7);
  margin-bottom: 1.25rem;
}

.profile-sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-color, #153229);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-sidebar nav a:hover,
.profile-sidebar nav a.is-active {
  background: rgba(217, 239, 126, 0.25);
  color: var(--primary, #124b3a);
}

.profile-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color, #e5e9e7);
  box-shadow: 0 2px 12px rgba(18, 75, 58, 0.04);
}

/* ==========================================================================
   3. ORDERS LIST & DETAIL STYLES
   ========================================================================== */
.order-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color, #e5e9e7);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 75, 58, 0.06);
}

.order-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}

.order-badge.paid { background: #e6f7ed; color: #15803d; }
.order-badge.pending { background: #fef9c3; color: #a16207; }
.order-badge.cancelled { background: #fee2e2; color: #b91c1c; }

.order-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Responsive breakpoint */
@media (max-width: 768px) {
  .profile-layout,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .order-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
/* ==========================================================================
   PREVENT HORIZONTAL OVERFLOW GLOBALLY
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* ==========================================================================
   MOBILE DRAWER & OVERLAY STYLES
   ========================================================================== */
#drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 75, 58, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#drawerOverlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mobileDrawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: -4px 0 24px rgba(18, 75, 58, 0.15);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  display: flex;
  flex-direction: column;
}

#mobileDrawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Drawer Inner Styling */
.drawer-user-card {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color, #e5e9e7);
  margin-bottom: 1.25rem;
}

.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 239, 126, 0.4);
  color: var(--primary, #124b3a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.drawer-nav-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color, #e5e9e7);
}

.drawer-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted, #62726d);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  color: var(--text-color, #153229);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-link:hover {
  background: rgba(217, 239, 126, 0.2);
  color: var(--primary, #124b3a);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #62726d);
  text-align: center;
}
/* ==========================================================================
   ORDER DETAIL PAGE (KADDO DELUXE EDITION)
   ========================================================================== */

.order-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Order Header & Status Badge */
.order-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color, #e5e9e7);
}

.order-title .eyebrow {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-light, #1f6b53);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-color, #153229);
  margin: 0;
}

.order-title h1 em {
  font-style: normal;
  color: var(--primary, #124b3a);
  letter-spacing: -0.5px;
}

.order-title .status {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(217, 239, 126, 0.4);
  color: var(--primary, #124b3a);
  border: 1px solid rgba(18, 75, 58, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 2-Column Responsive Grid Layout */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Deluxe Card Container */
.order-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border-color, #e5e9e7);
  box-shadow: 0 4px 20px rgba(18, 75, 58, 0.04);
  display: flex;
  flex-direction: column;
}

.order-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary, #124b3a);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(18, 75, 58, 0.1);
}

/* Order Item Rows */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f4f2;
  font-size: 0.95rem;
  color: var(--text-color, #153229);
}

.order-item span {
  font-weight: 500;
  color: #374151;
}

.order-item strong {
  font-weight: 700;
  color: var(--primary, #124b3a);
}

/* Total Summary Row */
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border-color, #e5e9e7);
  font-size: 1.1rem;
}

.summary-total span {
  font-weight: 700;
  color: var(--text-color, #153229);
}

.summary-total strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary, #124b3a);
}

/* Customer Shipping Information Box */
.order-box p {
  line-height: 1.9;
  color: #4b5563;
  margin: 0;
  font-size: 0.95rem;
}

.order-box p b {
  font-size: 1.05rem;
  color: var(--text-color, #153229);
  display: block;
  margin-bottom: 0.35rem;
}

/* Notification & Note Box */
.pending-note {
  background: #fdfbf5;
  border: 1px solid #f4d35e;
  border-right: 5px solid #f4d35e;
  color: #785a06;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(244, 211, 94, 0.12);
}

/* ==========================================================================
   Radman / Kaddo - Deluxe Product Detail View
   ========================================================================== */
.k-product-view {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

/* Breadcrumb */
.k-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8c9e97;
  margin-bottom: 2rem;
}
.k-breadcrumb a {
  color: #1f6b53;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.k-breadcrumb a:hover {
  color: #124b3a;
}
.k-breadcrumb .k-sep {
  opacity: 0.5;
}
.k-breadcrumb .k-current {
  color: #153229;
  font-weight: 600;
}

/* Hero Section */
.k-hero-product {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

@media (max-width: 980px) {
  .k-hero-product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Gallery & Media Frame */
.k-gallery-col {
  position: relative;
}
.k-media-frame {
  background: #ffffff;
  border-radius: 28px;
  padding: 1rem;
  border: 1px solid rgba(18, 75, 58, 0.08);
  box-shadow: 0 16px 40px rgba(18, 75, 58, 0.04);
  position: sticky;
  top: 1.5rem;
}
.k-pill-badge {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 2;
  background: rgba(18, 75, 58, 0.85);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.k-img-surface {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background-color: #f7f9f7;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.k-no-image {
  text-align: center;
  color: #8c9e97;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Details Column */
.k-summary-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.k-meta-head .k-code-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: #6d827a;
  background: #f1f4f2;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.k-meta-head .k-title {
  font-size: 2rem;
  font-weight: 800;
  color: #124b3a;
  line-height: 1.35;
  margin: 0;
}
.k-meta-head .k-subtitle {
  font-size: 1.05rem;
  color: #4b665c;
  line-height: 1.6;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Purchase Dock */
.k-purchase-dock {
  background: #ffffff;
  border: 1px solid rgba(18, 75, 58, 0.08);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(18, 75, 58, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 580px) {
  .k-purchase-dock {
    flex-direction: column;
    align-items: stretch;
  }
}

.k-price-title {
  display: block;
  font-size: 0.82rem;
  color: #6d827a;
  margin-bottom: 0.25rem;
}
.k-price-val {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.k-price-val .k-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: #124b3a;
  line-height: 1;
}
.k-price-val .k-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b665c;
}

.k-cart-form {
  margin: 0;
}
.k-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #124b3a;
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.75rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 75, 58, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.k-btn-submit:hover {
  background: #1f6b53;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 75, 58, 0.3);
}
.k-out-alert {
  background: #fff2f0;
  color: #ff4d4f;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/* Description Panel */
.k-desc-panel {
  background: #ffffff;
  border: 1px solid rgba(18, 75, 58, 0.08);
  border-radius: 24px;
  padding: 1.75rem;
}
.k-desc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #124b3a;
  margin: 0 0 1rem 0;
}
.k-desc-body {
  font-size: 0.96rem;
  line-height: 1.9;
  color: #3b5249;
}

/* Related Products Hub */
.k-related-hub {
  margin-bottom: 4.5rem;
  border-top: 1px solid rgba(18, 75, 58, 0.08);
  padding-top: 3rem;
}
.k-hub-header {
  margin-bottom: 1.5rem;
}
.k-hub-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #124b3a;
  margin: 0;
}
.k-related-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.k-mini-card-slot .product-card {
  box-shadow: none !important;
  border: 1px solid rgba(18, 75, 58, 0.08) !important;
  background: #ffffff !important;
}

/* Reviews Hub */
.k-reviews-hub {
  border-top: 1px solid rgba(18, 75, 58, 0.08);
  padding-top: 3rem;
}
.k-reviews-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .k-reviews-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.k-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.k-review-bubble {
  background: #ffffff;
  border: 1px solid rgba(18, 75, 58, 0.08);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
}
.k-bubble-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.k-user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.k-avatar {
  width: 32px;
  height: 32px;
  background: #d9ef7e;
  color: #124b3a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.k-username {
  font-size: 0.95rem;
  font-weight: 700;
  color: #153229;
}
.k-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #124b3a;
  background: #f7f9f7;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}
.k-rating-pill span {
  color: #f4d35e;
}
.k-bubble-text {
  font-size: 0.94rem;
  color: #3b5249;
  line-height: 1.7;
  margin: 0;
}
.k-bubble-foot {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #8c9e97;
  text-align: left;
}
.k-feed-empty {
  background: #ffffff;
  border: 1px dashed rgba(18, 75, 58, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  color: #6d827a;
  font-size: 0.95rem;
}

/* Form Dock */
.k-form-dock {
  background: #ffffff;
  border: 1px solid rgba(18, 75, 58, 0.08);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(18, 75, 58, 0.03);
}
.k-form-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #124b3a;
  margin: 0 0 1.25rem 0;
}
.k-input-group {
  margin-bottom: 1.15rem;
}
.k-input-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #153229;
  margin-bottom: 0.45rem;
}
.k-styled-form select,
.k-styled-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(18, 75, 58, 0.16);
  background: #fffdfa;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #153229;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}
.k-styled-form select:focus,
.k-styled-form textarea:focus {
  border-color: #124b3a;
  box-shadow: 0 0 0 3px rgba(18, 75, 58, 0.1);
}
.k-styled-form textarea {
  min-height: 110px;
  resize: vertical;
}
.k-btn-review-submit {
  width: 100%;
  background: #d9ef7e;
  color: #124b3a;
  border: none;
  border-radius: 14px;
  padding: 0.9rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.k-btn-review-submit:hover {
  background: #cce46e;
}
.k-auth-guard {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #f7f9f7;
  border-radius: 16px;
}
.k-auth-guard p {
  font-size: 0.9rem;
  color: #4b665c;
  margin: 0 0 1rem 0;
}
.k-btn-login-link {
  display: inline-block;
  background: #124b3a;
  color: #ffffff;
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ==========================================================================
   Catalog & Product List View - Deluxe Edition (Kaddo Brand)
   ========================================================================== */
.catalog-page-wrapper {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Search */
.catalog-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(18, 75, 58, 0.08);
}

@media (max-width: 768px) {
  .catalog-hero-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.catalog-title-group .catalog-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f6b53;
  margin-bottom: 0.35rem;
}

.catalog-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #124b3a;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Search Box */
.catalog-search-wrapper {
  width: 100%;
  max-width: 380px;
}

@media (max-width: 768px) {
  .catalog-search-wrapper {
    max-width: 100%;
  }
}

.catalog-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid rgba(18, 75, 58, 0.12);
  padding: 0.35rem 0.5rem;
  box-shadow: 0 4px 20px rgba(18, 75, 58, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-search-form:focus-within {
  border-color: #124b3a;
  box-shadow: 0 8px 24px rgba(18, 75, 58, 0.1);
  transform: translateY(-1px);
}

.search-submit-btn {
  background: transparent;
  border: none;
  color: #1f6b53;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.catalog-search-form input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #153229;
  outline: none;
}

.catalog-search-form input::placeholder {
  color: #8c9e97;
}

.clear-search-btn {
  color: #8c9e97;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 50%;
  transition: color 0.2s;
}

.clear-search-btn:hover {
  color: #cf1322;
}

/* Category Filter Rail */
.category-filters-container {
  margin-bottom: 2rem;
  overflow: hidden;
}

.category-chips-rail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.category-chips-rail::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-chip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(18, 75, 58, 0.12);
  border-radius: 30px;
  color: #3b5249;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(18, 75, 58, 0.02);
}

.filter-chip-btn:hover {
  border-color: #124b3a;
  color: #124b3a;
  transform: translateY(-1px);
}

.filter-chip-btn.active {
  background: #124b3a;
  color: #ffffff;
  border-color: #124b3a;
  box-shadow: 0 4px 14px rgba(18, 75, 58, 0.2);
}

/* Status Bar */
.catalog-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.items-count-badge {
  color: #6d827a;
}

.items-count-badge strong {
  color: #124b3a;
}

.search-query-indicator {
  background: #f7f9f7;
  color: #1f6b53;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Catalog Product Grid */
.product-grid-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .product-grid-catalog {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

.product-grid-cell {
  height: 100%;
}

.product-grid-cell .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Empty State */
.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border-radius: 24px;
  border: 2px dashed rgba(18, 75, 58, 0.12);
  margin-top: 1rem;
}

.empty-icon-wrap {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #124b3a;
  margin: 0 0 0.5rem 0;
}

.empty-desc {
  font-size: 0.95rem;
  color: #6d827a;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.btn-reset-filter {
  display: inline-block;
  background: #d9ef7e;
  color: #124b3a;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.75rem 1.75rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(217, 239, 126, 0.35);
  transition: all 0.2s ease;
}

.btn-reset-filter:hover {
  background: #cde66b;
  transform: translateY(-2px);
}
/* ==========================================================================
   Checkout Page - Deluxe Responsive (Kaddo Theme)
   ========================================================================== */

.checkout-page-wrapper {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.checkout-header {
  margin-bottom: 2.5rem;
}

.checkout-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 75, 58, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f6b53;
  margin-bottom: 0.6rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f6b53;
}

.checkout-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #124b3a;
  margin: 0 0 0.4rem 0;
}

.checkout-title em {
  font-style: normal;
  color: #1f6b53;
}

.checkout-subtitle {
  font-size: 0.92rem;
  color: #5c726a;
  margin: 0;
}

/* 2-Column Grid */
.checkout-grid-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Form Card */
.checkout-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(18, 75, 58, 0.08);
  box-shadow: 0 10px 30px rgba(18, 75, 58, 0.03);
}

.card-title-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(18, 75, 58, 0.08);
  color: #124b3a;
}

.card-title-bar h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #153229;
}

.req-star {
  color: #e03131;
  margin-right: 2px;
}

/* Inputs, Selects and Textareas */
.input-control-wrap input,
.input-control-wrap textarea,
.input-control-wrap select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(18, 75, 58, 0.14);
  background: #fbfdfc;
  color: #153229;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.input-control-wrap textarea {
  min-height: 90px;
  resize: vertical;
}

.input-control-wrap input:focus,
.input-control-wrap textarea:focus,
.input-control-wrap select:focus {
  border-color: #124b3a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(18, 75, 58, 0.08);
}

.form-group.has-error .input-control-wrap input,
.form-group.has-error .input-control-wrap textarea {
  border-color: #e03131;
  background: #fffafa;
}

.field-error-msg {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #cf1322;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.alert-box.form-error-alert {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.checkout-submit-wrapper {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(18, 75, 58, 0.08);
}

.btn-primary-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #124b3a;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 75, 58, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-checkout:hover {
  background: #1a5d49;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 75, 58, 0.28);
}

/* Summary Sidebar */
.checkout-summary-sidebar {
  position: sticky;
  top: 1.5rem;
}

.summary-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(18, 75, 58, 0.08);
  box-shadow: 0 10px 30px rgba(18, 75, 58, 0.03);
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.summary-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #124b3a;
  margin: 0;
}

.badge-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: #edf7f3;
  color: #1f6b53;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(18, 75, 58, 0.08);
}

.summary-item-row:last-child {
  border-bottom: none;
}

.item-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #153229;
}

.item-qty {
  font-size: 0.78rem;
  color: #738a81;
}

.item-qty em {
  font-style: normal;
  font-weight: 700;
  color: #1f6b53;
}

.item-price-calc {
  font-size: 0.92rem;
  font-weight: 800;
  color: #124b3a;
  white-space: nowrap;
}

.item-price-calc small {
  font-size: 0.75rem;
  color: #738a81;
  font-weight: normal;
  margin-right: 2px;
}

.summary-divider {
  height: 1px;
  background: rgba(18, 75, 58, 0.1);
  margin: 1.25rem 0;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.totals-label {
  color: #5c726a;
}

.free-shipping {
  color: #1f6b53;
  font-weight: 700;
  background: #f0fdf4;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.totals-row.final-payable {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid rgba(18, 75, 58, 0.1);
}

.totals-row.final-payable .totals-label {
  font-size: 1rem;
  font-weight: 800;
  color: #124b3a;
}

.total-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #124b3a;
}

.currency-tag {
  font-size: 0.8rem;
  color: #5c726a;
  margin-right: 2px;
}

.checkout-guarantee-note {
  margin-top: 1.5rem;
  background: #f7faf9;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #4a635a;
  font-weight: 600;
}

/* ==========================================
   Categories Section (Deluxe Modern Style)
   ========================================== */
.category-strip {
  padding: 48px 0;
  background: #fbf8f2;
  border-top: 1px solid rgba(18, 75, 58, 0.06);
  border-bottom: 1px solid rgba(18, 75, 58, 0.06);
}

.category-strip .section-title {
  margin-bottom: 28px;
}

.category-strip .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f6b53;
  margin-bottom: 6px;
  background: rgba(217, 239, 126, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
  border: 1px solid rgba(18, 75, 58, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #153229;
  box-shadow: 0 4px 14px rgba(18, 75, 58, 0.04);
  transition: all 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #1f6b53;
  box-shadow: 0 10px 24px rgba(18, 75, 58, 0.1);
}

.category-card strong {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #124b3a;
}

.category-card small {
  font-size: 0.8rem;
  color: #5d756d;
  transition: color 0.2s ease;
}

.category-card:hover small {
  color: #1f6b53;
}

/* Modern Deluxe Cart Styles */
.cart-screen {
  background: #fffdfa;
  min-height: 80vh;
  padding: 40px 0;
}
.cart-header {
  margin-bottom: 28px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-card {
  background: #ffffff;
  border: 1px solid #ebf0ec;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(18, 75, 58, 0.04);
  overflow: hidden;
}
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #f4f6f4;
  transition: background 0.2s ease;
}
.cart-item-row:last-child {
  border-bottom: none;
}
.cart-item-row:hover {
  background: #fbfdfc;
}
.item-visual .product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eef2ef;
}
.item-visual .placeholder-thumb {
  width: 72px;
  height: 72px;
  background: #124b3a;
  color: #d9ef7e;
  font-size: 26px;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-info {
  flex: 1;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #153229;
  margin: 0 0 6px 0;
}
.item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}
.badge-qty {
  background: #eef7f2;
  color: #124b3a;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.unit-price {
  color: #7b8e87;
}
.item-total-col {
  text-align: left;
}
.total-label {
  display: block;
  font-size: 0.75rem;
  color: #92a29c;
  margin-bottom: 2px;
}
.item-subtotal {
  font-size: 1.15rem;
  color: #124b3a;
  font-weight: 800;
}
.item-subtotal small {
  font-size: 0.8rem;
  font-weight: normal;
}

/* سایدبار صورتحساب */
.summary-card {
  background: #ffffff;
  border: 1px solid #ebf0ec;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(18, 75, 58, 0.05);
  position: sticky;
  top: 90px;
}
.summary-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #153229;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f4f7f5;
}
.summary-rows .summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #556b63;
  font-size: 0.95rem;
}
.free-shipping {
  color: #1f6b53;
  font-weight: 600;
}
.summary-divider {
  height: 1px;
  background: #eef2ef;
  margin: 18px 0;
}
.summary-line.grand-total {
  align-items: baseline;
  color: #153229;
  font-size: 1.05rem;
}
.summary-line.grand-total strong {
  font-size: 1.35rem;
  color: #124b3a;
  font-weight: 900;
}
.summary-line.grand-total em {
  font-size: 0.85rem;
  font-style: normal;
  margin-right: 4px;
}
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #124b3a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 14px;
  margin-top: 22px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(18, 75, 58, 0.25);
}
.btn-checkout:hover {
  background: #1f6b53;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 75, 58, 0.35);
  color: #ffffff;
}
.summary-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #8b9d96;
  margin-top: 14px;
  line-height: 1.4;
}

/* سبد خالی */
.cart-empty-box {
  background: #ffffff;
  border: 1px dashed #d1ded8;
  border-radius: 20px;
  padding: 60px 20px;
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
}
.empty-icon-circle {
  width: 80px;
  height: 80px;
  background: #eef7f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}
.cart-empty-box h2 {
  font-size: 1.3rem;
  color: #153229;
  margin-bottom: 8px;
}
.cart-empty-box p {
  color: #7b8e87;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.btn-back-shop {
  display: inline-block;
  background: #124b3a;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s ease;
}
.btn-back-shop:hover {
  background: #1f6b53;
}

/* استایل‌های صفحه جزئیات سفارش - پالت رادمان / کدو */
.order-detail-page {
  background: #fffdfa;
  min-height: 85vh;
  padding: 40px 0;
}
.page-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 1px solid #edf1ee;
  padding-bottom: 18px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #124b3a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f0f6f3;
  transition: all 0.2s ease;
}
.btn-back:hover {
  background: #124b3a;
  color: #fff;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}
.detail-card {
  background: #ffffff;
  border: 1px solid #ebf0ec;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(18, 75, 58, 0.04);
  margin-bottom: 24px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f4f6f4;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.card-title h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #153229;
}
.items-count {
  font-size: 0.85rem;
  background: #f4f7f5;
  color: #586f67;
  padding: 4px 10px;
  border-radius: 20px;
}
.order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f8faf9;
}
.order-item-row:last-child {
  border-bottom: none;
}
.item-visual-box img,
.item-visual-box .avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eef2ef;
}
.item-visual-box .avatar-placeholder {
  background: #124b3a;
  color: #d9ef7e;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-name-info {
  flex: 1;
}
.item-name-info h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #153229;
}
.unit-cost {
  font-size: 0.85rem;
  color: #83958e;
}
.item-qty-badge {
  background: #eef7f2;
  color: #124b3a;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.item-row-total {
  text-align: left;
  min-width: 100px;
}
.item-row-total strong {
  font-size: 1.15rem;
  color: #124b3a;
}
.item-row-total small {
  font-size: 0.8rem;
  color: #657a72;
  margin-right: 3px;
}
.order-status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.status-paid {
  background: #e6f6ee;
  color: #1b7a4a;
}
.status-pending {
  background: #fdf3d9;
  color: #9c6c06;
}
.summary-specs .spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: #556b63;
}
.divider-line {
  height: 1px;
  background: #eef2ef;
  margin: 16px 0;
}
.grand-price-row {
  align-items: baseline;
  font-size: 1rem !important;
  color: #153229 !important;
}
.spec-val-strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #124b3a;
}
.spec-val-strong small {
  font-size: 0.82rem;
  font-weight: normal;
}
.btn-primary-pay {
  display: block;
  text-align: center;
  background: #124b3a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  margin-top: 18px;
  transition: background 0.2s ease;
}
.btn-primary-pay:hover {
  background: #1f6b53;
  color: #fff;
}
.specs-compact .spec-line {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #495e56;
  line-height: 1.6;
}
.specs-compact .spec-line strong {
  color: #153229;
  margin-left: 6px;
}

.order-detail-page {
  background: #fffdfa;
  min-height: 85vh;
  padding: 40px 0;
}
.page-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 1px solid #edf1ee;
  padding-bottom: 18px;
}
.page-top-bar h1 {
  margin: 6px 0 0;
  font-size: 1.6rem;
  color: #124b3a;
}
.page-top-bar h1 em {
  font-style: normal;
  color: #1f6b53;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #124b3a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f0f6f3;
  transition: all 0.2s ease;
}
.btn-back:hover {
  background: #124b3a;
  color: #fff;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}
.detail-card {
  background: #ffffff;
  border: 1px solid #ebf0ec;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(18, 75, 58, 0.04);
  margin-bottom: 24px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f4f6f4;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.card-title h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #153229;
}
.items-count {
  font-size: 0.85rem;
  background: #f4f7f5;
  color: #586f67;
  padding: 4px 10px;
  border-radius: 20px;
}
.order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f8faf9;
}
.order-item-row:last-child {
  border-bottom: none;
}
.item-visual-box img,
.item-visual-box .avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eef2ef;
}
.item-visual-box .avatar-placeholder {
  background: #124b3a;
  color: #d9ef7e;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-name-info {
  flex: 1;
}
.item-name-info h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: #153229;
}
.unit-cost {
  font-size: 0.85rem;
  color: #83958e;
}
.item-qty-badge {
  background: #eef7f2;
  color: #124b3a;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.item-row-total {
  text-align: left;
  min-width: 100px;
}
.item-row-total strong {
  font-size: 1.15rem;
  color: #124b3a;
}
.item-row-total small {
  font-size: 0.8rem;
  color: #657a72;
  margin-right: 3px;
}
.order-status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.status-paid {
  background: #e6f6ee;
  color: #1b7a4a;
}
.status-pending {
  background: #fdf3d9;
  color: #9c6c06;
}
.summary-specs .spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: #556b63;
}
.divider-line {
  height: 1px;
  background: #eef2ef;
  margin: 16px 0;
}
.grand-price-row {
  align-items: baseline;
  font-size: 1rem !important;
  color: #153229 !important;
}
.spec-val-strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #124b3a;
}
.spec-val-strong small {
  font-size: 0.82rem;
  font-weight: normal;
}
.btn-primary-pay {
  display: block;
  text-align: center;
  background: #124b3a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  margin-top: 18px;
  transition: background 0.2s ease;
}
.btn-primary-pay:hover {
  background: #1f6b53;
  color: #fff;
}
.specs-compact .spec-line {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #495e56;
  line-height: 1.6;
}
.specs-compact .spec-line strong {
  color: #153229;
  margin-left: 6px;
}

.order-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
    direction: rtl;
    font-family: inherit;
    color: #153229;
  }
  .order-header-box {
    background: linear-gradient(135deg, #124b3a 0%, #1f6b53 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(18, 75, 58, 0.25);
  }
  .order-header-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
  }
  .order-header-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #d1fae5;
  }
  .status-badge {
    background-color: #d9ef7e;
    color: #124b3a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
  }
  .order-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }
  @media (max-width: 768px) {
    .order-layout {
      grid-template-columns: 1fr;
    }
  }
  .card-box {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(18, 75, 58, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }
  .card-box h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #124b3a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
  }
  .item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f9fafb;
  }
  .item-row:last-child {
    border-bottom: none;
  }
  .item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #153229;
    margin-bottom: 0.25rem;
  }
  .item-sub {
    font-size: 0.8rem;
    color: #6b7280;
  }
  .item-price {
    font-weight: 700;
    font-size: 1rem;
    color: #124b3a;
  }
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.85rem;
  }
  @media (max-width: 480px) {
    .info-grid {
      grid-template-columns: 1fr;
    }
  }
  .info-grid .field-label {
    color: #9ca3af;
    margin-bottom: 0.25rem;
    display: block;
  }
  .info-grid .field-value {
    color: #153229;
    font-weight: 600;
  }
  .full-address {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    line-height: 1.6;
  }
  .summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: #4b5563;
  }
  .summary-total {
    border-top: 2px dashed #e5e7eb;
    margin-top: 0.75rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #124b3a;
  }
  .btn-back-store {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #124b3a;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
  }
  .btn-back-store:hover {
    background: #eef2f6;
  }
  .svg-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: inline-block;
    vertical-align: middle;
  }