/* ═══════════════════════════════════════════════════════
   KONNA Design System — main.css
   Premium bathroom equipment storefront
   ═══════════════════════════════════════════════════════ */


/* ── Design Tokens ── */
:root {
  --blue: #1F3A8A;
  --blue-hover: #162E6E;
  --blue-light: #E8EEF9;
  --blue-50: #f0f4ff;
  --bg: #FFFFFF;
  --bg-section: #F5F7FB;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1320px;
  --header-h: 72px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════
   1. HEADER
   ══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.header__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.header__search {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin: 0 auto;
}

.header__search input {
  width: 100%;
  height: 44px;
  padding: 0 120px 0 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.header__search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.08);
}

.header__search input::placeholder {
  color: var(--text-muted);
}

.header__search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px 0 15px;
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.header__search-btn:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 4px 12px rgba(31, 58, 138, 0.25);
}

.header__search-btn:active {
  transform: translateY(-50%) scale(0.97);
}

.header__search-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header__search-btn-text {
  line-height: 1;
  letter-spacing: 0.2px;
}

/* ── Search Popup / Dropdown ── */
.search-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  animation: searchPopupFadeIn 0.2s ease-out;
}

@keyframes searchPopupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-popup__content {
  overflow-y: auto;
  padding: 8px 0;
  max-height: 400px;
}

.search-popup__header {
  padding: 8px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-popup__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.search-popup__item:last-child {
  border-bottom: none;
}

.search-popup__item:hover {
  background: var(--blue-light);
}

.search-popup__item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.search-popup__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-popup__item-info {
  flex: 1;
  min-width: 0;
}

.search-popup__item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.search-popup__item:hover .search-popup__item-title {
  color: var(--blue);
}

.search-popup__item-sub {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-popup__item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-popup__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.search-popup__footer {
  padding: 10px 16px;
  background: var(--bg-section);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.search-popup__footer-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}

.search-popup__footer-btn:hover {
  text-decoration: underline;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.header__phone-icon {
  width: 34px;
  height: 34px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: all var(--transition);
}

.header__phone-text {
  font-size: 14px;
  line-height: 1.2;
}

.header__phone-text strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: color var(--transition);
}

.header__phone:hover .header__phone-icon {
  background: var(--blue);
  color: white;
  transform: scale(1.05);
}

.header__phone:hover .header__phone-text strong {
  color: var(--blue);
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  flex-shrink: 0;
}

.header__lang button {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
  border-radius: 5px;
  min-width: 36px;
  text-align: center;
  line-height: 1.2;
}

.header__lang button:last-child {
  border-right: none;
}

.header__lang button.active,
.header__lang button:hover {
  background: var(--blue);
  color: white;
}

/* Currency Dropdown in Header */
.header__currency-dropdown {
  position: relative;
  flex-shrink: 0;
}

.currency-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.currency-dropdown__toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.currency-dropdown__arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.currency-dropdown__toggle:hover .currency-dropdown__arrow {
  color: var(--blue);
}

.header__currency-dropdown.open .currency-dropdown__arrow {
  transform: rotate(180deg);
  color: var(--blue);
}

.header__currency-dropdown.open .currency-dropdown__toggle {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.12);
  background: var(--blue-light);
  color: var(--blue);
}

.currency-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 124px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  animation: curDropdownFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes curDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__currency-dropdown.open .currency-dropdown__menu {
  display: flex;
}

.currency-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
}

.currency-dropdown__item:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.currency-dropdown__item .currency-dropdown__symbol {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.currency-dropdown__item:hover .currency-dropdown__symbol {
  color: var(--blue);
}

.currency-dropdown__item.active {
  background: var(--blue);
  color: white;
}

.currency-dropdown__item.active .currency-dropdown__symbol {
  color: rgba(255, 255, 255, 0.85);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header__action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
}

.header__action-btn:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.header__action-btn.active {
  background: var(--blue);
  color: white;
}

.header__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
}

/* ══════════════════════════════════════
   2. CATEGORY BANNERS (Bento Grid)
   ══════════════════════════════════════ */
.cat-banners {
  padding: 24px 0;
}

.cat-banners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.cat-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  background: var(--bg-section);
}

.cat-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-banner--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.cat-banner--tall {
  grid-row: span 2;
}

.cat-banner--wide {
  grid-column: span 2;
}

.cat-banner__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-light);
  transition: transform 0.5s ease;
}

.cat-banner:hover .cat-banner__image {
  transform: scale(1.06);
}

.cat-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  transition: background 0.35s ease;
}

.cat-banner:hover .cat-banner__overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
}

.cat-banner__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  color: white;
}

.cat-banner__name {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cat-banner--lg .cat-banner__name {
  font-size: 24px;
}

.cat-banner__count {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* ══════════════════════════════════════
   3. FEATURES STRIP
   ══════════════════════════════════════ */
.features-strip {
  padding: 20px 0;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #eef3ff 0%, #f0f7ff 50%, #eef1fa 100%);
  border-top: 1px solid rgba(45, 74, 168, 0.08);
  border-bottom: 1px solid rgba(45, 74, 168, 0.08);
}

.features-strip__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.features-strip__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  flex: 1;
  cursor: default;
}

.features-strip__card:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.features-strip__icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(31, 58, 138, 0.25);
  transition: all 0.3s ease;
}

.features-strip__card:hover .features-strip__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(31, 58, 138, 0.35);
}

.features-strip__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.features-strip__text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.features-strip__text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.features-strip__divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(45, 74, 168, 0.15), transparent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   4. MAIN CONTENT (Sidebar + Grid)
   ══════════════════════════════════════ */
.main-content {
  padding: 8px 0 48px;
}

.main-content__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

/* Sidebar */
.sidebar {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.sidebar__category-list {
  margin-bottom: 24px;
}

.sidebar__cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  margin-bottom: 2px;
}

.sidebar__cat-item:hover,
.sidebar__cat-item.active {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 600;
}

.sidebar__cat-count {
  margin-left: auto;
  font-size: 12px;
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-muted);
}

.sidebar__cat-item.active .sidebar__cat-count {
  background: rgba(31, 58, 138, 0.12);
  color: var(--blue);
}

.sidebar__cat-parent {
  justify-content: space-between;
}

.sidebar__cat-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.sidebar__cat-arrow {
  transition: transform 0.25s ease;
}

.sidebar__cat-group.open>.sidebar__cat-parent .sidebar__cat-arrow {
  transform: rotate(180deg);
}

.sidebar__subcats {
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
  margin-left: 14px;
  margin-bottom: 4px;
}

.sidebar__cat-sub {
  font-size: 13px;
  padding: 7px 12px;
  font-weight: 400;
}

.sidebar__cat-sub:hover,
.sidebar__cat-sub.active {
  font-weight: 500;
}

.sidebar__filter-group {
  margin-bottom: 20px;
}

.sidebar__filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.sidebar__filter-header svg {
  transition: transform var(--transition);
}

.sidebar__filter-header.open svg {
  transform: rotate(180deg);
}

.sidebar__filter-body {
  padding: 12px 0;
  display: none;
}

.sidebar__filter-body.open {
  display: block;
}

.price-slider-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(31, 58, 138, 0.1);
}

.price-slider-sep {
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 4px;
}

.price-slider-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.price-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  z-index: 1;
}

.price-slider-progress {
  position: absolute;
  height: 6px;
  background: var(--blue);
  border-radius: 3px;
  z-index: 2;
  left: 0%;
  right: 0%;
}

.price-range-input {
  position: absolute;
  width: 100%;
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  z-index: 3;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(31, 58, 138, 0.15);
}

.price-range-input::-webkit-slider-thumb:active {
  transform: scale(1.2);
  background: var(--blue);
  border-color: #ffffff;
  box-shadow: 0 0 0 8px rgba(31, 58, 138, 0.2);
}

.price-range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.price-range-input::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(31, 58, 138, 0.15);
}

.price-range-input::-moz-range-thumb:active {
  transform: scale(1.2);
  background: var(--blue);
  border-color: #ffffff;
  box-shadow: 0 0 0 8px rgba(31, 58, 138, 0.2);
}

.price-slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 2px;
}

.sidebar__checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.sidebar__checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.sidebar__filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: all var(--transition);
}

.product-grid--list {
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-grid__header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.product-grid__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.product-grid__count {
  font-size: 14px;
  color: var(--text-secondary);
}

.product-grid__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-grid__view-switcher {
  display: flex;
  background: var(--bg-section);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 2px;
}

.view-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition);
  background: transparent;
}

.view-btn:hover {
  color: var(--blue);
  background: rgba(31, 58, 138, 0.05);
}

.view-btn.active {
  background: white;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.product-grid__sort {
  height: 38px;
  padding: 0 32px 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.product-grid__sort:focus {
  border-color: var(--blue);
}

.product-grid__loadmore {
  text-align: center;
  padding: 32px 0 8px;
}

.btn-loadmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-loadmore:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(45, 74, 168, 0.3);
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
}

.product-grid--list .product-card {
  flex-direction: row;
  height: 180px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.product-grid--list .product-card:hover {
  transform: translateX(4px);
}

.product-card__image {
  position: relative;
  background: #f8fafc;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.product-grid--list .product-card__image {
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--radius-xl);
}

.product-card__image > svg {
  width: 80px;
  height: 80px;
  color: var(--blue);
  opacity: 0.25;
}

.product-card__img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__img-real {
  transform: scale(1.06);
}

.product-card__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  z-index: 2;
}

.product-card__tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__tag--top {
  background: var(--blue);
  color: white;
}

.product-card__tag--discount {
  background: #DC2626;
  color: white;
}

.product-card__tag--new {
  background: #059669;
  color: white;
}

.product-card__wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.product-card__wishlist-btn svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.product-card__wishlist-btn:hover {
  color: var(--blue);
  background: var(--blue-light);
  transform: scale(1.05);
}

.product-card__wishlist-btn:hover svg {
  transform: scale(1.12);
}

.product-card__wishlist-btn.active {
  color: var(--blue);
  background: #FFFFFF;
  border-color: rgba(31, 58, 138, 0.25);
  box-shadow: 0 2px 8px rgba(31, 58, 138, 0.15);
}

.product-card__wishlist-btn.active svg {
  fill: var(--blue) !important;
  stroke: var(--blue) !important;
}

.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__brand {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-card__prices {
  margin-bottom: 14px;
  margin-top: auto;
}

.product-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

.product-card__old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-card__actions {
  display: flex;
  gap: 8px;
}

.btn-primary {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid var(--blue);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   5. CALLBACK & CONSULTATION SECTION
   ══════════════════════════════════════ */
.callback-section {
  padding: 40px 0 60px;
  background: var(--bg);
}

.callback-card {
  position: relative;
  background: linear-gradient(135deg, #162E6E 0%, #1F3A8A 100%);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: white;
  box-shadow: 0 16px 40px rgba(31, 58, 138, 0.25);
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
}

.callback-card__bg-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 75% 30%, rgba(31, 58, 138, 0.45) 0%, rgba(22, 46, 110, 0.2) 45%, transparent 70%);
  animation: bgGlowFloat 8s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes bgGlowFloat {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-20px, 15px); }
}

/* Background Animated Ripples */
.callback-card__ripple-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  animation: rippleExpand 4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.callback-card__ripple-ring--1 {
  width: 240px;
  height: 240px;
  animation-delay: 0s;
}

.callback-card__ripple-ring--2 {
  width: 440px;
  height: 440px;
  animation-delay: 1.3s;
}

.callback-card__ripple-ring--3 {
  width: 640px;
  height: 640px;
  animation-delay: 2.6s;
}

@keyframes rippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.callback-card__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.callback-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #E0E7FF;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Ringing phone icon pulse */
.callback-card__phone-pulse {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(31, 58, 138, 0.6);
  animation: phoneRingShake 1.8s infinite ease-in-out;
}

@keyframes phoneRingShake {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 8px rgba(31, 58, 138, 0.4);
  }
  10%, 30% {
    transform: rotate(-16deg) scale(1.1);
    box-shadow: 0 0 16px rgba(31, 58, 138, 0.8);
  }
  20%, 40% {
    transform: rotate(16deg) scale(1.1);
    box-shadow: 0 0 16px rgba(31, 58, 138, 0.8);
  }
  50% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 8px rgba(31, 58, 138, 0.4);
  }
}

.callback-card__title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.25;
}

.callback-card__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
}

.callback-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.callback-form__group {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.callback-form__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.callback-form__group input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
}

.callback-form__group input:focus {
  border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.callback-form__group input::placeholder {
  color: var(--text-muted);
}

.callback-form__submit {
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: var(--blue);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  transition: all var(--transition);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.callback-form__submit:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 58, 138, 0.45);
}

.callback-form__submit:active {
  transform: translateY(0);
}

.callback-form__success {
  margin-top: 18px;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 14.5px;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
  .callback-card {
    padding: 32px 20px;
  }
  .callback-card__title {
    font-size: 22px;
  }
  .callback-form {
    flex-direction: column;
    width: 100%;
  }
  .callback-form__group {
    width: 100%;
  }
  .callback-form__submit {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════
   6. FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--bg-section);
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__brand h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--blue);
  color: white;
}

.footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--blue);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer__contact-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.footer__contact-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
}

.footer__contact-link:hover .footer__contact-icon {
  background: var(--blue);
  color: white;
  transform: scale(1.05);
}

.footer__contact-link:hover .footer__contact-text,
.footer__contact-link:hover .footer__contact-text strong {
  color: var(--blue);
}

.footer__contact-text strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: color var(--transition);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   CART MODAL
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.cart-panel {
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.cart-panel__header h2 {
  font-size: 18px;
  font-weight: 700;
}

.cart-panel__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.cart-panel__close:hover {
  background: var(--bg-section);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-panel__empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item__image {
  width: 64px;
  height: 64px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.cart-item__qty button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cart-item__qty span {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
}

.cart-item__remove:hover {
  color: #DC2626;
}

.cart-panel__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
}

.cart-panel__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
}

.cart-panel__total span:last-child {
  color: var(--blue);
}

.cart-panel__checkout {
  width: 100%;
  height: 48px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cart-panel__checkout:hover {
  background: var(--blue-hover);
}

/* ══════════════════════════════════════
   FLOATING CART BUTTON
   ══════════════════════════════════════ */
.floating-cart {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 16px;
  background: var(--blue);
  color: #fff;
  overflow: visible;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 58, 138, 0.35);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity 0.25s ease, visibility 0.25s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
}

.floating-cart.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-cart:hover {
  background: var(--blue-hover);
  box-shadow: 0 14px 36px rgba(31, 58, 138, 0.45);
  transform: translateY(-2px) scale(1.03);
}

.floating-cart__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart__badge {
  position: absolute;
  top: -10px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.floating-cart__total {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.floating-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}

.floating-cart.is-visible::before {
  animation: floatingCartPulse 2.4s ease-out infinite;
}

@keyframes floatingCartPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.floating-cart__badge.is-bumping {
  animation: floatingCartBadgeBump 0.4s ease;
}

@keyframes floatingCartBadgeBump {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.4);
  }

  65% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .floating-cart {
    right: 16px;
    bottom: 16px;
    height: 52px;
  }

  .floating-cart__total {
    display: none;
  }

  .floating-cart {
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════
   ORDER MODAL
   ══════════════════════════════════════ */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.order-modal.active {
  display: flex;
}

.order-modal__box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 440px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-modal__box h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.order-modal__field {
  margin-bottom: 16px;
}

.order-modal__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.order-modal__field input,
.order-modal__field textarea {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
}

.order-modal__field textarea {
  height: 80px;
  padding: 10px 14px;
  resize: vertical;
}

.order-modal__field input:focus,
.order-modal__field textarea:focus {
  border-color: var(--blue);
}

.order-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.order-modal__submit {
  flex: 1;
  height: 46px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.order-modal__submit:hover {
  background: var(--blue-hover);
}

.order-modal__cancel {
  height: 46px;
  padding: 0 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.order-modal__cancel:hover {
  border-color: var(--text);
  color: var(--text);
}

.order-success {
  text-align: center;
  padding: 24px 0;
}

.order-success__icon {
  width: 72px;
  height: 72px;
  background: #D1FAE5;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
}

.order-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-success p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__categories {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
  }

  .hero__cat-card {
    min-width: 200px;
  }

  .main-content__grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .product-modal {
    padding: 24px 16px;
  }

  .product-modal__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-modal__main-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header__phone,
  .header__search {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero__banner {
    min-height: 280px;
    padding: 28px;
  }

  .hero__banner h1 {
    font-size: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-modal__main-image {
    height: 280px;
  }

  .product-card__actions {
    flex-direction: column;
  }

  .hero__categories {
    flex-direction: column;
  }

  .hero__cat-card {
    min-width: unset;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .header__lang button {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* Modal System */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.modal__container {
  position: relative;
  background: white;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1001;
}

.modal.active .modal__container {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-section);
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
}

.modal__close:hover {
  background: #FEE2E2;
  color: #DC2626;
  transform: rotate(90deg);
}

/* Product Modal Layout */
.product-modal {
  padding: 40px;
}

.product-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
}

.product-modal__gallery {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-modal__main-image-wrap {
  position: relative;
}

.product-modal__main-image {
  background: #fff;
  border-radius: var(--radius-xl);
  height: 450px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: zoom-in;
}

.product-modal__main-image svg {
  width: 140px;
  height: 140px;
  opacity: 0.25;
  color: var(--blue);
}

/* Mahsulot rasmlari oq fonli kvadrat — butunligicha ko'rinsin (cover tepa/pastini kesib yuborardi) */
.product-modal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 0;
  display: block;
  transition: transform 0.4s ease;
}

.product-modal__main-image-wrap:hover .product-modal__img {
  transform: scale(1.04);
}

.product-modal__zoom-btn {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 2;
}

.product-modal__main-image-wrap:hover .product-modal__zoom-btn {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.product-modal__zoom-btn:hover {
  background: rgba(31, 58, 138, 0.9);
}

/* ═══ IMAGE LIGHTBOX ═══ */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 12, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.2s ease;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox__stage {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
}

.image-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  min-width: 0;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.image-lightbox__nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  z-index: 3;
}

.image-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.image-lightbox__nav[disabled] {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 640px) {
  .image-lightbox {
    padding: 16px;
  }
  .image-lightbox__stage {
    gap: 8px;
  }
  .image-lightbox__nav {
    width: 38px;
    height: 38px;
  }
  .image-lightbox__nav svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 640px) {
  .product-modal__zoom-btn span {
    display: none;
  }
  .product-modal__zoom-btn {
    padding: 10px;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.product-modal__thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-width: 0;
}

.product-modal__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}

.product-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.product-modal__thumbs-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.product-modal__thumbs-arrow:hover {
  color: var(--blue);
  transform: scale(1.2);
}

.thumb-item {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: all var(--transition);
  background: #f8fafc;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 58, 138, 0.18);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-modal__info {
  display: flex;
  flex-direction: column;
}



.product-modal__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-modal__prices {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product-modal__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}

.product-modal__old-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.spec-item {
  font-size: 14px;
  color: var(--text-secondary);
}

.spec-label {
  font-weight: 600;
  color: var(--text);
}

.product-modal__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.product-modal__actions {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.product-modal__actions .btn-primary {
  flex: 1;
  height: 54px;
  border-radius: var(--radius-lg);
  font-size: 16px;
}

.product-modal__actions .wishlist-btn {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.product-modal__actions .wishlist-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.product-modal__actions .wishlist-btn.active {
  background: #FFFFFF;
  color: var(--blue);
  border-color: rgba(31, 58, 138, 0.25);
}

.product-modal__actions .wishlist-btn.active svg {
  fill: var(--blue);
}

@media (max-width: 768px) {
  .product-modal {
    padding: 24px;
  }
  .product-modal__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-modal__main-image {
    height: 300px;
  }
  .product-modal__title {
    font-size: 24px;
  }
}

/* ══════════════════════════════════════
   STORES BUTTON & MODAL POPUP STYLES
   ══════════════════════════════════════ */
.footer__stores-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-light);
  border: 1.5px solid rgba(31, 58, 138, 0.15);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: inherit;
}

.footer__stores-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 58, 138, 0.2);
}

.footer__stores-btn .footer__contact-icon {
  width: 28px;
  height: 28px;
  background: white;
  color: var(--blue);
  transition: all var(--transition);
}

.footer__stores-btn:hover .footer__contact-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.footer__stores-btn-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: color var(--transition);
}

.footer__stores-btn:hover .footer__stores-btn-text {
  color: white;
}

.footer__stores-btn-arrow {
  color: var(--blue);
  transition: all var(--transition);
}

.footer__stores-btn:hover .footer__stores-btn-arrow {
  color: white;
  transform: translateX(3px);
}

/* Stores Modal Box */
.stores-modal__box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 580px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stores-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--border-light);
  margin-bottom: 18px;
}

.stores-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stores-modal__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stores-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.stores-modal__close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.stores-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stores-modal__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.stores-modal__list {
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stores-modal__list::-webkit-scrollbar {
  width: 6px;
}
.stores-modal__list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.store-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: all var(--transition);
}

.store-card:hover {
  border-color: rgba(31, 58, 138, 0.3);
  box-shadow: var(--shadow-sm);
  background: white;
}

.store-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.store-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.store-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 20px;
}

.store-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.store-card__info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.store-card__info-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

.store-card__actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.store-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
  font-size: 14px;
}

.store-card__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}

.store-card__map-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile & Tablet
   ══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .main-content__grid {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cat-banners__grid {
    gap: 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding: 0 16px;
  }

  /* Header adjustments */
  .header__inner {
    gap: 10px;
  }

  .header__search {
    order: 3;
    flex: 0 0 100%;
    margin-top: 8px;
  }

  .header__phone-text {
    display: none;
  }

  .header__phone {
    padding: 8px;
  }

  .header__lang button {
    padding: 4px 8px;
    font-size: 11px;
  }

  .currency-dropdown__toggle {
    height: 30px;
    padding: 0 7px;
    font-size: 11.5px;
    gap: 4px;
  }

  .currency-dropdown__arrow {
    width: 11px;
    height: 11px;
  }

  /* Main content — single column */
  .main-content__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Sidebar becomes slide-out overlay */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 2000;
    border-radius: 0;
    padding: 24px;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.sidebar--open {
    left: 0;
  }

  /* Product grid — 2 columns on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card__actions {
    flex-direction: column;
    gap: 6px;
  }

  .product-card__actions .btn-primary,
  .product-card__actions .btn-outline {
    width: 100%;
    font-size: 12px;
    padding: 8px;
  }

  /* Category banners */
  .cat-banners__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cat-banner--lg,
  .cat-banner--wide {
    grid-column: span 2;
  }

  .cat-banner--tall {
    grid-column: span 1;
  }

  .cat-banner {
    min-height: 120px;
  }

  .cat-banner--lg {
    min-height: 160px;
  }

  /* Features strip */
  .features-strip__track {
    flex-wrap: wrap;
    gap: 12px;
  }

  .features-strip__card {
    flex: 1 1 45%;
    min-width: 140px;
  }

  .features-strip__divider {
    display: none;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Cart panel */
  .cart-panel {
    width: 100%;
    max-width: 100%;
  }

  /* Order modal */
  .order-modal__box {
    width: 95%;
    max-width: 400px;
  }

  /* Product modal */
  .product-modal__content {
    flex-direction: column;
  }

  .product-modal__gallery {
    width: 100%;
  }

  .product-modal__info {
    width: 100%;
  }

  /* Stores modal */
  .stores-modal__box {
    width: 95%;
    max-width: 500px;
  }

  /* Product grid header */
  .product-grid__header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .product-grid__controls {
    width: 100%;
    justify-content: space-between;
  }

  /* Callback section */
  .callback-card__content {
    padding: 24px 16px;
  }

  .callback-card__title {
    font-size: 20px;
  }

  .callback-form {
    flex-direction: column;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cat-banners__grid {
    grid-template-columns: 1fr;
  }

  .cat-banner--lg,
  .cat-banner--wide,
  .cat-banner--tall {
    grid-column: span 1;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .header__logo-img {
    height: 28px;
  }
}