:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --card: #ffffff;
  --card-2: #f4f4f4;
  --text: #111111;
  --text-soft: #555555;
  --muted: #7a7a7a;
  --border: #e5e5e5;
  --red: #d90429;
  --red-hover: #ef233c;
  --red-dark: #a1031e;
  --white: #ffffff;
  --black: #000000;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: Vazirmatn;
  src: url(VazirBold.ttf);
}

body {
  font-family: Vazirmatn, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  padding-bottom: 250px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   Form Controls
========================= */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: var(--transition);
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  cursor: pointer;
  flex: 0 0 auto;
}

.radio-group,
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.logo-icon {
  font-size: 30px;
  color: var(--red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: var(--text-soft);
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-link,
.admin-link,
.nav-cart-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.3s;
}

.cart-link,
.nav-cart-link {
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
}

.cart-link:hover,
.nav-cart-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-link {
  background: var(--red);
  color: var(--white);
}

.admin-link:hover {
  background: var(--red-hover);
}

.nav-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: 0.3s;
}

.menu-toggle:hover {
  background: #f5f5f5;
}

/* Buttons */
.btn,
.checkout-btn,
.continue-btn,
.btn-shop,
.back-to-cart-btn,
.checkout-submit-btn,
.success-btn,
.admin-back-btn,
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary,
.checkout-btn,
.btn-shop,
.checkout-submit-btn,
.success-btn,
.admin-action-btn,
.btn-add-cart,
.btn-cart,
.cart-btn {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover,
.checkout-btn:hover,
.btn-shop:hover,
.checkout-submit-btn:hover,
.success-btn:hover,
.admin-action-btn:hover,
.btn-add-cart:hover,
.btn-cart:hover,
.cart-btn:hover {
  background: var(--red-hover);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-dark,
.continue-btn,
.back-to-cart-btn,
.admin-back-btn,
.btn-back {
  background: #111;
  color: var(--white);
}

.btn-dark:hover,
.continue-btn:hover,
.back-to-cart-btn:hover,
.admin-back-btn:hover,
.btn-back:hover {
  background: #333;
}

.btn-add-cart {
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-add-cart.disabled,
button.btn-add-cart.disabled,
.disabled-btn {
  background: #9ca3af !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.75;
  border: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff5f6, #ffffff, #fffafa);
  color: var(--text);
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

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

.hero-tag {
  display: inline-block;
  background: rgba(217, 4, 41, 0.08);
  color: var(--red);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 900;
  color: var(--text);
}

.hero-content p {
  color: var(--text-soft);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
  color: var(--text-soft);
}

.hero-card {
  background: #ffffff;
  color: var(--text);
  border-radius: 24px;
  padding: 35px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: none;
}

.oil-icon {
  font-size: 90px;
  margin-bottom: 18px;
  color: var(--red);
}

.hero-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.hero-card p {
  color: var(--text-soft);
  margin-bottom: 12px;
}

.hero-card strong {
  color: var(--red);
  font-size: 24px;
}

/* Common */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title span {
  color: var(--red);
  font-weight: 800;
}

.section-title h2 {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
}

.categories,
.products,
.why-us,
.products-page,
.product-details,
.cart-page,
.checkout-page,
.order-success-page,
.admin-page,
.shop-page {
  padding: 80px 0;
}

.products,
.products-page,
.product-details,
.cart-page,
.checkout-page,
.order-success-page,
.admin-page,
.shop-page {
  background: var(--bg);
}

.section-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 13px;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.category-icon {
  font-size: 44px;
  margin-bottom: 12px;
  color: var(--red);
}

.category-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--text);
}

.category-card p {
  color: var(--text-soft);
}

/* Product Cards */
.product-grid,
.products-grid {
  display: grid;
  gap: 22px;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: 0.28s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 4, 41, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.product-image {
  height: 220px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-body,
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand,
.product-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 4, 41, 0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(217, 4, 41, 0.12);
}

.product-body h3,
.product-info h2 {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 8px;
}

.product-body p,
.product-info p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 14px;
}

.product-body strong,
.product-price {
  display: block;
  font-size: 21px;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 12px;
}

.product-stock {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.in-stock,
.stock-available {
  color: var(--success);
}

.out-stock,
.stock-unavailable {
  color: var(--danger);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions a,
.product-actions button,
.product-actions .btn-dark {
  flex: 1;
  min-height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.view-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.view-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(217, 4, 41, 0.20);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, #fff5f6, #ffffff);
  color: var(--text);
  padding: 70px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner-content span {
  color: var(--red);
  font-weight: 800;
}

.page-banner-content h1 {
  font-size: 40px;
  margin: 12px 0;
  font-weight: 900;
  color: var(--text);
}

.page-banner-content p {
  color: var(--text-soft);
  max-width: 700px;
  margin: auto;
}

/* Products / Filters / Shop */
.shop-page {
  padding: 70px 0;
  background: var(--bg);
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.filters-box,
.filter-box,
.products-topbar,
.page-header,
.cart-summary,
.checkout-form-box,
.checkout-summary-box,
.success-box,
.order-detail-box,
.order-items-box,
.admin-table-wrapper,
.empty-box,
.empty-admin-box,
.no-products {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.filter-box,
.filters-box {
  padding: 22px;
}

.filters-box {
  position: sticky;
  top: 100px;
}

.filter-box {
  background: #ffffff;
  border-radius: 24px;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.filters-head h3 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.close-filters-btn {
  display: none;
  border: none;
  background: var(--red);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.filter-group,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group {
  margin-bottom: 0;
}

.filter-group h4,
.filter-group label,
.form-group label,
.status-form label {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}

.filter-group label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  padding-right: 2px;
}

.filter-group input,
.filter-group select {
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.filter-group select {
  cursor: pointer;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.08);
  background: #fff;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.filter-actions button,
.filter-actions a {
  flex: 1;
  min-width: 120px;
  height: 50px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  transition: 0.25s ease;
}

.filter-actions button {
  border: none;
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(217, 4, 41, 0.15);
}

.filter-actions button:hover {
  transform: translateY(-2px);
}

.filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.filter-actions a:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-reset {
  width: 100%;
  border: none;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
}

.products-content {
  width: 100%;
}

.products-topbar,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  margin-bottom: 22px;
  gap: 12px;
}

.page-header {
  display: block;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--text);
}

.page-header p,
.products-topbar p,
.result-count {
  color: var(--text-soft);
}

.products-topbar select,
.mobile-sort-box select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

.result-count {
  margin-bottom: 22px;
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}

.result-count strong {
  color: var(--text);
  font-size: 16px;
}

.mobile-tools {
  display: none;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-filter-btn {
  border: none;
  background: var(--red);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-sort-box {
  flex: 1;
}

.mobile-sort-box select {
  width: 100%;
  height: 100%;
}

.no-products,
.empty-box,
.empty-admin-box {
  padding: 30px;
  text-align: center;
  color: var(--text-soft);
}

/* Product Details */
.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.product-image-box,
.product-info-box {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 35px;
  box-shadow: var(--shadow);
}

.product-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-big-icon {
  font-size: 120px;
  color: var(--red);
}

.product-title {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.product-description {
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 20px;
}

.stock-alert {
  margin: 14px 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.stock-alert.available {
  background: rgba(22, 163, 74, 0.10);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.stock-alert.unavailable {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.product-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.cart-item-icon {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
  color: var(--red);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-brand {
  display: inline-block;
  background: #f4f4f4;
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 8px;
}

.cart-item-info h3 {
  margin: 8px 0;
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
}

.cart-item-info p {
  margin: 6px 0;
  color: var(--text-soft);
  line-height: 1.8;
  word-break: break-word;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f7f7;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: 0.2s;
}

.qty-btn:hover {
  background: var(--red-hover);
}

.qty-number {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.remove-btn {
  color: var(--danger);
  font-weight: 700;
}

.cart-summary,
.checkout-form-box,
.checkout-summary-box {
  padding: 25px;
}

.cart-summary {
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h3,
.checkout-form-box h3,
.checkout-summary-box h3,
.order-detail-box h3,
.order-items-box h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--text);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  gap: 10px;
}

.empty-cart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px 20px;
  text-align: center;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

.empty-cart-icon {
  font-size: 70px;
  margin-bottom: 15px;
  color: var(--red);
}

.empty-cart h2 {
  margin-bottom: 10px;
  color: var(--text);
}

.empty-cart p {
  color: var(--text-soft);
}

.cart-message,
.admin-message {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-weight: 700;
  line-height: 1.8;
}

.cart-message {
  background: rgba(217, 4, 41, 0.08);
  color: var(--red);
  border: 1px solid rgba(217, 4, 41, 0.15);
}

.admin-message {
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.checkout-item-info p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.checkout-item-price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}

/* Success */
.order-success-page {
  min-height: 70vh;
}

.success-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 25px;
  text-align: center;
}

.success-icon {
  font-size: 70px;
  margin-bottom: 20px;
  color: var(--red);
}

.success-box h1 {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 15px;
}

.success-box p {
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 10px;
}

/* Admin */
.admin-page {
  min-height: 70vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-header span {
  color: var(--red);
  font-weight: 800;
}

.admin-header h1 {
  margin-top: 8px;
  font-size: 32px;
  color: var(--text);
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 16px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  background: #fafafa;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.admin-table td {
  color: var(--text);
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background: #fff8f8;
}

.admin-table tfoot td {
  background: #fafafa;
  font-weight: 900;
}

/* Order Status */
.order-status {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.status-processing {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-completed {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* Order Details */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.order-detail-box,
.order-items-box {
  padding: 24px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

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

.detail-row span {
  color: var(--text-soft);
  font-weight: 700;
}

.detail-row strong {
  color: var(--text);
  font-weight: 900;
}

.detail-row.full {
  display: block;
}

.detail-row.full span {
  display: block;
  margin-bottom: 8px;
}

.detail-row.full p {
  color: var(--text);
  line-height: 1.9;
  margin: 0;
}

.status-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-form button {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
}

.status-form button:hover {
  background: var(--red-hover);
}

/* Why Us */
.why-us {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.why-box {
  background: linear-gradient(135deg, #fff1f3, #ffffff);
  color: var(--red);
  border-radius: 24px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.why-content span {
  color: var(--red);
  font-weight: 800;
}

.why-content h2 {
  font-size: 34px;
  margin: 10px 0 14px;
  font-weight: 900;
  color: var(--text);
}

.why-content p {
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 1.9;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--text);
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.why-item:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

/* Footer */
/* .site-footer {
  background: #ffffff;
  color: var(--text);
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
} */

/* .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-box h3 {
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--text);
} */

/* .footer-box p,
.footer-box a {
  color: var(--text-soft);
}

.footer-box li {
  margin-bottom: 10px;
}

.footer-box a:hover {
  color: var(--red);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 0;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  display: flex;
} */

/* Responsive */
@media (max-width: 1200px) {
  .filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .filter-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .hero-wrapper,
  .why-wrapper,
  .products-layout,
  .checkout-layout,
  .cart-layout,
  .order-detail-grid,
  .product-details-grid {
    grid-template-columns: 1fr;
  }

  .shop-page {
    padding: 50px 0;
  }

  .filters-box {
    position: static;
  }

  .mobile-tools {
    display: flex;
  }

  .products-topbar {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  } */

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-actions {
    display: none;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
    gap: 16px;
    border: 1px solid var(--border);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .hero {
    padding: 60px 0;
  }

  .hero-wrapper,
  .why-wrapper,
  .why-list,
  .category-grid,
  .product-grid,
  .products-grid,
  .form-row,
  .filter-form {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .section-title h2,
  .why-content h2,
  .page-banner-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons,
  .hero-features,
  .filter-actions,
  .success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-features {
    justify-content: center;
    gap: 10px;
    font-size: 14px;
  }

  .hero-card,
  .filter-box,
  .checkout-form-box,
  .checkout-summary-box,
  .order-detail-box,
  .order-items-box {
    padding: 18px;
  }

  .page-banner {
    padding: 50px 0;
  }

  .product-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: stretch;
    border-radius: 18px;
  }

  .product-image {
    height: 100%;
    min-height: 100%;
    border-bottom: none;
    border-left: 1px solid var(--border);
  }

  .product-body,
  .product-info {
    padding: 14px;
  }

  .product-body h3,
  .product-info h2 {
    font-size: 16px;
  }

  .product-body strong,
  .product-price {
    font-size: 16px;
  }

  .filter-group input,
  .filter-group select,
  .filter-actions button,
  .filter-actions a {
    height: 46px;
  }

  .cart-page,
  .checkout-page,
  .admin-page,
  .shop-page {
    padding: 40px 0;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .cart-item-main {
    align-items: flex-start;
  }

  .cart-item-icon {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }

  .cart-item-info h3 {
    font-size: 18px;
  }

  .cart-item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
  }

  .detail-row {
    flex-direction: column;
    gap: 6px;
  }

  .admin-back-btn {
    width: 100%;
  }
/* 
  .footer-box {
    text-align: center;
  } */

  .nav-cart-link {
    justify-content: space-between;
    width: 100%;
  }

  .cart-badge {
    margin-right: auto;
  }

  .why-box {
    min-height: 220px;
    font-size: 72px;
    display: none;
  }

  .why-content h2 {
    font-size: 28px;
  }

  .product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .product-card {
    grid-template-columns: 95px 1fr;
  }

  .product-body,
  .product-info {
    padding: 12px;
  }

  .product-category,
  .product-brand {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 8px;
  }

  .product-info h2,
  .product-body h3 {
    font-size: 15px;
  }

  .product-info p,
  .product-body p {
    font-size: 12.5px;
    line-height: 1.8;
  }

  .product-price {
    font-size: 16px;
  }

  .mobile-tools {
    flex-direction: column;
  }

  .cart-item-main {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cart-item-icon {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    font-size: 42px;
  }

  .cart-item-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .qty-box {
    justify-content: center;
    width: 100%;
  }

  .remove-btn {
    text-align: center;
    background: rgba(239, 68, 68, 0.08);
    padding: 10px 12px;
    border-radius: 10px;
  }

  .checkout-btn,
  .continue-btn,
  .btn-shop,
  .success-btn,
  .back-to-cart-btn {
    width: 100%;
  }

  .summary-row {
    font-size: 14px;
  }

  .product-title {
    font-size: 24px;
  }

  .product-big-icon {
    font-size: 70px;
  }

  .admin-header h1 {
    font-size: 24px;
  }

  .filter-box {
    padding: 14px;
    border-radius: 16px;
  }
}

#category_id option {
  color: black !important;
}

#stock option {
  color: black;
}

#sort option {
  color: black;
}

/* ========================================
   About + Contact Page
======================================== */
.about-contact-hero .hero-content p {
  max-width: 650px;
}

.about-contact-section {
  padding: 70px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.about-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d62828, #ff4d4d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.about-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--text);
}

.about-card p {
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 15px;
}

.about-contact-why .why-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.contact-cards-section {
  padding: 20px 0 80px;
  background: var(--bg-soft);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.contact-info-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--text);
}

.contact-info-card p {
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 10px;
}

.contact-info-card a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .about-contact-section {
    padding: 50px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .contact-info-card {
    padding: 24px 18px;
  }

  .about-card h3,
  .contact-info-card h3 {
    font-size: 18px;
  }

  .about-card p,
  .contact-info-card p {
    font-size: 14px;
    line-height: 1.8;
  }

  .contact-info-card a {
    font-size: 16px;
  }
}

.gradient-background {
  background: linear-gradient(300deg, #ffffff, #fff1f1, #ffe4e4);
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
  text-align: center;
}

.row.flex-lg-row-reverse.align-items-center.g-5.pt-5 {
  padding: 17px !important;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.profile-img {
  border-radius: 50%;
  height: 100px;
}

.enamad {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* ========================================
   Navbar Dropdown Categories
======================================== */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: 0.25s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--red);
}

.dropdown-arrow {
  font-size: 13px;
  transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* منوی اصلی دسته بندی */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
  z-index: 2000;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: 0.22s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(217, 4, 41, 0.08);
  color: var(--red);
}

.submenu-arrow {
  font-size: 17px;
  color: var(--muted);
  transition: 0.22s ease;
}

.dropdown-menu a:hover .submenu-arrow {
  color: var(--red);
}

/* زیرمنوها */
.submenu {
  position: absolute;
  top: 0;
  right: 100%;
  width: 245px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: 0.25s ease;
  z-index: 2100;
}

.has-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-6px);
}

/* سطح سوم مثل برندهای روغن موتور */
.submenu-level-2 {
  z-index: 2200;
}

/* ========================================
   Cart Icon Navbar
======================================== */

.nav-cart-link {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 14px;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  transition: 0.25s ease;
}

.nav-cart-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(217, 4, 41, 0.04);
}

.cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-icon svg {
  display: block;
}

.cart-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #ffffff;
}

/* ================================
   NAVBAR BASE
================================ */

.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 900;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  color: #111827;
}

.logo-icon img {
  display: block;
}

/* دکمه موبایل */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
}

/* منوی اصلی */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: rtl;
}

.nav-menu > a,
.nav-dropdown > .nav-dropdown-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-menu > a:hover,
.nav-dropdown > .nav-dropdown-toggle:hover,
.nav-menu > a.active {
  background: #fff1f2;
  color: #d90429;
}

/* ================================
   DROPDOWN DESKTOP
================================ */

.nav-dropdown,
.nav-subdropdown {
  position: relative;
}

.caret {
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
}

/* منوی سطح اول */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  z-index: 1000;
}

/* جلوگیری از قطع شدن hover بین آیتم و منو */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  right: 0;
  top: -12px;
  width: 100%;
  height: 12px;
}

/* آیتم‌های داخل dropdown */
.nav-dropdown-menu a,
.nav-subdropdown-menu a,
.nav-subdropdown-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  background: transparent;
  transition: 0.18s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.nav-dropdown-menu a:hover,
.nav-subdropdown-menu a:hover,
.nav-subdropdown:hover > .nav-subdropdown-toggle {
  background: #fff1f2;
  color: #d90429;
}

/* منوی سطح دوم و سوم */
.nav-subdropdown-menu {
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 10px;
  width: 240px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  z-index: 1100;
}

/* جلوگیری از قطع شدن hover بین سطح‌ها */
.nav-subdropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 100%;
}

/* نمایش در دسکتاپ */
@media (min-width: 769px) {
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
  }

  .nav-subdropdown:hover > .nav-subdropdown-menu {
    display: block;
  }
}

/* اگر منو نزدیک لبه چپ صفحه شد، می‌تونی این کلاس را دستی به parent بدی */
.nav-subdropdown.open-left > .nav-subdropdown-menu {
  right: auto;
  left: 100%;
  margin-right: 0;
  margin-left: 10px;
}

/* ================================
   CART ICON
================================ */

.nav-cart-link.icon-only {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  text-decoration: none;
}

.nav-cart-link.icon-only:hover {
  background: #fff1f2;
  color: #d90429;
  border-color: rgba(217, 4, 41, 0.25);
}

.cart-icon {
  font-size: 19px;
  line-height: 1;
}

.cart-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d90429;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 0 4px;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu > a,
  .nav-dropdown > .nav-dropdown-toggle {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 12px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #f1f1f1;
  }

  .nav-menu > a:hover,
  .nav-dropdown > .nav-dropdown-toggle:hover {
    background: #fff1f2;
    color: #d90429;
  }

  /* Dropdown در موبایل دیگر absolute نیست */
  .nav-dropdown,
  .nav-subdropdown {
    width: 100%;
  }

  .nav-dropdown-menu,
  .nav-subdropdown-menu {
    position: static;
    width: 100%;
    margin: 6px 0 0 0;
    padding: 7px;
    display: none;
    box-shadow: none;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
  }

  .nav-dropdown-menu::before,
  .nav-subdropdown-menu::before {
    display: none;
  }

  /* باز شدن با کلاس open */
  .nav-dropdown.open > .nav-dropdown-menu {
    display: block;
  }

  .nav-subdropdown.open > .nav-subdropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a,
  .nav-subdropdown-menu a,
  .nav-subdropdown-toggle {
    min-height: 43px;
    padding: 9px 11px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    margin-bottom: 5px;
  }

  .nav-dropdown-menu a:last-child,
  .nav-subdropdown-menu a:last-child,
  .nav-subdropdown-toggle:last-child {
    margin-bottom: 0;
  }

  .nav-subdropdown-menu {
    padding-right: 12px;
    border-right: 3px solid rgba(217, 4, 41, 0.25);
  }

  /* سبد خرید در موبایل */
  .nav-cart-link.icon-only {
    width: 100%;
    min-height: 46px;
    justify-content: center !important;
    border-radius: 12px;
  }

  .cart-badge {
    top: 5px;
    left: 12px;
  }
}

/* ================================
   VERY SMALL MOBILE
================================ */

@media (max-width: 420px) {
  .site-header .container {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 17px;
  }

  .logo-icon img {
    width: 44px;
    height: 44px;
  }

  .nav-menu > a,
  .nav-dropdown > .nav-dropdown-toggle,
  .nav-dropdown-menu a,
  .nav-subdropdown-menu a,
  .nav-subdropdown-toggle {
    font-size: 13px;
  }
}




/* =====================================================
   FORCE MOBILE NAVBAR ITEMS STACKED UNDER EACH OTHER
   همه آیتم‌های منوی موبایل زیر هم
===================================================== */

@media (max-width: 768px) {

  .site-header {
    padding: 0 !important;
  }

  .navbar {
    height: auto !important;
    min-height: 72px !important;
    flex-wrap: wrap !important;
    position: relative !important;
    padding: 10px 0 !important;
  }

  .logo {
    flex-shrink: 0 !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* خود منوی موبایل */
  .nav-menu {
    position: static !important;
    top: auto !important;
    right: auto !important;

    width: 100% !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    gap: 8px !important;
    margin-top: 12px !important;
    padding: 14px !important;

    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: var(--shadow) !important;

    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
  }

  .nav-menu.active {
    display: flex !important;
  }

  /* تمام آیتم‌های سطح اول زیر هم و تمام عرض */
  .nav-menu > a,
  .nav-menu > .nav-dropdown,
  .nav-dropdown > .nav-dropdown-toggle {
    width: 100% !important;
    display: flex !important;
  }

  .nav-menu > a,
  .nav-dropdown > .nav-dropdown-toggle {
    min-height: 48px !important;
    padding: 0 14px !important;

    align-items: center !important;
    justify-content: space-between !important;

    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 12px !important;

    color: var(--text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;

    margin: 0 !important;
  }

  /* Dropdown parent هم کامل ستونی شود */
  .nav-dropdown,
  .nav-subdropdown {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* منوهای بازشونده در موبایل دیگر کنار نمی‌آیند، فقط زیر هم */
  .nav-dropdown-menu,
  .nav-subdropdown-menu {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;

    width: 100% !important;
    min-width: 100% !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;

    margin: 8px 0 0 0 !important;
    padding: 8px !important;

    background: #fafafa !important;
    border: 1px solid #eeeeee !important;
    border-right: 3px solid var(--red) !important;
    border-radius: 14px !important;
    box-shadow: none !important;

    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-dropdown.open > .nav-dropdown-menu,
  .nav-subdropdown.open > .nav-subdropdown-menu {
    display: flex !important;
  }

  /* آیتم‌های داخل زیرمنو هم زیر هم و تمام عرض */
  .nav-dropdown-menu > a,
  .nav-subdropdown-menu > a,
  .nav-subdropdown > .nav-subdropdown-toggle {
    width: 100% !important;
    min-height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 9px 12px !important;
    margin: 0 0 6px 0 !important;

    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 11px !important;

    color: var(--text) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
  }

  .nav-dropdown-menu > a:last-child,
  .nav-subdropdown-menu > a:last-child,
  .nav-subdropdown > .nav-subdropdown-toggle:last-child {
    margin-bottom: 0 !important;
  }

  /* سطح‌های داخلی کمی تورفتگی داشته باشند ولی همچنان زیر هم */
  .nav-subdropdown-menu {
    padding-right: 12px !important;
    background: #fdfdfd !important;
  }

  .nav-subdropdown .nav-subdropdown-menu {
    margin-top: 7px !important;
  }

  /* وقتی باز شد رنگش مشخص شود */
  .nav-dropdown.open > .nav-dropdown-toggle,
  .nav-subdropdown.open > .nav-subdropdown-toggle {
    background: #fff1f2 !important;
    color: var(--red) !important;
    border-color: rgba(217, 4, 41, 0.25) !important;
  }

  /* سبد خرید هم زیر بقیه و تمام عرض */
  .nav-cart-link,
  .nav-cart-link.icon-only {
    width: 100% !important;
    min-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 12px !important;
  }

  .cart-badge {
    top: 5px !important;
    left: 14px !important;
  }

  /* حذف فاصله‌ها و حالت‌های مزاحم قبلی */
  .nav-actions {
    display: none !important;
  }

  .nav-dropdown-menu::before,
  .nav-subdropdown-menu::before {
    display: none !important;
  }
}


/* =====================================================
   LIVE SEARCH BOX UNDER NAVBAR
===================================================== */

.search-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0 18px;
  position: relative;
  z-index: 900;
}

.search-box-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.search-form {
  width: 100%;
  position: relative;
}

.search-input-box {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 18px;
  padding: 7px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  transition: 0.25s ease;
}

.search-input-box:focus-within {
  border-color: rgba(217, 4, 41, 0.45);
  box-shadow: 0 12px 32px rgba(217, 4, 41, 0.12);
}

.search-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff1f2;
  color: var(--red);
  border-radius: 12px;
  font-size: 18px;
}

.search-input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  direction: rtl;
}

.search-input::placeholder {
  color: #999;
  font-weight: 600;
}

.search-submit-btn {
  height: 42px;
  min-width: 92px;
  border: none;
  outline: none;
  border-radius: 13px;
  background: var(--red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-submit-btn:hover {
  background: #b80022;
  transform: translateY(-1px);
}

/* Results Box */
.search-results-box {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
  z-index: 1500;
  max-height: 420px;
  overflow-y: auto;
}

.search-results-box.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s ease;
  direction: rtl;
}

.search-result-item:hover {
  background: #fff1f2;
}

.search-result-image {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #eeeeee;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
}

.search-result-arrow {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 50%;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.search-loading,
.search-empty {
  padding: 16px;
  text-align: center;
  color: #777;
  font-size: 14px;
  font-weight: 800;
}

/* Mobile */
@media (max-width: 768px) {
  .search-section {
    padding: 12px 0 14px;
  }

  .search-box-wrapper {
    max-width: 100%;
  }

  .search-input-box {
    min-height: auto;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 9px;
    gap: 8px;
  }

  .search-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .search-input {
    flex: 1;
    min-width: calc(100% - 50px);
    height: 40px;
    font-size: 14px;
  }

  .search-submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 13px;
  }

  .search-results-box {
    position: static;
    margin-top: 10px;
    max-height: 360px;
    border-radius: 16px;
  }

  .search-result-item {
    align-items: center;
    gap: 10px;
    padding: 9px;
  }

  .search-result-image {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .search-result-title {
    font-size: 13.5px;
  }

  .search-result-price {
    font-size: 12.5px;
  }
}


/* =========================
   MODERN SEARCH BAR
========================= */

.search-strip {
  background:
    radial-gradient(circle at top right, rgba(217, 4, 41, 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 18px 0 22px;
  position: relative;
  z-index: 50;
}

.search-modern {
  max-width: 860px;
  margin: 0 auto;
}

.search-modern__form {
  position: relative;
}

.search-modern__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  padding-right: 6px;
}

.search-modern__field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  overflow: hidden;
}

.search-modern__field:hover {
  border-color: rgba(217, 4, 41, 0.22);
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(217, 4, 41, 0.05);
}

.search-modern__field:focus-within {
  border-color: rgba(217, 4, 41, 0.45);
  box-shadow:
    0 0 0 4px rgba(217, 4, 41, 0.08),
    0 16px 40px rgba(15, 23, 42, 0.1);
}

.search-modern__icon {
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d90429;
  margin-right: 4px;
}

.search-modern__icon svg {
  width: 22px;
  height: 22px;
}

.search-modern__input {
  flex: 1;
  height: 62px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  padding: 0 4px;
  direction: rtl;
}

.search-modern__input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.search-modern__btn {
  height: 48px;
  min-width: 118px;
  margin-left: 8px;
  margin-right: 8px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 22px rgba(217, 4, 41, 0.22);
}

.search-modern__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 4, 41, 0.28);
}

.search-modern__btn:active {
  transform: translateY(0);
}

.search-modern__results {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.12),
    0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
  padding: 8px;
  max-height: 430px;
  overflow-y: auto;
  z-index: 2000;
}

.search-modern__results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  text-decoration: none;
  color: #0f172a;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
  direction: rtl;
}

.search-result-item:hover {
  background: linear-gradient(180deg, #fff8f8 0%, #fff1f2 100%);
  transform: translateY(-1px);
}

.search-result-image {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 13px;
  font-weight: 900;
  color: #d90429;
}

.search-result-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #d90429;
  font-size: 20px;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover .search-result-arrow {
  background: #ffe4e6;
  transform: translateX(-2px);
}

.search-loading,
.search-empty {
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

/* اسکرول زیباتر */
.search-modern__results::-webkit-scrollbar {
  width: 10px;
}

.search-modern__results::-webkit-scrollbar-track {
  background: transparent;
}

.search-modern__results::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.search-modern__results::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.45);
  border: 2px solid transparent;
  background-clip: content-box;
}

/* موبایل */
@media (max-width: 768px) {
  .search-strip {
    padding: 14px 0 16px;
  }

  .search-modern__label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .search-modern__field {
    min-height: auto;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "icon input"
      "button button";
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .search-modern__icon {
    grid-area: icon;
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin: 0;
  }

  .search-modern__input {
    grid-area: input;
    height: 48px;
    font-size: 14px;
    padding-left: 6px;
  }

  .search-modern__btn {
    grid-area: button;
    width: 100%;
    height: 44px;
    margin: 0;
    border-radius: 14px;
  }

  .search-modern__results {
    position: static;
    margin-top: 10px;
    border-radius: 18px;
    max-height: 360px;
  }

  .search-result-item {
    gap: 10px;
    padding: 9px;
  }

  .search-result-image {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
  }

  .search-result-title {
    font-size: 13px;
  }

  .search-result-meta,
  .search-result-price {
    font-size: 12px;
  }

  .search-result-arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 18px;
  }
}

/* =========================
   MODERN PRODUCT DETAILS
========================= */

.modern-product-page {
  padding: 34px 0 60px;
  background:
radial-gradient(circle at top right, rgba(217, 4, 41, 0.06), transparent 28%),
linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  min-height: 70vh;
  direction: rtl;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.product-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: 0.2s ease;
}

.product-breadcrumb a:hover {
  color: #d90429;
}

.product-breadcrumb strong {
  color: #0f172a;
}

.modern-product-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  padding: 22px;
  box-shadow:
0 24px 70px rgba(15, 23, 42, 0.08),
0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

.modern-product-gallery {
  position: relative;
  min-height: 480px;
  border-radius: 26px;
  background:
radial-gradient(circle at top, rgba(217, 4, 41, 0.08), transparent 34%),
linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-badge-top {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.badge.available {
  background: #dcfce7;
  color: #15803d;
}

.badge.unavailable {
  background: #fee2e2;
  color: #b91c1c;
}

.modern-product-image-box {
  width: 100%;
  height: 100%;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-product-image {
  width: 100%;
  max-width: 430px;
  max-height: 430px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 28px rgba(15, 23, 42, 0.18));
  transition: transform 0.35s ease;
}

.modern-product-gallery:hover .modern-product-image {
  transform: scale(1.035) rotate(-1deg);
}

.product-no-image {
  width: 100%;
  max-width: 360px;
  height: 330px;
  border-radius: 26px;
  border: 2px dashed rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #64748b;
  font-weight: 800;
}

.product-no-image-icon {
  font-size: 72px;
}

.modern-product-info {
  padding: 10px 4px 4px;
  display: flex;
  flex-direction: column;
}

.product-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modern-product-brand,
.modern-product-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.modern-product-brand {
  background: #fff1f2;
  color: #d90429;
}

.modern-product-category {
  background: #f1f5f9;
  color: #475569;
}

.modern-product-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 31px;
  line-height: 1.55;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.modern-product-short-desc {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 15px;
  line-height: 2;
  font-weight: 600;
}

.modern-product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0 20px;
}

.meta-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 14px;
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.meta-item strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.text-success {
  color: #16a34a !important;
}

.text-danger {
  color: #dc2626 !important;
}

.product-purchase-box {
  margin-top: auto;
  background:
linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.price-box span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.price-box strong {
  color: #d90429;
  font-size: 26px;
  font-weight: 950;
}

.price-box small {
  font-size: 13px;
  color: #d90429;
  font-weight: 900;
}

.stock-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.stock-box span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.stock-available {
  color: #16a34a;
  font-weight: 950;
}

.stock-unavailable {
  color: #dc2626;
  font-weight: 950;
}

.product-message {
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
  margin-bottom: 16px;
}

.product-message.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.product-message.danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.modern-product-actions {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 12px;
}

.modern-btn {
  height: 52px;
  border: none;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: all 0.22s ease;
}

.modern-btn-cart {
  background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(217, 4, 41, 0.24);
}

.modern-btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 4, 41, 0.3);
}

.modern-btn-cart.disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.modern-btn-back {
  background: #f1f5f9;
  color: #334155;
}

.modern-btn-back:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.product-extra-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.extra-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.extra-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  background: #fff1f2;
  color: #d90429;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.extra-box h3 {
  margin: 0 0 7px;
  font-size: 15px;
  color: #0f172a;
  font-weight: 950;
}

.extra-box p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
}

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

@media (max-width: 992px) {
  .modern-product-card {
grid-template-columns: 1fr;
  }

  .modern-product-gallery {
min-height: 390px;
  }

  .modern-product-image {
max-height: 350px;
  }

  .product-extra-section {
grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modern-product-page {
padding: 22px 0 42px;
  }

  .modern-product-card {
padding: 14px;
border-radius: 24px;
gap: 18px;
  }

  .modern-product-gallery {
min-height: 310px;
border-radius: 22px;
  }

  .modern-product-image-box {
padding: 24px;
  }

  .modern-product-image {
max-height: 280px;
  }

  .modern-product-title {
font-size: 23px;
line-height: 1.7;
  }

  .modern-product-short-desc {
font-size: 14px;
  }

  .modern-product-meta {
grid-template-columns: 1fr;
  }

  .price-box,
  .stock-box {
align-items: flex-start;
flex-direction: column;
gap: 8px;
  }

  .price-box strong {
font-size: 23px;
  }

  .modern-product-actions {
grid-template-columns: 1fr;
  }

  .modern-btn {
width: 100%;
  }

  .product-breadcrumb {
font-size: 12px;
  }
}

/* =========================
   NAV USER ICON
========================= */

.nav-user-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-user-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.nav-user-btn:hover {
  background: #fff1f2;
  color: #d90429;
  border-color: rgba(217, 4, 41, 0.18);
  transform: translateY(-2px);
}

.nav-user-icon {
  font-size: 19px;
  line-height: 1;
}

.nav-user-text,
.nav-user-name {
  white-space: nowrap;
}

.nav-user-logged {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logout-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  background: #fee2e2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.nav-logout-btn:hover {
  background: #fecaca;
  transform: translateY(-2px);
}

/* =========================
   AUTH PAGE
========================= */

.auth-page {
  min-height: calc(100vh - 120px);
  padding: 42px 0 70px;
  direction: rtl;
  background:
    radial-gradient(circle at top right, rgba(217, 4, 41, 0.08), transparent 30%),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-container {
  width: min(1120px, calc(100% - 30px));
  margin: 0 auto;
}

.auth-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 650px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 34px;
  overflow: hidden;
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.1),
    0 10px 32px rgba(15, 23, 42, 0.05);
}

.auth-side {
  position: relative;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(217, 4, 41, 0.95), rgba(239, 35, 60, 0.94)),
    url("assets/images/auth-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.18), transparent 35%);
}

.auth-side-content {
  position: relative;
  z-index: 2;
}

.auth-logo-icon {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.auth-side h1 {
  margin: 0 0 16px;
  font-size: 31px;
  font-weight: 950;
  line-height: 1.6;
}

.auth-side p {
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.auth-features {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.auth-features div {
  min-height: 48px;
  padding: 0 15px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.17);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.auth-form-area {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  border-radius: 20px;
  background: #f1f5f9;
  margin-bottom: 24px;
}

.auth-tabs a {
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  transition: all 0.22s ease;
}

.auth-tabs a.active {
  background: #ffffff;
  color: #d90429;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.auth-alert {
  border-radius: 18px;
  padding: 13px 15px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.auth-alert p {
  margin: 0;
}

.auth-alert p + p {
  margin-top: 6px;
}

.auth-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-title-box {
  margin-bottom: 22px;
}

.auth-title-box h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 27px;
  font-weight: 950;
}

.auth-title-box p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.8;
}

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.input-box {
  height: 56px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  transition: all 0.22s ease;
}

.input-box:focus-within {
  background: #ffffff;
  border-color: rgba(217, 4, 41, 0.35);
  box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.08);
}

.input-box span {
  font-size: 18px;
}

.input-box input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  direction: rtl;
}

.input-box input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.auth-submit-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 18px;
  margin-top: 6px;
  background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(217, 4, 41, 0.24);
  transition: all 0.22s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(217, 4, 41, 0.31);
}

.auth-bottom-text {
  text-align: center;
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.auth-bottom-text a {
  color: #d90429;
  text-decoration: none;
  font-weight: 950;
}

.auth-bottom-text a:hover {
  text-decoration: underline;
}

/* =========================
   AUTH RESPONSIVE
========================= */

@media (max-width: 992px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 24px 0 45px;
  }

  .auth-container {
    width: min(100% - 22px, 1120px);
  }

  .auth-card {
    border-radius: 26px;
    min-height: auto;
  }

  .auth-side {
    padding: 26px;
    min-height: 280px;
  }

  .auth-logo-icon {
    width: 62px;
    height: 62px;
    border-radius: 21px;
    font-size: 31px;
  }

  .auth-side h1 {
    font-size: 24px;
  }

  .auth-side p {
    font-size: 14px;
  }

  .auth-form-area {
    padding: 24px 18px 26px;
  }

  .auth-title-box h2 {
    font-size: 23px;
  }

  .input-box {
    height: 53px;
    border-radius: 16px;
  }

  .auth-submit-btn {
    height: 53px;
    border-radius: 16px;
  }

  .nav-user-name {
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .auth-side {
    display: none;
  }

  .auth-form-area {
    padding: 22px 15px;
  }

  .auth-card {
    border-radius: 22px;
  }

  .auth-tabs a {
    height: 45px;
    font-size: 13px;
  }

  .nav-user-text {
    display: none;
  }

  .nav-user-btn {
    width: 44px;
    padding: 0;
  }

  .nav-user-logged {
    gap: 5px;
  }

  .nav-logout-btn {
    padding: 0 9px;
    font-size: 11px;
  }
}


/* =========================
   MODERN PROFILE PAGE
========================= */

.profile-page {
  direction: rtl;
  min-height: calc(100vh - 120px);
  padding: 34px 0 70px;
  background:
    radial-gradient(circle at top right, rgba(217, 4, 41, 0.07), transparent 30%),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.profile-container {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
}

.profile-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(217, 4, 41, 0.96), rgba(239, 35, 60, 0.94));
  border-radius: 32px;
  padding: 28px;
  color: #fff;
  box-shadow:
    0 26px 70px rgba(217, 4, 41, 0.18),
    0 12px 30px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  top: -120px;
  left: -80px;
  background: rgba(255, 255, 255, 0.18);
}

.profile-header-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  bottom: -100px;
  right: 20%;
  background: rgba(255, 255, 255, 0.11);
}

.profile-user-main,
.profile-header-actions {
  position: relative;
  z-index: 2;
}

.profile-user-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 950;
  color: #fff;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.profile-user-title span {
  display: inline-flex;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.82);
}

.profile-user-title h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 950;
}

.profile-user-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-outline-btn,
.profile-danger-btn {
  height: 46px;
  padding: 0 17px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  transition: all 0.22s ease;
}

.profile-outline-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-outline-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.profile-danger-btn {
  background: #ffffff;
  color: #d90429;
}

.profile-danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.profile-sidebar {
  display: grid;
  gap: 18px;
}

.profile-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.07),
    0 6px 18px rgba(15, 23, 42, 0.04);
}

.user-info-box {
  padding: 20px;
}

.profile-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-box-title span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #fff1f2;
  color: #d90429;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.profile-box-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.profile-info-list {
  display: grid;
  gap: 12px;
}

.profile-info-item {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-info-item .info-label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
}

.profile-info-item strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.8;
}

.verified-text {
  color: #16a34a !important;
}

.not-verified-text {
  color: #dc2626 !important;
}

.profile-help-box {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(217, 4, 41, 0.08), transparent 35%),
    #ffffff;
}

.help-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: #fff1f2;
  color: #d90429;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 14px;
}

.profile-help-box h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.profile-help-box p {
  margin: 0 0 15px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.9;
  font-weight: 650;
}

.profile-help-box a {
  height: 42px;
  padding: 0 15px;
  border-radius: 15px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.profile-help-box a:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.profile-content {
  display: grid;
  gap: 18px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.profile-stat-card {
  min-height: 104px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.stat-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 18px;
  background: #fff1f2;
  color: #d90429;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.profile-stat-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.profile-stat-card strong {
  color: #0f172a;
  font-size: 21px;
  font-weight: 950;
}

.profile-stat-card small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.orders-box {
  padding: 20px;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.orders-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-header span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #fff1f2;
  color: #d90429;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.orders-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.orders-header a {
  height: 42px;
  padding: 0 15px;
  border-radius: 15px;
  background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(217, 4, 41, 0.18);
  transition: all 0.22s ease;
}

.orders-header a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(217, 4, 41, 0.26);
}

.orders-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.orders-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.orders-table th,
.orders-table td {
  padding: 15px 14px;
  text-align: right;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 13px;
  white-space: nowrap;
}

.orders-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 950;
}

.orders-table td {
  color: #334155;
  font-weight: 750;
}

.orders-table tbody tr:hover {
  background: #fffafa;
}

.orders-table tbody tr:last-child td {
  border-bottom: none;
}

.orders-table small {
  color: #64748b;
  font-size: 11px;
}

.order-status,
.payment-status {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
}

.status-pending {
  background: #fff7ed;
  color: #c2410c;
}

.status-processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-completed {
  background: #f0fdf4;
  color: #15803d;
}

.status-cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.status-default {
  background: #f1f5f9;
  color: #475569;
}

.payment-paid {
  background: #dcfce7;
  color: #15803d;
}

.payment-unpaid {
  background: #fef3c7;
  color: #b45309;
}

.payment-failed {
  background: #fee2e2;
  color: #b91c1c;
}

.payment-default {
  background: #f1f5f9;
  color: #475569;
}

.muted-text {
  color: #94a3b8;
  font-weight: 750;
}

.order-detail-link {
  height: 34px;
  padding: 0 12px;
  border-radius: 13px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  transition: all 0.22s ease;
}

.order-detail-link:hover {
  background: #e2e8f0;
  color: #d90429;
}

.empty-orders {
  border-radius: 24px;
  border: 2px dashed rgba(148, 163, 184, 0.42);
  background:
    radial-gradient(circle at top, rgba(217, 4, 41, 0.05), transparent 38%),
    #f8fafc;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 34px 20px;
}

.empty-orders-icon {
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background: #fff1f2;
  color: #d90429;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 18px;
}

.empty-orders h3 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.empty-orders p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 650;
}

.empty-orders a {
  height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(217, 4, 41, 0.2);
  transition: all 0.22s ease;
}

.empty-orders a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(217, 4, 41, 0.28);
}

/* =========================
   PROFILE RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-header-actions {
    width: 100%;
  }

  .profile-outline-btn,
  .profile-danger-btn {
    flex: 1;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .profile-page {
    padding: 22px 0 45px;
  }

  .profile-container {
    width: min(100% - 22px, 1180px);
  }

  .profile-header-card {
    border-radius: 25px;
    padding: 22px;
  }

  .profile-user-main {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 66px;
    height: 66px;
    min-width: 66px;
    border-radius: 22px;
    font-size: 30px;
  }

  .profile-user-title h1 {
    font-size: 22px;
  }

  .profile-user-title p {
    font-size: 13px;
  }

  .profile-header-actions {
    flex-direction: column;
  }

  .profile-outline-btn,
  .profile-danger-btn {
    width: 100%;
  }

  .orders-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .orders-header a {
    width: 100%;
  }

  .orders-table-wrapper {
    overflow: visible;
    border: none;
  }

  .orders-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table tr {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }

  .orders-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 12px 4px;
    white-space: normal;
    text-align: left;
  }

  .orders-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-align: right;
  }

  .orders-table td:last-child {
    border-bottom: none;
  }

  .order-detail-link {
    min-width: 82px;
  }
}

@media (max-width: 430px) {
  .profile-user-main {
    flex-direction: column;
  }

  .profile-stat-card {
    align-items: flex-start;
  }

  .profile-box,
  .orders-box {
    border-radius: 22px;
  }
}

.profile-box.profile-help-box {
  display: none !important;
}


/* =========================================
   PROFILE ORDERS - FULL RESPONSIVE FIX
========================================= */

.profile-page {
  width: 100%;
  overflow-x: hidden;
}

.profile-container {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.profile-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-sidebar,
.profile-content,
.orders-box,
.orders-table-wrapper {
  min-width: 0;
}

.orders-box {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.orders-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.orders-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.orders-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.orders-table-wrapper::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.9);
}

.orders-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.orders-table th,
.orders-table td {
  padding: 14px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 13px;
  vertical-align: top;
  box-sizing: border-box;
}

.orders-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 900;
}

.orders-table td {
  color: #334155;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.9;
}

.orders-table tbody tr:hover {
  background: #fcfcfd;
}

.orders-table tbody tr:last-child td {
  border-bottom: none;
}

/* عرض منطقی ستون‌ها */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
  width: 90px;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
  width: 130px;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
  width: 120px;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
  width: 240px;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
  width: 200px;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
  width: 120px;
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
  width: 140px;
}

.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
  width: 150px;
}

.order-status {
  max-width: 100%;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pending {
  background: #fff7ed;
  color: #c2410c;
}

.status-processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-completed {
  background: #f0fdf4;
  color: #15803d;
}

.status-cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.status-default {
  background: #f1f5f9;
  color: #475569;
}

.muted-text {
  color: #94a3b8;
  font-weight: 700;
}

/* =========================
   LARGE TABLET
========================= */
@media (max-width: 1100px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .orders-table {
    min-width: 860px;
  }
}

/* =========================
   TABLET
========================= */
@media (max-width: 820px) {
  .profile-container {
    width: min(100% - 18px, 1180px);
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .orders-box {
    padding: 16px;
  }

  .orders-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .orders-header a {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   MOBILE - تبدیل جدول به کارت
========================= */
@media (max-width: 680px) {
  .orders-table-wrapper {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .orders-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
    table-layout: auto;
    background: transparent;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table tr {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .orders-table td {
    width: 100% !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 10px 2px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    white-space: normal;
  }

  .orders-table td::before {
    content: attr(data-label);
    min-width: 95px;
    max-width: 95px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    line-height: 1.8;
    flex-shrink: 0;
  }

  .orders-table td:last-child {
    border-bottom: none;
  }

  .orders-table td > * {
    max-width: calc(100% - 105px);
  }

  .orders-table td span,
  .orders-table td strong,
  .orders-table td small {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .order-status {
    white-space: normal;
    line-height: 1.6;
    text-align: center;
  }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
  .profile-container {
    width: calc(100% - 14px);
  }

  .orders-box {
    padding: 12px;
    border-radius: 18px;
  }

  .orders-table tr {
    padding: 8px 10px;
    border-radius: 16px;
  }

  .orders-table td {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: right;
  }

  .orders-table td::before {
    min-width: auto;
    max-width: 100%;
  }

  .orders-table td > * {
    max-width: 100%;
  }

  .orders-header h2 {
    font-size: 16px;
  }
}

/* =========================
   EXTRA SMALL DEVICES
========================= */
@media (max-width: 360px) {
  .profile-container {
    width: calc(100% - 10px);
  }

  .orders-box {
    padding: 10px;
  }

  .orders-table td {
    font-size: 12px;
  }

  .orders-table td::before {
    font-size: 11px;
  }

  .order-status {
    font-size: 11px;
    padding: 4px 8px;
  }
}


/* =========================================
   FEATURES BAR - HOME PAGE
========================================= */

.features-bar {
  padding: 8px 0 34px;
}

.features-bar-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background:
    linear-gradient(135deg, #08111f 0%, #0f172a 45%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.features-bar-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.08), transparent 30%);
  pointer-events: none;
}

.feature-item {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  transition: transform 0.25s ease, background 0.25s ease;
}

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

.feature-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-text {
  min-width: 0;
}

.feature-text h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.feature-text p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================
   Tablet
========================= */
@media (max-width: 992px) {
  .features-bar {
    padding: 6px 0 28px;
  }

  .features-bar-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-divider {
    display: none;
  }

  .feature-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .feature-item:nth-child(1),
  .feature-item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .feature-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 576px) {
  .features-bar {
    padding: 2px 0 24px;
  }

  .features-bar-wrap {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .feature-item {
    padding: 18px 16px;
    gap: 12px;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

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

  .feature-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-text h3 {
    font-size: 15px;
  }

  .feature-text p {
    font-size: 12px;
  }
}


/* =========================================
   HORIZONTAL WHITE SERVICE STRIP
========================================= */

.service-strip {
  width: 100%;
  margin: 0 0 34px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.service-strip__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.service-item {
  flex: 1 1 25%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, 0.07);
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-item:first-child {
  border-right: 1px solid rgba(15, 23, 42, 0.07);
}

.service-item:hover {
  background: #fafafa;
}

.service-item__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.service-item__icon svg {
  width: 25px;
  height: 25px;
}

.service-item__text {
  min-width: 0;
}

.service-item__text h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.service-item__text p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

/* =========================
   Large Tablet
========================= */
@media (max-width: 1100px) {
  .service-strip__inner {
    flex-wrap: wrap;
  }

  .service-item {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  }

  .service-item:nth-child(2n+1) {
    border-right: 1px solid rgba(15, 23, 42, 0.07);
  }

  .service-item:nth-child(2n) {
    border-right: none;
  }

  .service-item:last-child,
  .service-item:nth-last-child(2) {
    border-bottom: none;
  }
}

/* =========================
   Tablet
========================= */
@media (max-width: 768px) {
  .service-strip {
    margin-bottom: 26px;
  }

  .service-item {
    padding: 18px 16px;
    gap: 12px;
  }

  .service-item__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
  }

  .service-item__icon svg {
    width: 22px;
    height: 22px;
  }

  .service-item__text h3 {
    font-size: 14px;
  }

  .service-item__text p {
    font-size: 12px;
  }
}

/* =========================
   Mobile
========================= */
@media (max-width: 576px) {
  .service-strip__inner {
    flex-direction: column;
  }

  .service-item {
    flex: 1 1 100%;
    width: 100%;
    border-left: none;
    border-right: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    padding: 16px 14px;
  }

  .service-item:first-child {
    border-top: none;
  }

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

  .service-item__text h3 {
    font-size: 14px;
  }

  .service-item__text p {
    font-size: 12px;
    line-height: 1.7;
  }
}


/* =========================================
   FULL WIDTH PREMIUM HOME HERO
   Black / White / Minimal Gold Theme
========================================= */

.home-hero-full {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
  isolation: isolate;
}

.home-hero-full__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-hero-full__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.01);
}

.home-hero-full__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.72) 26%,
      rgba(0, 0, 0, 0.32) 52%,
      rgba(0, 0, 0, 0.62) 78%,
      rgba(0, 0, 0, 0.86) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.04) 42%,
      rgba(0, 0, 0, 0.92) 100%
    );
}

.home-hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 50% 75%, rgba(245, 158, 11, 0.12), transparent 28%);
  pointer-events: none;
}

.home-hero-full__content {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  padding: 96px 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.home-hero-full__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-hero-full__content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -1.6px;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
}

.home-hero-full__content h1::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  margin: 24px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.9),
    rgba(255, 255, 255, 0.78),
    rgba(245, 158, 11, 0.9),
    transparent
  );
  border-radius: 999px;
}

.home-hero-full__content p {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 500;
  line-height: 2.1;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.home-hero-full__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-main-btn,
.hero-outline-btn {
  min-width: 170px;
  height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.hero-main-btn {
  color: #111827;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  border: 1px solid rgba(251, 191, 36, 0.85);
  box-shadow:
    0 16px 34px rgba(245, 158, 11, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-main-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 42px rgba(245, 158, 11, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-outline-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-outline-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

/* Bottom service strip inside hero */
.home-hero-full__bottom {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 7;
  width: 100%;
  min-height: 108px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-service-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 18px;
  border-left: 1px solid rgba(15, 23, 42, 0.09);
  color: #0f172a;
}

.hero-service-item:last-child {
  border-left: none;
}

.hero-service-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-service-icon svg {
  width: 25px;
  height: 25px;
}

.hero-service-item strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.hero-service-item small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}



@media (max-width: 1100px) {
  .home-hero-full {
    min-height: 760px;
  }

  .home-hero-full__content {
    min-height: 620px;
    padding-bottom: 190px;
  }

  .home-hero-full__bottom {
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;
  }

  .hero-service-item {
    justify-content: flex-start;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero-service-item:nth-child(2n) {
    border-left: none;
  }

  .hero-service-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .home-hero-full {
    min-height: auto;
  }

  .home-hero-full__bg img {
    background-image: url("./عکس.png") !important;
    object-fit: cover;
  }

  .home-hero-full__shade {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.52) 0%,
        rgba(0, 0, 0, 0.42) 35%,
        rgba(0, 0, 0, 0.88) 100%
      );
  }

  .home-hero-full__content {
    width: min(100% - 28px, 720px);
    min-height: 560px;
    padding: 72px 0 220px;
  }

  .home-hero-full__eyebrow {
    font-size: 12px;
    padding: 8px 14px;
    margin-bottom: 16px;
  }

  .home-hero-full__content h1 {
    font-size: clamp(32px, 10vw, 48px);
    letter-spacing: -0.8px;
  }

  .home-hero-full__content h1::after {
    width: 110px;
    margin-top: 18px;
  }

  .home-hero-full__content p {
    margin-top: 18px;
    font-size: 14px;
    line-height: 2;
  }

  .home-hero-full__actions {
    margin-top: 24px;
    gap: 10px;
  }

  .hero-main-btn,
  .hero-outline-btn {
    min-width: 145px;
    height: 46px;
    font-size: 13px;
    border-radius: 12px;
  }

  .home-hero-full__bottom {
    grid-template-columns: 1fr;
  }

  .hero-service-item {
    padding: 14px 18px;
    border-left: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero-service-item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero-service-item:last-child {
    border-bottom: none;
  }

  .hero-service-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .hero-service-icon svg {
    width: 22px;
    height: 22px;
  }

  .hero-service-item strong {
    font-size: 14px;
  }

  .hero-service-item small {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .home-hero-full__content {
    min-height: 520px;
    padding-top: 58px;
    padding-bottom: 235px;
  }

  .home-hero-full__actions {
    width: 100%;
  }

  .hero-main-btn,
  .hero-outline-btn {
    width: 100%;
  }
}




.store-benefits {
  position: relative;
  padding: 80px 0;
  background: #ffffff;
}

.store-benefits::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.08),
    transparent
  );
}

.store-benefits__top {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.store-benefits__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.store-benefits__top h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.8px;
}

.store-benefits__top p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 2;
}

.store-benefits__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.store-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 20px;
  min-width: 0;
  position: relative;
}

.store-benefit-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.store-benefit-item__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.store-benefit-item__icon svg {
  width: 24px;
  height: 24px;
}

.store-benefit-item__content {
  min-width: 0;
}

.store-benefit-item__content h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.6;
}

.store-benefit-item__content p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.95;
}

/* Tablet */
@media (max-width: 1100px) {
  .store-benefits__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-benefit-item:nth-child(2n)::after {
    display: none;
  }

  .store-benefit-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

/* Mobile */
@media (max-width: 680px) {
  .store-benefits {
    padding: 56px 0;
  }

  .store-benefits__top {
    margin-bottom: 28px;
  }

  .store-benefits__label {
    font-size: 12px;
    padding: 7px 13px;
    margin-bottom: 12px;
  }

  .store-benefits__top h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .store-benefits__top p {
    font-size: 14px;
    line-height: 1.9;
  }

  .store-benefits__list {
    grid-template-columns: 1fr;
  }

  .store-benefit-item {
    padding: 20px 0;
  }

  .store-benefit-item:not(:last-child)::after {
    display: none;
  }

  .store-benefit-item:not(:last-child) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .store-benefit-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .store-benefit-item__icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .store-benefit-item__icon svg {
    width: 22px;
    height: 22px;
  }

  .store-benefit-item__content h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .store-benefit-item__content p {
    font-size: 13px;
    line-height: 1.9;
  }
}

button#applyFiltersBtn{
  display: none;
}

a#resetFiltersBtn {
  margin-top: 15px;
}


.cart-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15,23,42,0.25);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-toast.show {
  opacity: 1;
  pointer-events: auto;
}
.cart-toast.success {
  background: #16a34a;
}
.cart-toast.error {
  background: #dc2626;
}

.cart-success-message {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #16a34a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(22, 163, 74, 0.28);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-success-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cart-success-message.error {
  background: #dc2626;
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.25);
}




.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 7px 14px;
  border-radius: 999px;

  text-decoration: none;
  color: #fff;

  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow: 0 0 8px rgba(253, 29, 29, 0.45);

  animation: instagramGlow 1.8s infinite ease-in-out;
  transition: all 0.3s ease;

  max-width: 260px;
}

.instagram-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 14px rgba(253, 29, 29, 0.75);
}

.instagram-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.instagram-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.instagram-text strong {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.instagram-text small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  direction: ltr;
}

/* Glow / Blink Effect */
@keyframes instagramGlow {
  0% {
      box-shadow: 0 0 5px rgba(253, 29, 29, 0.35);
      opacity: 0.85;
  }

  50% {
      box-shadow:
          0 0 12px rgba(253, 29, 29, 0.8),
          0 0 20px rgba(131, 58, 180, 0.45);
      opacity: 1;
  }

  100% {
      box-shadow: 0 0 5px rgba(253, 29, 29, 0.35);
      opacity: 0.85;
  }
}

/* Responsive */
@media (max-width: 576px) {
  /* .footer-instagram {
      margin: 15px 0 10px;
  } */

  .instagram-link {
      padding: 6px 11px;
      gap: 6px;
      max-width: 230px;
  }

  .instagram-icon {
      width: 19px;
      height: 19px;
      min-width: 19px;
  }

  .instagram-text strong {
      font-size: 11px;
  }

  .instagram-text small {
      font-size: 10px;
  }
}


a.modern-btn.modern-btn-cart {
  display: none;
}


.mobile-nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3f4f6;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  position: relative;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
}

.mobile-nav-icon:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.mobile-cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
  }

  .mobile-nav-actions {
      display: flex;
  }

  .menu-toggle {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      border: 1px solid #e5e7eb;
      background: #f3f4f6;
      color: #111827;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 22px;
  }

  .logo {
      min-width: 0;
      flex: 1;
  }

  .logo-text {
      font-size: 18px;
  }

  .logo-icon img {
      width: 42px;
      height: 42px;
      margin-right: 8px !important;
  }

  .logo-icon p {
      display: none;
  }


  .nav-menu .nav-cart-link,
  .nav-menu .nav-user-area {
      display: none;
  }
}

@media (min-width: 769px) {
  .mobile-nav-actions {
      display: none !important;
  }
}

.poster{
  object-fit: cover;
}



body {
  padding-bottom: 120px;
}



.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}

.instagram-link:hover {
  background: rgba(255,255,255,0.1);
  color: #f5b301;
}

.instagram-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.instagram-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.enamad img {
  width: 42px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}


@media (max-width: 992px) {
  body {
    padding-bottom: 150px;
  }

}


@media (max-width: 768px) {
  body {
    padding-bottom: 210px;
  }


  .instagram-link {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 10px;
  }

  .instagram-icon,
  .instagram-icon svg {
    width: 18px;
    height: 18px;
  }

  .enamad img {
    width: 38px;
  }

}


@keyframes instagramPulse{
  0%{
      transform:scale(1);
  }

  50%{
      transform:scale(1.12);
  }

  100%{
      transform:scale(1);
  }
}

@media(max-width:768px){

  

  .instagram-link{
      width:80px;
      height:80px;
  }

  .instagram-icon svg{
      width:52px;
      height:52px;
  }
}

strong#stickyTotalPrice {
  color: red;
}


.sticky-cart-btn{
  background: linear-gradient(135deg, #eb255a, #ff0000) !important;
}

strong#totalPriceText{
  color: red !important;
}

.summary-total{
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 4px;
  font-size: 1.05em;
  color: #1d4ed8;
}

.shipping-error-text{
  color: #b91c1c;
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
  max-width: 220px;
}


.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1a1a1a;              
  direction: rtl;
  border-top: 1px solid #2a2a2a;   
}

.footer-nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: 60px;
}

/* آیتم‌های معمولی */
.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s, opacity .2s;
}
.footer-item:hover {
  color: #e63946;       
  opacity: 1;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;        
}
.footer-icon svg {
  width: 22px;
  height: 22px;
}


.footer-item--highlight {
  background: #e63946;             
  padding: 8px 16px;
  margin: -8px -16px -8px 0;
  align-self: stretch;
  justify-content: center;
  transition: background .2s;
}
.footer-item--highlight:hover {
  background: #c62f3b;             
  color: #ffffff;                  
}


.footer-instagram {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: transform .2s;
  animation: insta-blink 1.2s ease-in-out infinite;
}

.footer-instagram:hover {
  transform: scale(1.05);
  animation-play-state: paused;
}

@keyframes insta-blink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(225, 48, 108, .7),
                0 4px 12px rgba(0,0,0,.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px 8px rgba(225, 48, 108, .9),
                0 4px 12px rgba(0,0,0,.4);
    transform: scale(1.12);
  }
}

.footer-instagram svg {
  width: 32px;
  height: 32px;
}


@media (max-width: 600px) {
  .footer-nav { gap: 12px; padding: 6px 10px; min-height: 52px; }
  .footer-item { font-size: 11px; }
  .footer-icon svg { width: 20px; height: 20px; }
  .footer-instagram { width: 48px; height: 48px; margin-top: -24px; }
  .footer-instagram svg { width: 28px; height: 28px; }
  .footer-item--highlight { padding: 6px 10px; margin: -6px -10px -6px 0; }
}


.home-qty-box {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
}

.home-qty-box .home-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  border: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
  user-select: none;
}

.home-qty-box .home-qty-btn:hover {
  background: #f97316;
  color: #fff;
}

.home-qty-box .home-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
  color: #111827;
}

.home-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 6px 10px;
}
.home-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.home-qty-btn:hover { background: #374151; }
.home-qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}


.support-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.7);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.support-box{
    width:90%;
    max-width:350px;
    background:rgba(255,255,255,.1);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.2);
    border-radius:20px;
    padding:25px;
    text-align:center;
    color:#fff;
}

.support-box h3{
    margin-bottom:15px;
}

.support-box a{
    color:#ffb300;
    text-decoration:none;
    font-weight:bold;
    display:block;
    margin-bottom:10px;
}

.close-btn{
    float:left;
    font-size:28px;
    cursor:pointer;
}

option[value="failed"]{
    display:none;
}

option[value="payment_verified_stock_failed"]{
    display:none;
}

/* ========================================
   استایل منوی دسته‌بندی‌ها
   ======================================== */

/* منوی اصلی dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-dropdown-toggle:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

/* منوی سطح اول */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

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

/* آیتم‌های منوی سطح اول */
.nav-dropdown-menu > a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-dropdown-menu > a:hover {
    background: #f1f5f9;
    color: #2563eb;
    padding-right: 24px;
}

/* ========================================
   زیرمنوها (subdropdown)
   ======================================== */

.nav-subdropdown {
    position: relative;
}

.nav-subdropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-subdropdown-toggle:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.nav-subdropdown-toggle .caret {
    font-size: 12px;
    color: #94a3b8;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

/* منوی سطح دوم و سوم */
.nav-subdropdown-menu {
    position: absolute;
    top: 0;
    right: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

/* برای منوی سطح سوم که در راستچین باید سمت چپ باز بشه */
.nav-subdropdown-menu .nav-subdropdown-menu {
    right: auto;
    left: 100%;
    top: -8px;
}

/* وقتی موس میرن روی زیرمنو، زیرمنوی بعدی باز بشه */
.nav-subdropdown:hover > .nav-subdropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* آیتم‌های زیرمنو */
.nav-subdropdown-menu > a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-subdropdown-menu > a:hover {
    background: #f1f5f9;
    color: #2563eb;
    padding-right: 24px;
}

/* ========================================
   بخش "دسته‌بندی‌های جدید" داینامیک
   ======================================== */

/* خط جداکننده */
.nav-dropdown-menu hr {
    margin: 8px 16px;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* عنوان بخش داینامیک */
.nav-dropdown-menu .dynamic-category-header {
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* آیتم‌های داینامیک */
.nav-dropdown-menu .dynamic-category-item {
    display: block;
    padding: 10px 20px;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    text-decoration: none;
    border-right: 3px solid transparent;
}

.nav-dropdown-menu .dynamic-category-item:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-right-color: #16a34a;
}

/* زیرمنوهای داینامیک */
.nav-dropdown-menu .nav-subdropdown-toggle.dynamic {
    border-right: 3px solid transparent;
}

.nav-dropdown-menu .nav-subdropdown-toggle.dynamic:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-right-color: #16a34a;
}

/* ========================================
   حالت موبایل
   ======================================== */

@media (max-width: 768px) {
    /* منوی اصلی تو موبایل */
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8fafc;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
    }

    .nav-dropdown.open > .nav-dropdown-menu,
    .nav-dropdown-menu.open {
        display: block;
    }

    /* زیرمنوها تو موبایل */
    .nav-subdropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f1f5f9;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
        margin-right: 16px;
    }

    .nav-subdropdown.open > .nav-subdropdown-menu,
    .nav-subdropdown-menu.open {
        display: block;
    }

    /* تغییر جهت caret تو موبایل */
    .nav-subdropdown-toggle .caret {
        transform: rotate(90deg);
    }

    .nav-subdropdown.open > .nav-subdropdown-toggle .caret {
        transform: rotate(-90deg);
    }

    /* آیتم‌ها تو موبایل */
    .nav-dropdown-menu > a,
    .nav-subdropdown-toggle,
    .nav-subdropdown-menu > a {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ========================================
   انیمیشن‌ها
   ======================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown:hover > .nav-dropdown-menu {
    animation: slideDown 0.3s ease forwards;
}

/* ========================================
   مخصوص راستچین
   ======================================== */

/* برای اینکه تو راستچین منو درست باز بشه */
[dir="rtl"] .nav-subdropdown-menu {
    right: 100%;
    left: auto;
}

[dir="rtl"] .nav-subdropdown-menu .nav-subdropdown-menu {
    left: 100%;
    right: auto;
}
