/* ==========================================================================
   ArcSys Design System — main.css
   Custom component classes that work alongside Tailwind CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --arcsys-link: #f59e0b;
  --arcsys-link-hover: #fbbf24;
  --arcsys-brand: #f59e0b;
  --arcsys-brand-text: #171717;
  --arcsys-bg-dark: #0a0a0a;
  --arcsys-bg-card: #171717;
  --arcsys-border: rgba(255, 255, 255, 0.1);
  --arcsys-border-hover: rgba(245, 158, 11, 0.3);
  --shimmer-from: rgba(255, 255, 255, 0.03);
  --shimmer-via: rgba(255, 255, 255, 0.08);
  --shimmer-to: rgba(255, 255, 255, 0.03);
}

/* --------------------------------------------------------------------------
   CSS Reset (Preflight) — matches Tailwind's built-in reset
   Ensures consistent styling even when Tailwind CDN fails to load
   or when using a compiled Tailwind build without @tailwind base.
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

/* Remove default margins/padding on all elements */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* RTL logical properties */
[dir='rtl'] body {
  text-align: right;
}

/* Reset headings — remove default margins & font-weight */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

/* Reset paragraphs */
p {
  margin: 0;
}

/* Reset links */
a {
  color: inherit;
  text-decoration: inherit;
  background-color: transparent;
}

/* Reset lists — remove bullets and default margins/padding */
ul, ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Reset images — prevent overflow */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}

/* Reset images to inline for icon usage */
img[style*="font-size"], 
.iconify {
  display: inline-block;
}

/* Reset form elements */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

/* Reset buttons */
button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

/* Reset fields */
fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

legend {
  padding: 0;
}

/* Reset textareas */
textarea {
  resize: vertical;
}

/* Reset inputs */
input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: rgba(255, 255, 255, 0.4);
}

/* Reset tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  text-indent: 0;
}

/* Reset hr */
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/* Remove default summary marker */
summary {
  display: list-item;
}

/* Remove default blockquote styling */
blockquote, dl, dd {
  margin: 0;
}

/* Remove animations for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   WordPress-Specific Resets
   -------------------------------------------------------------------------- */

/* Reset WordPress captions */
.wp-caption,
.wp-caption-text,
.gallery-caption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
}

/* Reset WordPress gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Reset WordPress alignment classes */
.alignleft {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

[dir='rtl'] .alignleft {
  float: right;
  margin-left: 1em;
  margin-right: 0;
}

.alignright {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

[dir='rtl'] .alignright {
  float: left;
  margin-right: 1em;
  margin-left: 0;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Reset WordPress pagination */
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-links .page-numbers:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-links .page-numbers.current {
  background: #f59e0b;
  color: #171717;
  border-color: #f59e0b;
  font-weight: 600;
}

.nav-links .page-numbers.dots {
  background: transparent;
  border-color: transparent;
}

/* Reset WP pagination list output */
.nav-links ul,
.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

/* Reset screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Reset WooCommerce specific elements */
.woocommerce .woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.woocommerce .woocommerce-breadcrumb a {
  color: #f59e0b;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: #fbbf24;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce .quantity .qty {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  text-align: center;
  width: 60px;
}

/* Remove WooCommerce default borders and backgrounds */
.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
  border-radius: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  background: transparent !important;
}

::selection {
  background-color: #f59e0b;
  color: #171717;
}

::-moz-selection {
  background-color: #f59e0b;
  color: #171717;
}

/* --------------------------------------------------------------------------
   Link Color Strategy
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   1. Swiss Checkbox — `.swiss-check`
   -------------------------------------------------------------------------- */
.swiss-check {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

.swiss-check:checked,
.swiss-check.checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

.swiss-check:checked::after,
.swiss-check.checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  border: solid #171717;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.swiss-check:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.5);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Swiss Input — `.swiss-input`
   -------------------------------------------------------------------------- */
.swiss-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.swiss-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.swiss-input:focus {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5);
}

.swiss-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   3. Swiss Select — `.swiss-select`
   -------------------------------------------------------------------------- */
.swiss-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

[dir='rtl'] .swiss-select {
  padding: 14px 16px 14px 40px;
  background-position: left 14px center;
}

.swiss-select:focus {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5);
}

.swiss-select option {
  background: #171717;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. ArcSys Badge — `.arcsys-badge`
   -------------------------------------------------------------------------- */
.arcsys-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.arcsys-badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.arcsys-badge--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.arcsys-badge--green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.arcsys-badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.arcsys-badge--neutral {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   5. ArcSys Table — `.arcsys-table`
   -------------------------------------------------------------------------- */
.arcsys-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.arcsys-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.arcsys-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[dir='rtl'] .arcsys-table th {
  text-align: right;
}

.arcsys-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.arcsys-table tbody tr {
  transition: background-color 0.15s ease;
}

.arcsys-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   5b. Product Card Quick Add
   -------------------------------------------------------------------------- */
.quick-add {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.product-card:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. ArcSys Button — `.arcsys-btn`
   -------------------------------------------------------------------------- */
.arcsys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.arcsys-btn--primary {
  background: #f59e0b;
  color: #171717;
}

.arcsys-btn--primary:hover {
  background: #fbbf24;
}

.arcsys-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.arcsys-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.arcsys-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.arcsys-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.arcsys-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

.arcsys-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.arcsys-btn--sm {
  padding: 8px 16px;
  font-size: 11px;
}

.arcsys-btn--lg {
  padding: 16px 32px;
  font-size: 14px;
}

.arcsys-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. ArcSys Nav Item — `.arcsys-nav-item`
   -------------------------------------------------------------------------- */
.arcsys-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}

[dir='rtl'] .arcsys-nav-item {
  text-align: right;
}

.arcsys-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.arcsys-nav-item--active {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.arcsys-nav-item--active:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* --------------------------------------------------------------------------
   8. ArcSys Loading — `.arcsys-loading`
   -------------------------------------------------------------------------- */
.arcsys-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   9. Spinner — `.spinner`
   -------------------------------------------------------------------------- */
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #f59e0b;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-brand {
  border-top-color: #f59e0b;
}

/* --------------------------------------------------------------------------
   10. Skeleton — `.skeleton`
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--shimmer-from) 25%,
    var(--shimmer-via) 50%,
    var(--shimmer-to) 75%
  );
  background-size: 200% 100%;
  border-radius: 12px;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   11. Toast — `.toast`
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 60;
  animation: slideIn 0.3s ease-out;
  max-width: 400px;
}

[dir='rtl'] .toast {
  right: auto;
  left: 24px;
}

.toast-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.toast-info {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   12. Fade Up — `.fade-up`
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   13. Product Card — `.product-card`
   -------------------------------------------------------------------------- */
.product-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 16px;
}

.product-card__title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
}

.product-card__price--old {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  margin-inline-start: 8px;
}

/* --------------------------------------------------------------------------
   14. Category Cell — `.cat-cell`
   -------------------------------------------------------------------------- */
.cat-cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  aspect-ratio: 4 / 3;
}

.cat-cell:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.cat-cell__image {
  position: absolute;
  inset: 0;
}

.cat-cell__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-cell:hover .cat-cell__image img {
  transform: scale(1.08);
}

.cat-cell__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.cat-cell__name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* --------------------------------------------------------------------------
   15. On Sale Badge — `.onsale`
   -------------------------------------------------------------------------- */
.onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  z-index: 2;
  line-height: 1;
}

[dir='rtl'] .onsale {
  left: auto;
  right: 12px;
}

/* --------------------------------------------------------------------------
   16. Out of Stock Badge — `.out-of-stock-badge`
   -------------------------------------------------------------------------- */
.out-of-stock-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   17. Brand Marquee — `.brand-marquee`
   -------------------------------------------------------------------------- */
.brand-marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.brand-marquee__track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   18. Megamenu Panel — `.megamenu-panel`
   -------------------------------------------------------------------------- */
.megamenu-panel {
  position: absolute;
  width: 600px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 24px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.megamenu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. Mobile Filters — `.mobile-filters`
   -------------------------------------------------------------------------- */
.mobile-filters {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: #171717;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

[dir='rtl'] .mobile-filters {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.mobile-filters.is-open {
  transform: translateX(0);
}

[dir='rtl'] .mobile-filters.is-open {
  transform: translateX(0);
}

.mobile-filters__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 59;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-filters__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   20. Mobile Menu — `.mobile-menu`
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: #171717;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

[dir='rtl'] .mobile-menu {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

[dir='rtl'] .mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 59;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   21. Mini Cart — `.mini-cart`
   -------------------------------------------------------------------------- */
.mini-cart {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 384px;
  background: #171717;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .mini-cart {
    width: 384px;
  }
}

[dir='rtl'] .mini-cart {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.mini-cart.is-open {
  transform: translateX(0);
}

[dir='rtl'] .mini-cart.is-open {
  transform: translateX(0);
}

.mini-cart__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 59;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mini-cart__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mini-cart__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.mini-cart__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   22. Skeleton Card — `.skeleton-card`
   -------------------------------------------------------------------------- */
.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-card__image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    90deg,
    var(--shimmer-from) 25%,
    var(--shimmer-via) 50%,
    var(--shimmer-to) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-card__line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--shimmer-from) 25%,
    var(--shimmer-via) 50%,
    var(--shimmer-to) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-card__line--title {
  width: 75%;
  height: 16px;
}

.skeleton-card__line--price {
  width: 40%;
  height: 18px;
}

.skeleton-card__line--short {
  width: 55%;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

[dir='rtl'] .brand-marquee__track {
  animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   Utility Animations (apply via class)
   -------------------------------------------------------------------------- */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
  animation: shimmer 1.5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Mega Menu - CSS hover
   -------------------------------------------------------------------------- */
.mega-menu { opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s ease; }
.mega-trigger:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Animation Keyframes (from HTML reference)
   -------------------------------------------------------------------------- */
@keyframes floatAnim { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-anim { animation: floatAnim 4s ease-in-out infinite; }
@keyframes slideInUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.slide-in { animation: slideInUp 0.5s ease forwards; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 20px rgba(245,158,11,0.15); } 50% { box-shadow: 0 0 40px rgba(245,158,11,0.3); } }
.glow-pulse { animation: pulseGlow 3s ease-in-out infinite; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }
.animate-marquee { animation: marqueeScroll 25s linear infinite; }

/* --------------------------------------------------------------------------
   Product Card Hover Effects
   -------------------------------------------------------------------------- */
.product-card:hover .product-img { transform: scale(1.08); }
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add { opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }

/* --------------------------------------------------------------------------
   Category Card Hover Effects
   -------------------------------------------------------------------------- */
.cat-card:hover .cat-img { transform: scale(1.1); }
.cat-img { transition: transform 0.5s ease; }
.cat-card:hover .cat-overlay { background: linear-gradient(to top, rgba(10,10,10,0.9), rgba(10,10,10,0.3)); }
.cat-overlay { transition: background 0.4s ease; }

/* --------------------------------------------------------------------------
   Blog Card Hover Effects
   -------------------------------------------------------------------------- */
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-img { transition: transform 0.5s ease; }

/* --------------------------------------------------------------------------
   Product Gallery — Zoom, Lightbox, Tabs
   -------------------------------------------------------------------------- */

/* Gallery zoom */
.zoom-container { overflow: hidden; cursor: zoom-in; }
.zoom-container:hover .zoom-img { transform: scale(1.6); }
.zoom-img { transition: transform 0.3s ease; transform-origin: var(--zoom-x, center) var(--zoom-y, center); }

/* Thumbnail active state */
.thumb-active { border-color: #f59e0b !important; opacity: 1 !important; }

/* Tab active state (border-bottom style) */
.tab-active { color: #f59e0b; border-color: #f59e0b; }

/* Quantity button press */
.qty-btn:active { transform: scale(0.9); }

/* Lightbox */
.lightbox { cursor: zoom-out; }

/* Review rating bars */
.review-bar { transition: width 0.6s ease; }

/* Hide WC rating dropdown in review modal — we use custom stars */
.review-modal-form .comment-form-rating { display: none; }

/* Modal star transitions */
#modal-stars-container button { transition: color 0.15s ease; }

/* Custom animations matching reference */
@keyframes slideIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
.slide-in { animation: slideIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.fade-in { animation: fadeIn 0.3s ease forwards; }
@keyframes zoomIn { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: scale(1); } }
.zoom-in { animation: zoomIn 0.3s ease forwards; }

/* ═════════════════════════════════════════════════════════════════
   LIGHT MODE — Theme Overrides
   Toggle: <html data-theme="dark|light">
   ═════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
    /* ── CSS Custom Properties (Palette) ── */
    --lm-bg:         #fcfcf8;
    --lm-surface:    #ffffff;
    --lm-elevated:   #f5f3eb;
    --lm-text:       #0f172a;
    --lm-text-mid:   #525252;
    --lm-text-muted: #737373;
    --lm-text-faint: #a3a3a3;
    --lm-border:     rgba(0, 0, 0, 0.08);
    --lm-border-sof: rgba(0, 0, 0, 0.05);
    --lm-glass-5:    rgba(0, 0, 0, 0.05);
    --lm-glass-8:    rgba(0, 0, 0, 0.08);
    --lm-glass-2:    rgba(0, 0, 0, 0.015);
    --lm-glass-4:    rgba(0, 0, 0, 0.04);
    --lm-glass-6:    rgba(0, 0, 0, 0.06);

    /* ── Body ── */
    body { background-color: var(--lm-bg); color: var(--lm-text); }

    /* ── 1. SOLID BACKGROUNDS ── */
    .bg-\[\#0a0a0a\],
    .bg-\[\#050505\]    { background-color: var(--lm-bg); }
    .bg-\[\#171717\]    { background-color: var(--lm-surface); }
    .bg-\[\#141414\]    { background-color: var(--lm-surface); }
    .bg-\[\#0f0f0f\],
    .bg-\[\#0f0f0f\]\/95 { background-color: rgba(255, 255, 255, 0.95); }
    .bg-\[\#0a0a0a\]\/95,
    .bg-\[\#0a0a0a\]\/98,
    .bg-\[\#0a0a0a\]\/90 { background-color: rgba(255, 255, 255, 0.95); }
    .bg-\[\#171717\]\/30 { background-color: var(--lm-elevated); }
    .bg-black\/50,
    .bg-black\/60,
    .bg-black\/95       { background-color: rgba(0, 0, 0, 0.3); }

    /* ── 2. GLASS / TRANSLUCENT BG ── */
    .bg-white\/5          { background-color: var(--lm-glass-5); }
    .bg-white\/10         { background-color: var(--lm-glass-8); }
    .bg-white\/20         { background-color: rgba(0, 0, 0, 0.12); }
    .bg-white\/40         { background-color: rgba(0, 0, 0, 0.2); }
    .bg-white\/\[0\.02\]  { background-color: var(--lm-glass-2); }
    .bg-white\/\[0\.03\]  { background-color: var(--lm-glass-4); }
    .bg-white\/\[0\.04\]  { background-color: var(--lm-glass-5); }
    .bg-white\/\[0\.06\]  { background-color: var(--lm-glass-6); }

    /* ── 3. HOVER / GROUP-HOVER BACKGROUNDS ── */
    .hover\:bg-white\/5:hover             { background-color: var(--lm-glass-5); }
    .hover\:bg-white\/10:hover            { background-color: var(--lm-glass-8); }
    .hover\:bg-white\/20:hover            { background-color: rgba(0, 0, 0, 0.1); }
    .hover\:bg-white\/25:hover            { background-color: rgba(0, 0, 0, 0.15); }
    .hover\:bg-white\/\[0\.02\]:hover     { background-color: var(--lm-glass-2); }
    .hover\:bg-white\/\[0\.04\]:hover     { background-color: var(--lm-glass-4); }
    .hover\:bg-white\/\[0\.06\]:hover     { background-color: var(--lm-glass-6); }
    .hover\:bg-red-400\/80:hover          { background-color: rgba(239, 68, 68, 0.5); }
    .hover\:bg-red-400\/10:hover          { background-color: rgba(239, 68, 68, 0.1); }
    .group:hover .group-hover\:bg-white\/20 { background-color: rgba(0, 0, 0, 0.12); }
    .group:hover .group-hover\:bg-amber-500\/20 { background-color: rgba(245,158,11,0.2); }
    .group:hover .group-hover\:bg-amber-500 { background-color: #f59e0b; }

    /* ── 4. BACKGROUND — Misc (newsletter bell, empty states) ── */
    .bg-amber-500\/5   { background-color: rgba(245, 158, 11, 0.05); }
    .bg-amber-500\/10  { background-color: rgba(245, 158, 11, 0.1); }
    .bg-amber-500\/20  { background-color: rgba(245, 158, 11, 0.2); }
    .bg-amber-500\/30  { background-color: rgba(245, 158, 11, 0.25); }
    .bg-red-500\/10    { background-color: rgba(239, 68, 68, 0.1); }
    .bg-red-500\/20    { background-color: rgba(239, 68, 68, 0.15); }
    .bg-red-500\/90    { background-color: rgba(239, 68, 68, 0.7); }
    .bg-green-500\/10  { background-color: rgba(34, 197, 94, 0.1); }
    .bg-green-500\/20  { background-color: rgba(34, 197, 94, 0.15); }
    .bg-neutral-600    { background-color: #d1d5db; }

    /* ── 5. GRADIENT OVERLAYS ── */
    .from-\[\#0a0a0a\] {
        --tw-gradient-from: var(--lm-bg) var(--tw-gradient-from-position);
        --tw-gradient-to: rgba(252, 252, 248, 0) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    }
    .via-\[\#0a0a0a\]\/40 {
        --tw-gradient-via: rgba(252, 252, 248, 0.4) var(--tw-gradient-via-position);
        --tw-gradient-to: rgba(252, 252, 248, 0) var(--tw-gradient-to-position);
        --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to);
    }
    /* Hero slider: keep slightly darker for text legibility */
    .bg-gradient-to-l.from-black\/70.via-black\/40 {
        background-image: linear-gradient(to left, rgba(0,0,0,0.35), rgba(0,0,0,0.15), rgba(0,0,0,0.05));
    }
    .bg-gradient-to-t.from-black\/80.via-black\/20 {
        background-image: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.1), transparent);
    }
    .bg-gradient-to-t.from-black\/60 {
        background-image: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    }
    .bg-gradient-to-l.from-black\/70.via-black\/40.to-black\/30 {
        background-image: linear-gradient(to left, rgba(0,0,0,0.35), rgba(0,0,0,0.15), rgba(0,0,0,0.05));
    }
    /* Category card text stays dark on gradient → legible */
    .bg-gradient-to-t.from-\[\#0a0a0a\] ~ .relative .text-white,
    .bg-gradient-to-t ~ .relative .text-white { color: var(--lm-text); }

    /* ── 6. TEXT COLORS ── */
    .text-white          { color: var(--lm-text); }
    .text-white\/70      { color: rgba(15, 23, 42, 0.7); }
    .text-neutral-300,
    .text-neutral-300\/90 { color: var(--lm-text-mid); }
    .text-neutral-400    { color: var(--lm-text-muted); }
    .text-neutral-500    { color: var(--lm-text-faint); }
    .text-neutral-600    { color: var(--lm-text-faint); }
    .text-neutral-700    { color: #475569; }
    .text-\[\#171717\]   { color: #0f172a; }
    .text-\[\#0a0a0a\]   { color: #0f172a; }
    /* Keep white text on colored buttons/badges */
    a.bg-amber-500 > .text-white,
    button.bg-amber-500 .text-white,
    [class*="bg-amber"] .text-white,
    [class*="bg-green"] .text-white,
    [class*="bg-red"] .text-white,
    [class*="bg-rose"] .text-white,
    .arcsys-btn .text-white,
    button .iconify.text-white,
    span.iconify.text-white { color: inherit; }
    .text-link            { color: #d97706; }
    .hover\:text-link-hover:hover { color: #b45309; }

    /* ── 7. HOVER / GROUP-HOVER TEXT ── */
    .hover\:text-white:hover                { color: var(--lm-text); }
    .hover\:text-white\/70:hover            { color: rgba(15, 23, 42, 0.7); }
    .group:hover .group-hover\:text-white   { color: var(--lm-text); }
    .hover\:text-red-400:hover              { color: #dc2626; }
    .hover\:text-red-300:hover              { color: #fca5a5; }

    /* ── 8. PLACEHOLDER TEXT ── */
    input.text-white::placeholder,
    textarea.text-white::placeholder { color: var(--lm-text-faint); }
    .placeholder-neutral-500::placeholder { color: var(--lm-text-faint); }
    input.bg-white\/5::placeholder { color: var(--lm-text-faint); }

    /* ── 9. BORDERS ── */
    .border-white\/5,
    .border-b.border-white\/5,
    .border-t.border-white\/5    { border-color: var(--lm-border-sof); }
    .border-white\/10,
    .border-l.border-white\/10,
    .border-x.border-white\/10,
    .border-t.border-white\/10,
    .border-b.border-white\/10   { border-color: var(--lm-border); }
    .border-white\/20            { border-color: rgba(0, 0, 0, 0.12); }
    .border-white\/30            { border-color: rgba(0, 0, 0, 0.18); }
    .border-neutral-800          { border-color: rgba(0, 0, 0, 0.12); }
    .border-neutral-800\/60      { border-color: var(--lm-border); }
    .divide-white\/5 > * + *     { border-top-color: var(--lm-border-sof); }
    .divide-white\/10 > * + *    { border-top-color: var(--lm-border); }
    /* Hover borders */
    .hover\:border-white\/20:hover     { border-color: rgba(0, 0, 0, 0.12); }
    .hover\:border-amber-500\/20:hover { border-color: rgba(245,158,11,0.2); }
    .hover\:border-amber-500\/30:hover { border-color: rgba(245,158,11,0.3); }
    .hover\:border-amber-500\/40:hover { border-color: rgba(245,158,11,0.4); }
    .hover\:border-amber-500\/50:hover { border-color: rgba(245,158,11,0.5); }
    .hover\:border-red-400\/30:hover   { border-color: rgba(248,113,113,0.3); }
    .group:hover .group-hover\:border-amber-500\/30 { border-color: rgba(245,158,11,0.3); }

    /* ── 10. RING / FOCUS ── */
    .focus\:ring-amber-500\/50:focus       { --tw-ring-color: rgba(245,158,11,0.5); }
    .focus\:ring-amber-500\/30:focus       { --tw-ring-color: rgba(245,158,11,0.3); }
    .focus\:border-amber-500\/50:focus     { border-color: rgba(245,158,11,0.5); }
    .focus-within\:ring-amber-500\/50:focus-within { --tw-ring-color: rgba(245,158,11,0.5); }
    .focus-within\:border-amber-500\/50:focus-within { border-color: rgba(245,158,11,0.5); }

    /* ── 11. BACKDROP BLUR ── */
    .backdrop-blur,
    .backdrop-blur-sm,
    .backdrop-blur-md,
    .backdrop-blur-lg,
    .backdrop-blur-xl    { backdrop-filter: none; }

    /* ── 12. PROSE (page content) ── */
    .prose.prose-invert               { color: #334155; }
    .prose.prose-invert h1,
    .prose.prose-invert h2,
    .prose.prose-invert h3,
    .prose.prose-invert h4            { color: var(--lm-text); }
    .prose.prose-invert a             { color: #d97706; }
    .prose.prose-invert strong        { color: var(--lm-text); }
    .prose.prose-invert code          { background-color: var(--lm-elevated); color: #334155; }
    .prose.prose-invert blockquote    { border-left-color: rgba(0,0,0,0.15); color: #64748b; }
    .prose.prose-invert li::marker    { color: #94a3b8; }

    /* ── 13. HEADER ── */
    .bg-\[\#171717\].border-b     { border-bottom-color: var(--lm-border); }
    nav.bg-\[\#0a0a0a\]           { background-color: var(--lm-surface); }
    header.bg-\[\#0a0a0a\]\/95    { background-color: var(--lm-surface); }
    /* Search overlay fixed bg */
    .fixed.inset-0.bg-\[\#0a0a0a\]\/98 { background-color: rgba(255, 255, 255, 0.98); }

    /* ── 14. PRODUCT CARDS ── */
    .product-card                                    { background-color: var(--lm-surface); }
    .product-card.bg-white\/5                        { background-color: var(--lm-surface); }
    .product-card.bg-white\/5.border-white\/10       { border-color: var(--lm-border); }
    .product-card h3,
    .product-card h3 a                               { color: #000000; }
    .product-card:hover h3 a                         { color: #d97706; }

    /* ── 15. FOOTER ── */
    footer .bg-\[\#171717\]         { background-color: var(--lm-elevated); }
    footer .bg-\[\#0a0a0a\]         { background-color: var(--lm-bg); }
    footer .bg-\[\#050505\]         { background-color: var(--lm-elevated); }
    footer.border-t.border-neutral-800 { border-top-color: var(--lm-border); }
    footer .border-neutral-800      { border-color: var(--lm-border); }
    footer .text-white              { color: #000000; }
    footer h4                       { color: #000000; }
    /* Newsletter */
    .bg-\[\#171717\]\/30 h2.font-display { color: #000000; }

    /* ── 16. COPYRIGHT BAR ── */
    section.bg-\[\#050505\]         { background-color: var(--lm-elevated); }
    section.bg-\[\#050505\].border-t.border-neutral-800\/60 { border-top-color: var(--lm-border); }
    .bg-\[\#171717\].border.border-neutral-800 {
        background-color: var(--lm-surface);
        border-color: var(--lm-border);
    }
    .border-t.border-neutral-800\/60 { border-top-color: var(--lm-border); }

    /* ── 17. BLOG SECTION ── */
    section[aria-label*="مقالات"]   { background-color: var(--lm-elevated); }

    /* ── 18. INPUTS / SELECTS ── */
    input.bg-white\/5,
    select.bg-white\/5              { background-color: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.1); }
    input.bg-white\/5:focus,
    select.bg-white\/5:focus        { background-color: rgba(0, 0, 0, 0.04); }
    input.text-white,
    select.text-white               { color: #0f172a; }
    select.text-white option        { color: #0f172a; background: #fff; }
    input.bg-white\/5::placeholder  { color: #a3a3a3; }

    /* ── 19. TABLE (specs table) ── */
    .arcsys-table th                              { color: rgba(0,0,0,0.6); border-bottom-color: rgba(0,0,0,0.1); }
    .arcsys-table td                              { color: rgba(0,0,0,0.75); border-bottom-color: rgba(0,0,0,0.08); }
    .arcsys-table tbody tr:hover                  { background: rgba(0,0,0,0.03); }
    .arcsys-table tr.bg-white\/\[0\.02\]          { background: var(--lm-glass-2); }

    /* ── 20. SCROLLBAR ── */
    .scrollbar-hide::-webkit-scrollbar-track      { background: var(--lm-elevated); }
    .scrollbar-thin::-webkit-scrollbar-track      { background: transparent; }
    .scrollbar-thin::-webkit-scrollbar-thumb      { background: rgba(0, 0, 0, 0.15); border-radius: 9999px; }
    .scrollbar-thin::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }

    /* ── 21. RANGE SLIDER ── */
    [\&::-webkit-slider-thumb]\:border-\[\#0a0a0a\]::-webkit-slider-thumb {
        border-color: var(--lm-surface);
    }
    [\&::-webkit-slider-thumb]\:bg-amber-500::-webkit-slider-thumb {
        background-color: #f59e0b;
    }

    /* ── 22. TOGGLE SWITCH ── */
    .bg-white\/10.peer-checked\:bg-amber-500\/30 {
        background-color: var(--lm-glass-8);
    }
    .peer:checked ~ .peer-checked\:bg-amber-500\/30 {
        background-color: rgba(245, 158, 11, 0.25);
    }

    /* ── 23. LOADING SPINNERS / EMPTY STATES ── */
    .bg-white\/5.rounded-2xl.flex { background-color: var(--lm-glass-5); }

    /* ── 24. SALE BADGES ── */
    .bg-red-500.text-white { color: #ffffff; }  /* keep white on red */

    /* ── 25. MISCELLANEOUS ── */
    .bg-white\/20.backdrop-blur { background-color: rgba(0, 0, 0, 0.1); }
    [class*="shadow-"]          { --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color); }
    .bg-amber-500\/5.border.border-dashed.border-white\/10 { border-color: var(--lm-border); background-color: rgba(245,158,11,0.05); }
    .bg-black\/60               { background-color: rgba(0, 0, 0, 0.3); }
    .from-amber-500\/10         { --tw-gradient-from: rgba(245,158,11,0.1) var(--tw-gradient-from-position); }
    .from-amber-500\/5          { --tw-gradient-from: rgba(245,158,11,0.05) var(--tw-gradient-from-position); }
    .via-white\/\[0\.02\]        { --tw-gradient-via: rgba(0,0,0,0.02) var(--tw-gradient-via-position); }
}

/* ── Smooth theme transition ── */
:where(html[data-theme] *),
:where(html[data-theme] *::before),
:where(html[data-theme] *::after) {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}
:where(html[data-theme] img),
:where(html[data-theme] svg),
:where(html[data-theme] .iconify),
:where(html[data-theme] video),
:where(html[data-theme] [x-transition]) { transition: none; }
