/* =========================================================
   PPRINT SHOPPRINT
   Unified / Refactored Stylesheet
   ========================================================= */

/* =========================================================
   01. ROOT / FONT / RESET
   ========================================================= */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --card-bg: #fff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --danger-color: #ef4444;
  --success-color: #22c55e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 8%);
  --shadow-lg: 0 10px 25px rgb(0 0 0 / 12%);
  --transition: all 0.25s ease;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../../assets/libs/vazirmatn/Vazirmatn[wght].woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    Vazirmatn,
    system-ui,
    -apple-system,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  padding-bottom: 90px;
}

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

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* =========================================================
   02. SHARED LAYOUT
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================================================
   03. HEADER / NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgb(0 0 0 / 3%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* پخش شدن لوگو و دکمه در دو طرف در حالت موبایل */
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border: none;
  background: transparent;
  color: #1f2937;
  font-size: 1.5rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem; /* کاهش فاصله بین تب‌ها (قبلاً بیشتر بود) */
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* کاهش فاصله آیکون و متن داخل هر تب */
  padding: 0.5rem 0.6rem; /* کاهش پدینگ افقی برای جمع‌تر شدن تب‌ها */
  color: var(--text-color, #4b5563);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem; /* کمی بهینه‌تر کردن سایز فونت */
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link i {
  color: #6b7280;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  background: rgb(37 99 235 / 6%);
  color: var(--primary-color);
}

.nav-link:hover i,
.nav-link.active i {
  color: var(--primary-color);
}

.nav-link.active {
  background: rgb(37 99 235 / 8%);
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 3px solid var(--primary-color);
  border-radius: 6px 6px 0 0;
}

/* =========================================================
   04. PAGE TITLE
   ========================================================= */

.page-title-banner {
  margin-bottom: 2rem;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.page-title-banner h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.page-title-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================================
   05. TOOLBAR
   ========================================================= */

.toolbar {
  position: sticky;
  top: 70px;
  z-index: 90;
  margin-bottom: 20px;
  padding: 10px 0;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   06. CATEGORY TABS
   ========================================================= */

.categories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.categories-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-tabs::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
  transition: all 0.2s ease;
  z-index: 2;
}

.scroll-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 5px rgb(0 0 0 / 6%);
  transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgb(59 130 246 / 15%);
}

.tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgb(37 99 235 / 35%);
}

.tab-btn.active i {
  color: #fff;
}

/* =========================================================
   07. SEARCH / TOOLBAR CONTROLS
   ========================================================= */

.toolbar-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
}

.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.search-box-wrap input {
  width: 100%;
  height: 38px;
  padding: 6px 12px 6px 32px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  font-size: 0.85rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-box-wrap input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.search-box-wrap .search-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.btn-toggle-grid {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-grid:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-filter-selected {
  flex: 0 0 auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-selected:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-filter-selected.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn-filter-selected .badge-count {
  padding: 2px 6px;
  border-radius: 12px;
  background: var(--danger-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.btn-filter-selected.active .badge-count {
  background: #fff;
  color: var(--primary-color);
}

/* =========================================================
   08. CATALOG GRID
   ========================================================= */

.cards-grid,
#cardsGrid {
  display: grid;
  gap: 1.25rem;
  direction: rtl;
}

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.cards-grid.grid-1-col {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.cards-grid.grid-2-col {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* =========================================================
   09. CATALOG CARD
   ========================================================= */

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  transition: var(--transition);
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f5f9;
}

.card-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem;
}

.card-title {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-card-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-action:hover {
  background: var(--primary-hover);
}

/* =========================================================
   10. SELECTED CARD
   ========================================================= */

.catalog-card.in-cart {
  border: 2px solid #28a745 !important;
  background: #f8fff9 !important;
  box-shadow: 0 4px 12px rgb(40 167 69 / 20%) !important;
  transform: translateY(-2px);
}

.catalog-card.in-cart .btn-card-action {
  background: #28a745 !important;
  color: #fff !important;
  border-color: #28a745 !important;
}

.catalog-card.in-cart .btn-card-action:hover {
  background: #218838 !important;
}

.in-cart-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 20px;
  background: #28a745;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
}

/* =========================================================
   11. FLOATING CART
   ========================================================= */

.floating-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  width: calc(100% - 40px);
  max-width: 850px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 12px 20px;
  border-radius: 16px;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 30%);
  backdrop-filter: blur(8px);
}

.bar-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
}

.bar-info strong {
  color: #38bdf8;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item i {
  color: #38bdf8;
}

.info-divider {
  width: 1px;
  height: 20px;
  background: #334155;
}

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

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper i {
  position: absolute;
  right: 10px;
  z-index: 2;
  color: #94a3b8;
  pointer-events: none;
}

.select-wrapper select {
  appearance: none;
  padding: 8px 12px 8px 32px;
  border: 1px solid #334155;
  border-radius: 8px;
  outline: none;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-clear {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #334155;
  color: #f8fafc;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-clear:hover {
  background: var(--danger-color);
  color: #fff;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* =========================================================
   12. DRAWER
   ========================================================= */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(0 0 0 / 40%);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease-in-out;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
  font-size: 1rem;
}

.btn-close {
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}

.drawer-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
}

.drawer-preview {
  width: 100%;
  max-height: 200px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f1f5f9;
}

.drawer-preview img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: contain;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  font-size: 0.9rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 8%);
}

/* جایگزین inline-style فعلی customSizeGroup */
#customSizeGroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

.drawer-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.drawer-price strong {
  color: var(--primary-color);
}

.drawer-buttons {
  display: flex;
  width: 100%;
  gap: 0.75rem;
}

.btn-save-item,
.btn-remove-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save-item {
  flex: 2;
  width: 100%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
}

.btn-save-item:hover {
  background: var(--primary-hover);
}

.btn-remove-item {
  flex: 1;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--danger-color);
}

.btn-remove-item:hover {
  background: #fee2e2;
}

/* =========================================================
   13. MODAL
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(4px);
}

.modal-content {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
}

.modal-content h3 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-cancel {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  cursor: pointer;
}

/* =========================================================
   14. IMAGE PREVIEW / LIGHTBOX
   ========================================================= */

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-preview-modal.hidden {
  display: none;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 85%);
  backdrop-filter: blur(8px);
}

.preview-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #1e293b;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 50%);
  animation: scaleUpModal 0.25s ease forwards;
}

@keyframes scaleUpModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.preview-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.preview-close-btn:hover {
  background: var(--danger-color);
}

#previewModalImg {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #0f172a;
}

.preview-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: #1e293b;
  color: #f8fafc;
  text-align: center;
}

.preview-footer h3 {
  margin: 0;
  font-size: 1.1rem;
}

#previewActionBtn {
  width: 100%;
  max-width: 280px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =========================================================
   15. ORDER CARDS / BADGES
   ========================================================= */

.order-card {
  margin-bottom: 15px;
  padding: 15px;
  border-right: 5px solid #ccc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 5%);
}

.order-card.status-pending {
  border-right-color: #fd7e14;
}

.order-card.status-paid {
  border-right-color: #28a745;
}

.order-card.status-processing {
  border-right-color: #007bff;
}

.order-card.status-completed {
  border-right-color: #6f42c1;
}

.order-card.status-canceled {
  border-right-color: #dc3545;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-pending {
  background: #fd7e14;
}

.badge-paid {
  background: #28a745;
}

.badge-processing {
  background: #007bff;
}

.badge-completed {
  background: #6f42c1;
}

.badge-canceled {
  background: #dc3545;
}

/* =========================================================
   16. FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: auto;
  padding: 3rem 1.25rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #f8fafc;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand h3 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.footer-phones {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.phone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
  color: #f1f5f9;
  text-decoration: none;
  transition: all 0.25s ease;
}

.phone-card:last-child {
  grid-column: 1 / -1;
}

.phone-card:hover {
  border-color: var(--primary-color);
  background: rgb(37 99 235 / 15%);
  transform: translateY(-2px);
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgb(37 99 235 / 20%);
  color: #60a5fa;
  font-size: 1rem;
}

.phone-label {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.phone-label span {
  color: #94a3b8;
  font-size: 0.75rem;
}

.phone-number {
  direction: ltr;
  font-family: monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.phone-card > i {
  font-size: 0.8rem;
  opacity: 0.5;
}

.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.social-title {
  color: #94a3b8;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  background: rgb(255 255 255 / 5%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.social-icon-btn:hover {
  background: rgb(255 255 255 / 12%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgb(0 0 0 / 30%);
}

.social-icon-btn:hover img {
  transform: scale(1.1);
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin: 0.5rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 10%),
    transparent
  );
}

.copyright {
  color: #64748b;
  font-size: 0.8rem;
  text-align: center;
}

/* =========================================================
   17. LASER BUTTON
   ========================================================= */

button#btn-pay-laser,
#btn-pay-laser {
  width: 100% !important;
  max-width: 380px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 1.5rem auto 0 !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  font-family: Vazirmatn, IRANSans, "Segoe UI", Tahoma, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgb(37 99 235 / 20%) !important;
}

button#btn-pay-laser:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgb(37 99 235 / 30%) !important;
}

button#btn-pay-laser:active {
  transform: translateY(0) !important;
}

/* =========================================================
   18. EXISTING UTILITY CLASSES
   ========================================================= */

.ms-2 {
  margin-left: 0.5rem;
}

.ms-1 {
  margin-left: 0.25rem;
}

/* =========================================================
   19. RESPONSIVE — TABLET / MOBILE
   ========================================================= */

@media (width <= 992px) {
    .header-container {
    justify-content: flex-start; /* یا space-between بر اساس سلیقه شما برای فاصله بین لوگو و منو */
    gap: 3rem;
  }
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    align-items: stretch;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 10%);
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-nav.active {
    max-height: 450px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }

  .nav-link.active {
    border-right: 4px solid var(--primary-color);
    border-bottom: none;
    border-radius: 4px 2px 2px 4px;
  }
}

@media (width >= 640px) {
  .footer-phones {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 767px) {
  #cardsGrid.grid-2-col,
  .cards-grid.grid-2-col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  #cardsGrid.grid-1-col,
  .cards-grid.grid-1-col {
    grid-template-columns: 1fr !important;
  }

  #cardsGrid.grid-2-col > div,
  #cardsGrid.grid-2-col .catalog-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (width <= 640px) {
  .floating-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .bar-info {
    justify-content: space-between;
  }

  .bar-actions {
    justify-content: space-between;
  }

  .select-wrapper {
    flex: 1;
  }

  .select-wrapper select {
    width: 100%;
  }

  .toolbar-bottom {
    gap: 6px;
  }

  .btn-filter-selected {
    padding: 0 8px;
  }

  .page-title-banner h1 {
    font-size: 1.4rem;
  }
}

@media (width <= 420px) {
  .drawer {
    max-width: 100%;
  }

  .drawer-header,
  .drawer-body,
  .drawer-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .drawer-buttons {
    gap: 0.5rem;
  }

  .btn-save-item,
  .btn-remove-item {
    padding: 0.7rem 0.65rem;
    font-size: 0.85rem;
  }

  .social-links {
    gap: 0.75rem;
  }
}

/* #region Drawer */

/* =========================================================
   DRAWER PRO V2
   Compatible with existing collage.html + JS
   IDs / classes intentionally unchanged
   ========================================================= */

/* ---------- Overlay ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 42%);
  backdrop-filter: blur(3px);
  z-index: 100;
  transition: opacity 0.25s ease;
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg, #fff);
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 10px 0 35px rgb(15 23 42 / 16%);
  border-right: 1px solid rgb(226 232 240 / 90%);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

/* ---------- Header ---------- */
.drawer-header {
  flex: 0 0 auto;
  min-height: 68px;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.drawer-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color, #2563eb);
}

.drawer-header h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.drawer-header h3 i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary-color, #2563eb);
  font-size: 0.9rem;
}

.btn-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  color: var(--text-secondary, #475569);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition, all 0.25s ease);
}

.btn-close:hover {
  color: var(--danger-color, #ef4444);
  background: #fef2f2;
  border-color: #fecaca;
  transform: rotate(4deg);
}

.btn-close:active {
  transform: scale(0.94);
}

/* ---------- Body ---------- */
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.15rem 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.drawer-body::-webkit-scrollbar {
  width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
  background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

/* ---------- Preview ---------- */
.drawer-preview {
  width: 100%;
  height: 190px;
  max-height: 190px;
  margin-bottom: 1.15rem;
  background: linear-gradient(
    45deg,
    #f1f5f9 25%,
    #e2e8f0 25%,
    #e2e8f0 50%,
    #f1f5f9 50%,
    #f1f5f9 75%,
    #e2e8f0 75%
  );
  background-size: 20px 20px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgb(0 0 0 / 5%));
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Form ---------- */
.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 25px;
  margin-bottom: 0.4rem;
  color: var(--text-secondary, #475569);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-group label i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eff6ff;
  color: var(--primary-color, #2563eb);
  font-size: 0.78rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: #fff;
  color: var(--text-primary, #0f172a);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group select {
  cursor: pointer;
  padding-left: 2.3rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
  border-color: #94a3b8;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color, #2563eb);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

/* ---------- Footer / Sticky Action Bar ---------- */
.drawer-footer {
  flex: 0 0 auto;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 -8px 22px rgb(15 23 42 / 7%);
  position: relative;
  z-index: 3;
}

.drawer-buttons {
  display: flex;
  gap: 0.65rem;
  width: 100%;
}

.btn-save-item,
.btn-remove-item {
  min-height: 48px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-save-item {
  flex-grow: 1;
  background: var(--primary-color, #2563eb);
  color: #fff;
  border: none;
  padding: 0.7rem 1rem;
  box-shadow: 0 5px 14px rgb(37 99 235 / 20%);
}

.btn-save-item:hover {
  background: var(--primary-hover, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgb(37 99 235 / 27%);
}

.btn-save-item:active {
  transform: translateY(0);
}

.btn-remove-item {
  background: #fef2f2;
  color: var(--danger-color, #ef4444);
  border: 1px solid #fecaca;
  padding: 0.7rem 0.9rem;
}

.btn-remove-item:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ---------- Mobile ---------- */
@media (width <= 480px) {
  .drawer {
    max-width: 100%;
  }

  .drawer-header {
    min-height: 64px;
    padding: 0.8rem 0.95rem;
  }

  .drawer-body {
    padding: 0.85rem 0.95rem 1rem;
  }

  .drawer-preview {
    height: 175px;
    max-height: 175px;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 0.78rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group select,
  .form-group input,
  .form-group textarea {
    min-height: 48px;
    font-size: 0.88rem;
  }

  .drawer-footer {
    padding: 0.75rem 0.95rem;
  }

  .btn-save-item,
  .btn-remove-item {
    min-height: 50px;
  }
}

/* ---------- Very Small Screens ---------- */
@media (width <= 360px) {
  .drawer-buttons {
    flex-direction: column;
  }

  .btn-remove-item,
  .btn-save-item {
    width: 100% !important;
    flex: none !important;
  }

  .drawer-preview {
    height: 155px;
    max-height: 155px;
  }
}

/* ---------- Accessibility ---------- */
.btn-close:focus-visible,
.btn-save-item:focus-visible,
.btn-remove-item:focus-visible,
.form-group select:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid rgb(37 99 235 / 22%);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer-overlay,
  .btn-close,
  .btn-save-item,
  .btn-remove-item,
  .form-group select,
  .form-group input,
  .form-group textarea {
    transition: none !important;
  }
}

/* #endregion */

/* #region Warning */

/* =========================================================
   CATALOG QUALITY NOTICE
========================================================= */

.catalog-quality-note {
  width: min(760px, 100%);
  margin: 10px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.7;
  text-align: right;
}

.catalog-quality-note i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #2563eb;
  font-size: 0.75rem;
}

.preview-quality-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 8px;
  color: #94a3b8;
  font-size: 0.68rem;
}

.preview-quality-note i {
  font-size: 0.7rem;
}

@media (width <= 767px) {
  .catalog-quality-note {
    margin-top: 8px;
    padding: 6px 8px;
    gap: 6px;
    font-size: 0.61rem;
    line-height: 1.7;
    text-align: right;
  }

  .catalog-quality-note i {
    margin-top: 3px;
    font-size: 0.68rem;
  }
}

/* #endregion */
