:root {
  --hm-color-night: #111827;
  --hm-color-night-2: #1f2937;
  --hm-color-brass: #b86716;
  --hm-color-brass-strong: #98500f;
  --hm-color-brass-soft: #fff3df;
  --hm-color-accent: #0f766e;
  --hm-color-accent-soft: #e6f6f3;
  --hm-color-danger: #dc2626;
  --hm-color-danger-soft: #fff1f2;
  --hm-color-page: #f6f7fb;
  --hm-color-surface: #ffffff;
  --hm-color-surface-muted: #f8fafc;
  --hm-color-border: #e2e8f0;
  --hm-color-border-strong: #cbd5e1;
  --hm-color-text: #111827;
  --hm-color-muted: #64748b;
  --hm-focus-ring: 0 0 0 4px rgba(15, 118, 110, 0.2);
  --hm-shadow-button: 0 10px 22px rgba(184, 103, 22, 0.22);
  --hm-shadow-button-hover: 0 16px 34px rgba(184, 103, 22, 0.28);
  --hm-shadow-soft: 0 14px 34px rgba(17, 24, 39, 0.08);
  --hm-radius-button: 12px;
  --hm-button-min-height: 42px;
  /* Mobile bottom nav height */
  --hm-bottom-nav-h: 64px;
  --hm-safe-bottom: env(safe-area-inset-bottom, 0px);
}

 *,
 *::before,
 *::after {
  box-sizing: border-box;
 }

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  background: var(--hm-color-page);
  color: var(--hm-color-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
 }

 body.hm-menu-open {
  overflow: hidden;
 }

 img,
 svg,
 video,
 canvas,
 iframe {
  max-width: 100%;
 }

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

 table {
  width: 100%;
  border-collapse: collapse;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hm-btn,
button.hm-btn,
a.hm-btn,
.btn-primary,
.btn-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--hm-radius-button);
  font-weight: 750;
  letter-spacing: 0;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hm-btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.hm-btn:active,
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
}

.hm-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--hm-focus-ring);
}

.hm-btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.hm-btn-primary,
.btn-primary {
  background: linear-gradient(135deg, #d58a2a 0%, var(--hm-color-brass) 100%) !important;
  color: #fff7ed !important;
  border: 1px solid rgba(152, 80, 15, 0.28) !important;
  box-shadow: var(--hm-shadow-button);
}

.hm-btn-primary:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #c87922 0%, var(--hm-color-brass-strong) 100%) !important;
  color: #ffffff !important;
  box-shadow: var(--hm-shadow-button-hover);
}

.hm-btn-secondary,
.hm-btn-secondary {
  background: linear-gradient(135deg, var(--hm-color-night) 0%, var(--hm-color-night-2) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
}

.hm-btn-secondary:hover,
.hm-btn-secondary:hover {
  background: linear-gradient(135deg, #0b1220 0%, #182235 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.24);
}

.hm-btn-outline {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--hm-color-border-strong) !important;
  color: var(--hm-color-night) !important;
}

.hm-btn-outline:hover {
  background: #ffffff;
  border-color: rgba(184, 103, 22, 0.46) !important;
  color: var(--hm-color-brass-strong) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.hm-btn-ghost,
.btn-secondary {
  background: #eef2f7 !important;
  color: #334155 !important;
  border: 1px solid transparent !important;
}

.hm-btn-ghost:hover,
.btn-secondary:hover {
  background: #e2e8f0 !important;
  color: var(--hm-color-night) !important;
}

.hm-btn-danger,
button.text-rose-600,
button.text-rose-500,
button.text-rose-400 {
  color: var(--hm-color-danger) !important;
}

.hm-btn-danger:hover,
button.text-rose-600:hover,
button.text-rose-500:hover,
button.text-rose-400:hover {
  background: var(--hm-color-danger-soft) !important;
  color: #b91c1c !important;
}

/* ============================================================
   TAILWIND OVERRIDES
   ============================================================ */
.bg-slate-50 {
  background-color: var(--hm-color-page) !important;
}

.bg-white,
.modal-box {
  background-color: var(--hm-color-surface) !important;
}

.border-slate-200,
.border-slate-300 {
  border-color: var(--hm-color-border) !important;
}

.text-amber-400,
.text-amber-500,
.text-amber-600,
.text-amber-700 {
  color: var(--hm-color-brass) !important;
}

.bg-amber-50,
.bg-amber-100 {
  background-color: var(--hm-color-brass-soft) !important;
}

.border-amber-100,
.border-amber-200,
.border-amber-300,
.border-amber-400,
.border-amber-500 {
  border-color: rgba(184, 103, 22, 0.32) !important;
}

/* ============================================================
   FORMS – mobile friendly min sizes
   ============================================================ */
.form-input,
input,
select,
textarea {
  border-color: var(--hm-color-border);
  min-height: 48px;
  font-size: 16px;
  width: 100%;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--hm-color-accent) !important;
  box-shadow: var(--hm-focus-ring) !important;
}

/* ============================================================
   HEADER / FOOTER GRADIENT
   ============================================================ */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

header.bg-slate-900,
footer.bg-slate-950 {
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 103, 22, 0.16), transparent 34%),
    linear-gradient(135deg, #101827 0%, #172033 48%, #0b1220 100%) !important;
}

.hero-bg {
  background: 
    linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
    url('../img/hero_bg_storefront.jpg') no-repeat center center / cover !important;
}

@media (min-width: 1024px) {
  .hero-bg {
    background-position: 30% center !important;
  }
}

/* ============================================================
   CARDS
   ============================================================ */
.card-lift,
.bg-white.border {
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--hm-shadow-soft) !important;
}

/* ============================================================
   CATEGORY CARDS (HOMEPAGE REDESIGN)
   ============================================================ */
.hm-category-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 24px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.hm-category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3.5px;
  border-radius: 3px 3px 0 0;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.hm-category-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: transparent;
}

.hm-category-card:hover::after {
  width: 40%;
}

.hm-category-card .hm-cat-icon-wrap {
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.05);
}

.hm-category-card:hover .hm-cat-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

/* Gitar Accent (Amber) */
.hm-category-gitar::after { background-color: var(--hm-color-brass); }
.hm-category-gitar:hover {
  box-shadow: 0 20px 30px -10px rgba(184, 103, 22, 0.16);
  border-color: rgba(184, 103, 22, 0.25) !important;
}
.hm-category-gitar .hm-cat-icon-wrap {
  background-color: rgba(184, 103, 22, 0.06);
  color: var(--hm-color-brass);
}
.hm-category-gitar:hover .hm-cat-icon-wrap {
  background-color: var(--hm-color-brass);
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(184, 103, 22, 0.35);
}
.hm-category-gitar .hm-cat-link { color: var(--hm-color-brass); }

/* Keman Accent (Rose) */
.hm-category-keman::after { background-color: #f43f5e; }
.hm-category-keman:hover {
  box-shadow: 0 20px 30px -10px rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.25) !important;
}
.hm-category-keman .hm-cat-icon-wrap {
  background-color: rgba(244, 63, 94, 0.06);
  color: #f43f5e;
}
.hm-category-keman:hover .hm-cat-icon-wrap {
  background-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.35);
}
.hm-category-keman .hm-cat-link { color: #f43f5e; }

/* Bağlama Accent (Emerald) */
.hm-category-baglama::after { background-color: #10b981; }
.hm-category-baglama:hover {
  box-shadow: 0 20px 30px -10px rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.25) !important;
}
.hm-category-baglama .hm-cat-icon-wrap {
  background-color: rgba(16, 185, 129, 0.06);
  color: #10b981;
}
.hm-category-baglama:hover .hm-cat-icon-wrap {
  background-color: #10b981;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.35);
}
.hm-category-baglama .hm-cat-link { color: #10b981; }

/* Piyano Accent (Blue) */
.hm-category-piyano::after { background-color: #3b82f6; }
.hm-category-piyano:hover {
  box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.25) !important;
}
.hm-category-piyano .hm-cat-icon-wrap {
  background-color: rgba(59, 130, 246, 0.06);
  color: #3b82f6;
}
.hm-category-piyano:hover .hm-cat-icon-wrap {
  background-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.35);
}
.hm-category-piyano .hm-cat-link { color: #3b82f6; }

/* Aksesuar Accent (Violet) */
.hm-category-aksesuar::after { background-color: #8b5cf6; }
.hm-category-aksesuar:hover {
  box-shadow: 0 20px 30px -10px rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.25) !important;
}
.hm-category-aksesuar .hm-cat-icon-wrap {
  background-color: rgba(139, 92, 246, 0.06);
  color: #8b5cf6;
}
.hm-category-aksesuar:hover .hm-cat-icon-wrap {
  background-color: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.35);
}
.hm-category-aksesuar .hm-cat-link { color: #8b5cf6; }

/* Davul & Bateri Accent (Orange) */
.hm-category-davul::after { background-color: #f97316; }
.hm-category-davul:hover {
  box-shadow: 0 20px 30px -10px rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.25) !important;
}
.hm-category-davul .hm-cat-icon-wrap {
  background-color: rgba(249, 115, 22, 0.06);
  color: #f97316;
}
.hm-category-davul:hover .hm-cat-icon-wrap {
  background-color: #f97316;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.35);
}
.hm-category-davul .hm-cat-link { color: #f97316; }

/* Tüm Ürünler Accent (Slate) */
.hm-category-tumu::after { background-color: #475569; }
.hm-category-tumu:hover {
  box-shadow: 0 20px 30px -10px rgba(71, 85, 105, 0.16);
  border-color: rgba(71, 85, 105, 0.25) !important;
}
.hm-category-tumu .hm-cat-icon-wrap {
  background-color: rgba(71, 85, 105, 0.06);
  color: #475569;
}
.hm-category-tumu:hover .hm-cat-icon-wrap {
  background-color: #475569;
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(71, 85, 105, 0.35);
}
.hm-category-tumu .hm-cat-link { color: #475569; }

@media (max-width: 639px) {
  .hm-category-card {
    padding: 18px 12px;
    border-radius: 18px;
  }
  .hm-category-card .hm-cat-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 12px;
  }
  .hm-category-card .hm-cat-icon-wrap svg {
    width: 24px;
    height: 24px;
  }
  .hm-category-card h3 {
    font-size: 14px !important;
  }
  .hm-category-card p {
    font-size: 10px !important;
  }
}

/* ============================================================
   HERO REDESIGN STYLES
   ============================================================ */
.hm-btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0b1220 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  min-height: 54px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.hm-btn-hero-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #0b1220 !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.45);
}

.hm-btn-hero-secondary {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  min-height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.hm-btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 639px) {
  .hm-btn-hero-primary,
  .hm-btn-hero-secondary {
    min-height: 48px;
    border-radius: 14px;
    padding-block: 12px !important;
    font-size: 15px !important;
  }
}

/* ============================================================
   FILTER BUTTONS
   ============================================================ */
.filter-btn.active {
  background: var(--hm-color-night) !important;
  color: #ffffff !important;
  border-color: var(--hm-color-night) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

/* ============================================================
   ADMIN SHARED UI
   ============================================================ */
.fade-in {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  color: #475569;
  font-size: 0.875rem;
  transition: background 0.15s;
  text-align: left;
  cursor: pointer;
  border: none;
  background: none;
}

.nav-item:hover {
  background: #f8fafc;
}

.nav-item.active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.tab-btn {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
}

.tab-btn.active-tab {
  background: #0f172a;
  color: #fff;
}

.tab-btn:not(.active-tab) {
  color: #64748b;
}

.tab-btn:not(.active-tab):hover {
  background: #f1f5f9;
}

.spec-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.hm-products-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 103, 22, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
}

.hm-products-toolbar {
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.hm-products-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hm-swipe-hint {
  display: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.hm-product-grid {
  align-items: stretch;
}

.hm-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hm-product-card:hover {
  border-color: rgba(184, 103, 22, 0.36);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
  transform: translateY(-3px);
}

.hm-product-card:active {
  transform: translateY(-1px) scale(0.99);
}

.hm-product-link {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hm-aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.hm-product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  aspect-ratio: 4 / 3;
  min-height: auto;
}



.hm-product-icon {
  position: relative;
  z-index: 1;
  width: 5rem;
  height: 5rem;
  color: currentColor;
  opacity: 0.78;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hm-product-card:hover .hm-product-icon {
  opacity: 0.95;
  transform: scale(1.06) rotate(-2deg);
}

.hm-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1rem 0.85rem;
}

.hm-product-meta {
  min-height: 1rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hm-product-title {
  display: -webkit-box;
  min-height: 2.65rem;
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hm-product-price {
  margin-top: auto;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.15;
}


.hm-product-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
  padding: 0.72rem 0.9rem !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #0f172a !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hm-product-cart:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.hm-product-cart:active {
  transform: translateY(0) scale(0.98);
}

.hm-product-cart-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover .hm-product-cart-static {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.hm-product-badge,
.hm-product-stock {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.hm-product-badge {
  left: 0.75rem;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hm-product-stock {
  right: 0.75rem;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.hm-product-stock-low {
  background: #fff1f2;
  color: #be123c;
}

/* Stokta yok etiketi */
.hm-product-stock-out {
  background: #ef4444;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Stokta olmayan ürün kartı: görsel hafif soluk, tıklanamaz buton */
.hm-product-card-out .hm-product-link img,
.hm-product-card-out .hm-product-media {
  opacity: 0.55;
  filter: grayscale(40%);
}

.hm-product-cart-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
  padding: 0.72rem 0.9rem !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  border-radius: 14px !important;
  border: 1px solid #fca5a5 !important;
  background: #fee2e2 !important;
  color: #ef4444 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  user-select: none;
}


.hm-tone-slate { color: #64748b; background: linear-gradient(135deg, #f8fafc, #e2e8f0); }
.hm-tone-blue { color: #2563eb; background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.hm-tone-orange { color: #c2410c; background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.hm-tone-violet { color: #7c3aed; background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.hm-tone-emerald { color: #047857; background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.hm-tone-rose { color: #be123c; background: linear-gradient(135deg, #fff1f2, #ffe4e6); }
.hm-tone-amber { color: #b45309; background: linear-gradient(135deg, #fffbeb, #fde68a); }
.hm-tone-yellow { color: #a16207; background: linear-gradient(135deg, #fefce8, #fef08a); }
.hm-tone-indigo { color: #4f46e5; background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.hm-tone-teal { color: #0f766e; background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.hm-tone-red { color: #dc2626; background: linear-gradient(135deg, #fef2f2, #fecaca); }
.hm-tone-cyan { color: #0891b2; background: linear-gradient(135deg, #ecfeff, #cffafe); }
.hm-tone-stone { color: #57534e; background: linear-gradient(135deg, #fafaf9, #e7e5e4); }
.hm-tone-pink { color: #db2777; background: linear-gradient(135deg, #fdf2f8, #fbcfe8); }

.hm-product-sections {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hm-product-section {
  min-width: 0;
}

.hm-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hm-section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
}

.hm-section-heading p {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.hm-section-heading span {
  flex-shrink: 0;
  color: #98500f;
  font-size: 0.74rem;
  font-weight: 850;
}

.hm-product-rail {
  display: grid;
  grid-auto-columns: minmax(188px, 72vw);
  grid-auto-flow: column;
  gap: 0.85rem;
  margin-inline: -1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.1rem 1rem 0.65rem;
  scroll-padding-left: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scroll-behavior: smooth;
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.hm-product-rail.active-drag {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none !important;
}

.hm-product-rail::-webkit-scrollbar {
  display: none;
}

.hm-product-rail .hm-product-card {
  scroll-snap-align: start;
}

/* ============================================================
   CART BADGE
   ============================================================ */
.cart-badge {
  background: #0b1220 !important;
  color: #facc15 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: transform 200ms ease, background 200ms ease;
}

.cart-badge.hm-badge-pop {
  animation: hmBadgePop 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #f59e0b !important;
  color: #0b1220 !important;
}

@keyframes hmBadgePop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  background: #101827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.28) !important;
  z-index: 600 !important;
}

.hm-auth-message {
  border-radius: 16px;
  border: 1px solid var(--hm-color-border);
  padding: 0.85rem 1rem;
  color: #334155;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 650;
}

.hm-auth-message-success {
  border-color: rgba(15, 118, 110, 0.24);
  color: #0f766e;
  background: #ecfdf5;
}

.hm-auth-message-error {
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  background: #fff1f2;
}

/* ============================================================
   HEADER COMPONENTS
   ============================================================ */
 .hm-site-header {
  isolation: isolate;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
 }

 .hm-header-shell {
  gap: 0.75rem;
 }

 .hm-brand {
  min-width: 0;
 }

 .hm-brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
 }

 .hm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
 }

 .hm-cart-trigger {
  min-height: 44px;
  padding-inline: 0.95rem !important;
  flex-shrink: 0;
 }

 .hm-mobile-toggle {
   min-width: 44px;
   min-height: 44px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 14px;
   border: 1px solid rgba(148, 163, 184, 0.2);
   background: rgba(15, 23, 42, 0.55);
   position: relative;
 }

 /* Hamburger → X morphing */
 .hm-mobile-toggle .hm-hamburger {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 20px;
   height: 20px;
   gap: 4px;
 }

 .hm-mobile-toggle .hm-hamburger span {
   display: block;
   width: 18px;
   height: 2px;
   background: currentColor;
   border-radius: 2px;
   transition: transform 250ms ease, opacity 200ms ease;
   transform-origin: center;
 }

 .hm-mobile-toggle[aria-expanded="true"] .hm-hamburger span:nth-child(1) {
   transform: translateY(6px) rotate(45deg);
 }
 .hm-mobile-toggle[aria-expanded="true"] .hm-hamburger span:nth-child(2) {
   opacity: 0;
   transform: scaleX(0);
 }
 .hm-mobile-toggle[aria-expanded="true"] .hm-hamburger span:nth-child(3) {
   transform: translateY(-6px) rotate(-45deg);
 }

 /* Mobile menu – hidden on desktop, shown via media query on mobile */
 .hm-mobile-menu {
   display: none;
 }

 #specsTable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
 }

 #specsTable table {
  min-width: 520px;
 }

/* ============================================================
   MOBILE BOTTOM NAV BAR
   ============================================================ */
.hm-bottom-nav {
  display: none;
}

/* ============================================================
   STICKY ADD-TO-CART BAR (product detail – mobile)
   ============================================================ */
.hm-sticky-cart-bar {
  display: none;
}

.hm-filter-wrapper {
  position: relative;
  width: 100%;
}

.hm-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  scroll-behavior: smooth;
}

.hm-filter-arrow {
  transform: translateY(-50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hm-filter-arrow:hover {
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hm-filter-arrow.opacity-100 {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.hm-filter-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

/* ============================================================
   TOUCH-FRIENDLY: disable hover lift on touch devices
   ============================================================ */
 @media (hover: none) {
  .hm-btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .card-lift:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
  }
 }

/* ============================================================
   ★ MOBILE OVERRIDES (max-width: 767px)
   ============================================================ */
 @media (max-width: 767px) {

  /* --- Spacing reduction --- */
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* --- Header --- */
  .hm-header-shell {
    min-height: 56px;
  }

  .hm-brand-text {
    font-size: 0.98rem;
  }

  .hm-cart-trigger {
    padding-inline: 0.85rem !important;
    font-size: 0.875rem !important;
  }

  .hm-cart-label {
    display: none;
  }

  /* --- Mobile menu fullscreen overlay --- */
  .hm-mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 56px) !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 200 !important;
    padding: 1.25rem 1.25rem calc(var(--hm-bottom-nav-h, 64px) + 1.25rem) !important;
    
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 26, 0.98)) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    
    /* Closed state */
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-20px) !important;
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), transform 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .hm-site-header {
    z-index: 210 !important;
  }

  .hm-mobile-menu.hm-menu-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .hm-mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #f8fafc !important;
    text-decoration: none;
    padding: 0.75rem 2rem !important;
    border-radius: 9999px;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    
    /* Staggered animation setup */
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms cubic-bezier(0.4, 0, 0.2, 1), background 200ms ease, color 200ms ease, letter-spacing 300ms ease !important;
  }

  .hm-mobile-menu.hm-menu-visible a {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* Staggered delays */
  .hm-mobile-menu.hm-menu-visible a:nth-child(1) { transition-delay: 50ms, 50ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu.hm-menu-visible a:nth-child(2) { transition-delay: 100ms, 100ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu.hm-menu-visible a:nth-child(3) { transition-delay: 150ms, 150ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu.hm-menu-visible a:nth-child(4) { transition-delay: 200ms, 200ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu.hm-menu-visible a:nth-child(5) { transition-delay: 250ms, 250ms, 0s, 0s, 0s !important; }
  
  /* Reverse delays when closing for smooth exit */
  .hm-mobile-menu a:nth-child(1) { transition-delay: 150ms, 150ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu a:nth-child(2) { transition-delay: 100ms, 100ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu a:nth-child(3) { transition-delay: 50ms, 50ms, 0s, 0s, 0s !important; }
  .hm-mobile-menu a:nth-child(4) { transition-delay: 0ms, 0ms, 0s, 0s, 0s !important; }

  .hm-mobile-menu a:hover,
  .hm-mobile-menu a:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f59e0b !important;
    letter-spacing: 0.02em !important;
    outline: none;
  }

  .hm-mobile-menu a:active {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    transform: scale(0.95) !important;
  }

  .hm-mobile-menu a.text-amber-400 {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
  }


  /* Hide bottom nav when mobile menu is open */
  body.hm-menu-open .hm-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  /* --- Bottom Navigation Bar --- */
  .hm-bottom-nav {
    transition: opacity 200ms ease, transform 200ms ease;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: calc(var(--hm-bottom-nav-h) + var(--hm-safe-bottom));
    padding-bottom: var(--hm-safe-bottom);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  }

  .hm-bottom-nav a,
  .hm-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-height: 52px;
    padding: 6px 0;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 150ms ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .hm-bottom-nav a:active,
  .hm-bottom-nav button:active {
    color: #f59e0b;
  }

  .hm-bottom-nav .hm-bnav-active {
    color: #f59e0b;
  }

  .hm-bottom-nav svg {
    width: 22px;
    height: 22px;
  }

  /* Bottom nav cart badge */
  .hm-bnav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f59e0b;
    color: #0b1220;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
    transition: transform 200ms ease;
  }

  .hm-bnav-badge:empty,
  .hm-bnav-badge[data-count="0"] {
    display: none;
  }

  /* Body padding for bottom nav */
  body {
    padding-bottom: calc(var(--hm-bottom-nav-h) + var(--hm-safe-bottom));
  }

  /* Move toast above bottom nav */
  #toast {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(var(--hm-bottom-nav-h) + var(--hm-safe-bottom) + 12px) !important;
    width: auto;
  }

  /* Move scroll-top button above bottom nav */
  #_scrollTopBtn {
    bottom: calc(var(--hm-bottom-nav-h) + var(--hm-safe-bottom) + 12px) !important;
  }

  /* --- Hero section compact on mobile --- */
  .hero-bg {
    min-height: auto !important;
  }

  .hero-bg h1 {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
  }

  .hm-products-hero > div {
    padding-top: 1.4rem !important;
    padding-bottom: 1.35rem !important;
  }

  .hm-products-hero nav {
    margin-bottom: 0.35rem !important;
    font-size: 0.78rem !important;
  }

  .hm-products-hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.12 !important;
  }

  .hm-products-hero p {
    max-width: 19rem;
    font-size: 0.92rem !important;
    line-height: 1.45;
  }

  .hm-products-toolbar > div {
    padding-top: 0.75rem !important;
    padding-bottom: 0.7rem !important;
  }

  .hm-products-controls {
    gap: 0.55rem !important;
    margin-bottom: 0.65rem !important;
  }

  .hm-products-controls input,
  .hm-products-controls select {
    min-height: 46px;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  }

  .hm-products-controls select {
    max-width: 9.2rem;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }

  .hm-products-main {
    padding-top: 1.25rem !important;
  }

  .hm-products-summary {
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .hm-swipe-hint {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #fff7ed;
    padding: 0.2rem 0.6rem;
    color: #98500f;
  }

  /* --- Product grid: larger cards, single column option --- */
  #featuredGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* Product card image taller */
  #featuredGrid .card-lift > div:first-child {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }

  .hm-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .hm-product-grid .hm-product-media {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }

  .hm-product-card {
    border-radius: 16px;
  }

  .hm-product-card:hover {
    transform: none;
  }

  .hm-product-media {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }

  .hm-product-icon {
    width: 4.05rem;
    height: 4.05rem;
  }

  .hm-product-body {
    gap: 0.35rem;
    padding: 0.78rem 0.78rem 0.62rem;
  }

  .hm-product-meta {
    font-size: 0.65rem;
  }

  .hm-product-title {
    min-height: 2.28rem;
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .hm-product-price {
    font-size: 1rem;
  }

  .hm-product-cart {
    min-height: 46px;
    width: calc(100% - 1.56rem);
    margin: 0 0.78rem 0.78rem;
    border-radius: 13px !important;
    font-size: 0.84rem !important;
  }

  .hm-product-badge,
  .hm-product-stock {
    top: 0.55rem;
    padding: 0.28rem 0.48rem;
    font-size: 0.62rem;
  }

  .hm-product-badge {
    left: 0.55rem;
  }

  .hm-product-stock {
    right: 0.55rem;
  }

  .hm-product-rail {
    grid-auto-columns: minmax(178px, 72vw);
  }

  /* --- Filter bar: horizontal scroll chips --- */
  .hm-filter-btns {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: -1rem;
    padding: 0 1rem 6px;
    gap: 8px;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .hm-filter-btns.active-drag {
    cursor: grabbing;
    user-select: none;
  }
  .hm-filter-btns::-webkit-scrollbar {
    display: none;
  }
  .hm-filter-btns .filter-btn {
    flex-shrink: 0;
    min-height: 44px;
    white-space: nowrap;
  }

  /* --- Sticky cart bar on product detail page --- */
  .hm-sticky-cart-bar {
    display: flex;
    position: fixed;
    bottom: calc(var(--hm-bottom-nav-h) + var(--hm-safe-bottom));
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  }

  .hm-sticky-cart-bar .hm-sticky-price {
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a;
    white-space: nowrap;
  }

  .hm-sticky-cart-bar .hm-sticky-btn {
    flex: 1;
    min-height: 48px;
    background: linear-gradient(135deg, #d58a2a 0%, #b86716 100%);
    color: #fff7ed;
    border: none;
    border-radius: 14px;
    font-weight: 750;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(184,103,22,0.22);
    transition: background 180ms ease;
  }

  .hm-sticky-cart-bar .hm-sticky-btn:active {
    background: linear-gradient(135deg, #c87922 0%, #98500f 100%);
  }

  /* When sticky bar is present, add extra body padding */
  body.hm-has-sticky-cart {
    padding-bottom: calc(var(--hm-bottom-nav-h) + var(--hm-safe-bottom) + 68px);
  }

  /* --- Product detail: full-width image --- */
  #mainImage {
    border-radius: 16px !important;
    min-height: auto !important;
  }

  /* --- Specs table: smaller on mobile --- */
  #specsTable table {
    min-width: 100% !important;
  }

  /* --- Category cards on homepage: taller icons --- */
  .grid-cols-2.sm\\:grid-cols-3 .card-lift {
    padding: 1rem !important;
  }

  /* --- Footer: ensure not clipped by bottom nav --- */
  footer {
    padding-bottom: 1rem !important;
  }
 }

/* ============================================================
   ★ SMALL MOBILE (max-width: 374px)
   ============================================================ */
@media (max-width: 374px) {
  .hm-bottom-nav {
    --hm-bottom-nav-h: 56px;
  }
  .hm-bottom-nav svg {
    width: 20px;
    height: 20px;
  }
  .hm-bottom-nav a,
  .hm-bottom-nav button {
    font-size: 9px;
  }

  .hm-product-grid {
    grid-template-columns: 1fr !important;
  }

  .hm-product-grid .hm-product-media {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }

  .hm-product-rail {
    grid-auto-columns: minmax(174px, 82vw);
  }
}

/* ============================================================
   SMALL MOBILE (max-width: 639px) – extra tweaks
   ============================================================ */
 @media (max-width: 639px) {
  .hm-cart-trigger {
    min-width: 44px;
  }
 }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
 @media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
 }
