@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:          #F8F7F4;
  --bg2:         #EFEDE8;
  --bg3:         #E8E5DE;
  --surface:     #FFFFFF;
  --text:        #111110;
  --text-mid:    #4A4A45;
  --text-muted:  #9A9990;
  --accent:      #111110;
  --accent2:     #2C2C28;
  --sale:        #B83232;
  --sale-bg:     #FDF2F2;
  --sale-text:   #B83232;
  --border:      #DEDAD3;
  --border-sm:   #E8E5DF;
  --gold:        #C8A96E;
  --success:     #2E7D32;
  --success-bg:  #E8F5E9;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 60px rgba(0,0,0,0.14);
  --radius-sm:   3px;
  --radius:      6px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h:    68px;
  --mob-nav-h:   64px;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-sm);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s var(--ease);
}
.logo-wrap:hover { transform: scale(1.05); }

.logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 768px) {
  .logo-img  { height: 56px; }
  .logo-text { font-size: 18px; letter-spacing: 0.08em; }
}

.header-nav { display: flex; gap: 4px; }

.nav-btn {
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  transition: all 0.2s var(--ease);
}
.nav-btn:hover { color: var(--text); background: var(--bg2); }
.nav-btn.active {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Desktop Search ── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.search-input {
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 34px 8px 36px;
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  outline: none;
  width: 210px;
  transition: all 0.3s var(--ease-bounce);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(17,17,16,0.06);
}
.search-wrap:focus-within .search-icon { color: var(--text); }

/* ── Search clear button ── */
.search-clear {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg3);
  transition: all 0.15s var(--ease-bounce);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.search-clear:hover {
  background: var(--border);
  color: var(--text);
  transform: scale(1.1);
}

/* ── Mobile search toggle ── */
.mobile-search-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s var(--ease-bounce);
}
.mobile-search-btn:hover { background: var(--bg2); }

/* ── Language switch з прапорами ── */
.lang-switch {
  display: flex;
  gap: 1px;
  background: var(--bg2);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 17px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: scale(1.05);
}
.lang-btn:not(.active):hover { color: var(--text); }

.lang-flag {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Cart button */
.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s var(--ease-bounce);
}
.cart-btn:hover { background: var(--bg2); transform: scale(1.1); }

@keyframes cartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25) rotate(-10deg); }
  60%  { transform: scale(1.1)  rotate(10deg); }
  80%  { transform: scale(1.15) rotate(-5deg); }
  100% { transform: scale(1); }
}
.cart-btn.cart-bump { animation: cartBounce 0.4s var(--ease-bounce); }

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  transition: transform 0.2s;
}

/* ═══════════════════════════════════════════════════════
   MOBILE SEARCH BAR
═══════════════════════════════════════════════════════ */
.mobile-search-bar {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border-sm);
  position: sticky;
  top: var(--header-h);
  z-index: 190;
}

.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
}

.mobile-search-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 9px 34px 9px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all 0.25s var(--ease);
}
.mobile-search-input::placeholder { color: var(--text-muted); }
.mobile-search-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(17,17,16,0.06);
}

/* ─ Close button in mobile search ─ */
.mobile-search-close-btn {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-search-close-btn:hover {
  background: var(--bg2);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   SEARCH SUGGESTION
═══════════════════════════════════════════════════════ */
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px 12px;
  background: var(--bg);
  border-top: 1px solid var(--border-sm);
  font-size: 13px;
  color: var(--text-mid);
  animation: fadeStepIn 0.3s var(--ease-out);
}

.search-suggestion-desktop {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 40px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-sm);
  font-size: 13px;
  color: var(--text-mid);
  animation: fadeStepIn 0.3s var(--ease-out);
}
.search-suggestion-desktop.show { display: flex; }

#search-suggestion-text,
.search-suggestion-desktop span { flex: 1; min-width: 0; }
#search-suggestion-text strong,
.search-suggestion-desktop strong { color: var(--text); }

.suggestion-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-bounce);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.suggestion-pill:hover {
  background: var(--accent2);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════
   FILTERS BAR
═══════════════════════════════════════════════════════ */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-sm);
}

.filters-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  flex-wrap: nowrap;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.filter-toggle-btn:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-1px);
}

.filter-active-count {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  flex: 1;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 13px;
  background: var(--bg2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  animation: fadeStepIn 0.3s var(--ease-out);
}
.filter-chip button {
  font-size: 11px;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.filter-chip button:hover {
  background: var(--border);
  color: var(--text);
  transform: scale(1.1);
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.sort-group {
  position: relative;
  flex-shrink: 0;
}

.filter-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

.sort-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s var(--ease);
  min-width: 160px;
  justify-content: space-between;
}
.sort-pill:hover,
.sort-group.open .sort-pill {
  border-color: var(--accent);
  background: var(--bg);
}
.sort-group.open .sort-pill {
  box-shadow: 0 0 0 3px rgba(17,17,16,0.05);
}

.sort-pill-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s;
}
.sort-pill:hover .sort-pill-label,
.sort-group.open .sort-pill-label { color: var(--text-mid); }

.sort-pill-value {
  flex: 1;
  text-align: left;
  padding: 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.sort-pill-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-bounce);
}
.sort-group.open .sort-pill-chevron { transform: rotate(180deg); color: var(--accent); }

.sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(17,17,16,0.12), 0 2px 8px rgba(17,17,16,0.06);
  z-index: 400;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease-bounce);
  transform-origin: top right;
}
.sort-group.open .sort-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-mid);
  cursor: pointer;
  border-bottom: 1px solid var(--border-sm);
  transition: background 0.14s, color 0.14s, padding-left 0.2s var(--ease);
  white-space: nowrap;
}
.sort-option:last-child { border-bottom: none; }
.sort-option:hover {
  background: var(--bg);
  color: var(--text);
  padding-left: 20px;
}
.sort-option.active {
  color: var(--text);
  font-weight: 700;
  background: var(--bg2);
}
.sort-option-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s var(--ease-bounce);
}
.sort-option.active .sort-option-check {
  opacity: 1;
  transform: scale(1);
}
.sort-option-check::after {
  content: '';
  width: 4px; height: 7px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.results-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   FILTER DRAWER
═══════════════════════════════════════════════════════ */
#filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 700;
  pointer-events: none;
}
#filter-drawer.open { pointer-events: all; }

#filter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0.45);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(3px);
}
#filter-drawer.open #filter-overlay { opacity: 1; }

.filter-panel {
  position: absolute;
  top: 0; left: 0;
  width: 380px;
  max-width: 92vw;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 60px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
}
#filter-drawer.open .filter-panel { transform: translateX(0); }

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-sm);
  flex-shrink: 0;
}
.filter-panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}
.filter-panel-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-mid);
  transition: all 0.18s;
}
.filter-panel-close:hover {
  background: var(--bg2);
  color: var(--text);
  transform: scale(1.1);
}

.filter-panel-body { flex: 1; overflow-y: auto; padding: 0; }

.fp-section { border-bottom: 1px solid var(--border-sm); }

.fp-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}
.fp-section-header:hover { background: var(--bg); }

.fp-chevron {
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-bounce);
  flex-shrink: 0;
}
.fp-section.collapsed .fp-chevron { transform: rotate(-90deg); }

.fp-section-body {
  padding: 4px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 600px;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.fp-section.collapsed .fp-section-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.fp-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease);
}
.fp-checkbox-row:hover { transform: translateX(4px); }
.fp-checkbox-row:hover .fp-cb-label { color: var(--text); }
.fp-checkbox-row input[type="checkbox"] { display: none; }

.fp-cb-box {
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-bounce);
  position: relative;
}
.fp-checkbox-row input:checked + .fp-cb-box {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.fp-checkbox-row input:checked + .fp-cb-box::after {
  content: "";
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.fp-cb-label {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1;
  transition: color 0.15s;
}
.fp-checkbox-row input:checked ~ .fp-cb-label {
  color: var(--text);
  font-weight: 600;
}

.fp-sale-label { color: var(--sale); }

.filter-panel-footer {
  padding: 18px 28px 28px;
  border-top: 1px solid var(--border-sm);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-clear-filters {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--text-mid);
  transition: all 0.2s var(--ease);
}
.btn-clear-filters:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-show-results {
  flex: 2;
  padding: 13px 16px;
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: #fff;
  transition: all 0.2s var(--ease);
}
.btn-show-results:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════
   MAIN GRID
═══════════════════════════════════════════════════════ */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 100px 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════════════════════ */
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-sm);
  position: relative;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s var(--ease);
}
.card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.card.card-visible:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.card.out-of-stock { opacity: 0.55; }

.card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg2);
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card.card-visible:hover .card-img-wrap img { transform: scale(1.08); }
.card-img-wrap.no-img img { opacity: 0; }

.badge-sale {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--sale);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  z-index: 1;
  box-shadow: 0 2px 10px rgba(184,50,50,0.3);
}

.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,247,244,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.card-info {
  padding: 16px 18px 20px;
  transition: background 0.3s;
}
.card.card-visible:hover .card-info { background: #fafafa; }

.card-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price { display: flex; align-items: baseline; gap: 9px; }
.price-current { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

/* ═══════════════════════════════════════════════════════
   PRODUCT MODAL
═══════════════════════════════════════════════════════ */
#modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
#modal.open { pointer-events: all; opacity: 1; }

#modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 960px;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-lg);
}
#modal.open .modal-content { transform: scale(1) translateY(0); }

#modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: all 0.2s var(--ease-bounce);
}
#modal-close:hover {
  background: var(--bg2);
  color: var(--text);
  transform: scale(1.15) rotate(90deg);
}

.modal-share-btn {
  position: absolute;
  top: 16px; right: 62px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: all 0.2s var(--ease-bounce);
}
.modal-share-btn:hover {
  background: var(--bg2);
  color: var(--text);
  transform: scale(1.15);
}

.modal-gallery {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.gallery-main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--bg2);
  animation: fadeStepIn 0.4s var(--ease);
}

.no-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
}

.img-skeleton {
  flex: 1;
  min-height: 0;
  background: linear-gradient(100deg, var(--bg2) 30%, var(--bg3) 50%, var(--bg2) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
  z-index: 2;
  transition: all 0.2s var(--ease-bounce);
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.15); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 2;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
}
.dot.active { background: #fff; transform: scale(1.6); }

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.55;
  transition: all 0.2s;
}
.thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); opacity: 1; transform: translateY(-2px); }

.modal-info {
  padding: 32px 30px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.modal-info::-webkit-scrollbar { width: 4px; }
.modal-info::-webkit-scrollbar-track { background: transparent; }
.modal-info::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.modal-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text);
}
.modal-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-price-current { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.modal-price-old { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.modal-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--sale-text);
  background: var(--sale-bg);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}
.modal-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-mid); }

.modal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sizes-row { display: flex; flex-wrap: wrap; gap: 7px; }

.size-tag {
  padding: 8px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s var(--ease-bounce);
  min-width: 46px;
  text-align: center;
  color: var(--text);
}
.size-tag:not(.size-unavailable):not(.selected):hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
  color: var(--text);
}
.size-tag.selected {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.size-tag.selected:hover,
.size-tag.selected:active {
  background: var(--accent2) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.size-unavailable {
  color: var(--border) !important;
  text-decoration: line-through;
  opacity: 0.5;
  cursor: default;
}

/* ── Size / Measurements chart ── */
.size-chart-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -2px;
}
.size-chart-wrap::-webkit-scrollbar { display: none; }

.size-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 280px;
}

.size-chart thead tr { background: var(--bg3); }
.size-chart th {
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.size-chart th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.size-chart th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.size-chart tbody tr {
  border-bottom: 1px solid var(--border-sm);
  transition: background 0.15s;
}
.size-chart tbody tr:last-child { border-bottom: none; }
.size-chart tbody tr:hover { background: var(--bg); }

.size-chart tbody tr.highlighted { background: var(--bg2); }
.size-chart tbody tr.highlighted td:first-child { font-weight: 700; color: var(--text); }

.size-chart td {
  padding: 9px 12px;
  color: var(--text-mid);
  white-space: nowrap;
}
.size-chart td:first-child {
  font-weight: 600;
  color: var(--text);
  min-width: 52px;
}

.size-chart-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Details accordion */
.modal-details {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-sm);
}
.modal-details details { border-bottom: 1px solid var(--border-sm); }
.modal-details summary {
  padding: 13px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.modal-details summary::-webkit-details-marker { display: none; }
.modal-details summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  transition: transform 0.3s var(--ease-bounce);
}
.modal-details details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.modal-details details p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mid);
  padding-bottom: 14px;
  animation: fadeStepIn 0.3s var(--ease);
}
.modal-details details .size-chart-wrap {
  padding-bottom: 14px;
  animation: fadeStepIn 0.3s var(--ease);
}

/* Modal action buttons */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
  padding-bottom: 4px;
}

.btn-add-cart {
  padding: 15px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.btn-add-cart:hover:not(:disabled) {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17,17,16,0.2);
}
.btn-add-cart:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn-add-cart:disabled { opacity: 0.32; cursor: default; transform: none; }

.btn-add-cart.btn-in-cart,
.btn-add-cart[data-state="in-cart"] {
  background: var(--success);
  color: #fff;
}
.btn-add-cart.btn-in-cart:hover,
.btn-add-cart[data-state="in-cart"]:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.25);
}

.btn-buy-now {
  padding: 13px 24px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}
.btn-buy-now:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}
.btn-buy-now:disabled { opacity: 0.32; cursor: default; }

/* ═══════════════════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════════════════ */
#cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
#cart-drawer.open { pointer-events: all; }

#cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0.4);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(3px);
}
#cart-drawer.open #cart-overlay { opacity: 1; }

.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 60px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
}
#cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-sm);
  flex-shrink: 0;
}
.cart-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-mid);
  transition: all 0.2s var(--ease-bounce);
}
.cart-close:hover {
  background: var(--bg2);
  color: var(--text);
  transform: scale(1.1) rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  color: var(--text-muted);
  animation: fadeStepIn 0.4s ease;
}
.cart-empty svg { opacity: 0.2; }
.cart-empty p { font-size: 15px; }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr 20px;
  gap: 14px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-sm);
  animation: fadeStepIn 0.3s ease-out;
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }

.cart-item-img {
  width: 76px; height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg2);
}
.cart-item-img--clickable {
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.cart-item-img--clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cart-item-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.cart-item-name--clickable {
  cursor: pointer;
  transition: color 0.15s;
}
.cart-item-name--clickable:hover {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cart-item-price { font-size: 15px; font-weight: 700; margin-top: 8px; }

.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s var(--ease-bounce);
  background: transparent;
}
.qty-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.qty-btn:active { transform: scale(0.95); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
  color: var(--text-muted);
  font-size: 15px;
  padding: 2px;
  transition: all 0.2s var(--ease-bounce);
  line-height: 1;
}
.cart-item-remove:hover { color: var(--sale); transform: scale(1.2) rotate(90deg); }

.cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border-sm);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.cart-total-price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.btn-checkout {
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-bounce);
  text-align: center;
}
.btn-checkout:hover {
  background: var(--accent2);
  box-shadow: 0 6px 20px rgba(17,17,16,0.2);
  transform: translateY(-2px);
}

.btn-clear-cart {
  padding: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.btn-clear-cart:hover { color: var(--sale); }

/* ═══════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-bounce);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 6px 28px rgba(17,17,16,0.22);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════
   LOADING SCREEN
═══════════════════════════════════════════════════════ */
#loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1/-1;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   ORDER FORM
═══════════════════════════════════════════════════════ */
#order-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
#order-modal.open { pointer-events: all; opacity: 1; }

#order-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0.6);
  backdrop-filter: blur(8px);
}

.order-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92) translateY(30px);
  transition: transform 0.4s var(--ease-bounce);
  overflow: hidden;
}
#order-modal.open .order-panel { transform: scale(1) translateY(0); }

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-sm);
  flex-shrink: 0;
}
.order-steps { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.order-step { color: var(--text-muted); transition: color 0.3s; }
.order-step.active { color: var(--text); font-weight: 700; transform: scale(1.05); }
.order-step.done { color: var(--text-muted); opacity: 0.55; font-size: 11px; }
.order-step-sep { color: var(--border); font-size: 14px; }

.order-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-mid);
  transition: all 0.2s var(--ease-bounce);
}
.order-close:hover { background: var(--bg2); color: var(--text); transform: scale(1.15) rotate(90deg); }

.order-body { flex: 1; overflow-y: auto; padding: 0; }

.order-summary {
  background: var(--bg);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-sm);
  max-height: 250px;
  overflow-y: auto;
}
.order-summary:empty { display: none; }

.order-items-list { display: flex; flex-direction: column; gap: 12px; }

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeStepIn 0.3s ease-out;
}

.order-item-img {
  width: 48px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg2);
  flex-shrink: 0;
}
.order-item-img--clickable {
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.order-item-img--clickable:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.order-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.order-item-brand { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.order-item-name  { font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-name--clickable {
  cursor: pointer;
  transition: color 0.15s;
}
.order-item-name--clickable:hover {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.order-item-size  { font-size: 11px; color: var(--text-muted); }

.order-item-qty-wrap { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.qty-btn-sm {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  transition: all 0.2s var(--ease-bounce);
}
.qty-btn-sm:hover { border-color: var(--accent); background: var(--accent); color: #fff; transform: scale(1.15); }
.qty-btn-sm:active { transform: scale(0.9); }
.qty-num-sm { font-size: 13px; font-weight: 600; min-width: 14px; text-align: center; }

.order-item-price { font-size: 13px; font-weight: 700; flex-shrink: 0; width: 65px; text-align: right; }

.order-item-delete {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s var(--ease-bounce);
  flex-shrink: 0;
  margin-left: 5px;
}
.order-item-delete:hover { background: var(--sale-bg); color: var(--sale); transform: scale(1.2) rotate(90deg); }

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.order-summary-total span:last-child { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

/* Step animations */
.order-step-content { display: none; flex-direction: column; }
.order-step-content.active { display: flex; animation: fadeStepIn 0.4s var(--ease-out) forwards; }

@keyframes fadeStepIn {
  from { opacity: 0; transform: translateX(15px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animated-group { animation: slideDownFade 0.3s var(--ease-out); }

.order-form {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}
.form-row:focus-within .form-label { color: var(--text); }

.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: all 0.3s var(--ease);
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(17,17,16,0.06);
  transform: translateY(-1px);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled { background: var(--bg); color: var(--text-muted); cursor: not-allowed; border-color: var(--border-sm); }
.form-textarea { resize: vertical; min-height: 72px; }
.form-section-divider { height: 1px; background: var(--border-sm); margin: 4px 0; }

/* Delivery / payment options */
.delivery-options,
.payment-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.delivery-option,
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.delivery-option:hover,
.payment-option:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.03); border-color: #ccc; }

.delivery-option:has(input:checked),
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.disabled-option { cursor: not-allowed; opacity: 0.6; border-color: var(--border-sm) !important; background: var(--bg2) !important; transform: none !important; box-shadow: none !important; }
.disabled-option:hover { transform: none !important; border-color: var(--border-sm) !important; box-shadow: none !important; }

.badge-soon {
  background: var(--text-muted);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
  vertical-align: middle;
}

.delivery-option input[type="radio"],
.payment-option  input[type="radio"] { display: none; }

.delivery-option::before,
.payment-option::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s var(--ease-bounce);
}
.delivery-option:has(input:checked)::before,
.payment-option:has(input:checked)::before {
  border-color: var(--accent);
  border-width: 5px;
  background: var(--surface);
  transform: scale(1.1);
}

.delivery-option-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.payment-option-body { display: flex; align-items: flex-start; gap: 10px; flex: 1; }
.payment-option-body > svg { flex-shrink: 0; margin-top: 2px; }
.payment-option-body > span { display: flex; flex-direction: column; gap: 3px; }

.delivery-name, .payment-name { font-size: 13.5px; font-weight: 500; color: var(--text); transition: color 0.3s; }
.delivery-price, .payment-desc { font-size: 11.5px; color: var(--text-muted); }

.delivery-option:has(input:checked) .delivery-name,
.payment-option:has(input:checked) .payment-name { color: var(--accent); font-weight: 600; }

/* Confirm box */
.order-confirm-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideDownFade 0.4s var(--ease-out);
}
.confirm-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; gap: 8px; }
.confirm-row span { color: var(--text-mid); flex-shrink: 0; }
.confirm-row strong { font-weight: 600; color: var(--text); text-align: right; }
.confirm-row.confirm-total { padding-top: 10px; border-top: 1px solid var(--border-sm); margin-top: 4px; }
.confirm-row.confirm-grand strong { font-size: 18px; font-weight: 700; color: var(--accent); }

@keyframes pulseBtn {
  0%   { box-shadow: 0 0 0 0   rgba(17,17,16,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(17,17,16,0); }
  100% { box-shadow: 0 0 0 0   rgba(17,17,16,0); }
}
.pulse-btn { animation: pulseBtn 2s infinite; }

/* Step footer */
.order-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 28px 28px;
  border-top: 1px solid var(--border-sm);
  flex-shrink: 0;
}

.btn-order-back {
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--text-mid);
  transition: all 0.2s var(--ease-bounce);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}
.btn-order-back:hover { border-color: var(--accent); color: var(--text); transform: translateX(-3px); }

.btn-order-next {
  position: relative;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
  flex: 1;
  justify-content: center;
  max-width: 220px;
}
.btn-order-next::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.btn-order-next:hover::before { transform: translateX(100%); }
.btn-order-next:hover { background: var(--accent2); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(17,17,16,0.22); animation: none; }
.btn-order-next:active { transform: translateY(0) scale(1); box-shadow: none; }
.btn-order-next svg { transition: transform 0.2s var(--ease-bounce); flex-shrink: 0; }
.btn-order-next:hover svg { transform: translateX(4px); }
.order-step-footer > .btn-order-next:first-child { margin-left: auto; }

.btn-order-submit {
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-bounce);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.btn-order-submit:hover:not(:disabled) { background: var(--accent2); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(17,17,16,0.22); animation: none; }
.btn-order-submit:disabled { opacity: 0.45; cursor: default; transform: none; animation: none; }

/* Success screen */
.order-success {
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: fadeStepIn 0.5s var(--ease-bounce);
}
.order-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 28px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: scaleIn 0.5s var(--ease-bounce);
}
@keyframes scaleIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.order-success h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.order-success p { color: var(--text-mid); font-size: 14px; }
.order-success-id { font-weight: 700; font-size: 16px; color: var(--text); }

.btn-order-close {
  margin-top: 12px;
  padding: 13px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-bounce);
}
.btn-order-close:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* Monobank pay box */
.mono-pay-box {
  background: #fafafa;
  border: 2px dashed #000;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  animation: slideDownFade 0.4s var(--ease-out);
}
.mono-pay-box p { margin: 0; color: var(--text); font-size: 13px; }
.mono-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s var(--ease-bounce);
  text-decoration: none;
  width: 100%;
  max-width: 250px;
}
.mono-pay-btn:hover { background: #333; transform: scale(1.05); }
.mono-warn { color: var(--sale) !important; font-weight: 500; font-size: 12px !important; }
.mono-warn strong {
  font-size: 16px;
  font-weight: 800;
  background: #ffebeb;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
  border: 1px solid var(--sale);
}

/* ═══════════════════════════════════════════════════════
   NOVA POSHTA AUTOCOMPLETE
═══════════════════════════════════════════════════════ */
.np-autocomplete-wrap { position: relative; }

.np-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 500;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  animation: slideDownFade 0.3s var(--ease-out);
}
.np-dropdown.open { display: block; }

.np-dropdown-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-sm);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.12s;
  line-height: 1.4;
}
.np-dropdown-item:last-child { border-bottom: none; }
.np-dropdown-item:hover { background: var(--bg); }
.np-city-name { color: var(--text); font-weight: 500; }
.np-city-name strong { font-weight: 700; }
.np-dropdown-item.np-empty,
.np-dropdown-item.np-loading { color: var(--text-muted); cursor: default; justify-content: flex-start; gap: 10px; }
.np-dropdown-item.np-empty:hover,
.np-dropdown-item.np-loading:hover { background: transparent; }

.np-spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
═══════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-sm);
  height: var(--mob-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left:  env(safe-area-inset-left,   0px);
  padding-right: env(safe-area-inset-right,  0px);
}

.mbn-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease-bounce);
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mbn-btn:active { transform: scale(0.9); }
.mbn-btn.active { color: var(--accent); }
.mbn-btn.active svg { stroke: var(--accent); }

.mbn-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid rgba(255,255,255,0.97);
  pointer-events: none;
}

#mbn-filter-badge { background: var(--accent); color: #fff; }
#mbn-cart-badge   { background: var(--sale);   color: #fff; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.38);
  text-align: center;
  padding: 28px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   ACCOUNT BUTTON
═══════════════════════════════════════════════════════ */
.account-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  border-radius: 21px;
  color: var(--text);
  transition: all 0.2s var(--ease-bounce);
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.account-btn:hover { background: var(--bg2); }

.account-btn-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.account-btn.account-logged-in .account-btn-name { display: block; }
.account-btn.account-logged-in { background: var(--bg2); }

.account-btn.account-logged-in::before {
  content: '';
  position: absolute;
  bottom: 6px; left: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--surface);
  z-index: 1;
}

@media (max-width: 768px) {
  .account-btn-name { display: none !important; }
  .account-btn { padding: 0 6px; }
}

/* ═══════════════════════════════════════════════════════
   ACCOUNT / ORDER HISTORY DRAWER
═══════════════════════════════════════════════════════ */
#account-drawer {
  position: fixed;
  inset: 0;
  z-index: 610;
  pointer-events: none;
}
#account-drawer.open { pointer-events: all; }

#account-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0.4);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(3px);
}
#account-drawer.open #account-overlay { opacity: 1; }

.account-panel {
  position: absolute;
  top: 0; right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 60px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
}
#account-drawer.open .account-panel { transform: translateX(0); }

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-sm);
  flex-shrink: 0;
}
.account-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.account-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-mid);
  transition: all 0.2s var(--ease-bounce);
}
.account-close:hover { background: var(--bg2); color: var(--text); transform: scale(1.1) rotate(90deg); }

.account-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  color: var(--text-muted);
  animation: fadeStepIn 0.4s ease;
}
.account-empty svg { opacity: 0.2; }
.account-empty p { font-size: 15px; }

/* ── Order card ── */
.account-order {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid var(--border-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeStepIn 0.35s var(--ease-out);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.account-order:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.account-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.account-order-id {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.account-order-date {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}
.account-order-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Order items list with photos ── */
.acc-order-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s var(--ease);
  margin: 0 -8px;
}
.acc-order-item:hover {
  background: var(--bg2);
  transform: translateX(3px);
}

.acc-order-item-img {
  width: 44px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s;
}
.acc-order-item:hover .acc-order-item-img {
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.acc-order-item-img-placeholder {
  width: 44px;
  height: 54px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.acc-order-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.acc-order-item-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.acc-order-item-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-order-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.acc-order-more {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  font-style: italic;
}

/* ── Order footer: delivery + badges ── */
.account-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-sm);
}
.account-order-delivery {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.account-order-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text-mid);
  white-space: nowrap;
}

/* Order status badges */
.account-order-badge.status-new         { background: #EEF2FF; color: #4338CA; }
.account-order-badge.status-processing  { background: #FFF7ED; color: #C2410C; }
.account-order-badge.status-done        { background: var(--success-bg); color: var(--success); }
.account-order-badge.status-cancelled   { background: var(--sale-bg); color: var(--sale); }

/* Payment status badges */
.account-order-badge.status-paid        { background: var(--success-bg); color: var(--success); }
.account-order-badge.status-cod         { background: var(--bg3); color: var(--text-mid); }
.account-order-badge.status-pending     { background: #FFF7ED; color: #C2410C; }

/* ── Profile block ── */
.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-sm);
  margin-bottom: 4px;
  animation: fadeStepIn 0.3s var(--ease-out);
}
.account-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.account-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.account-profile-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-profile-phone {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-logout {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-bounce);
}
.btn-logout:hover { background: var(--sale-bg); color: var(--sale); transform: scale(1.1); }

/* Edit profile button override — stays neutral on hover */
#btn-edit-profile:hover {
  background: var(--bg2) !important;
  color: var(--text) !important;
  transform: scale(1.1) !important;
}

/* Orders section header */
.account-orders-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 10px;
}
.account-orders-title span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.account-refresh-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-bounce);
}
.account-refresh-btn:hover { background: var(--bg2); color: var(--text); transform: rotate(180deg); }

.account-loading {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

/* ── Auth screens ── */
.auth-screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0;
  animation: fadeStepIn 0.35s var(--ease-out);
}

.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 0 4px;
}
.auth-new-badge {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.auth-hero-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
.auth-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 280px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field-error {
  display: block;
  font-size: 12px;
  color: var(--sale);
  margin-top: 5px;
  animation: fadeStepIn 0.2s var(--ease-out);
}

.auth-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.auth-btn-row .btn-auth-secondary { flex: 1; }
.auth-btn-row .btn-auth-submit    { flex: 1.4; margin-top: 0; }

.btn-auth-secondary {
  padding: 14px 16px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease-bounce);
  cursor: pointer;
}
.btn-auth-secondary:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-1px);
}

.btn-auth-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s var(--ease-bounce);
  border: none;
  cursor: pointer;
  margin-top: 6px;
}
.btn-auth-submit:hover:not(:disabled) {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17,17,16,0.2);
}
.btn-auth-submit:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn-auth-back {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-body);
}
.btn-auth-back:hover { color: var(--text); }

.btn-auth-outline {
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s var(--ease-bounce);
  cursor: pointer;
}
.btn-auth-outline:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-1px);
}

.auth-choice-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════
   SIZE GUIDE OVERLAY
═══════════════════════════════════════════════════════ */
#size-guide {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
#size-guide.open { pointer-events: all; opacity: 1; }

#size-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sg-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92) translateY(30px);
  transition: transform 0.4s var(--ease-bounce);
}
#size-guide.open .sg-panel { transform: scale(1) translateY(0); }

.sg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-sm);
  flex-shrink: 0;
}
.sg-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.sg-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-mid);
  transition: all 0.2s var(--ease-bounce);
}
.sg-close:hover { background: var(--bg2); color: var(--text); transform: scale(1.1) rotate(90deg); }

.sg-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sg-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid var(--border-sm);
}
.sg-legend-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.45;
}
.sg-legend-key {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sg-legend-desc strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.sg-legend-desc span {
  font-size: 12px;
  color: var(--text-muted);
}

.sg-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-sm);
  background: var(--bg2);
}
.sg-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-size-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: color 0.2s, text-decoration-color 0.2s;
  margin-left: auto;
}
.btn-size-guide:hover {
  color: var(--text);
  text-decoration-color: var(--text-mid);
}

.modal-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-size-header .modal-label { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-inner,
  .filters-inner,
  .main-content,
  .search-suggestion-desktop { padding-left: 24px; padding-right: 24px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 54px; }

  .cart-btn { display: none; }

  .account-panel { width: 100vw; }

  .header-inner { padding: 0 16px; gap: 10px; }

  /* Прапори на мобільному: тільки emoji без тексту */
  .lang-code { display: none; }
  .lang-flag { font-size: 16px; }
  .lang-btn  { padding: 4px 8px; }

  .search-wrap  { display: none; }
  .header-nav   { display: none; }

  .mobile-search-btn { display: flex; }
  .mobile-search-bar { display: flex; }

  .filters-inner { padding: 0 16px; gap: 8px; }
  .filter-right { gap: 8px; }
  .results-count { display: none; }

  .sort-pill { min-width: 0; padding: 6px 10px 6px 12px; gap: 6px; }
  .sort-pill-label { display: none; }
  .sort-pill-value { font-size: 12px; }
  .sort-dropdown { right: 0; left: auto; }

  .search-suggestion { padding: 10px 16px 12px; }
  .search-suggestion-desktop { display: none !important; }

  .main-content {
    padding: 20px 16px calc(var(--mob-nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
  }

  #product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card-info { padding: 11px 12px 14px; }
  .card-name { font-size: 13px; }
  .price-current { font-size: 13px; }
  .badge-sale { font-size: 9px; padding: 3px 7px; }

  #modal { padding: 0; align-items: flex-end; }
  .modal-content {
    grid-template-columns: 1fr;
    height: 92vh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #modal.open .modal-content { transform: translateY(0); }

  .modal-gallery { flex-shrink: 0; min-height: unset; }
  .modal-info { flex: 1; overflow-y: visible; min-height: unset; }

  .gallery-main { min-height: auto; aspect-ratio: 1; }

  .modal-share-btn { right: auto; left: 16px; }
  #modal-close     { right: 16px; }

  .modal-info { padding: 20px 18px 24px; }
  .modal-actions { gap: 8px; }

  .cart-panel {
    width: 100vw;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cart-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .np-dropdown { max-height: 180px; }

  .order-panel {
    max-width: 100%;
    max-height: calc(100vh - 20px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .order-step-footer { flex-wrap: wrap; padding: 14px 20px 20px; }
  .btn-order-next    { max-width: 100%; }
  .btn-order-back, .btn-order-submit { width: 100%; justify-content: center; }

  .mobile-bottom-nav {
    display: flex;
    height: calc(var(--mob-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  footer {
    padding-bottom: calc(28px + var(--mob-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(var(--mob-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  .acc-order-item-img,
  .acc-order-item-img-placeholder { width: 38px; height: 46px; }

  #size-guide { padding: 0; align-items: flex-end; }
  .sg-panel {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #size-guide.open .sg-panel { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  #product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .card-info { padding: 10px 10px 12px; }
  .card-name { font-size: 12px; -webkit-line-clamp: 1; }
  .price-current { font-size: 12px; }

  .modal-info { padding: 16px 16px 20px; gap: 12px; }
  .modal-title { font-size: 17px; }
  .modal-price-current { font-size: 20px; }
  .size-tag { padding: 7px 11px; font-size: 12px; min-width: 38px; }

  .btn-add-cart, .btn-buy-now { font-size: 11px; padding: 13px 16px; }

  .order-form { padding: 16px 18px 20px; }
  .cart-items { padding: 16px 18px; }
  .cart-header { padding: 18px 18px; }
  .cart-footer { padding: 16px 18px 20px; }
  .cart-item { grid-template-columns: 62px 1fr 18px; gap: 10px; }
  .cart-item-img { width: 62px; height: 78px; }

  .size-chart th,
  .size-chart td { padding: 7px 10px; font-size: 11px; }

  .account-body { padding: 16px 18px; }

  .acc-order-item-img,
  .acc-order-item-img-placeholder { width: 34px; height: 42px; }

  /* Приховати текст lang кнопок на зовсім малих екранах */
  .lang-code { display: none; }
  .lang-btn  { padding: 4px 7px; }
}

/* ═══════════════════════════════════════════════════════
   ПРАПОРИ (flagcdn.com PNG — 40px base, 80px @2x)
═══════════════════════════════════════════════════════ */
.lang-flag-img {
  width: 22px;
  height: 16px;
  display: inline-block;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  /* Дозволяємо браузеру застосувати власне згладжування */
  image-rendering: auto;
}

/* Старий emoji-клас — приховати якщо залишився */
.lang-flag { display: none; }

@media (max-width: 480px) {
  .lang-code     { display: none; }
  .lang-btn      { padding: 4px 6px; gap: 0; }
  .lang-flag-img { width: 22px; height: 15px; }
}

/* ═══════════════════════════════════════════════════════
   ORDER STATUS TRACKING STEPS
═══════════════════════════════════════════════════════ */
.order-track {
  display: flex;
  align-items: flex-start;
  padding: 10px 0 4px;
}

.order-track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.order-track-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-bounce);
  flex-shrink: 0;
}

.order-track-step--done .order-track-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.order-track-step--active .order-track-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(17,17,16,0.08);
  animation: trackPulse 2s ease-in-out infinite;
}

@keyframes trackPulse {
  0%   { box-shadow: 0 0 0 0   rgba(17,17,16,0.2); }
  70%  { box-shadow: 0 0 0 7px rgba(17,17,16,0); }
  100% { box-shadow: 0 0 0 0   rgba(17,17,16,0); }
}

.order-track-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.order-track-step--done .order-track-label,
.order-track-step--active .order-track-label {
  color: var(--text);
}

/* Connecting line between dots */
.order-track-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 11px; /* vertically align with dot center */
  align-self: flex-start;
  min-width: 6px;
  transition: background 0.4s;
}

.order-track-line--done { background: var(--success); }

/* Cancelled state */
.order-track--cancelled {
  justify-content: center;
  padding: 8px 0;
}

.order-track-cancelled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sale);
  background: var(--sale-bg);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Nova Poshta tracking button */
.order-track-np-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s var(--ease-bounce);
  background: transparent;
}
.order-track-np-btn:hover {
  border-color: #e30613;
  color: #e30613;
  background: rgba(227,6,19,0.04);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .order-track-label { font-size: 9px; }
  .order-track-dot   { width: 20px; height: 20px; font-size: 9px; }
  .order-track-line  { margin-top: 9px; }
}

/* ═══════════════════════════════════════════════════════
   FOOTER — гліч ефект + соціальні мережі
═══════════════════════════════════════════════════════ */
footer {
  background: #0a0a08;
  padding-bottom: 32px;
  overflow: hidden;
}

/* ── Glitch brand text ─────────────────────────────── */
.footer-glitch-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 48px 0 0;
  user-select: none;
  pointer-events: none;
}

.footer-glitch {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 220px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.85;
  /* Тільки обведення, без заливки */
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.15);
  position: relative;
  animation: glitchMain 7s infinite;
}

/* Псевдоелементи — монохромні, той же білий колір — без синього/червоного */
.footer-glitch::before,
.footer-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  line-height: inherit;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
  opacity: 0;
}

/* Верхній шматок тексту */
.footer-glitch::before {
  clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%);
  animation: glitchSliceTop 7s infinite;
}

/* Нижній шматок тексту */
.footer-glitch::after {
  clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
  animation: glitchSliceBot 7s infinite;
}

/* Головне тіло — горизонтальні мікро-зсуви */
@keyframes glitchMain {
  0%, 88%, 100% { transform: translate(0); -webkit-text-stroke-color: rgba(255,255,255,0.15); }
  89%  { transform: translate(-5px, 0);  -webkit-text-stroke-color: rgba(255,255,255,0.22); }
  90%  { transform: translate( 5px, 0);  -webkit-text-stroke-color: rgba(255,255,255,0.10); }
  91%  { transform: translate( 0,   0);  -webkit-text-stroke-color: rgba(255,255,255,0.26); }
  92%  { transform: translate(-3px, 0); }
  93%  { transform: translate( 0);       -webkit-text-stroke-color: rgba(255,255,255,0.15); }
  95%  { transform: translate( 4px, 0); -webkit-text-stroke-color: rgba(255,255,255,0.20); }
  96%  { transform: translate(-4px, 0); }
  97%  { transform: translate( 0);       -webkit-text-stroke-color: rgba(255,255,255,0.15); }
}

/* Верхній шматок зміщується вліво */
@keyframes glitchSliceTop {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  89%, 90%      { opacity: 1; transform: translate(-10px, 0); }
  91%           { opacity: 0; }
  95%, 96%      { opacity: 1; transform: translate( 8px, 0); }
  97%           { opacity: 0; }
}

/* Нижній шматок зміщується вправо */
@keyframes glitchSliceBot {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  89%           { opacity: 1; transform: translate( 9px, 0); }
  90%, 91%      { opacity: 0; }
  95%           { opacity: 1; transform: translate(-7px, 0); }
  96%, 97%      { opacity: 0; }
}

/* ── Footer inner content ──────────────────────────── */
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 32px 40px 0;
}

.footer-logo-line {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.22s var(--ease-bounce);
  white-space: nowrap;
}
.footer-social-link svg { flex-shrink: 0; opacity: 0.75; transition: opacity 0.2s; }
.footer-social-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.92);
  transform: translateY(-2px);
}
.footer-social-link:hover svg { opacity: 1; }

.footer-social-link[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg, rgba(131,58,180,0.2), rgba(253,29,29,0.14), rgba(252,176,69,0.18));
  border-color: rgba(253,100,100,0.35);
}
.footer-social-link[aria-label="Telegram"]:hover {
  background: rgba(0,136,204,0.14);
  border-color: rgba(0,136,204,0.4);
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* Mobile */
@media (max-width: 768px) {
  footer {
    padding-bottom: calc(var(--mob-nav-h) + env(safe-area-inset-bottom, 0px) + 20px);
  }
  .footer-inner { padding: 24px 20px 0; }
  .footer-glitch-wrap { padding-top: 32px; }
  .footer-social-link span { display: none; }
  .footer-social-link {
    padding: 10px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    justify-content: center;
  }
  .footer-email-link span  { display: inline; font-size: 10px; }
  .footer-email-link {
    width: auto;
    border-radius: 24px;
    padding: 8px 12px;
  }
}

@media (max-width: 1024px) {
  .footer-inner { padding-left: 24px; padding-right: 24px; }
}