@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");

:root {
  --bg-page: #fbf8f3;
  --bg-surface: #ffffff;
  --bg-wood-soft: #f3eadc;
  --bg-wood-warm: #e9d8c0;
  --wood-dark: #382416;
  --wood-primary: #80512f;
  --wood-accent: #a86e3d;
  --wood-light: #d5ab7c;
  --text-main: #2a1e15;
  --text-muted: #756557;
  --border-color: #e8dccb;
  --success-bg: #eaf7ee;
  --success-text: #1b6b38;
  --error-bg: #fdecec;
  --error-text: #9e2323;
  --info-bg: #eef4fb;
  --info-text: #1f538d;
  --warning-bg: #fff6e5;
  --warning-text: #8c5a00;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 18px rgba(56, 36, 22, 0.06);
  --shadow-md: 0 16px 38px rgba(56, 36, 22, 0.12);
  --transition: all 0.25s ease;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* نوار بالای سایت */
.top-strip {
  background: #302015;
  color: #f7efe6;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.top-strip-account {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.top-strip-account a {
  opacity: 0.92;
  transition: var(--transition);
}

.top-strip-account a:hover {
  opacity: 1;
  color: var(--wood-light);
}

.top-strip-account-user {
  max-width: 260px;
  overflow: hidden;
  color: #fff;
  font-weight: 600;
  text-overflow: ellipsis;
}

/* هدر اصلی */
.main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(56, 36, 22, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  min-height: 82px;
  gap: 28px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
}

.header-search {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #faf7f2;
  overflow: hidden;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--wood-primary);
  box-shadow: 0 0 0 3px rgba(128, 81, 47, 0.12);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
}

.header-search button {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  margin: 4px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--wood-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.header-search button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.header-search button:hover {
  background: var(--wood-primary);
}

.nav-row {
  border-top: 1px solid rgba(232, 220, 203, 0.8);
  background: #fff;
}

.nav-row-inner {
  display: flex;
  align-items: center;
  min-height: 54px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wood-dark);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
  font-weight: 600;
}

.nav-link.active {
  box-shadow: inset 0 -3px 0 var(--wood-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--wood-dark);
  transition: var(--transition);
}

.header-icon-btn:hover {
  border-color: var(--border-color);
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
}

.header-icon-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-icon-btn {
  border-color: var(--border-color);
  background: #f8faf8;
}

.cart-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  background: var(--wood-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-wood-soft);
  border: 1px solid var(--border-color);
  color: var(--wood-dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

/* پیام‌ها (Alerts) */
.messages-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: #c2e7cf;
}

.alert-error,
.alert-danger {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: #f6c4c4;
}

.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border-color: #c6dcf5;
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: #f7dfaa;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: inherit;
  padding: 0 4px;
}

/* محتوای اصلی */
.main-content {
  flex: 1;
  padding: 20px 0 64px;
}

.home-page-container {
  max-width: none;
  padding-right: 12px;
  padding-left: 12px;
}

.home-page-container > .section-block {
  max-width: 1600px;
  margin-right: auto;
  margin-left: auto;
}

/* هیرو / بنر مدرن با حس چوب */
.hero-card {
  min-height: 510px;
  background: linear-gradient(135deg, #fffdfa 0%, #f6eee2 58%, #e6ceb0 100%);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 72px 8%;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-card-wood-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(255, 255, 255, 0.7), transparent 38%),
    repeating-linear-gradient(2deg, rgba(88, 52, 27, 0.045) 0 1px, transparent 1px 12px),
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.5) 52%, transparent 72%);
  pointer-events: none;
}

.hero-card-with-image {
  background: #302015;
  border: 0;
}

.hero-background-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card-with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(39, 23, 12, 0.88) 0%, rgba(39, 23, 12, 0.62) 42%, rgba(39, 23, 12, 0.12) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-card .hero-copy {
  max-width: 720px;
  margin-left: auto;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--wood-primary);
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--wood-dark);
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-card-with-image .hero-title,
.hero-card-with-image .hero-subtitle {
  color: #fff;
}

.hero-card-with-image .hero-subtitle {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.83);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-primary-cta {
  min-height: 48px;
  white-space: nowrap;
}

.hero-primary-cta svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
}

.hero-visual img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.wood-placeholder-box {
  height: 310px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.72), transparent 42%),
    repeating-linear-gradient(2deg, rgba(100, 59, 31, 0.055) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #ead7bf, #f5ecdf 54%, #e5ceb0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--wood-dark);
}

.home-category-section {
  max-width: 1600px;
  margin: 28px auto 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-color: var(--wood-light) transparent;
  scrollbar-width: thin;
}

.category-tile {
  flex: 0 0 150px;
  min-width: 150px;
  min-height: 144px;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(232, 220, 203, 0.8);
  border-radius: 20px;
  background: linear-gradient(150deg, #fff, #fcf9f4);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  transition: var(--transition);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--wood-light);
  box-shadow: var(--shadow-md);
  color: var(--wood-primary);
}

.category-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8f2e8, #efe2ce);
  color: var(--wood-primary);
}

.category-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.category-icon .category-vent-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-tile-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.category-empty-hint {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* سکشن‌ها و کارت‌ها */
.section-block {
  margin-top: 52px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.cart-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
}

.cart-item-update-form {
  display: grid;
  width: 100%;
  gap: 8px;
}

.cart-item-size-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cart-item-size-fields label,
.cart-item-quantity-control label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cart-item-size-fields .form-input,
.cart-item-quantity-control .qty-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  font-size: 16px;
}

.cart-item-quantity-control {
  display: flex;
  align-items: end;
  gap: 8px;
}

.cart-item-quantity-control .qty-input {
  width: 68px;
}

.cart-item-quantity-control button {
  min-height: 44px;
}

.order-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  align-items: start;
}

.order-summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.order-summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
}

.order-summary-item > div {
  min-width: 0;
}

.order-summary-item > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cart-row-total {
  color: var(--wood-dark);
  font-weight: 700;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--wood-light);
}

.product-thumb {
  width: 100%;
  height: 195px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-wood-soft);
  margin-bottom: 14px;
}

.product-thumb-empty {
  width: 100%;
  height: 195px;
  border-radius: var(--radius-sm);
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tag-wood {
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 6px;
}

.product-specs-mini {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1rem;
  font-weight: 800;
  color: var(--wood-dark);
}

.price-old {
  font-size: 0.8rem;
  color: #9b8a7d;
  text-decoration: line-through;
  margin-right: 6px;
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--wood-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--wood-dark);
}

.btn-outline {
  background: transparent;
  color: var(--wood-dark);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-wood-soft);
  border-color: var(--wood-primary);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-danger-soft {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: #f3c6c6;
}

.btn-danger-soft:hover {
  background: #fbd5d5;
}

/* فرم‌ها و جداول */
.form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #fffdfb;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--wood-primary);
  box-shadow: 0 0 0 3px rgba(124, 77, 43, 0.12);
}

.form-file {
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  background: var(--bg-wood-soft);
  font-family: inherit;
  font-size: 0.88rem;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  margin-inline-end: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--wood-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--wood-dark);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--wood-primary);
}

.field-error {
  color: var(--error-text);
  font-size: 0.8rem;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data-table th,
table.data-table td {
  padding: 13px 15px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

table.data-table th {
  background: var(--bg-wood-soft);
  color: var(--wood-dark);
  font-weight: 700;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

.order-card-header {
  display: none;
}

.qty-input {
  width: 72px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-family: inherit;
}

/* فوتر */
.main-footer {
  background: var(--wood-dark);
  color: #efe6dc;
  padding: 40px 0 22px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 12px;
}

.footer-brand .footer-title {
  margin-bottom: 0;
}

.footer-logo {
  width: 56px;
  height: 56px;
  padding: 5px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--wood-light);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  opacity: 0.82;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-page-container {
  max-width: none;
  padding-right: 12px;
  padding-left: 12px;
}

.catalog-page {
  max-width: 1600px;
  margin: 0 auto;
}

.catalog-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  width: calc(100% + 24px);
  margin: -20px -12px 0;
  padding: 28px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 55%, rgba(196, 146, 96, 0.24), transparent 34%),
    repeating-linear-gradient(3deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 13px),
    linear-gradient(112deg, #302015, #59391f 58%, #76502f);
  color: #fffaf3;
}

.catalog-hero::before,
.catalog-hero::after {
  content: "";
  position: absolute;
  left: 3%;
  top: -90%;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025), 0 0 0 80px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.catalog-hero::after {
  top: -84%;
  left: 5%;
  width: 460px;
  box-shadow: none;
}

.catalog-hero-content {
  position: relative;
  z-index: 1;
  width: min(1600px, 100%);
  margin: 0 auto;
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 243, 0.75);
  font-size: 0.84rem;
}

.catalog-breadcrumb a:hover {
  color: #fff;
}

.catalog-hero-copy {
  max-width: 800px;
  margin: 48px 0 0 auto;
  text-align: right;
}

.catalog-hero-eyebrow,
.catalog-section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--wood-light);
  font-size: 0.84rem;
  font-weight: 700;
}

.catalog-hero-copy h1 {
  margin: 0 0 10px;
  color: #fffaf3;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
}

.catalog-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 243, 0.78);
  font-size: 1rem;
}

.catalog-hero-mark {
  position: absolute;
  left: 8%;
  top: 50%;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-50%) rotate(-5deg);
}

.catalog-hero-mark svg {
  width: 100px;
  fill: none;
  stroke: rgba(242, 222, 194, 0.9);
  stroke-width: 4;
  stroke-linecap: round;
}

.catalog-page-content {
  max-width: 1600px;
  margin: 38px auto 0;
}

.catalog-section-heading,
.catalog-products-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.catalog-section-heading h2,
.catalog-products-heading h2 {
  margin: 0;
  color: var(--wood-dark);
  font-size: 1.4rem;
  font-weight: 800;
}

.catalog-section-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.catalog-section-heading .catalog-section-eyebrow,
.catalog-products-heading .catalog-section-eyebrow {
  margin-bottom: 3px;
}

.catalog-category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 2px 0 6px;
}

.catalog-category-card {
  min-width: 0;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  color: var(--wood-dark);
  font-size: 0.86rem;
  font-weight: 700;
  transition: var(--transition);
}

.catalog-category-card:hover,
.catalog-category-card.selected:not(.catalog-category-all) {
  border-color: var(--wood-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.catalog-category-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
}

.catalog-category-icon svg,
.catalog-category-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.catalog-category-icon svg {
  fill: currentColor;
}

.catalog-category-icon .catalog-vent-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.catalog-category-all {
  background: var(--wood-dark);
  border-color: var(--wood-dark);
  color: #fffaf3;
}

.catalog-category-all .catalog-category-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--wood-light);
}

.catalog-category-all:hover,
.catalog-category-all.selected {
  background: var(--wood-primary);
  border-color: var(--wood-primary);
  color: #fff;
}

.catalog-category-arrow {
  margin-right: auto;
  font-size: 1.1rem;
}

.catalog-results-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 26px;
}

.catalog-filter-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.catalog-filter-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.catalog-filter-heading h2 {
  margin: 0;
  color: var(--wood-dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.catalog-filter-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
}

.catalog-filter-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.catalog-filter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-filter-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.catalog-filter-field > label,
.catalog-filter-field legend {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-filter-field .form-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background-color: #fcfbf8;
}

.catalog-price-filter {
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-price-filter legend,
.catalog-dimension-filter legend {
  margin-bottom: 10px;
}

.catalog-dimension-filter {
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-price-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.catalog-price-inputs label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.catalog-price-inputs .form-input {
  height: 44px;
  padding: 0 8px;
  text-align: center;
  font-size: 0.8rem;
}

.catalog-price-filter input[type="range"] {
  width: 100%;
  margin: 12px 0 0;
  accent-color: var(--wood-primary);
  cursor: pointer;
}

.catalog-price-range-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.catalog-filter-error {
  margin: -8px 0 0;
  color: var(--error-text);
  font-size: 0.8rem;
}

.catalog-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-filter-actions .btn {
  width: 100%;
  min-height: 50px;
}

.catalog-filter-actions .btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.catalog-filter-reset {
  padding: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.catalog-filter-reset:hover {
  color: var(--wood-primary);
}

.catalog-products-panel {
  min-width: 0;
}

.catalog-products-heading {
  align-items: center;
  min-height: 58px;
}

.catalog-product-count {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-wood-soft);
  color: var(--wood-primary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-product-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.catalog-product-media {
  position: relative;
  overflow: hidden;
  background: #f0e5d6;
}

.catalog-product-image-link {
  display: block;
}

.catalog-product-image,
.catalog-product-placeholder {
  width: 100%;
  aspect-ratio: 1.15;
  display: block;
}

.catalog-product-image {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.catalog-product-card:hover .catalog-product-image {
  transform: scale(1.035);
}

.catalog-product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(ellipse at 70% 22%, rgba(255, 255, 255, 0.75), transparent 36%),
    repeating-linear-gradient(4deg, rgba(95, 57, 31, 0.055) 0 1px, transparent 1px 11px),
    linear-gradient(140deg, #f8f2e8, #e8d5bc);
  color: var(--wood-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.catalog-product-placeholder svg {
  width: 100px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.78;
}

.catalog-stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(128, 81, 47, 0.15);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  color: var(--wood-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.catalog-stock-badge.sold-out {
  color: var(--error-text);
}

.catalog-product-content {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.catalog-product-card .product-title {
  display: block;
  margin-bottom: 7px;
  line-height: 1.6;
}

.catalog-product-description {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.catalog-product-card .product-specs-mini {
  margin-top: 2px;
  line-height: 1.7;
}

.catalog-product-card .price-box {
  margin-top: auto;
  align-items: center;
}

.catalog-add-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
}

.catalog-add-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-empty-state {
  padding: 48px 20px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--bg-surface);
  color: var(--text-muted);
  text-align: center;
}

.catalog-empty-state > span {
  display: block;
  color: var(--wood-primary);
  font-size: 2.5rem;
}

.catalog-empty-state h3 {
  margin: 8px 0;
  color: var(--wood-dark);
}

.catalog-empty-state p {
  margin: 0 0 18px;
}

@media (max-width: 1200px) {
  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .catalog-category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-hero-mark {
    left: 5%;
    width: 128px;
    height: 128px;
  }
  .catalog-results-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filter-panel {
    position: static;
  }
  .hero-card {
    padding: 28px 22px;
  }
  .header-inner {
    grid-template-columns: auto minmax(140px, 1fr) auto;
    gap: 14px;
  }
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .nav-menu {
    gap: 2px;
  }
  .nav-link {
    padding-right: 9px;
    padding-left: 9px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 16px;
    padding-bottom: 48px;
  }
  .catalog-hero {
    min-height: 270px;
  }
  .catalog-hero-copy {
    max-width: 100%;
    margin-top: 36px;
  }
  .catalog-hero-mark {
    left: -3%;
    opacity: 0.35;
  }
  .catalog-page-content {
    margin-top: 28px;
  }
  .catalog-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog-product-content {
    padding: 12px;
  }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
  }
  .brand-box {
    grid-column: 1;
    grid-row: 1;
  }
  .nav-row-inner {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
  }
  .nav-menu {
    position: static;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 0;
  }
  .nav-link {
    width: 100%;
    min-height: 44px;
  }
  .category-strip {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
  .category-tile {
    flex-basis: 145px;
    min-width: 145px;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cart-layout,
  .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .hero-card-with-image {
    min-height: 450px;
    padding: 38px 24px;
  }
  .hero-card-with-image::after {
    background: rgba(39, 23, 12, 0.72);
  }
  .hero-card .hero-copy {
    margin: 0;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-right: 14px;
    padding-left: 14px;
  }
  .form-panel {
    padding: 16px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid > :first-child {
    grid-column: auto;
  }
  .order-summary-item {
    flex-direction: column;
    gap: 4px;
  }
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .cart-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
  }
  .cart-table tr:last-child {
    border-bottom: 0;
  }
  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }
  .cart-table td::before {
    flex: 0 0 auto;
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .cart-table td:first-child {
    display: block;
    padding-top: 0;
  }
  .cart-table td:first-child::before {
    display: none;
  }
  .cart-table td:first-child > div {
    overflow-wrap: anywhere;
  }
  .cart-table td:nth-child(3) form {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .cart-table td:nth-child(3) .cart-item-update-form {
    width: 100%;
    max-width: 100%;
  }
  .cart-table td:last-child form {
    margin-right: auto;
  }
  .catalog-hero {
    min-height: 250px;
    padding: 22px 18px;
  }
  .catalog-hero-mark {
    left: -16%;
    width: 120px;
    height: 120px;
  }
  .catalog-hero-copy h1 {
    font-size: 1.85rem;
  }
  .catalog-section-heading,
  .catalog-products-heading {
    align-items: flex-start;
  }
  .catalog-products-grid {
    grid-template-columns: 1fr;
  }
  .catalog-product-image,
  .catalog-product-placeholder {
    aspect-ratio: 1.4;
  }
  .catalog-filter-panel {
    padding: 16px;
  }
}

/* داشبورد مدیریت */
.dashboard-body {
  background: #f7f4ef;
}

.dashboard-header {
  min-height: 76px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid #e6e8ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-brand,
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--wood-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.dashboard-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 3px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.dashboard-menu-toggle,
.dashboard-menu-close,
.dashboard-overlay {
  display: none;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-nav-group {
  min-width: 0;
}

.dashboard-sidebar-header {
  display: none;
}

.dashboard-brand strong,
.dashboard-brand small {
  display: block;
}

.dashboard-brand strong {
  color: var(--wood-dark);
}

.dashboard-brand small,
.dashboard-user {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.dashboard-layout {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
}

.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 20px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid #e6e8ed;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.dashboard-nav-label {
  padding: 14px 12px 6px;
  color: #9298a3;
  font-size: 0.75rem;
  font-weight: 700;
}

.dashboard-nav-link {
  display: block;
  margin: 3px 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: #505763;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
  background: #f3eadc;
  color: var(--wood-primary);
  font-weight: 700;
}

.dashboard-main {
  min-width: 0;
  padding: 8px 4px 32px;
}

.dashboard-main .section-title {
  font-size: 1.55rem;
}

.dashboard-main .card,
.dashboard-main .form-panel,
.dashboard-settings-section {
  border-color: #e6e8ed;
  box-shadow: 0 5px 18px rgba(37, 45, 59, 0.045);
}

.dashboard-settings {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.dashboard-settings-section {
  padding: 22px;
}

.dashboard-settings-section h2 {
  margin-bottom: 18px;
  color: var(--wood-dark);
  font-size: 1.08rem;
}

.dashboard-collapsible-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  list-style: none;
  cursor: pointer;
}

.dashboard-collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.dashboard-collapsible-section > summary h2 {
  margin: 0;
}

.dashboard-disclosure-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: #fff;
}

.dashboard-disclosure-icon::before,
.dashboard-disclosure-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--wood-primary);
  content: "";
  transform: translate(-50%, -50%);
}

.dashboard-disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.dashboard-collapsible-section[open] .dashboard-disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.dashboard-settings-section[open] > summary {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-settings-section[open] > summary h2 {
  margin: 0;
}

.dashboard-product-section {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 13px;
  background: #fffdfa;
}

.dashboard-product-section[open] > summary {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-confirm-delete-actions {
  width: 100%;
}

.dashboard-confirm-delete-actions .btn {
  min-height: 44px;
}

.dashboard-check-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 4px 0 16px;
}

.dashboard-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--wood-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-product-field {
  align-items: stretch;
}

.dashboard-readonly-value {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--text-muted);
}

.dashboard-field-visibility {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-wood-soft);
  color: var(--wood-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.order-payment-note {
  margin-top: 7px;
  padding: 8px 10px;
  border-right: 3px solid var(--wood-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-wood-soft);
  color: var(--wood-dark);
  font-size: 0.8rem;
  line-height: 1.8;
}

.form-help {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.setting-image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8faf8;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.setting-image-preview img {
  width: 76px;
  height: 64px;
  padding: 4px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.setting-banner-preview {
  flex-direction: column;
  align-items: flex-start;
}

.setting-banner-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .dashboard-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 4px;
  }
  .dashboard-nav-label {
    grid-column: 1 / -1;
    padding-top: 8px;
  }
  .dashboard-nav-link {
    padding: 8px 10px;
  }
}

@media (max-width: 600px) {
  .dashboard-header {
    align-items: flex-start;
    padding: 12px 16px;
  }
  .dashboard-header-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .dashboard-user {
    display: none;
  }
  .dashboard-layout {
    padding: 12px;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.portfolio-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-copy {
  padding: 14px;
}

.portfolio-copy h3 {
  margin-bottom: 4px;
  color: var(--wood-dark);
  font-size: 1rem;
}

.portfolio-copy span,
.portfolio-copy p {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.portfolio-copy p {
  margin-top: 8px;
}

.dashboard-thumbnail {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.dashboard-thumbnail-large {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

.size-input-group {
  flex: 1 1 180px;
}

.product-service-details {
  margin-top: 24px;
}

.portfolio-empty {
  text-align: center;
  color: var(--text-muted);
}

.installation-info-grid {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
}

.dashboard-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-page-number {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: #fff;
  color: var(--wood-dark);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-page-number[aria-current="page"] {
  border-color: var(--wood-primary);
  background: var(--wood-primary);
  color: #fff;
  font-weight: 700;
}

.dashboard-page-ellipsis {
  padding: 0 3px;
}

.payment-review-actions {
  min-width: 330px;
  display: grid;
  gap: 10px;
}

.payment-review-actions form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-review-actions .form-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 10px;
}

.payment-review-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.payment-review-approve button {
  width: 100%;
}

.receipt-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  section,
  .main-content,
  .main-content > .container,
  .home-page-container,
  .home-page-container > section {
    max-width: 100%;
  }

  main {
    overflow-x: hidden;
  }

  .main-content {
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .home-page-container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-card,
  .hero-card-with-image {
    width: 100%;
    min-height: 270px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .hero-title {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }

  .hero-subtitle {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }

  .home-category-section {
    margin-top: 18px;
  }

  .home-page-container .category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .home-page-container .category-all-tile {
    display: none;
  }

  .home-page-container .category-tile {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    gap: 5px;
    padding: 6px 3px;
    border-radius: 13px;
    font-size: 0.66rem;
    line-height: 1.35;
    overflow: hidden;
  }

  .home-page-container .category-tile > span:last-child {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-page-container .category-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
  }

  .home-page-container .category-icon svg {
    width: 27px;
    height: 27px;
  }

  .home-page-container .category-tile-image {
    width: 32px;
    height: 32px;
  }

  .home-page-container > .section-block {
    margin-top: 26px;
  }

  .home-page-container .section-header {
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .home-page-container .section-title {
    font-size: 1.15rem;
  }

  .home-page-container .section-sub {
    font-size: 0.78rem;
  }

  .home-page-container .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-featured-card {
    min-width: 0;
    padding: 9px;
    border-radius: 14px;
  }

  .home-featured-card > a:first-child {
    display: block;
    overflow: hidden;
    border-radius: 9px;
  }

  .home-featured-card .product-thumb,
  .home-featured-card .product-thumb-empty {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
    border-radius: 9px;
    font-size: 0.72rem;
  }

  .home-featured-card .product-meta-row {
    min-width: 0;
    gap: 4px;
    margin: 7px 0 3px;
    font-size: 0.65rem;
  }

  .home-featured-card .product-meta-row > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-featured-card .tag-wood {
    flex: 0 0 auto;
    padding: 1px 6px;
    font-size: 0.6rem;
  }

  .home-featured-card .product-title {
    display: -webkit-box;
    min-height: 2.7em;
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-featured-card .product-specs-mini {
    display: -webkit-box;
    min-height: 1.5em;
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 0.64rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .home-featured-card .price-box {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    padding-top: 7px;
  }

  .home-featured-card .price-box > div {
    min-width: 0;
    overflow: hidden;
  }

  .home-featured-card .price-current {
    display: block;
    overflow: hidden;
    font-size: 0.66rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-featured-card .price-box .form-help {
    display: none;
  }

  .home-featured-card .price-box form {
    flex: 0 0 auto;
  }

  .home-featured-card .price-box .btn {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .nav-row-inner {
    gap: 8px;
  }

  .mobile-menu-btn {
    min-height: 44px;
    padding: 8px 14px;
  }

  .nav-menu {
    display: flex;
    position: static;
    width: 100%;
    max-width: 100%;
    height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: height 260ms ease, opacity 200ms ease, transform 260ms ease;
  }

  .nav-menu.open {
    padding-top: 8px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu > li {
    min-width: 0;
  }

  .nav-menu .nav-link {
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 10px;
  }

  .nav-products-desktop-link {
    display: none;
  }

  .nav-products-accordion-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
  }

  .nav-products-accordion-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 200ms ease;
  }

  .nav-products-accordion-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .nav-submenu {
    height: 0;
    margin: 0 10px;
    padding: 0 10px;
    overflow: hidden;
    border-right: 2px solid var(--wood-light);
    list-style: none;
    transition: height 220ms ease;
  }

  .nav-submenu a {
    display: block;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
  }

  .nav-submenu a:hover {
    background: var(--bg-wood-soft);
    color: var(--wood-primary);
  }
}

@media (max-width: 420px) {
  .home-page-container .category-strip {
    gap: 6px;
  }

  .home-page-container .category-tile {
    font-size: 0.61rem;
  }

  .home-featured-card {
    padding: 8px;
  }

  .home-featured-card .price-current {
    font-size: 0.62rem;
  }
}

@media (min-width: 769px) {
  .nav-products-accordion-toggle,
  .nav-submenu {
    display: none;
  }
}

.receipt-preview-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.receipt-preview-dialog::backdrop {
  background: rgba(31, 20, 12, 0.68);
  backdrop-filter: blur(3px);
}

.receipt-preview-shell {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.receipt-preview-header,
.receipt-preview-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-wood-soft);
}

.receipt-preview-header {
  border-bottom: 1px solid var(--border-color);
}

.receipt-preview-header h2 {
  margin: 3px 0 0;
  color: var(--wood-dark);
  font-size: 1rem;
}

.receipt-preview-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--wood-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.receipt-preview-close:hover {
  border-color: var(--wood-primary);
  background: var(--wood-primary);
  color: #fff;
}

.receipt-preview-frame {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
}

.receipt-preview-footer {
  justify-content: flex-start;
  border-top: 1px solid var(--border-color);
}

.payment-card-number {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px dashed var(--wood-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-wood-soft);
  color: var(--wood-dark);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.payment-amount {
  margin: 12px 0;
}

.payment-confirmed-note {
  color: var(--wood-primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .home-page-container .portfolio-grid {
    display: flex;
    flex-flow: row nowrap;
    gap: 12px;
    max-width: 100%;
    padding: 2px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: rtl;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--wood-light) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .home-page-container .portfolio-card {
    flex: 0 0 min(72vw, 250px);
    min-width: 0;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .home-page-container .portfolio-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .home-page-container .portfolio-copy {
    padding: 10px 11px;
  }

  .home-page-container .portfolio-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-page-container .portfolio-copy span,
  .home-page-container .portfolio-copy p {
    font-size: 0.75rem;
  }

  .home-page-container .portfolio-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.catalog-filter-trigger,
.catalog-filter-backdrop,
.catalog-filter-close {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  section,
  .catalog-page-container,
  .catalog-page,
  .catalog-page-content,
  .catalog-results-layout,
  .catalog-products-panel,
  .catalog-category-strip,
  .catalog-products-grid {
    max-width: 100%;
    min-width: 0;
  }

  main {
    overflow-x: hidden;
  }

  .catalog-page-container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .catalog-hero {
    min-height: 220px;
    padding: 18px 16px;
    margin-top: -12px;
  }

  .catalog-hero-copy {
    margin-top: 22px;
  }

  .catalog-hero-copy h1 {
    margin-bottom: 6px;
    font-size: 1.65rem;
  }

  .catalog-hero-copy p {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .catalog-hero-eyebrow,
  .catalog-section-eyebrow {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .catalog-page-content {
    margin-top: 16px;
  }

  .catalog-section-heading {
    margin-bottom: 10px;
  }

  .catalog-section-heading h2 {
    font-size: 1.08rem;
  }

  .catalog-section-heading p {
    margin-top: 2px;
    font-size: 0.76rem;
  }

  .catalog-category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 2px;
  }

  .catalog-category-card {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 7px 5px;
    border-radius: 13px;
    font-size: 0.68rem;
    line-height: 1.3;
    text-align: center;
  }

  .catalog-category-card > span:nth-child(2) {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-category-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }

  .catalog-category-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .catalog-category-icon svg,
  .catalog-category-icon img {
    width: 22px;
    height: 22px;
  }

  .catalog-category-arrow {
    display: none;
  }

  .catalog-results-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
  }

  .catalog-filter-trigger {
    grid-column: 1 / -1;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--wood-dark);
    box-shadow: var(--shadow-sm);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
  }

  .catalog-filter-trigger svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .catalog-filter-count {
    min-width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--wood-primary);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
  }

  .catalog-filter-backdrop {
    position: fixed;
    z-index: 1000;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(32, 21, 14, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0s linear 260ms;
  }

  .catalog-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  body.catalog-filter-open {
    overflow: hidden;
  }

  .catalog-filter-panel {
    position: fixed;
    z-index: 1001;
    inset-block: 0;
    right: 0;
    left: auto;
    width: min(390px, calc(100vw - 28px));
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 18px 0 0 18px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    transform: translateX(105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 260ms ease, opacity 200ms ease, visibility 0s linear 260ms;
  }

  .catalog-filter-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .catalog-filter-heading {
    position: sticky;
    z-index: 1;
    top: -18px;
    gap: 10px;
    margin: -18px -18px 14px;
    padding: 12px 18px;
    background: var(--bg-surface);
  }

  .catalog-filter-heading h2 {
    flex: 1;
    font-size: 1rem;
  }

  .catalog-filter-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
  }

  .catalog-filter-icon svg {
    width: 21px;
    height: 21px;
  }

  .catalog-filter-close {
    width: 40px;
    height: 40px;
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-wood-soft);
    color: var(--wood-dark);
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .catalog-filter-form {
    gap: 14px;
  }

  .catalog-filter-field {
    gap: 6px;
  }

  .catalog-filter-field > label,
  .catalog-filter-field legend {
    font-size: 0.82rem;
  }

  .catalog-filter-field .form-input {
    height: 44px;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.82rem;
  }

  .catalog-price-inputs {
    gap: 6px;
  }

  .catalog-price-inputs label {
    gap: 4px;
    font-size: 0.66rem;
  }

  .catalog-price-inputs .form-input {
    min-width: 0;
    height: 42px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 0.76rem;
  }

  .catalog-price-range-label {
    font-size: 0.66rem;
  }

  .catalog-filter-actions {
    gap: 8px;
  }

  .catalog-filter-actions .btn {
    min-height: 46px;
  }

  .catalog-products-heading {
    min-height: 0;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .catalog-products-heading h2 {
    font-size: 1.08rem;
  }

  .catalog-product-count {
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-product-card {
    min-width: 0;
    border-radius: 14px;
  }

  .catalog-product-image,
  .catalog-product-placeholder {
    aspect-ratio: 4 / 3;
  }

  .catalog-product-placeholder {
    gap: 5px;
    padding: 6px;
    font-size: 0.68rem;
    text-align: center;
  }

  .catalog-product-placeholder svg {
    width: min(68%, 76px);
  }

  .catalog-stock-badge {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 0.58rem;
  }

  .catalog-product-content {
    min-height: 0;
    padding: 9px;
  }

  .catalog-product-card .product-meta-row {
    min-width: 0;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .catalog-product-card .product-meta-row > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-product-card .tag-wood {
    flex: 0 0 auto;
    padding: 1px 5px;
    font-size: 0.58rem;
  }

  .catalog-product-card .product-title {
    display: -webkit-box;
    min-height: 2.7em;
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-product-description {
    display: -webkit-box;
    margin-bottom: 5px;
    overflow: hidden;
    font-size: 0.64rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-product-card .product-specs-mini {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 0.6rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .catalog-product-card .price-box {
    flex-wrap: nowrap;
    gap: 4px;
    padding-top: 6px;
  }

  .catalog-product-card .price-box > div {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  .catalog-product-card .price-current {
    display: block;
    overflow: hidden;
    font-size: 0.64rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-product-card .price-box .form-help {
    display: none;
  }

  .catalog-product-card .catalog-add-button {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .catalog-product-card .catalog-add-button svg {
    width: 18px;
    height: 18px;
  }

  .catalog-product-card .price-box > a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 4px 6px;
    font-size: 0.58rem;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .catalog-category-card {
    min-height: 68px;
    gap: 4px;
    padding: 6px 3px;
    font-size: 0.62rem;
  }

  .catalog-products-grid {
    gap: 8px;
  }

  .catalog-product-content {
    padding: 8px;
  }

  .catalog-product-card .price-current {
    font-size: 0.58rem;
  }
}

.footer-designer-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fffaf3;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: var(--transition);
}

.footer-designer-link:hover {
  border-color: var(--wood-light);
  background: var(--wood-primary);
  color: #fff;
}

.footer-designer-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (max-width: 768px) {
  .top-strip {
    padding: 5px 0;
    font-size: 0.72rem;
  }

  .top-strip-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .top-strip-inner > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-strip-account {
    flex: 0 0 auto;
    gap: 5px;
    font-size: 0.7rem;
  }

  .top-strip-account-user {
    max-width: 92px;
  }

  .header-inner {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-box {
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 4px;
  }

  .header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .header-icon-btn svg {
    width: 21px;
    height: 21px;
  }

  .header-search {
    height: 42px;
    border-radius: 12px;
  }

  .nav-row-inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .catalog-page-container {
    width: 100%;
  }

  .catalog-page-container .catalog-page {
    width: 100%;
    max-width: none;
  }

  .catalog-page-container .catalog-hero {
    width: calc(100% + 24px);
    max-width: none;
    margin-right: -12px;
    margin-left: -12px;
  }

  .main-footer {
    padding: 28px 0 18px;
  }

  .footer-grid {
    gap: 18px;
    padding-bottom: 18px;
  }

  .footer-bottom {
    justify-content: center;
    gap: 8px 12px;
    padding-top: 14px;
    text-align: center;
  }

  .footer-designer-link {
    min-height: 42px;
    margin-top: 2px;
  }
}

@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .my-orders-table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  table.data-table.my-orders-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    font-size: 0.88rem;
  }

  .my-orders-table thead {
    display: none;
  }

  .my-orders-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .my-orders-table tbody tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }

  .my-orders-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px dashed var(--border-color);
    text-align: right;
  }

  .my-orders-table tbody td::before {
    flex: 0 1 43%;
    min-width: 0;
    color: var(--text-muted);
    content: attr(data-label);
  }

  .my-orders-table .order-code-cell {
    padding-top: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .my-orders-table .order-code-cell > strong {
    display: none;
  }

  .my-orders-table .order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .order-card-code,
  .order-card-value {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .order-card-code {
    color: var(--wood-dark);
    font-size: 0.95rem;
  }

  .order-status-badge {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-wood-soft);
    color: var(--wood-primary);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .my-orders-table .order-status-cell {
    display: none;
  }

  .my-orders-table .order-total-cell .order-card-value {
    color: var(--wood-dark);
    font-weight: 800;
  }

  .my-orders-table .order-action-cell {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .my-orders-table .order-action-cell::before {
    align-self: center;
  }

  .my-orders-table .order-action-cell .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .main-header {
    max-width: 100%;
    overflow-x: hidden;
  }

  .top-strip {
    padding: 4px 0;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .top-strip-inner {
    gap: 7px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .top-strip-inner > span {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-strip-account {
    flex: 0 0 auto;
    gap: 4px;
    font-size: 0.67rem;
  }

  .top-strip-account-user {
    max-width: clamp(70px, 22vw, 94px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-inner {
    min-width: 0;
    gap: 8px;
    padding: 9px 12px;
  }

  .brand-box {
    min-width: 0;
    gap: 7px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-name {
    min-width: 0;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 5px;
  }

  .header-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }

  .header-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .header-search {
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(56, 36, 22, 0.04);
  }

  .header-search input {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.86rem;
  }

  .header-search button {
    width: 38px;
    min-width: 38px;
    border-radius: 9px;
  }

  .nav-row {
    border-top-color: rgba(232, 220, 203, 0.7);
    background: transparent;
  }

  .nav-row-inner {
    min-width: 0;
    gap: 8px;
    padding: 8px 12px;
  }

  .mobile-menu-btn {
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .mobile-menu-btn[aria-expanded="true"] {
    border-color: var(--wood-primary);
    background: var(--wood-primary);
    color: #fff;
  }

  .nav-menu {
    min-width: 0;
    gap: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    transition: height 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav-menu.open {
    padding: 7px;
    border-color: var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }

  .nav-menu > li + li {
    border-top: 1px solid rgba(232, 220, 203, 0.7);
  }

  .nav-menu .nav-link {
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }

  .nav-menu .nav-link.active,
  .nav-menu .nav-link:hover {
    background: var(--bg-wood-soft);
    color: var(--wood-primary);
    box-shadow: none;
  }

  .nav-menu .nav-products-accordion-toggle {
    font-weight: 700;
  }

  .nav-menu .nav-products-accordion-toggle[aria-expanded="true"] {
    background: var(--bg-wood-soft);
    color: var(--wood-primary);
  }

  .nav-submenu {
    margin: 0 10px 6px;
    padding: 0 8px;
    border-right: 2px solid var(--wood-light);
    border-radius: 0 10px 10px 0;
    background: #fffdfa;
  }

  .nav-submenu a {
    padding: 7px 9px;
    overflow-wrap: anywhere;
  }

  .portfolio-grid.portfolio-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-card {
    min-width: 0;
    border-radius: 12px;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-copy {
    min-width: 0;
    padding: 8px;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-copy h2 {
    display: -webkit-box;
    margin-bottom: 3px;
    overflow: hidden;
    color: var(--wood-dark);
    font-size: 0.76rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-copy span,
  .portfolio-grid.portfolio-page-grid .portfolio-copy p {
    min-width: 0;
    font-size: 0.68rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  .portfolio-grid.portfolio-page-grid {
    gap: 8px;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-copy {
    padding: 7px;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-copy h2 {
    font-size: 0.72rem;
  }
}

.portfolio-grid.portfolio-page-grid .portfolio-card {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.portfolio-grid.portfolio-page-grid .portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--wood-light);
  box-shadow: var(--shadow-md);
}

.portfolio-grid.portfolio-page-grid .portfolio-card:focus-visible {
  outline: 3px solid var(--wood-accent);
  outline-offset: 3px;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: 24px;
  background: #29231f;
  color: #fff8f0;
  box-shadow: 0 28px 90px rgba(13, 8, 4, 0.42);
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.portfolio-lightbox::-webkit-scrollbar {
  display: none;
}

.portfolio-lightbox[open] {
  animation: portfolio-lightbox-enter 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.portfolio-lightbox.is-closing {
  animation: portfolio-lightbox-leave 180ms ease-in both;
}

.portfolio-lightbox::backdrop {
  background: rgba(15, 10, 6, 0.72);
  backdrop-filter: blur(8px);
  animation: portfolio-backdrop-in 260ms ease-out both;
}

.portfolio-lightbox.is-closing::backdrop {
  animation: portfolio-backdrop-out 180ms ease-in both;
}

.portfolio-lightbox-frame {
  display: flex;
  width: 100%;
  max-height: calc(100dvh - 54px);
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(213, 171, 124, 0.36) transparent;
  scrollbar-width: thin;
}

.portfolio-lightbox-stage {
  position: relative;
  display: flex;
  width: calc(100% - 4px);
  height: min(58dvh, 580px);
  min-height: 180px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 2px auto 0;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120, 78, 45, 0.22), transparent 68%),
    #211b17;
}

.portfolio-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 0;
}

.portfolio-lightbox-control {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 248, 238, 0.2);
  border-radius: 50%;
  background: rgba(31, 25, 21, 0.58);
  color: #fff8f0;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-lightbox-control[hidden] {
  display: none;
}

.portfolio-lightbox-control:hover {
  transform: scale(1.05);
  border-color: rgba(255, 248, 238, 0.42);
  background: rgba(84, 67, 55, 0.88);
}

.portfolio-lightbox-control:active {
  transform: scale(0.96);
}

.portfolio-lightbox-control:focus-visible {
  outline: 2px solid #f3d4ad;
  outline-offset: 3px;
}

.portfolio-lightbox-close {
  top: 12px;
  right: 12px;
  font-size: 1.35rem;
}

.portfolio-lightbox-close span {
  display: block;
  font-weight: 300;
  transform: translateY(-1px);
}

.portfolio-lightbox-prev,
.portfolio-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.portfolio-lightbox-prev {
  right: 12px;
}

.portfolio-lightbox-next {
  left: 12px;
}

.portfolio-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.portfolio-lightbox-details {
  min-width: 0;
  flex: 0 0 auto;
  padding: 18px 22px 22px;
  color: #f7efe6;
  overscroll-behavior: contain;
}

.portfolio-lightbox-heading {
  min-width: 0;
  margin-top: 6px;
}

.portfolio-lightbox-eyebrow {
  color: #d9b891;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.portfolio-lightbox-heading h2 {
  min-width: 0;
  margin: 0;
  color: #fff8f0;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.portfolio-lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.portfolio-lightbox-meta:empty {
  display: none;
}

.portfolio-lightbox-meta span {
  padding: 3px 10px;
  border: 1px solid rgba(213, 171, 124, 0.3);
  border-radius: 999px;
  background: rgba(213, 171, 124, 0.1);
  color: #ead4bb;
  font-size: 0.78rem;
}

.portfolio-lightbox-description {
  margin-top: 12px;
  color: rgba(255, 248, 240, 0.86);
  font-size: 0.96rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.portfolio-lightbox-description:empty {
  display: none;
}

body.portfolio-lightbox-open {
  overflow: hidden;
  overflow-x: hidden;
}

@keyframes portfolio-lightbox-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes portfolio-lightbox-leave {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes portfolio-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes portfolio-backdrop-out {
  to {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .portfolio-lightbox {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 8px;
    border-radius: 20px;
  }

  .portfolio-lightbox-frame {
    max-height: calc(100dvh - 50px);
  }

  .portfolio-lightbox-stage {
    width: 100%;
    height: min(52dvh, 500px);
    min-height: 160px;
    border-radius: 14px;
  }

  .portfolio-lightbox-details {
    padding: 16px 10px 18px;
  }

  .portfolio-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .portfolio-lightbox-prev {
    right: 10px;
  }

  .portfolio-lightbox-next {
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-lightbox,
  .portfolio-lightbox::backdrop {
    animation-duration: 1ms;
  }

  .portfolio-grid.portfolio-page-grid .portfolio-card,
  .portfolio-lightbox-control {
    transition-duration: 1ms;
  }
}

@media (max-width: 768px) {
  .about-image-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-html,
  .dashboard-body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-body {
    min-width: 0;
  }

  .dashboard-body form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-body *,
  .dashboard-body *::before,
  .dashboard-body *::after {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px auto;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 8px 12px;
  }

  .dashboard-menu-toggle {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-wood-soft);
    color: var(--wood-dark);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
  }

  .dashboard-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .dashboard-brand {
    min-width: 0;
    gap: 8px;
  }

  .dashboard-brand-logo,
  .dashboard-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .dashboard-brand strong {
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-brand small {
    font-size: 0.68rem;
  }

  .dashboard-header-actions {
    gap: 5px;
    justify-content: flex-start;
  }

  .dashboard-user {
    display: none;
  }

  .dashboard-header-actions .btn {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .dashboard-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 14px;
  }

  .dashboard-sidebar {
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: min(340px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0 16px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid var(--border-color);
    border-radius: 0 0 0 18px;
    background: #fffdfa;
    box-shadow: -16px 0 50px rgba(37, 24, 14, 0.18);
    transform: translateX(105%);
    transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
    pointer-events: none;
    overscroll-behavior: contain;
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .dashboard-sidebar-header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -16px 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #fffdfa;
    color: var(--wood-dark);
  }

  .dashboard-menu-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-wood-soft);
    color: var(--wood-dark);
    font: inherit;
    font-size: 1.45rem;
    cursor: pointer;
  }

  .dashboard-nav {
    gap: 12px;
  }

  .dashboard-nav-label {
    padding: 12px 10px 5px;
    color: var(--text-muted);
  }

  .dashboard-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 3px 0;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .dashboard-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(26, 18, 12, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(5px);
    transition: opacity 240ms ease, visibility 240ms ease;
  }

  .dashboard-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.dashboard-menu-open {
    overflow: hidden;
  }

  .dashboard-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 0 24px;
  }

  .dashboard-main .section-header {
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .dashboard-main .section-header > * {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-main .section-title {
    font-size: 1.25rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .dashboard-main .section-sub {
    font-size: 0.86rem;
    line-height: 1.8;
  }

  .dashboard-main .section-header .btn {
    max-width: 100%;
    white-space: normal;
  }

  .dashboard-main .grid-2,
  .dashboard-main .grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .dashboard-main .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-main .card,
  .dashboard-main .form-panel,
  .dashboard-settings-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  .dashboard-settings {
    gap: 12px;
  }

  .dashboard-settings-section h2 {
    margin-bottom: 14px;
  }

  .dashboard-settings-section[open] > summary {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .dashboard-settings-section[open] > summary h2 {
    margin: 0;
    font-size: 0.98rem;
  }

  .dashboard-product-section {
    padding: 13px;
  }

  .dashboard-collapsible-section > summary {
    min-height: 44px;
    font-size: 0.94rem;
  }

  .dashboard-form-actions {
    position: sticky;
    z-index: 5;
    bottom: 8px;
    margin: 12px -16px -16px;
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 253, 250, 0.94);
    backdrop-filter: blur(8px);
  }

  .dashboard-form-actions .btn {
    flex: 1 1 140px;
  }

  .dashboard-confirm-delete-actions {
    flex-direction: column;
  }

  .dashboard-confirm-delete-actions .btn {
    width: 100%;
  }

  .dashboard-body input:not([type="checkbox"]):not([type="radio"]),
  .dashboard-body select,
  .dashboard-body textarea,
  .dashboard-body .form-input,
  .dashboard-body .form-file {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  .dashboard-body textarea {
    min-height: 112px;
  }

  .dashboard-body input[type="checkbox"],
  .dashboard-body input[type="radio"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .dashboard-body .form-group {
    min-width: 0;
    margin-bottom: 14px;
  }

  .dashboard-body .form-label {
    font-size: 0.92rem;
  }

  .dashboard-body .btn {
    min-height: 44px;
  }

  .dashboard-body .btn-sm {
    min-height: 44px;
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .dashboard-check-field {
    align-items: flex-start;
  }

  .dashboard-check-label {
    min-height: 44px;
    align-items: center;
    font-size: 0.88rem;
  }

  .dashboard-field-visibility {
    min-height: 44px;
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .dashboard-main .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-main table.data-table {
    display: block;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
  }

  .dashboard-main table.data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .dashboard-main table.data-table tbody {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-main table.data-table tbody tr {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .dashboard-main table.data-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border-color);
  }

  .dashboard-main table.data-table td {
    display: grid !important;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(232, 220, 203, 0.72);
    text-align: right;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .dashboard-main table.data-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .dashboard-main table.data-table td[colspan] {
    display: block !important;
    padding: 12px 0;
    border-bottom: 0;
    text-align: center;
  }

  .dashboard-main table.data-table td[colspan]::before {
    content: none;
  }

  .dashboard-main table.data-table td > * {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-main table.data-table td a,
  .dashboard-main table.data-table td button {
    max-width: 100%;
  }

  .payment-review-actions {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .payment-review-actions form {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .payment-review-actions .form-input {
    min-width: 100%;
  }

  .payment-review-actions button {
    width: 100%;
    white-space: normal;
  }

  .receipt-file-actions {
    flex-wrap: wrap;
    white-space: normal;
  }

  .dashboard-message-card {
    text-align: right;
  }

  .dashboard-message-head,
  .dashboard-message-actions {
    width: 100%;
    min-width: 0;
    align-items: flex-start !important;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: right;
  }

  .dashboard-message-actions form {
    max-width: 100%;
  }

  .dashboard-message-details {
    margin-top: 10px;
  }

  .dashboard-message-details summary {
    width: fit-content;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-wood-soft);
    color: var(--wood-dark);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
  }

  .dashboard-message-details p {
    margin-top: 10px;
    white-space: pre-line;
  }

  .pagination {
    gap: 8px;
    margin: 16px 0;
    font-size: 0.82rem;
  }

  .pagination > .btn {
    min-width: 96px;
  }

  .dashboard-page-number {
    min-width: 44px;
    min-height: 44px;
  }

  .receipt-preview-dialog {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    max-width: none;
    max-height: none;
    border-radius: 16px;
  }

  .receipt-preview-header,
  .receipt-preview-footer {
    padding: 12px;
  }

  .receipt-preview-header h2 {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .dashboard-header {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .dashboard-header-actions {
    grid-column: 1 / -1;
  }
}