/* ==========================================================================
   Components — Buttons, Cards, Forms, App Shell
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 42px;
  min-width: 42px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.tap-feedback {
  transform: scale(0.97) !important;
  opacity: 0.85 !important;
  transition: transform 150ms ease, opacity 150ms ease;
}

.location-picker-btn {
  display: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: inherit;
  font-size: 15px;
  text-align: right;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
}

.location-picker-btn--filled {
  color: var(--color-text);
}

.picker-option--active {
  background: rgba(108, 59, 255, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.mini-cart-sheet__footer {
  padding: var(--space-2);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 767px) {
  .location-picker-btn { display: flex; }
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: 0 12px 32px rgba(108, 59, 255, 0.35);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  color: var(--color-primary);
  background: rgba(108, 59, 255, 0.06);
}

.btn--block {
  width: 100%;
}

.btn:disabled, .btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.btn--sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn--lg {
  min-height: 46px;
  padding: 12px 24px;
  font-size: 15px;
}

/* ---- Cards ---- */
.card {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-2);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

a.card:hover,
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card--flat:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge--primary {
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-primary);
}

.badge--success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
}

.badge--error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-error);
}

.badge--discount {
  background: var(--gradient-primary);
  color: white;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: var(--space-2);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: 13px;
  margin-top: 6px;
}

/* ---- Segmented Control ---- */
.segmented {
  display: flex;
  background: var(--color-gray-soft);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.segmented__item {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.segmented__item--active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

/* ---- List Row ---- */
.list-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.list-row:hover {
  background: rgba(108, 59, 255, 0.04);
}

.list-row__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 59, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  flex-shrink: 0;
}

.list-row__content {
  flex: 1;
}

.list-row__title {
  font-weight: 600;
  font-size: 15px;
}

.list-row__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
}

.list-row__chevron {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ---- Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-soft) 25%, #E8E8F0 50%, var(--color-gray-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton--text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton--title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton--image {
  aspect-ratio: 1;
  width: 100%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   App Shell — Header, Top Bar, Tab Bar, Footer
   ========================================================================== */

/* Desktop Header — ultra minimal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.site-header--scrolled {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: clamp(12px, 2vw, 28px);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text);
  flex-shrink: 0;
}

.site-header__logo:hover {
  color: var(--color-primary);
}

.site-header__logo .brand-logo--full {
  width: 128px;
  max-height: 40px;
  height: auto;
  object-fit: contain;
  display: block;
}

.topbar__logo .brand-logo--full {
  width: 108px;
  max-height: 36px;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-brand .brand-logo--full,
.auth-shell .brand-logo--full {
  width: min(200px, 70vw);
  max-height: 72px;
  height: auto;
  object-fit: contain;
  display: block;
}

.site-header__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.site-header__nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: #5C6570;
  transition: color 160ms ease, background-color 160ms ease;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}

.site-header__nav-link:hover,
.site-header__nav-link--active {
  color: #0B1220;
  background: rgba(15, 23, 42, 0.05);
}

.site-header__nav-link--active {
  color: #E11D48;
  background: rgba(225, 29, 72, 0.08);
}

.nav-item.is-open > .site-header__nav-link {
  color: #E11D48;
  background: rgba(225, 29, 72, 0.08);
}

.nav-item {
  position: relative;
}

.nav-item__caret {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.nav-item.is-open .nav-item__caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 300px;
  z-index: 120;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown__inner {
  background: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  padding: 12px;
}

.nav-dropdown__all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.04);
  color: #0B1220;
  font-weight: 600;
  font-size: 13px;
}

.nav-dropdown__all [data-lucide] {
  width: 16px;
  height: 16px;
}

.nav-dropdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown__link:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0B1220;
}

.nav-dropdown__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  color: #0B1220;
}

.nav-dropdown__icon [data-lucide] {
  width: 16px;
  height: 16px;
}

.site-header__auth-btn {
  min-height: 36px;
  padding-inline: 14px;
  white-space: nowrap;
}

.site-header__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0B1220;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header__login:hover {
  background: #0B1220;
  border-color: #0B1220;
  color: #fff;
}

[data-theme="dark"] .nav-dropdown__inner {
  background: rgba(26, 35, 50, 0.96);
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.site-header__search {
  position: relative;
}

.site-header__search-input {
  width: 148px;
  height: 38px;
  padding: 8px 36px 8px 14px;
  background: #F4F5F7;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: #0B1220;
  transition: width 220ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-header__search-input:focus {
  outline: none;
  width: 220px;
  background: #fff;
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.site-header__search-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #5C6570;
  pointer-events: none;
}

.site-header .icon-btn {
  width: 40px;
  height: 40px;
  color: #5C6570;
}

.site-header .icon-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0B1220;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0B1220;
}

.icon-btn__badge {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--topbar-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.topbar--scrolled {
  box-shadow: var(--shadow-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding-inline: var(--space-2);
  gap: var(--space-1);
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.topbar__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Bottom Tab Bar — mobile only */
@media (min-width: 768px) {
  .tabbar,
  #sheet-backdrop,
  #more-sheet,
  #demo-sheet,
  #picker-sheet,
  #mini-cart-sheet,
  #shop-filter-backdrop,
  #shop-filter-sheet {
    display: none !important;
  }
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: calc(var(--tabbar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.tabbar__inner {
  display: flex;
  align-items: stretch;
  height: var(--tabbar-height);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.tabbar__item:active {
  transform: scale(0.95);
}

.tabbar__item--active {
  color: var(--color-primary);
}

.tabbar__item--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 0 0 4px 4px;
}

.tabbar__icon {
  width: 24px;
  height: 24px;
}

.tabbar__badge {
  position: absolute;
  top: 6px;
  inset-inline-start: 50%;
  margin-inline-start: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4);
  margin-top: var(--space-4);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

@media (max-width: 767px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .site-footer {
    margin-bottom: var(--content-padding-bottom);
    padding-block: var(--space-3);
  }
}

.site-footer__title {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-2);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.site-footer__link {
  display: block;
  padding: 6px 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.site-footer__link:hover {
  color: var(--color-primary);
}

.site-footer__bottom {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-area__bottom-copy {
  margin-top: var(--space-2);
}

.footer-area__copyright {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-area__copyright .company-link {
  color: var(--color-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-area__copyright .company-link:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Bottom Sheet & Toast & Modal
   ========================================================================== */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.sheet-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 301;
  max-height: 85dvh;
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translate3d(0, 100%, 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
  will-change: transform;
}

.bottom-sheet--open {
  transform: translate3d(0, 0, 0);
}

.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 12px auto;
}

.bottom-sheet__header {
  padding: 0 var(--space-3) var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--font-size-h3);
}

.bottom-sheet__body {
  padding: 0 var(--space-2) var(--space-3);
  overflow-y: auto;
  max-height: calc(85dvh - 80px);
}

.bottom-sheet__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 500;
  transition: background var(--transition-fast);
}

.bottom-sheet__item:hover {
  background: rgba(108, 59, 255, 0.06);
}

.bottom-sheet__item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 59, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

.bottom-sheet__chevron {
  margin-inline-start: auto;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.toast-container {
  position: fixed;
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + var(--space-2));
  left: var(--space-2);
  right: var(--space-2);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: var(--space-3);
    left: auto;
    right: var(--space-3);
    max-width: 360px;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  animation: toast-in var(--transition-base) forwards;
}

.toast--success { border-inline-start: 4px solid var(--color-success); }
.toast--error { border-inline-start: 4px solid var(--color-error); }
.toast--info { border-inline-start: 4px solid var(--color-blue); }

.toast__message {
  flex: 1;
  font-size: 14px;
}

.toast__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
}

@keyframes toast-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Search Overlay (mobile) */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--color-white);
  padding: calc(var(--safe-top) + var(--space-2)) var(--space-2) var(--space-2);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
}

.search-overlay--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-overlay__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.search-overlay__input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-2);
  background: var(--color-gray-soft);
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
}

.search-overlay__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.15);
}

/* Hero */
.hero {
  padding-block: var(--space-6);
  text-align: center;
}

.hero__title {
  margin-bottom: var(--space-2);
}

.hero__title span {
  color: var(--color-primary);
}

.hero__text {
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

/* Error pages */
.error-page {
  text-align: center;
  padding-block: var(--space-8);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page__title {
  margin-block: var(--space-2);
}

.error-page__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* UI Kit demo blocks */
.uikit-section {
  margin-bottom: var(--space-5);
  padding: var(--space-3);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.uikit-section__title {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--color-gray-soft);
}

.uikit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

/* ---- Home Page — Hero ---- */
.hero-split {
  padding-block: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 36px);
  position: relative;
}

.hero-split__panel {
  position: relative;
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-split__panel::before {
  content: '';
  position: absolute;
  inset-inline-end: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-split__content {
  min-width: 0;
}

.hero-split__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.4;
}

.hero-split__eyebrow [data-lucide] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-split__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 16ch;
}

.hero-split__text {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  max-width: 42ch;
  font-size: var(--font-size-body);
  line-height: 1.7;
}

.hero-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-split__actions .btn {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 15px;
}

.hero-split__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-frame {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
}

.hero-visual-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero-visual-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-visual-badge [data-lucide] {
  width: 14px;
  height: 14px;
}

.hero-split__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(16px, 2.5vw, 20px);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 58, 237, 0.06);
  min-width: 0;
}

.hero-feature__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
}

.hero-feature__icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.hero-feature__body {
  min-width: 0;
}

.hero-feature__title {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
}

.hero-feature__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .hero-split__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-split__visual {
    order: -1;
  }

  .hero-visual-frame {
    width: min(72vw, 240px);
  }

  .hero-split__content {
    text-align: center;
  }

  .hero-split__title {
    max-width: none;
    font-size: clamp(22px, 5.5vw, 26px);
    margin-inline: auto;
  }

  .hero-split__text {
    margin-inline: auto;
    font-size: var(--font-size-sm);
    max-width: 36ch;
  }

  .hero-split__actions {
    justify-content: center;
  }

  .hero-split__actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero-split__features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-feature {
    padding: 10px 12px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-visual-frame {
    width: min(100%, 260px);
  }

  .hero-split__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero-split__title {
    max-width: 14ch;
  }
}

.hero-split::before,
.hero-split::after {
  display: none;
}

.hero-visual-card {
  aspect-ratio: 1;
  max-width: 360px;
  margin-inline: auto;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: white;
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.section--compact {
  padding-block: clamp(12px, 2vw, 20px);
}

.category-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 680px);
  margin-inline: auto;
  padding: 14px 16px;
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.category-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-bar__item:hover {
  background: rgba(124, 58, 237, 0.07);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.1);
}

.category-bar__item:active {
  transform: translateY(0);
}

.category-bar__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.category-bar__item:hover .category-bar__icon {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.category-bar__icon svg,
.category-bar__icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.category-bar__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .category-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 340px);
    gap: 6px;
    padding: 12px;
  }

  .category-bar__item {
    min-height: 76px;
    padding: 8px 4px;
  }

  .category-bar__icon {
    width: 36px;
    height: 36px;
  }

  .category-bar__icon svg,
  .category-bar__icon [data-lucide] {
    width: 18px;
    height: 18px;
  }

  .category-bar__label {
    font-size: 11px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .category-bar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(100%, 600px);
  }

  .category-bar__item {
    min-height: 80px;
  }
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

@media (max-width: 1024px) {
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .banner-grid { grid-template-columns: 1fr; }
}

.promo-banner {
  display: block;
  min-height: 190px;
  border-radius: var(--radius-xl);
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.promo-banner:hover {
  transform: translateY(-4px);
  color: white;
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.22);
}

.banner--purple { background: linear-gradient(135deg, #7C3AED, #C026D3); }
.banner--blue { background: linear-gradient(135deg, #3B82F6, #7C3AED); }
.banner--violet { background: linear-gradient(135deg, #C026D3, #EC4899); }

.promo-banner__bg,
.promo-banner__bg img,
.promo-banner picture,
.promo-banner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.promo-banner:hover .promo-banner__bg,
.promo-banner:hover picture img {
  transform: scale(1.04);
  opacity: 0.65;
}

.promo-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: var(--space-2);
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    rgba(15, 23, 42, 0.82) 100%
  );
}

.promo-banner__badge {
  position: absolute;
  top: var(--space-2);
  inset-inline-start: var(--space-2);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.promo-banner__title {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  margin-bottom: 4px;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.promo-banner__subtitle {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.promo-banner .btn--secondary {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary-dark);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.promo-banner .btn--secondary:hover {
  background: #fff;
  color: var(--color-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(99, 102, 241, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.product-card:hover {
  border-color: rgba(99, 102, 241, 0.18);
}

.product-card__image {
  aspect-ratio: 1;
  background: var(--color-gray-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
}

.product-card__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.45;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--font-size-md);
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.product-card__old {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 400;
  margin-inline-end: 6px;
}

.service-card {
  text-decoration: none;
  color: inherit;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 59, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.blog-card {
  text-decoration: none;
  color: inherit;
}

.blog-card__image {
  aspect-ratio: 16/9;
  background: var(--color-gray-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__image picture,
.blog-card__image .blog-card__img {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card__image .blog-card__img {
  object-fit: cover;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.cta-banner {
  text-align: center;
  padding: clamp(24px, 4vw, 36px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  margin-bottom: var(--space-1);
}

.cta-banner__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.page-hero {
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  margin-bottom: 8px;
}

.page-content {
  line-height: 1.9;
}

.page-content h2 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.page-content p {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  overflow: hidden;
}

.faq-item__question {
  padding: var(--space-2);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__answer {
  padding: 0 var(--space-2) var(--space-2);
  color: var(--color-text-muted);
}

.blog-content {
  max-width: 780px;
  margin-inline: auto;
}

.featured-post {
  display: block;
  margin-bottom: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.segmented a.segmented__item {
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shop */
.shop-toolbar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.shop-search-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.shop-sort { max-width: 180px; }

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--color-gray-soft);
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.category-pill--active {
  background: var(--color-primary);
  color: white;
}

.product-card__wishlist {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.product-card__image .product-card__img,
.product-card__image picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.product-detail__info {
  padding: var(--space-3);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.product-detail__info h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  margin: var(--space-1) 0;
}

@media (max-width: 767px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-detail__main-image {
  aspect-ratio: 1;
  background: var(--color-gray-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.product-detail__main-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-detail__main-image img,
.product-detail__main-image picture img,
.pdp-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-detail__thumbs {
  display: flex;
  gap: 8px;
  margin-top: var(--space-2);
  overflow-x: auto;
}

.pdp-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray-soft);
  cursor: pointer;
}

.pdp-thumb--active {
  border-color: var(--color-primary);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__price-main {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: 400;
  color: var(--color-primary);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.pdp-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  .pdp-sticky-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tabbar-height) + var(--safe-bottom));
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  .pdp-sticky-bar__price {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-primary);
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  .pdp-sticky-bar__price small {
    font-size: 12px;
    font-weight: 600;
  }

  .pdp-sticky-bar .btn {
    flex: 1;
    max-width: 200px;
  }
}

.checkout-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  .checkout-sticky-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tabbar-height) + var(--safe-bottom));
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  .checkout-sticky-bar__total {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .checkout-sticky-bar__total small {
    font-size: 12px;
    color: var(--color-text-muted);
  }

  .checkout-sticky-bar__total strong {
    font-size: 16px;
    color: var(--color-primary);
  }

  .checkout-sticky-bar .btn {
    min-width: 120px;
  }
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-stepper__btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-gray-soft);
  cursor: pointer;
  font-size: 18px;
}

.qty-stepper__input {
  width: 48px;
  text-align: center;
  border: none;
  font-weight: 600;
}

.qty-stepper--sm .qty-stepper__btn { width: 32px; height: 32px; }
.qty-stepper__value { padding: 0 12px; font-weight: 600; }

.spec-list__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-list__row dt { color: var(--color-text-muted); }
.spec-list__row dd { font-weight: 600; margin: 0; }

/* Cart — legacy aliases (see pages.css for main styles) */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: var(--space-3);
  align-items: start;
}

@media (max-width: 767px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-item__actions { display: flex; gap: 8px; align-items: center; }

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin: var(--space-2) 0;
  font-size: var(--font-size-md);
}

/* Mini cart */
.mini-cart-wrap { position: relative; }

.mini-cart {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 300px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  display: none;
  z-index: 200;
}

.mini-cart--open { display: block; }

.mini-cart__header,
.mini-cart__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.mini-cart__item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.mini-cart__name { display: block; font-weight: 600; font-size: 14px; }
.mini-cart__meta { font-size: 12px; color: var(--color-text-muted); }

/* Search results */
.search-results {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
}

.search-results--overlay {
  position: static;
  margin: var(--space-2);
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.search-results__item {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-border);
}

.search-results__item:hover { background: var(--color-gray-soft); }
.search-results__name { display: block; font-weight: 600; }
.search-results__meta { font-size: 12px; color: var(--color-text-muted); }
.search-results__empty { padding: 12px; font-size: 14px; }

.author-hero {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.author-hero__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gray-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.author-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }

.empty-state__icon {
  width: 40px;
  height: 40px;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(108, 59, 255, 0.08);
  flex-shrink: 0;
}

.empty-state__icon [data-lucide],
.empty-state__icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 1.75;
}

/* Checkout */
.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.checkout-steps__item {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--color-gray-soft);
  font-size: 14px;
}

.checkout-steps__item--active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.checkout-steps__item--done {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3);
  align-items: start;
}

@media (max-width: 767px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.checkout-summary__total {
  margin-top: var(--space-1);
  font-size: 16px;
}

.order-number-display {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-top: var(--space-2);
}

.account-stat {
  text-decoration: none;
  color: inherit;
  display: block;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.order-card {
  text-decoration: none;
  color: inherit;
}

.order-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-timeline__item {
  padding: 8px 0 8px 20px;
  border-inline-start: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
}

.order-timeline__item--active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.order-timeline__item--done {
  border-color: rgba(108, 59, 255, 0.35);
  color: var(--color-text);
}

.order-timeline__item--cancelled {
  border-color: #ef4444;
  color: #ef4444;
}

.btn--loading {
  opacity: 0.85;
  pointer-events: none;
}

.btn__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form--shake {
  animation: form-shake 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .form--shake { animation: none; }
  .btn__spinner { animation: none; }
}

.shop-filter-trigger {
  display: none;
}

@media (max-width: 767px) {
  .shop-price-filter--desktop { display: none; }
  .shop-filter-trigger { display: inline-flex; }
}

.shop-filter-sheet .form-group { margin-bottom: var(--space-2); }

.empty-state {
  text-align: center;
  padding: clamp(20px, 3.5vw, 28px) var(--space-3);
  max-width: 360px;
  margin-inline: auto;
  width: 100%;
}

.empty-state--shop {
  background: var(--color-surface, #fff);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: clamp(22px, 4vw, 32px) clamp(16px, 4vw, 24px);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
}

.empty-state__text,
.empty-state .page-hero__subtitle {
  margin: 0 0 var(--space-3);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (max-width: 480px) {
  .empty-state__icon {
    width: 36px;
    height: 36px;
  }

  .empty-state__icon [data-lucide],
  .empty-state__icon svg {
    width: 18px !important;
    height: 18px !important;
  }
}

.repair-progress {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.repair-progress__dot {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-gray-soft);
  font-size: 13px;
  text-align: center;
  color: var(--color-text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.repair-progress__dot--active {
  background: rgba(108, 59, 255, 0.12);
  color: var(--color-primary);
  font-weight: 600;
}

.repair-progress__dot--done {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.toc--collapsible .toc__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc--collapsible .toc__summary::-webkit-details-marker { display: none; }

@media (max-width: 767px) {
  .toc--collapsible:not([open]) .toc__summary { margin-bottom: 0; }
}

.pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: #F8F7FF;
  transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 240ms ease;
}

@media (display-mode: standalone) {
  .pwa-splash { display: flex; }
}

.pwa-splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pwa-splash__logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.pwa-splash__title {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: 400;
  color: var(--color-text);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 14px;
}

.alert--success { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.alert--error { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.alert--warning { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.alert--info { background: rgba(108, 59, 255, 0.1); color: var(--color-primary); }

.pwa-install-bar {
  position: fixed;
  left: var(--space-2);
  right: var(--space-2);
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + var(--space-2));
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

@media (min-width: 768px) {
  .pwa-install-bar { display: none; }
}

/* Repairs timeline */
.repair-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: var(--space-3) 0;
  overflow-x: auto;
}

.repair-timeline__step {
  flex: 1;
  text-align: center;
  min-width: 72px;
}

.repair-timeline__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gray-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--color-text-muted);
}

.repair-timeline__step--done .repair-timeline__icon {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.repair-timeline__step--active .repair-timeline__icon {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(108, 59, 255, 0.2);
}

.repair-timeline__label {
  font-size: 12px;
  display: block;
}

.repair-timeline-preview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.repair-timeline-preview__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-gray-soft);
  border-radius: var(--radius-full);
  font-size: 14px;
}

.repair-timeline-preview__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}


/* ==========================================================================
   Contact floating popups (phone left / Instagram right)
   ========================================================================== */

.contact-fabs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 380;
}

.contact-fab {
  position: absolute;
  bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 16px);
  pointer-events: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
}

.contact-fab--phone {
  left: 16px;
  right: auto;
  align-items: flex-start;
}

.contact-fab--instagram {
  right: 16px;
  left: auto;
  align-items: flex-end;
}

.contact-fab__btn {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab__btn:hover {
  transform: translateY(-2px);
}

.contact-fab__btn:active {
  transform: scale(0.96);
}

.contact-fab__btn svg {
  width: 24px;
  height: 24px;
}

.contact-fab--phone .contact-fab__btn {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.35);
}

.contact-fab--instagram .contact-fab__btn {
  background: linear-gradient(145deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
  box-shadow: 0 10px 28px rgba(221, 42, 123, 0.35);
}

.contact-fab.is-open .contact-fab__btn {
  transform: scale(1.04);
}

.contact-fab__panel {
  min-width: 180px;
  max-width: min(240px, calc(100vw - 40px));
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  animation: contact-fab-in 0.22s ease;
}

.contact-fab__panel-title {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  padding-inline: 4px;
}

.contact-fab__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  direction: ltr;
  text-align: left;
  background: var(--color-gray-soft);
  transition: background 0.15s ease;
}

.contact-fab__link + .contact-fab__link {
  margin-top: 6px;
}

.contact-fab__link:hover {
  background: rgba(99, 102, 241, 0.14);
}

.contact-fab__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-fab--instagram .contact-fab__link svg {
  color: #dd2a7b;
}

.contact-fab--phone .contact-fab__link svg {
  color: #16a34a;
}

@keyframes contact-fab-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  .contact-fab {
    bottom: calc(24px + var(--safe-bottom));
  }

  .contact-fab--phone {
    left: 24px;
  }

  .contact-fab--instagram {
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab__btn,
  .contact-fab__panel {
    transition: none;
    animation: none;
  }
}
