/* ===== کارونیا کالا — سیستم طراحی شیشه‌ای (Liquid Glass) با حالت روز/شب ===== */

:root {
  --orange: #f2600c;
  --orange-dark: #d14f04;
  --orange-light: #fff1e6;
  --orange-lighter: #fff8f3;
  --orange-glow: rgba(242, 96, 12, 0.28);
  --orange-glow-2: rgba(255, 154, 82, 0.28);

  --bg-1: #fff6ee;
  --bg-2: #ffe3cf;
  --ink: #221a14;
  --ink-soft: #7a6b5f;
  --white: #ffffff;
  --danger: #e6392b;
  --green: #1a9e5c;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(120, 74, 32, 0.14);
  --glass-shadow-hover: 0 14px 40px rgba(242, 96, 12, 0.22);
  --glass-blur: blur(22px) saturate(180%);

  --border: rgba(120, 90, 60, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --nav-glass-bg: rgba(24, 18, 14, 0.55);
  --nav-glass-border: rgba(255, 255, 255, 0.14);
  --nav-icon: rgba(255, 255, 255, 0.62);
  --nav-active-bg: #ffffff;
  --nav-active-fg: #171310;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --orange: #ff7a2e;
  --orange-dark: #ff9a52;
  --orange-light: rgba(255, 122, 46, 0.16);
  --orange-lighter: rgba(255, 122, 46, 0.08);
  --orange-glow: rgba(255, 122, 46, 0.35);
  --orange-glow-2: rgba(255, 154, 82, 0.2);

  --bg-1: #140f0c;
  --bg-2: #1f1712;
  --ink: #f5efe8;
  --ink-soft: #b7a99c;
  --white: #1c1610;
  --danger: #ff5b4c;
  --green: #3ecf8e;

  --glass-bg: rgba(38, 30, 25, 0.55);
  --glass-bg-strong: rgba(38, 30, 25, 0.78);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glass-shadow-hover: 0 14px 40px rgba(255, 122, 46, 0.25);

  --border: rgba(255, 255, 255, 0.1);

  --nav-glass-bg: rgba(10, 8, 6, 0.6);
  --nav-glass-border: rgba(255, 255, 255, 0.12);
  --nav-icon: rgba(255, 255, 255, 0.55);
  --nav-active-bg: #ff7a2e;
  --nav-active-fg: #17110b;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  direction: rtl;
  text-align: right;
  font-size: 15px;
  line-height: 1.8;
}

body {
  min-height: 100vh;
  background-color: var(--bg-1);
  background-image:
    radial-gradient(680px circle at 8% -5%, var(--orange-glow), transparent 60%),
    radial-gradient(520px circle at 96% 10%, var(--orange-glow-2), transparent 55%),
    radial-gradient(600px circle at 50% 110%, var(--orange-glow-2), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-color 0.3s ease;
  padding-bottom: 96px; /* جا برای نوار پایین شیشه‌ای */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1em; }

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

/* ===== ابزار شیشه‌ای پایه (با هایلایت نوری برای حس شیشه واقعی) ===== */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  isolation: isolate;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 15% -10%, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme='dark'] .glass::before {
  background: radial-gradient(120% 60% at 15% -10%, rgba(255, 255, 255, 0.14), transparent 55%);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0 0;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  margin: 0 auto 10px;
  max-width: 1200px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-pill);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo img { height: 38px; width: auto; }
.search-form {
  flex: 1;
  display: flex;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
:root[data-theme='dark'] .search-form { background: rgba(255, 255, 255, 0.06); }
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  outline: none;
  color: var(--ink);
}
.search-form input::placeholder { color: var(--ink-soft); }
.search-form button {
  background: linear-gradient(180deg, #ff9a52, var(--orange));
  color: #fff;
  border: none;
  padding: 0 20px;
  font-weight: 700;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-actions a, .icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
}
.header-actions a:hover, .icon-btn:hover { background: var(--orange-light); color: var(--orange); }
.header-actions svg, .icon-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.cart-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  padding: 0 4px;
}

/* دکمه حالت روز/شب */
.theme-toggle {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange-light);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.theme-toggle svg { width: 19px; height: 19px; color: var(--orange); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

.header-nav { padding: 0 16px; }
.header-nav .container { padding: 0; }
.header-nav ul {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}
.header-nav a {
  color: var(--ink);
  padding: 8px 16px;
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
.header-nav a:hover { background: var(--orange-light); color: var(--orange); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: 0.15s;
}
.btn-primary {
  background: linear-gradient(180deg, #ff9a52, var(--orange));
  color: #fff;
  box-shadow: 0 6px 18px var(--orange-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline {
  background: var(--glass-bg);
  color: var(--orange);
  border: 1.5px solid var(--orange);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.btn-outline:hover { background: var(--orange-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9a52 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 44px 32px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--glass-shadow-hover);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at 90% -20%, rgba(255,255,255,0.35), transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: 1.8rem; margin: 0 0 10px; }
.hero p { margin: 0 0 16px; opacity: 0.95; }
.hero .btn-outline { background: rgba(255,255,255,0.25); border-color: #fff; color: #fff; }

/* ===== دسته‌بندی‌ها ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin: 20px 0 32px;
}
.category-chip {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: 0.15s;
}
.category-chip:hover { border-color: var(--orange); color: var(--orange); box-shadow: var(--glass-shadow-hover); transform: translateY(-2px); }
.category-chip img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; margin: 0 auto 8px; }

/* ===== عنوان بخش‌ها ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.section-title h2 { font-size: 1.15rem; margin: 0; border-right: 4px solid var(--orange); padding-right: 10px; }
.section-title a { color: var(--orange); font-weight: 700; font-size: 0.85rem; }

/* ===== محصولات ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px;
  transition: 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--glass-shadow-hover); border-color: var(--orange); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-sm); background: var(--orange-lighter); margin-bottom: 10px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge-discount {
  position: absolute; top: 20px; left: 20px;
  background: var(--danger); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.product-card .name { font-size: 0.88rem; font-weight: 600; min-height: 2.6em; overflow: hidden; margin-bottom: 8px; }
.product-card .price-row { margin-top: auto; }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-size: 0.78rem; margin-left: 6px; }
.price-final { color: var(--ink); font-weight: 800; font-size: 1rem; }
.price-final.discounted { color: var(--danger); }
.toman { font-size: 0.72rem; font-weight: 500; }
.stars { color: var(--orange); font-size: 0.8rem; }
.out-of-stock { color: var(--danger); font-size: 0.78rem; font-weight: 700; }

/* ===== فیلترها ===== */
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin: 20px 0; align-items: start; }
.filters-box {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px; position: sticky; top: 130px;
}
.filters-box h3 { font-size: 0.95rem; margin: 0 0 12px; }
.filters-box .filter-group { margin-bottom: 16px; }
.filters-box label { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.filters-box input[type="number"] { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--ink); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.sort-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-tabs a { padding: 7px 14px; border-radius: var(--radius-pill); background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 0.82rem; font-weight: 600; }
.sort-tabs a.active { background: linear-gradient(180deg, #ff9a52, var(--orange)); color: #fff; border-color: transparent; }

/* ===== صفحه‌بندی ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600;
  background: var(--glass-bg);
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ===== جزئیات محصول ===== */
.product-detail { display: grid; grid-template-columns: 420px 1fr; gap: 30px; margin: 24px 0; }
.pd-gallery .main-img {
  border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1;
  background: var(--orange-lighter);
  box-shadow: var(--glass-shadow);
}
.pd-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-gallery .thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; }
.pd-info h1 { font-size: 1.35rem; margin: 0 0 8px; }
.pd-meta { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 16px; }
.pd-price-box {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 18px; margin: 16px 0;
}
.pd-price-box .price-final { font-size: 1.5rem; }
.pd-variations { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pd-variations label { border: 2px solid var(--border); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 0.85rem; cursor: pointer; background: var(--glass-bg); }
.pd-variations input { display: none; }
.pd-variations input:checked + span { color: var(--orange); }
.pd-variations label:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); width: fit-content; background: var(--glass-bg); }
.qty-box button { background: none; border: none; padding: 8px 16px; font-size: 1.1rem; color: var(--ink); }
.qty-box input { width: 46px; border: none; background: transparent; text-align: center; color: var(--ink); }
.pd-actions { display: flex; gap: 10px; margin-top: 14px; }
.pd-actions .btn { flex: 1; }
.attributes-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.attributes-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.attributes-table td:first-child { color: var(--ink-soft); width: 40%; }
.pd-description { line-height: 2; white-space: pre-line; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 24px 0 16px; }
.tabs-nav button { background: none; border: none; padding: 10px 18px; font-weight: 700; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs-nav button.active { color: var(--orange); border-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== نظرات ===== */
.review-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review-item .rname { font-weight: 700; font-size: 0.9rem; }
.review-form {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 18px; margin-top: 16px;
}

/* ===== فرم‌ها ===== */
.form-card {
  max-width: 440px; margin: 40px auto;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--glass-shadow);
}
.form-card h1 { text-align: center; font-size: 1.3rem; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none;
  background: rgba(255,255,255,0.4); color: var(--ink);
}
:root[data-theme='dark'] .form-control { background: rgba(255,255,255,0.05); }
.form-control:focus { border-color: var(--orange); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-error { background: rgba(230, 57, 43, 0.12); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 14px; }
.form-hint { text-align: center; font-size: 0.85rem; margin-top: 14px; color: var(--ink-soft); }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* ===== سبد خرید و تسویه‌حساب ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: right; padding: 10px; border-bottom: 2px solid var(--border); font-size: 0.85rem; color: var(--ink-soft); }
.cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-info img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin: 20px 0; }
.summary-box {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 20px; position: sticky; top: 130px; height: fit-content;
  box-shadow: var(--glass-shadow);
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }
.payment-options label { display: flex; align-items: center; gap: 8px; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; cursor: pointer; background: var(--glass-bg); }
.payment-options label:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.badge-soon { background: var(--border); color: var(--ink-soft); font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-pill); margin-right: 6px; }

/* ===== سفارش‌ها ===== */
.order-card {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.order-card .order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.status-pill { padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; }
.status-pending_payment { background: #fff3cd; color: #946200; }
.status-processing { background: #dbe9ff; color: #1a4fa0; }
.status-shipped { background: #e2d9ff; color: #5b2fb8; }
.status-delivered { background: #d5f5e3; color: #1a7a45; }
.status-cancelled { background: #fde2e0; color: var(--danger); }

/* ===== فوتر ===== */
.site-footer {
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  color: var(--ink); margin-top: 50px; padding: 30px 0; text-align: center; font-size: 0.85rem;
}
.site-footer .foot-logo { color: var(--orange); font-weight: 800; margin-bottom: 8px; }

/* ===== حالت خالی ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon { font-size: 3rem; margin-bottom: 10px; }

/* ===== نوار پایین شیشه‌ای (Liquid Glass Bottom Nav) ===== */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--nav-glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--nav-glass-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  max-width: calc(100vw - 24px);
}
.bottom-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  color: var(--nav-icon);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.25s;
}
.bottom-nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.bottom-nav a span { display: none; }
.bottom-nav a.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-fg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.bottom-nav a.active span { display: inline; }
.bottom-nav a:not(.active):hover { background: rgba(255,255,255,0.1); color: #fff; }
.bottom-nav .nav-badge {
  position: absolute; top: 2px; left: 2px;
  background: var(--orange); color: #fff;
  border-radius: 50%; min-width: 15px; height: 15px;
  font-size: 0.6rem; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ===== حالت خالی، متن، فاصله‌ها ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

@media (max-width: 900px) {
  .product-detail, .list-layout, .checkout-layout { grid-template-columns: 1fr; }
  .filters-box { position: static; }
  .header-top { flex-wrap: wrap; border-radius: var(--radius); }
  .search-form { order: 3; max-width: 100%; }
  .summary-box { position: static; }
}
@media (max-width: 480px) {
  .bottom-nav { bottom: 10px; padding: 5px; }
  .bottom-nav a { padding: 10px; }
}

/* ===== صفحات ورود / ثبت‌نام — کارت شیشه‌ای روی عکس شهرهای ایران ===== */
.auth-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #0c0a08;
}
.auth-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.02);
}
.auth-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 4, 3, 0.15) 0%, rgba(5, 4, 3, 0.1) 40%, rgba(8, 6, 5, 0.75) 78%, rgba(6, 5, 4, 0.92) 100%);
}
.auth-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0 0;
}
.auth-logo {
  position: absolute;
  top: 28px;
  right: 24px;
}
.auth-logo img {
  height: 34px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.auth-sheet {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: rgba(15, 12, 10, 0.55);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 14px 26px 34px;
  color: #fff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}
.auth-sheet::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto 20px;
}
.auth-sheet h1 {
  font-size: 1.25rem;
  text-align: center;
  margin: 0 0 6px;
  color: #fff;
}
.auth-sheet .auth-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin: 0 0 22px;
}
.auth-sheet .form-group label { color: rgba(255, 255, 255, 0.85); }
.auth-sheet .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.auth-sheet .form-control::placeholder { color: rgba(255, 255, 255, 0.4); }
.auth-sheet .form-control:focus { border-color: var(--orange); }
.auth-sheet .form-hint { color: rgba(255, 255, 255, 0.65); }
.auth-sheet .form-hint a { color: var(--orange-dark); }
.auth-sheet .form-error {
  background: rgba(255, 91, 76, 0.18);
  color: #ffb3ab;
}
.auth-sheet .btn-primary { box-shadow: 0 6px 20px rgba(242, 96, 12, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

@media (min-width: 761px) {
  .auth-wrap { justify-content: center; padding: 24px; }
  .auth-sheet {
    max-width: 440px;
    border-radius: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 34px 34px 30px;
  }
  .auth-sheet::after { display: none; }
}
