html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation-duration: 160ms;
  animation-timing-function: ease-in;
}

::view-transition-new(root) {
  animation: vtReveal 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vtReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

:root {
  --store-bg: #ffffff;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-solid: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.6);
  --text-muted: rgba(26, 26, 46, 0.35);
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  --input-border: rgba(0, 0, 0, 0.12);
  --success: #16a34a;
  --danger: #dc2626;
  --glass: rgba(0, 0, 0, 0.02);
  --glass-strong: rgba(0, 0, 0, 0.04);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-strong: rgba(0, 0, 0, 0.1);
  --nav-height: 56px;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur: 280ms;
  --dur-slow: 420ms;
}

body.dark-home {
  --store-bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #141420;
  --navbar-bg: rgba(10, 10, 15, 0.85);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-strong: rgba(255, 255, 255, 0.12);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family:
    "Cairo",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--store-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}
input,
textarea,
select {
  font-family: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.cart-trigger,
.wishlist-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}
.cart-trigger:hover,
.wishlist-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}
.cart-badge {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease-spring) var(--dur-fast);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 50%, transparent);
}
.cart-badge.hidden {
  transform: scale(0);
}
.cart-badge.bump {
  animation: badge-bump var(--dur-fast) var(--ease-spring);
}
@keyframes badge-bump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
}
@keyframes cart-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-3px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(3px);
  }
}
.cart-trigger.cart-shake {
  animation: cart-shake 0.6s ease-in-out;
}

.nav-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease);
}
.nav-expand-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.nav-expand-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.cart-trigger-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.cart-trigger-pill:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 28px color-mix(in srgb, var(--primary-color) 55%, transparent);
}
.cart-total-text {
  white-space: nowrap;
}
.cart-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--success);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease-spring) var(--dur-fast);
}
.cart-badge-pill.hidden {
  transform: scale(0);
}
.cart-badge-pill.bump {
  animation: badge-bump var(--dur-fast) var(--ease-spring);
}

.header-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.header-overlay.hidden {
  display: none;
}
.header-overlay:not(.hidden) {
  pointer-events: auto;
}
.header-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn var(--dur-fast) var(--ease);
}
.header-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 80vh;
  padding: 12px 16px 0;
}
.header-overlay-panel {
  width: 100%;
  max-width: 480px;
  max-height: calc(80vh - 80px);
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: overlaySlideIn var(--dur) var(--ease);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
@keyframes overlaySlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.dark-home .header-overlay-panel {
  background: #141420;
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-home .header-overlay-backdrop {
  background: rgba(0, 0, 0, 0.6);
}
body.dark-home .header-search-form {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-home .header-search-input {
  color: #fff;
}
body.dark-home .header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
body.dark-home .header-nav-link {
  color: rgba(255, 255, 255, 0.7);
}
body.dark-home .header-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
body.dark-home .header-nav-link.active {
  color: var(--primary-color);
}
body.dark-home .header-footer-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
body.dark-home .header-lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-home .header-lang-opt {
  color: rgba(255, 255, 255, 0.5);
}
body.dark-home .header-lang-active {
  background: var(--primary-color);
  color: #fff;
}
body.dark-home .header-category-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
body.dark-home .header-product-name {
  color: #fff;
}
body.dark-home .header-product-img {
  background: rgba(255, 255, 255, 0.06);
}
.header-overlay-search {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1.5px solid var(--input-border);
  border-radius: 999px;
  transition: border-color var(--dur-fast) var(--ease);
}
.header-search-form:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent);
}
.header-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.header-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text-primary);
}
.header-search-input::placeholder {
  color: var(--text-muted);
}
.header-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.header-overlay-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 12px;
  display: none;
}
.header-overlay-results:not(:empty) {
  display: block;
}
.header-overlay-results .search-result-item {
  padding: 8px 0;
}
.header-search-section {
  margin-bottom: 14px;
}
.header-search-section:last-child {
  margin-bottom: 0;
}
.header-search-section .search-section-label {
  padding: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.header-suggestion-item {
  padding: 8px 0;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease);
  border-bottom: 1px solid var(--border-light);
}
.header-suggestion-item:last-child {
  border-bottom: none;
}
.header-suggestion-item:hover {
  opacity: 0.7;
}
.header-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease);
  border-bottom: 1px solid var(--border-light);
}
.header-product-item:last-child {
  border-bottom: none;
}
.header-product-item:hover {
  opacity: 0.8;
}
.header-product-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-product-img-placeholder {
  color: var(--text-muted);
}
.header-product-info {
  flex: 1;
  min-width: 0;
}
.header-product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.header-product-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.header-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.header-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.header-category-chip:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 35%, transparent);
}
.header-overlay-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 4px 0;
  overflow-y: auto;
}
.header-overlay-nav::-webkit-scrollbar {
  width: 3px;
}
.header-overlay-nav::-webkit-scrollbar-track {
  background: transparent;
}
.header-overlay-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.header-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease);
}
.header-nav-link:hover {
  background: rgba(0, 0, 0, 0.02);
}
.header-nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}
.header-nav-link-chevron svg {
  color: var(--primary-color);
  flex-shrink: 0;
}
.header-overlay-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-light);
}
.header-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--dur-fast) var(--ease);
  font-family: inherit;
}
.header-footer-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.header-footer-btn svg {
  flex-shrink: 0;
}
.header-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  overflow: hidden;
}
.header-lang-opt {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.header-lang-active {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  pointer-events: none;
}
.header-country-flag {
  font-size: 14px;
}
.header-overlay-close {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.3);
  transition: transform var(--dur-fast) var(--ease);
  margin-top: 16px;
  flex-shrink: 0;
}
.header-overlay-close:hover {
  transform: scale(1.05);
}
.header-overlay-close:active {
  transform: scale(0.95);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-dark {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-dark:hover {
  background: rgba(0, 0, 0, 0.08);
}
.btn-white {
  background: white;
  color: #1a1a2e;
}
.btn-white:hover {
  background: #f8f9fa;
}
.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 35%, transparent);
}
.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 28px color-mix(in srgb, var(--primary-color) 50%, transparent);
}
.btn-primary:active {
  filter: brightness(0.95);
  transform: scale(0.99);
}
.btn-primary:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}
.btn-link {
  background: transparent;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.btn-link:hover {
  color: var(--primary-color);
}
.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-full {
  width: 100%;
}

.store-hero {
  position: relative;
  background: var(--primary-color);
  color: #fff;
  padding: 72px 0 64px;
  overflow: hidden;
}
.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 0, 0, 0.015) 0%, transparent 60%);
  pointer-events: none;
}
.store-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  opacity: 0.7;
}
.store-hero .container {
  position: relative;
  z-index: 1;
}
.store-hero-image {
  padding: 0;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  color: white;
}

.category-pills-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pills-wrap::-webkit-scrollbar {
  display: none;
}
.category-pill {
  padding: 7px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.category-pill:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}
.category-pill.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.products-section {
  padding: 48px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin-bottom: 24px;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 6px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 16px color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}
.product-image-placeholder {
  color: var(--text-muted);
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[dir="rtl"] .product-badge {
  left: auto;
  right: 10px;
}
.badge-new {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.badge-sale {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.badge-out {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.badge-preorder {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.badge-discontinued {
  background: rgba(194, 65, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(194, 65, 12, 0.18);
}
img.product-brand-badge {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 40px !important;
  height: auto !important;
  max-width: 40px !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 5px !important;
  background: none !important;
  padding: 0 !important;
  pointer-events: none !important;
  z-index: 3 !important;
  transform: none !important;
  flex: none !important;
}
[dir="rtl"] img.product-brand-badge {
  right: auto !important;
  left: 0 !important;
}
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 2;
  transition: all var(--dur-fast) var(--ease);
}
[dir="rtl"] .product-wishlist-btn {
  right: auto;
  left: 10px;
}
.product-wishlist-btn:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}
.product-wishlist-btn.active {
  color: #f87171;
}
.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.product-price {
  font-size: 16px;
  font-weight: 800;
}
.product-original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-discount-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  padding: 2px 6px;
  border-radius: 6px;
}

body.dark-home .product-sheet {
  background: #141420;
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-home .sheet-body {
  color: #fff;
}
body.dark-home .sheet-cta {
  background: #141420;
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-home .sheet-image-wrap {
  background: rgba(255, 255, 255, 0.03);
}
body.dark-home .sheet-thumbs {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}
body.dark-home .sheet-drag-handle {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-home .cart-item-img {
  background: rgba(255, 255, 255, 0.04);
}

.product-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 600;
  pointer-events: none;
  transition: background var(--dur) var(--ease);
}
.product-sheet-overlay.active {
  background: rgba(0, 0, 0, 0.65);
  pointer-events: all;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 92vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 700;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}
.product-sheet.open {
  transform: translateY(0);
}
.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.sheet-layout {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.sheet-image-wrap {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}
.sheet-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  z-index: 3;
  transition: background var(--dur-fast) var(--ease);
}
.sheet-close-btn:hover {
  background: rgba(0, 0, 0, 0.07);
}
.sheet-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.sheet-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 320ms var(--ease);
}
.sheet-carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}
.sheet-carousel-video-slide {
  padding: 0;
}
.sheet-carousel-video-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.sheet-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  z-index: 2;
  transition:
    background var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}
.sheet-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.sheet-carousel-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}
.sheet-carousel-prev {
  right: 8px;
}
.sheet-carousel-next {
  left: 8px;
}
.sheet-thumbs {
  flex-shrink: 0;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  overflow-x: auto;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.01);
  scrollbar-width: none;
}
.sheet-thumbs::-webkit-scrollbar {
  display: none;
}
.sheet-thumb {
  width: 52px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 180ms var(--ease);
  position: relative;
  padding: 0;
}
.sheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sheet-thumb.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.sheet-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.sheet-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 16px;
}
.sheet-badge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.sheet-chip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.sheet-chip-brand {
  background: color-mix(in srgb, var(--primary-color) 18%, transparent);
  color: var(--primary-color);
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.sheet-chip-type {
  background: var(--surface-solid);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.sheet-chip-stock {
  background: transparent;
  color: #22c55e;
  border: none;
  padding-inline-start: 0;
  font-weight: 600;
}
.sheet-chip-preorder {
  background: transparent;
  color: var(--secondary-color, #3b82f6);
  border: none;
  padding-inline-start: 0;
  font-weight: 600;
}
.sheet-chip-outstock {
  background: transparent;
  color: #ef4444;
  border: none;
  padding-inline-start: 0;
  font-weight: 600;
}
.sheet-product-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}
.sheet-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}
.sheet-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sheet-price-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sheet-price {
  font-size: 22px;
  font-weight: 800;
}
.sheet-currency {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}
.sheet-original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-inline-end: 4px;
}
.sheet-discount-badge {
  font-size: 11px;
  font-weight: 700;
  background: #d72c0d;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
}
.sheet-details-section {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.sheet-details-header {
  padding: 12px 16px;
  background: var(--surface-solid);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  border-bottom: 1px solid var(--glass-border);
}
.sheet-desc-block {
  padding: 16px;
}
.sheet-desc-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.sheet-desc-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.sheet-desc-content p {
  margin: 0.4em 0;
}
.sheet-desc-content h1,
.sheet-desc-content h2,
.sheet-desc-content h3,
.sheet-desc-content h4 {
  color: var(--text-primary);
  margin: 0.8em 0 0.4em;
  font-size: 1.1em;
}
.sheet-desc-content ul,
.sheet-desc-content ol {
  padding-inline-start: 1.3em;
  margin: 0.4em 0;
}
.sheet-desc-content a {
  color: var(--primary-color);
  text-decoration: underline;
}
.sheet-specs-block {
  padding: 0 16px 16px;
}
.sheet-specs-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  padding: 12px 0;
  margin: 0 0 10px;
  border-top: 1px solid var(--glass-border);
}
.sheet-specs-group {
  margin-bottom: 12px;
}
.sheet-specs-group:last-child {
  margin-bottom: 0;
}
.sheet-specs-group-title {
  padding: 8px 12px;
  background: var(--surface-solid);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: none;
}
.sheet-specs-table {
  border: 1px solid var(--glass-border);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: var(--glass);
}
.sheet-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
}
.sheet-spec-row:last-child {
  border-bottom: none;
}
.sheet-spec-label {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-inline-end: 1px solid var(--border-light);
}
.sheet-spec-value {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sheet-spec-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.sheet-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.sheet-qty-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.sheet-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
}
.sheet-qty-control:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.sheet-qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: 10px;
  transition: all 0.2s;
}
.sheet-qty-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.sheet-qty-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
}
.sheet-qty-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.4;
}
.sheet-qty-val {
  font-size: 16px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  user-select: none;
}
.sheet-cta {
  padding: 14px 28px 20px;
  background: var(--surface-solid);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet-cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sheet-add-btn {
  flex: 1;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.sheet-add-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}
.sheet-add-btn:hover::before {
  width: 300px;
  height: 300px;
}
.sheet-add-btn:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 0 36px color-mix(in srgb, var(--primary-color) 55%, transparent);
}
.sheet-add-btn:active:not(:disabled) {
  transform: translateY(0);
}
.sheet-add-btn:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}
.sheet-add-btn.added {
  background: var(--success);
  pointer-events: none;
  animation: btn-added-pop var(--dur-slow) var(--ease-spring);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.4);
}
@keyframes btn-added-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.05);
  }
  65% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}
.sheet-wishlist-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease);
}
.sheet-wishlist-btn:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
}
.sheet-wishlist-btn.active {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}
.sheet-preorder {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
}
.sheet-preorder-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #a78bfa;
  margin-bottom: 4px;
}
.sheet-preorder-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.sheet-preorder-price {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sheet-preorder-btn {
  background: #8b5cf6 !important;
}
.sheet-preorder-btn:hover:not(:disabled) {
  background: #2563eb !important;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.45) !important;
}
.sheet-lube-service {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.sheet-lube-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.sheet-lube-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.sheet-lube-btn {
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.015);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}
.sheet-lube-btn:hover {
  border-color: var(--primary-color);
}
.sheet-lube-btn.active {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.sheet-lube-btn-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}
.sheet-lube-btn-price {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
  color: var(--text-primary);
}
.sheet-services {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.sheet-service-group {
  margin-bottom: 14px;
}
.sheet-service-group-label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.sheet-service-group-label .recommended-badge {
  font-size: 10px;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  margin-inline-start: 6px;
}
.sheet-service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.sheet-service-btn {
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.015);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}
.sheet-service-btn:hover {
  border-color: var(--primary-color);
}
.sheet-service-btn.active {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.sheet-service-btn-icon {
  font-size: 18px;
  margin-bottom: 2px;
}
.sheet-service-btn-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}
.sheet-service-btn-price {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
  color: var(--text-primary);
}
.sheet-addons {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.sheet-addons-label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.sheet-addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
  margin-bottom: 8px;
}
.sheet-addon-item:hover {
  border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.sheet-addon-item.active {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}
.sheet-addon-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
}
.sheet-addon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sheet-addon-info {
  flex: 1;
  min-width: 0;
}
.sheet-addon-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.sheet-addon-price {
  font-size: 12px;
  color: var(--text-secondary);
}
.sheet-addon-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sheet-addon-item.active .sheet-addon-check {
  border-color: var(--primary-color);
  background: var(--primary-color);
}
.sheet-restock-alert {
  margin: 14px 0 0;
  padding: 14px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
}
.sheet-restock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
}
.sheet-restock-header svg {
  stroke: #38bdf8;
  flex-shrink: 0;
}
.sheet-restock-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 8px;
}
.sheet-restock-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sheet-restock-fields input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
}
.sheet-restock-fields input::placeholder {
  color: var(--text-muted);
}
.sheet-restock-submit {
  width: 100%;
  padding: 10px 16px;
  background: #0ea5e9;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
}
.sheet-restock-submit:hover {
  opacity: 0.9;
}
.sheet-restock-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sheet-restock-msg {
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
}
.sheet-restock-msg.success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
}
.sheet-view-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sheet-view-details:hover {
  opacity: 0.7;
}
.sheet-variations {
  padding: 0 0 4px;
}
.sheet-other-versions {
  padding: 0 0 8px;
}
.sheet-ov-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.sheet-ov-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-ov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  text-decoration: none;
  color: var(--text-primary);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.sheet-ov-row:hover {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 6%, transparent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.sheet-ov-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-ov-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sheet-ov-details {
  flex: 1;
  min-width: 0;
}
.sheet-ov-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-ov-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-ov-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.variation-selector {
  margin-bottom: 14px;
}
.variation-selector-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.variation-option-btn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  line-height: 1;
}
.variation-option-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
}
.variation-option-btn.selected {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.variation-option-btn.out-of-stock,
.variation-option-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}
.cart-item-variation {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.checkout-page {
  padding: 36px 0 80px;
  min-height: calc(100vh - var(--nav-height));
}
.checkout-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-breadcrumb a {
  color: var(--primary-color);
}
.checkout-breadcrumb a:hover {
  text-decoration: underline;
}
.checkout-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.checkout-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.checkout-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0 20px;
}
.checkout-step-indicator.active {
  color: var(--primary-color);
}
.checkout-step-indicator.completed {
  color: var(--success);
}
.checkout-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--dur-fast) var(--ease);
}
.checkout-step-indicator.active .checkout-step-dot {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 35%, transparent);
}
.checkout-step-indicator.completed .checkout-step-dot {
  border-color: var(--success);
  background: var(--success);
  color: #000;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-label .req {
  color: var(--danger);
}
.form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  background: rgba(0, 0, 0, 0.02);
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.form-control::placeholder {
  color: var(--text-muted);
}
textarea.form-control {
  height: auto;
  min-height: 80px;
  padding: 12px 14px;
  resize: vertical;
}
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.payment-option {
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.015);
}
.payment-option.selected {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, transparent);
}
.order-summary-card {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
}
.summary-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.checkout-submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
  transition: all var(--dur-fast) var(--ease);
}
.checkout-submit-btn:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 32px color-mix(in srgb, var(--primary-color) 55%, transparent);
}
.checkout-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.cliq-info-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
}

.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.success-modal-overlay.open {
  display: flex;
}
.success-modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: successPop var(--dur) var(--ease-spring);
}
@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.3);
}
.success-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.success-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.store-footer {
  background: #111827;
  color: var(--text-secondary);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-links-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  transition: all 0.18s;
  flex-shrink: 0;
}
.footer-social-link:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  align-items: center;
}
.store-toast {
  padding: 14px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: toastIn var(--dur) var(--ease-spring);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.store-toast.out {
  animation: toastOut var(--dur) var(--ease) forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-15px) scale(0.92);
  }
}
.store-toast-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  color: white;
}
.store-toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  color: white;
}
.store-toast-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
  color: white;
}
.store-toast-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
  color: white;
}

.store-empty {
  text-align: center;
  padding: 72px 24px;
  grid-column: 1 / -1;
}
.store-empty-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.store-empty h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.store-empty p {
  font-size: 14px;
  color: var(--text-muted);
}

.categories-page-section {
  padding: 48px 0 64px;
}
.categories-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-solid);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  color: var(--text-primary);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 16px color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.category-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}
.category-card:hover .category-card-image img {
  transform: scale(1.06);
}
.category-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.category-card-info {
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border-light);
}
.category-card-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--dur-fast) var(--ease);
}
.category-card:hover .category-card-arrow {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.home-categories-section {
  padding: 40px 0 8px;
}
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.home-category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.home-category-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.home-category-card:hover .home-category-card-img img {
  transform: scale(1.05);
}
.home-category-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.home-category-card-name {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.home-categories-carousel-wrapper {
  position: relative;
  padding: 0 48px;
}
.home-categories-carousel {
  overflow: hidden;
  position: relative;
}
.home-categories-carousel-track {
  display: flex;
  gap: 14px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.home-categories-carousel-track::-webkit-scrollbar {
  display: none;
}
.home-category-card-carousel {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.home-category-card-carousel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--dur-fast) var(--ease);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel-nav-btn:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
}
.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.carousel-prev {
  left: 0;
}
.carousel-next {
  right: 0;
}
.carousel-nav-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.cart-sidebar-overlay,
.store-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 500;
  pointer-events: none;
  transition: background var(--dur) var(--ease);
}
.cart-sidebar-overlay.active,
.store-overlay.active {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: all;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 510;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + 16px) 16px 32px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  overflow-y: auto;
}
.cart-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.cart-panel {
  width: 100%;
  max-width: 420px;
  background: #1a1a2a;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(-20px) scale(0.97);
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease);
  overflow: hidden;
}
.cart-modal.open .cart-panel {
  transform: translateY(0) scale(1);
}
.cart-panel-dark {
  background: #1a1a2a;
  color: #fff;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cart-panel-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.cart-panel-title svg {
  color: #fff;
}

.cart-header,
.cart-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
}
.cart-count-label {
  display: none;
}
.cart-close-btn,
.panel-close-btn {
  display: none;
}

.cart-modal-close-btn {
  flex-shrink: 0;
  margin-top: 16px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  transition: all var(--dur-fast) var(--ease-spring);
}
.cart-modal-close-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(220, 38, 38, 0.5);
}
.cart-modal-close-btn:active {
  transform: scale(0.95);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 8px;
  min-height: 0;
}
.cart-body::-webkit-scrollbar {
  width: 3px;
}
.cart-body::-webkit-scrollbar-track {
  background: transparent;
}
.cart-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
}
.cart-empty-icon {
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.3);
}
.cart-empty h3 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cart-empty p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}
.cart-item-info,
.cart-item-details {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  line-height: 1.4;
}
.cart-item-lube {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
  display: block;
}
.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-item-qty-btn,
.qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.qty-btn:first-child {
  border-radius: 999px 0 0 999px;
}
.qty-btn:last-child {
  border-radius: 0 999px 999px 0;
}
.qty-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.qty-btn.qty-btn-trash {
  background: #dc2626;
  color: #fff;
  border-radius: 999px 0 0 999px;
}
.qty-btn.qty-btn-trash:hover {
  background: #b91c1c;
}
.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.qty-btn:disabled:hover {
  background: transparent;
}
.cart-item-qty-val,
.qty-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: #fff;
  background: transparent;
}
.cart-item-remove {
  display: none;
}

.cart-footer,
.cart-panel-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px 16px;
  flex-shrink: 0;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}
.cart-summary-label {
  font-weight: 500;
}
.cart-summary-value {
  font-weight: 600;
  color: #fff;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cart-total-label {
  color: rgba(255, 255, 255, 0.6);
}
.cart-total-amount {
  color: #fff;
}
.cart-savings {
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 12px;
}
.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
  transition: all var(--dur-fast) var(--ease);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.cart-checkout-btn:hover {
  filter: brightness(1.1);
}
.cart-shipping-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 10px;
}

.wishlist-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  z-index: 510;
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}
[dir="rtl"] .wishlist-panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  border-left: none;
  border-right: 1px solid var(--glass-border);
}
.wishlist-panel.open {
  transform: translateX(0);
}
[dir="rtl"] .wishlist-panel.open {
  transform: translateX(0);
}
.wishlist-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.wishlist-panel-title {
  font-size: 16px;
  font-weight: 700;
}
.wishlist-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.03);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.wishlist-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}
.wishlist-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}
body.dark-home .wishlist-panel {
  background: #141420;
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-home .wishlist-panel-header {
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-home .wishlist-close-btn {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}
.wishlist-empty-icon {
  margin: 0 auto 16px;
  color: var(--text-muted);
}
.wishlist-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.wishlist-empty-text {
  font-size: 13px;
  color: var(--text-muted);
}
.wishlist-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.wishlist-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.wishlist-item-image {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
}
.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wishlist-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.wishlist-item-details {
  flex: 1;
  min-width: 0;
}
.wishlist-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wishlist-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.wishlist-stock-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}
.wishlist-stock-badge.in {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}
.wishlist-stock-badge.out {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}
.wishlist-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-inline-start: 12px;
}
.wishlist-add-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: filter var(--dur-fast) var(--ease);
}
.wishlist-add-cart-btn:hover {
  filter: brightness(1.1);
}
.wishlist-add-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.wishlist-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.03);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.wishlist-remove-btn:hover {
  color: var(--danger);
  background: rgba(0, 0, 0, 0.06);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 260px;
  min-width: 0;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px 0 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px solid var(--input-border);
  border-radius: 980px;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.search-form:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 14%, transparent);
}
.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}
.search-clear-btn:hover {
  filter: brightness(0.9);
}
.search-clear-btn.hidden {
  display: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 360px);
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 300;
  animation: dropdownIn var(--dur-fast) var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.search-dropdown.hidden {
  display: none;
}
@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.search-section-label {
  padding: 10px 16px 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  color: var(--text-primary);
  text-decoration: none;
}
.search-result-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.search-result-item.search-result-highlight {
  background: var(--primary-color);
  color: white;
}
.search-result-item.search-result-highlight .search-result-name,
.search-result-item.search-result-highlight .search-result-price {
  color: white;
}
.search-history-item.search-result-highlight {
  background: var(--primary-color);
  color: white;
}
.search-result-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #f8f9fa;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-cat-thumb {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-color);
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-price {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1px;
}
.search-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease);
}
.search-recent-item:hover {
  background: rgba(0, 0, 0, 0.02);
}
.search-recent-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-recent-text {
  flex: 1;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-recent-remove {
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.search-recent-item:hover .search-recent-remove {
  opacity: 1;
}
.search-recent-remove:hover {
  background: rgba(0, 0, 0, 0.04);
}
.search-hint {
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.search-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.search-view-all {
  display: block;
  text-align: center;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  border-top: 1px solid var(--border-light);
  transition: background var(--dur-fast) var(--ease);
  text-decoration: none;
}
.search-view-all:hover {
  background: rgba(0, 0, 0, 0.02);
}
.search-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}
.search-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  animation: overlayIn var(--dur-fast) var(--ease);
}
.mobile-search-overlay.hidden {
  display: none;
}
@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mobile-search-bar {
  background: var(--surface-solid);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px solid var(--input-border);
  border-radius: 980px;
  transition: border-color var(--dur-fast) var(--ease);
}
.mobile-search-input-wrap:focus-within {
  border-color: var(--primary-color);
}
.mobile-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
}
.mobile-search-input::placeholder {
  color: var(--text-muted);
}
.mobile-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.mobile-search-clear.hidden {
  display: none;
}
.mobile-search-cancel {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-search-results {
  background: var(--surface-solid);
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-results-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.search-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.search-clear-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.products-page-wrap {
  padding: 40px 0 64px;
}
.products-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.filter-sidebar {
  width: 252px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.filter-sidebar::-webkit-scrollbar {
  display: none;
}
.filter-drag-handle {
  display: none;
}
.filter-inner {
  padding: 20px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.filter-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-title {
  font-size: 22px;
  font-weight: 800;
}
.filter-clear-all {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  border-radius: 6px;
  font-family: inherit;
  transition: background var(--dur-fast) var(--ease);
}
.filter-clear-all:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.filter-close-btn {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: inherit;
  transition: background var(--dur-fast) var(--ease);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.filter-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.filter-close-btn svg {
  transition: transform var(--dur-fast) var(--ease);
}
.filter-section {
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}
.filter-section:first-of-type {
  border-top: none;
}
.filter-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.filter-select {
  width: 100%;
  max-width: 260px;
  padding: 9px 34px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.4)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
}
[dir="ltr"] .filter-select {
  background-position: right 10px center;
}
.filter-select:focus {
  border-color: var(--primary-color);
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  user-select: none;
}
.filter-chip:hover {
  border-color: var(--text-muted);
}
.filter-chip input {
  display: none;
}
.filter-chip-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.filter-chip-icon svg {
  width: 12px;
  height: 12px;
}
.filter-chip.selected {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}
.filter-chip.selected .filter-chip-icon {
  color: #fff;
}
.filter-chip-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.filter-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  user-select: none;
  min-width: 72px;
  position: relative;
}
.filter-card:hover {
  border-color: var(--text-muted);
}
.filter-card input {
  display: none;
}
.filter-card-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}
.filter-card-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.2;
}
.filter-card.selected {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 6%, #fff);
}
.filter-card.selected::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.filter-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-price-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.filter-price-input {
  width: 100%;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  direction: ltr;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease);
  min-width: 0;
  -moz-appearance: textfield;
}
.filter-price-input::-webkit-outer-spin-button,
.filter-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-price-input:focus {
  border-color: var(--primary-color);
}
.filter-price-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.filter-price-currency {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.filter-price-arrow {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.filter-apply-row {
  padding-top: 16px;
  display: none;
}
.products-main {
  flex: 1;
  min-width: 0;
}
.products-main .section-header {
  padding: 0;
  margin-bottom: 20px;
}
.products-main .products-grid {
  padding: 0;
}
.products-section-header {
  padding: 0 !important;
  margin-bottom: 20px !important;
  align-items: flex-start !important;
}
.mobile-filter-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.mobile-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  color: var(--text-primary);
  transition: all var(--dur-fast) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.filter-active-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 540;
  transition: background var(--dur) var(--ease);
}
.filter-overlay.active {
  display: block;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: all;
}

.section-title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  margin-inline-start: 8px;
  vertical-align: middle;
}
.badge-featured {
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.products-carousel-section {
  padding: 48px 0;
}
.products-carousel-section .section-header {
  padding: 0;
  margin-bottom: 20px;
}
.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.section-view-all:hover {
  color: var(--text-primary);
}
.section-view-all svg {
  transition: transform var(--dur-fast) var(--ease);
}
.section-view-all:hover svg {
  transform: translateX(3px);
}
[dir="rtl"] .section-view-all:hover svg {
  transform: translateX(-3px);
}
.products-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.products-carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.products-carousel-track {
  display: flex;
  gap: 14px;
  transition: transform 340ms var(--ease);
  will-change: transform;
}
.products-carousel-section .product-card {
  flex: 0 0 210px;
  min-width: 210px;
}
.carousel-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--dur-fast) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
[dir="rtl"] .carousel-btn svg {
  transform: scaleX(-1);
}

.ads-section {
  padding: 48px 0;
}
.ads-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 3 / 1;
}
.ad-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--glass-border);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.ad-card[href="#"],
.ad-card[onclick] {
  cursor: default;
  pointer-events: none;
}
.ad-card:not([href="#"]):not([onclick]):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-card-big {
  grid-column: 1;
  grid-row: 1 / 3;
}
.ad-card-small {
  grid-column: 2;
}

.account-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.account-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}
.account-trigger-named {
  width: auto;
  border-radius: 40px;
  padding: 0 10px 0 6px;
  gap: 5px;
  height: 36px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.account-trigger-named:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.account-trigger-name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.auth-page {
  min-height: calc(100vh - var(--nav-height) - 120px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.auth-card-wide {
  max-width: 600px;
}
.auth-header {
  margin-bottom: 28px;
  text-align: center;
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-submit-btn {
  margin-top: 4px;
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.auth-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-link:hover {
  opacity: 0.8;
}
.auth-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.auth-alert-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  line-height: 1.45;
}
.auth-alert-error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.15);
}
.auth-alert-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.account-page {
  padding: 32px 0 60px;
}
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.account-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.account-avatar {
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 4px;
  border: 1px solid var(--glass-border);
}
.account-name {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}
.account-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
  margin-bottom: 12px;
}
.account-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 100%;
  text-align: right;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.account-nav-item:hover,
.account-nav-item.active {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-color);
}
.account-nav-logout {
  color: var(--danger);
  margin-top: 4px;
}
.account-nav-logout:hover {
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
}
.account-logout-form {
  width: 100%;
}
.account-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.account-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.account-save-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.order-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary-color) 15%, transparent);
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.order-card-number {
  font-size: 0.9rem;
  font-weight: 700;
}
.order-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.order-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
}
.order-card-arrow {
  color: var(--text-muted);
}
.orders-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}
.orders-empty-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.orders-empty h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.orders-empty p {
  font-size: 0.875rem;
}
.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.order-status-pending {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.order-status-confirmed {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.order-status-processing {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
.order-status-shipped {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.order-status-delivered {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}
.order-status-cancelled {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.order-detail-header .account-section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.order-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.order-detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.order-status-timeline {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  min-width: 64px;
}
.timeline-step::before {
  content: "";
  position: absolute;
  top: 9px;
  right: calc(50% + 10px);
  left: calc(-50% + 10px);
  height: 2px;
  background: var(--border);
}
.timeline-step:first-child::before {
  display: none;
}
.timeline-step.passed::before,
.timeline-step.active::before {
  background: var(--primary-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-solid);
  position: relative;
  z-index: 1;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.timeline-step.passed .timeline-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.timeline-step.active .timeline-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent);
}
.timeline-step-cancelled .timeline-dot {
  background: var(--danger);
  border-color: var(--danger);
}
.timeline-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.timeline-step.active .timeline-label,
.timeline-step.passed .timeline-label {
  color: var(--text-primary);
  font-weight: 600;
}
.timeline-step-cancelled .timeline-label {
  color: var(--danger);
}
.order-detail-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.order-detail-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.order-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}
.order-item-variation {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.order-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.order-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.order-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 280px;
  margin-right: auto;
}
.order-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.order-totals-total {
  font-size: 1rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.order-totals-discount {
  color: var(--success);
  font-weight: 600;
}
.order-address {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-address-name {
  font-size: 0.9rem;
  font-weight: 700;
}
.order-address-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.order-address-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.order-detail-back {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.lang-switcher {
  display: flex;
  align-items: center;
}
.lang-switcher form {
  margin: 0;
}
.lang-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  line-height: 1;
}
.lang-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.coupon-input-row {
  margin-bottom: 16px;
}
.coupon-field-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.coupon-field-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
  outline: none;
}
.coupon-field-input:focus {
  border-color: var(--primary-color);
}
.coupon-apply-btn {
  height: 40px;
  padding: 0 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.coupon-apply-btn:hover {
  opacity: 0.88;
}
.coupon-apply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.coupon-feedback {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 10px;
}
.coupon-feedback-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.coupon-feedback-error {
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.12);
}
.coupon-discount-row {
  align-items: center;
}
.coupon-discount-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--success) !important;
  font-weight: 600;
}
.coupon-discount-value {
  color: var(--success) !important;
  font-weight: 700;
}
.coupon-remove-btn {
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.coupon-remove-btn:hover {
  color: var(--danger);
}
.coupon-field-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  opacity: 0.65;
}
@keyframes coupon-spin {
  to {
    transform: rotate(360deg);
  }
}
.coupon-spinner {
  animation: coupon-spin 0.75s linear infinite;
  display: block;
}
@keyframes coupon-row-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.coupon-discount-row {
  animation: coupon-row-in 0.2s ease both;
}
.order-card-savings {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 6px;
  padding: 5px 10px;
  margin: 6px 0 2px;
}
.order-card-coupon-code {
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
  background: rgba(52, 211, 153, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--success);
}
.order-coupon-applied-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 16px;
}
.order-coupon-code-pill {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
}
.order-coupon-saved {
  margin-inline-start: auto;
  font-weight: 700;
  font-size: 13px;
}
.order-totals-discount-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-weight: 600;
}
.order-totals-coupon-badge {
  font-family: "Courier New", monospace;
  font-size: 11px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.5px;
}
.order-totals-discount-value {
  color: var(--success);
  font-weight: 700;
}
.success-savings {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin: 8px auto 4px;
  max-width: 320px;
}
.success-coupon-code {
  font-family: "Courier New", monospace;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.nav-more-wrap {
  position: relative;
}
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  padding: 0;
}
.nav-more-chevron {
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.nav-more-wrap.open .nav-more-chevron {
  transform: rotate(180deg);
}
.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 180px;
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-more-wrap.open .nav-more-dropdown {
  display: block;
}
.nav-more-item {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  transition:
    background 0.12s,
    color 0.12s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-more-item:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  color: var(--primary-color);
}
.footer-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}
.footer-page-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-page-link:hover {
  color: var(--text-primary);
}

@keyframes wa-pulse {
  0% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.45),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.wa-float-btn {
  position: fixed;
  bottom: 24px;
  z-index: 380;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: wa-pulse 2.4s ease-out 2.5s 3;
}
.wa-float-btn:hover,
.wa-float-btn:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.58);
  outline: none;
}
.wa-float-btn.wa-pos-right {
  right: 24px;
}
.wa-float-btn.wa-pos-left {
  left: 24px;
}
.wa-float-icon {
  flex-shrink: 0;
}
.wa-float-tooltip {
  position: absolute;
  top: 50%;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wa-float-btn.wa-pos-right .wa-float-tooltip {
  right: calc(100% + 10px);
  transform: translateY(-50%) translateX(6px);
}
.wa-float-btn.wa-pos-left .wa-float-tooltip {
  left: calc(100% + 10px);
  transform: translateY(-50%) translateX(-6px);
}
.wa-float-btn:hover .wa-float-tooltip,
.wa-float-btn:focus-visible .wa-float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.skeleton-product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-product-image {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}
.skeleton-product-category {
  width: 60%;
  height: 12px;
  border-radius: 4px;
}
.skeleton-product-name {
  width: 85%;
  height: 16px;
  border-radius: 4px;
}
.skeleton-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.skeleton-product-price {
  width: 45%;
  height: 20px;
  border-radius: 4px;
}
.skeleton-product-badge {
  width: 30%;
  height: 18px;
  border-radius: 12px;
}
.skeleton-category-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.skeleton-category-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.skeleton-category-name {
  width: 80%;
  height: 14px;
  border-radius: 4px;
}
.skeleton-text {
  height: 14px;
  border-radius: 4px;
}
.skeleton-text-lg {
  height: 20px;
  border-radius: 4px;
}
.skeleton-text-xl {
  height: 28px;
  border-radius: 6px;
}
.products-grid.loading {
  pointer-events: none;
}
.home-categories-grid.loading {
  pointer-events: none;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination-link,
.pagination-current {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.pagination-link {
  color: var(--text-primary);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.pagination-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.pagination-current {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  cursor: default;
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.pagination-ellipsis {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.pagination-prev,
.pagination-next {
  padding: 0 16px;
  gap: 6px;
}
.pagination-link.pagination-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.network-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transform: translateY(-100%);
  transition: transform var(--dur) var(--ease);
}
.network-banner.show {
  transform: translateY(0);
}
.network-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  min-height: 48px;
}
.network-banner-offline .network-banner-content {
  background: rgba(248, 113, 113, 0.15);
  border-bottom: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--danger);
}
.network-banner-online .network-banner-content {
  background: rgba(52, 211, 153, 0.12);
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
  color: var(--success);
}
.network-banner-icon {
  flex-shrink: 0;
}
.network-banner-text {
  font-size: 14px;
  font-weight: 500;
}
.network-banner-retry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--dur-fast);
}
.network-banner-retry:hover {
  opacity: 0.85;
}
.network-banner-offline .network-banner-retry {
  background: rgba(248, 113, 113, 0.8);
}
.network-banner-online .network-banner-retry {
  background: rgba(52, 211, 153, 0.8);
}

.input-error {
  border-color: var(--danger) !important;
  background: rgba(248, 113, 113, 0.06) !important;
}
.input-success {
  border-color: var(--success) !important;
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  font-weight: 500;
}
.input-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}
.input-success:focus {
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.checkout-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.checkout-loading-overlay.active {
  display: flex;
}
.checkout-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.checkout-loading-text {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.rich-text-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  word-break: break-word;
}
.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
  color: var(--text-primary);
  margin: 1em 0 0.5em;
  font-weight: 700;
}
.rich-text-content h1 {
  font-size: 1.6em;
}
.rich-text-content h2 {
  font-size: 1.35em;
}
.rich-text-content h3 {
  font-size: 1.15em;
}
.rich-text-content h4 {
  font-size: 1em;
}
.rich-text-content p {
  margin: 0.5em 0;
}
.rich-text-content ul,
.rich-text-content ol {
  padding-inline-start: 1.5em;
  margin: 0.5em 0;
}
.rich-text-content li {
  margin: 0.3em 0;
}
.rich-text-content a {
  color: var(--primary-color);
  text-decoration: underline;
}
.rich-text-content blockquote {
  border-inline-start: 3px solid var(--glass-border-strong);
  padding-inline-start: 1em;
  margin: 1em 0;
  color: var(--text-muted);
  font-style: italic;
}
.rich-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}
.rich-text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.rich-text-content th,
.rich-text-content td {
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  text-align: start;
}
.rich-text-content strong,
.rich-text-content b {
  font-weight: 700;
  color: var(--text-primary);
}
.rich-text-content em,
.rich-text-content i {
  font-style: italic;
}
.rich-text-content u {
  text-decoration: underline;
}
.rich-text-content s,
.rich-text-content strike {
  text-decoration: line-through;
}
.rich-text-content pre {
  background: var(--glass-strong);
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  margin: 1em 0;
}
.rich-text-content code {
  background: var(--glass-strong);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.hp-hero {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #1a237e 0%, #0d1321 50%, #0a0a0f 100%);
  border-radius: 0;
}
.hp-hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.25) 0%,
    rgba(37, 99, 235, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}
.hp-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 48px;
  width: 100%;
  max-width: 500px;
}
.hp-hero-sub {
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  margin-bottom: 24px;
}
.hp-hero-product-img {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-hero-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(37, 99, 235, 0.35))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}
.hp-hero-title {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 980px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 20px;
}
.hp-hero-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.04);
}
.hp-hero-btn:active {
  transform: scale(0.96);
}
.hp-hero-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 320px;
}

.hp-brands {
  padding: 28px 20px 16px;
}
.hp-brands-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hp-brands-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
  margin: 0;
}
.hp-brands-see-all {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur-fast);
}
.hp-brands-see-all:hover {
  color: rgba(255, 255, 255, 0.7);
}
.hp-brands-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 4px;
}
.hp-brands-track::-webkit-scrollbar {
  display: none;
}
.hp-brands-track.grabbing {
  cursor: grabbing;
}
.hp-brand-chip {
  flex: 0 0 auto;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease);
}
.hp-brand-chip:hover {
  transform: translateY(-3px);
}
.hp-brand-chip img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}
.hp-brand-chip:hover img {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hp-brand-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color var(--dur-fast);
}
.hp-brand-chip:hover .hp-brand-name {
  color: rgba(255, 255, 255, 0.8);
}
.hp-brand-fallback {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}
.hp-brand-chip:hover .hp-brand-fallback {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hp-new-products {
  padding: 8px 16px 16px;
}
.hp-dark-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 14px;
}
.hp-new-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hp-new-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.hp-new-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.hp-new-card:active {
  transform: scale(0.97);
}
.hp-new-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-new-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-new-card-placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.hp-new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
[dir="rtl"] .hp-new-badge {
  right: auto;
  left: 8px;
}
.hp-new-card-body {
  padding: 10px 12px 12px;
}
.hp-new-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-new-card-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-new-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hp-new-stock {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
}
.hp-new-price {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.hp-new-price small {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.hp-cat-showcase {
  padding: 16px;
}
.hp-cat-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 8px;
}
.hp-cat-track::-webkit-scrollbar {
  display: none;
}
.hp-cat-track.grabbing {
  cursor: grabbing;
}
.hp-cat-card-wrap {
  flex: 0 0 auto;
  width: calc(100vw - 48px);
  max-width: 360px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}
.hp-cat-card {
  background: linear-gradient(160deg, #1a1a3e 0%, #0f0f2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.hp-cat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.hp-cat-card:active {
  transform: scale(0.97);
}
.hp-cat-card-images {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}
.hp-cat-card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-cat-card-placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.hp-cat-card-body {
  padding: 20px 24px 24px;
}
.hp-cat-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.hp-cat-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  color: #fff;
}
.hp-cat-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}
.hp-cat-children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 14px;
}
.hp-cat-child-link {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s;
}
.hp-cat-child-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.hp-promo-section {
  padding: 0 16px 8px;
}
.hp-promo-ig {
  position: relative;
  background: linear-gradient(160deg, #1a1a3e 0%, #0f0f2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
}
.hp-promo-ig-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  opacity: 0.7;
}
[dir="rtl"] .hp-promo-ig-icon {
  right: auto;
  left: 16px;
}
.hp-promo-ig-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-promo-ig-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-promo-ig-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}
.hp-promo-ig-product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}
.hp-promo-ig-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-promo-ig-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.hp-promo-ig-product-price {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.hp-promo-cta-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hp-promo-cta-full:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hp-promos {
  padding: 8px 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.hp-promo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hp-promo-img-area {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.hp-promo-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-promo-pill {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin: 16px 20px 8px;
}
.hp-promo-pill-blue {
  background: var(--primary-color);
}
.hp-promo-heading {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  padding: 0 20px;
  margin-bottom: 6px;
}
.hp-promo-heading-dark {
  color: var(--text-primary);
}
.hp-promo-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 20px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hp-promo-text-dark {
  color: var(--text-secondary);
}
.hp-promo-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 20px 20px;
  padding: 10px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 980px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  background: transparent;
}
.hp-promo-cta-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}
.hp-promo-cta-dark {
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}
.hp-promo-cta-dark:hover {
  background: rgba(0, 0, 0, 0.04);
}

.hp-products-scroll-section {
  padding: 28px 0 16px;
}
.hp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 16px;
}
.hp-section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.hp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}
.hp-view-all svg {
  transition: transform var(--dur-fast) var(--ease);
}
.hp-view-all:hover svg {
  transform: translateX(3px);
}
[dir="rtl"] .hp-view-all:hover svg {
  transform: translateX(-3px);
}
.hp-scroll-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px 12px;
  cursor: grab;
}
.hp-scroll-track::-webkit-scrollbar {
  display: none;
}
.hp-scroll-track.grabbing {
  cursor: grabbing;
}
.hp-scroll-card {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.hp-scroll-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.hp-scroll-card:active {
  transform: scale(0.97);
}
.hp-scroll-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.hp-scroll-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-scroll-card-body {
  padding: 10px 12px 12px;
}
.hp-scroll-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-scroll-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.hp-scroll-card-price small {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.hp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}
.hp-empty-state .hp-empty-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
}
.hp-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.hp-empty-state p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 769px) {
  .product-sheet {
    max-width: 960px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    height: 88vh;
    border-radius: 20px 20px 0 0;
  }
  .product-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
  .sheet-drag-handle {
    display: none;
  }
  .sheet-image-wrap {
    width: 50%;
    max-width: none;
    min-width: 0;
    border-left: none;
    border-right: 1px solid var(--border-light);
  }
  [dir="rtl"] .sheet-image-wrap {
    border-right: none;
    border-left: 1px solid var(--border-light);
  }
  .sheet-body {
    padding: 28px 32px 16px;
  }
  .sheet-product-name {
    font-size: 24px;
  }
  .sheet-price {
    font-size: 26px;
  }
  .sheet-cta {
    padding: 16px 32px 24px;
  }
  .sheet-carousel-slide img {
    padding: 24px;
  }
  .sheet-thumbs {
    height: 76px;
  }
  .sheet-thumb {
    width: 58px;
    height: 56px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
  }
  .container {
    padding: 0 32px;
  }
  .section-title {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .product-sheet {
    max-width: 1040px;
    height: 90vh;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .products-main .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .container {
    padding: 0 40px;
  }
  .section-title {
    font-size: 28px;
  }
  .products-layout {
    gap: 32px;
  }
  .filter-sidebar {
    width: 260px;
  }
  .product-info {
    padding: 16px 18px 18px;
  }
  .product-name {
    font-size: 15px;
  }
  .product-price {
    font-size: 17px;
  }
}

@media (min-width: 1280px) {
  .product-sheet {
    max-width: 1100px;
  }
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .products-main .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .container {
    max-width: 1320px;
    padding: 0 48px;
  }
  .categories-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .order-summary-card {
    position: static;
    order: -1;
  }
}
@media (max-width: 900px) {
  .filter-sidebar {
    width: 220px;
  }
}
@media (max-width: 768px) {
  .store-hero {
    padding: 56px 0 48px;
  }
  .product-image-wrap {
    aspect-ratio: 1;
  }
  .product-image-wrap img {
    object-fit: cover;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }
  .section-header {
    padding: 0 16px;
  }
  .container {
    padding: 0 16px;
  }
  .category-pills-wrap {
    padding: 10px 16px;
  }
  .categories-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .home-categories-carousel-wrapper {
    padding: 0 40px;
  }
  .home-category-card-carousel {
    width: 140px;
  }
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }
  .cart-panel {
    max-width: 100%;
  }
  .cart-modal {
    padding: 12px 12px 28px;
  }
  .product-sheet {
    height: 95vh;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
  }
  .sheet-layout {
    flex-direction: column;
  }
  .sheet-image-wrap {
    width: 100%;
    min-width: unset;
    max-width: unset;
    height: 260px;
    border-left: none;
    border-bottom: 1px solid var(--border-light);
  }
  .sheet-thumbs {
    height: 54px;
  }
  .sheet-thumb {
    width: 44px;
    height: 42px;
  }
  .sheet-carousel-slide img {
    padding: 12px;
  }
  .sheet-body {
    padding: 18px 20px 12px;
  }
  .sheet-cta {
    padding: 12px 20px 20px;
  }
  .sheet-restock-fields {
    flex-direction: column;
  }
  .sheet-restock-fields input {
    min-width: unset;
  }
  .checkout-page {
    padding: 24px 0 60px;
  }
  .checkout-card {
    padding: 18px 20px;
  }
  .checkout-title {
    font-size: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-title {
    font-size: 22px;
  }
  .products-page-wrap {
    padding: 20px 0 48px;
  }
  .products-layout {
    display: block;
  }
  .mobile-filter-bar {
    display: flex;
  }
  .filter-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
  }
  .filter-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    z-index: 550;
    transform: translateY(100%);
    transition: transform var(--dur-slow) var(--ease);
    top: auto;
    overflow-y: auto;
  }
  .filter-sidebar.open {
    transform: translateY(0);
  }
  .filter-apply-row {
    display: block;
  }
  .products-main .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
  }
  .products-main .section-header {
    padding: 0;
  }
  .products-carousel-section {
    padding: 32px 0;
  }
  .products-carousel-section .product-card {
    flex: 0 0 160px;
    min-width: 160px;
  }
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  .ads-section {
    padding: 32px 0;
  }
  .ads-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: unset;
    gap: 10px;
  }
  .ad-card-big {
    grid-column: 1 / 3;
    grid-row: 1;
    aspect-ratio: 16 / 7;
  }
  .ad-card-small {
    grid-column: unset;
    grid-row: 2;
    aspect-ratio: 1 / 1;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }
  .account-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
    width: 100%;
    margin-top: 4px;
  }
  .account-nav-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  .account-logout-form {
    flex: 1;
    min-width: 120px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .order-status-timeline {
    gap: 0;
  }
  .order-detail-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  .order-totals {
    max-width: 100%;
  }
  .wa-float-btn {
    bottom: 20px;
    width: 48px;
    height: 48px;
  }
  .wa-float-btn.wa-pos-right {
    right: 16px;
  }
  .wa-float-btn.wa-pos-left {
    left: 16px;
  }
  .network-banner-content {
    padding: 10px 16px;
    gap: 10px;
  }
  .network-banner-text {
    font-size: 13px;
  }
  .network-banner-retry {
    padding: 5px 10px;
    font-size: 12px;
  }
  .pagination-link,
  .pagination-current {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .pagination-prev span,
  .pagination-next span {
    display: none;
  }
}
@media (max-width: 480px) {
  .products-grid {
    gap: 10px;
  }
  .product-info {
    padding: 10px 12px 14px;
  }
  .product-name {
    font-size: 13px;
  }
  .product-price {
    font-size: 14px;
  }
  .search-wrap {
    display: none;
  }
  .search-trigger {
    display: flex;
  }
  .categories-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-categories-carousel-wrapper {
    padding: 0 32px;
  }
  .home-category-card-carousel {
    width: 130px;
  }
  .account-content {
    padding: 20px 16px;
  }
  .auth-card {
    padding: 24px 16px;
  }
  .account-sidebar {
    justify-content: center;
  }
  .account-trigger-name {
    display: none;
  }
  .account-trigger-named {
    width: 40px;
    padding: 0;
    border-radius: 50%;
  }
  .products-carousel-section .product-card {
    flex: 0 0 150px;
    min-width: 150px;
  }
  .carousel-btn {
    width: 28px;
    height: 28px;
  }
  .ads-section {
    padding: 24px 0;
  }
  .ads-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ad-card-big {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 16 / 7;
  }
  .ad-card-small {
    grid-column: 1;
    grid-row: unset;
    aspect-ratio: 16 / 7;
  }
  .account-nav-item span:not(:last-child) {
    display: none;
  }
}
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }
  .product-card:active {
    transform: scale(0.97);
  }
}
@media (min-width: 769px) {
  .hp-hero-inner {
    padding: 120px 48px 64px;
    max-width: 600px;
  }
  .hp-hero-sub {
    font-size: 26px;
  }
  .hp-hero-title {
    font-size: 48px;
  }
  .hp-hero-product-img {
    width: 320px;
    height: 320px;
  }
  .hp-brands {
    padding: 32px 32px 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-new-products {
    padding: 8px 32px 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-new-grid {
    gap: 14px;
  }
  .hp-cat-showcase {
    padding: 16px 32px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-cat-card-wrap {
    width: 340px;
  }
  .hp-promo-section {
    padding: 0 32px 8px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-promos {
    padding: 8px 32px 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-promo-heading {
    font-size: 20px;
  }
  .hp-promo-img-area {
    aspect-ratio: 4/3;
  }
  .hp-products-scroll-section {
    padding: 32px 0 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-section-header {
    padding: 0 32px;
  }
  .hp-scroll-track {
    padding: 0 32px 12px;
    gap: 16px;
  }
  .hp-scroll-card {
    width: 180px;
  }
}
@media (min-width: 1024px) {
  .hp-hero-inner {
    padding: 140px 64px 80px;
    max-width: 700px;
  }
  .hp-hero-sub {
    font-size: 30px;
  }
  .hp-hero-title {
    font-size: 56px;
  }
  .hp-hero-product-img {
    width: 380px;
    height: 380px;
  }
  .hp-brands {
    padding: 40px 48px 24px;
    max-width: 1320px;
  }
  .hp-new-products {
    padding: 12px 48px 20px;
    max-width: 1320px;
  }
  .hp-dark-container {
    padding: 24px;
    border-radius: 32px;
  }
  .hp-new-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .hp-cat-showcase {
    padding: 20px 48px;
    max-width: 1320px;
  }
  .hp-cat-card-wrap {
    width: 380px;
  }
  .hp-promo-section {
    padding: 0 48px 12px;
    max-width: 1320px;
  }
  .hp-promos {
    padding: 12px 48px 20px;
    max-width: 1320px;
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-promo-heading {
    font-size: 22px;
  }
  .hp-products-scroll-section {
    padding: 36px 0 24px;
    max-width: 1320px;
  }
  .hp-section-header {
    padding: 0 48px;
  }
  .hp-scroll-track {
    padding: 0 48px 16px;
    gap: 18px;
  }
  .hp-scroll-card {
    width: 210px;
  }
  .hp-scroll-card-body {
    padding: 12px 14px 14px;
  }
  .hp-scroll-card-name {
    font-size: 13px;
  }
  .hp-scroll-card-price {
    font-size: 15px;
  }
}

.store-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 16px;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #202223);
  background: transparent;
  border: 1px solid var(--border-color, #e3e3e3);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.pagination-btn:hover {
  background: var(--primary, #4f46e5);
  color: #fff;
  border-color: var(--primary, #4f46e5);
}
.pagination-active {
  background: var(--primary, #4f46e5);
  color: #fff;
  border-color: var(--primary, #4f46e5);
  pointer-events: none;
}
.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  font-size: 13px;
  color: var(--text-muted, #6d7175);
}
