/* ═══════════════════════════════════════════════════════
   LUXEcatalog — Light & Elegant Theme
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #fafafa;
  --surface:     #ffffff;
  --border:      #e8e8e8;
  --text:        #1a1a1a;
  --text-muted:  #777777;
  --accent:      #2c2c2c;
  --accent-hover:#444444;
  --pink:        #e85d75;
  --pink-light:  #fdeef1;
  --green:       #27ae60;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.10);
  --transition:  0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Header ───────────────────────────────────────────── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 500;
}

/* Compensate for fixed header height */
.main {
  padding-top: 64px;
}

.header__inner {
  width: 100%;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo-img--full {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header__logo-monogram {
  display: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

/* Mobile search button — hidden on desktop */
.header__mob-search-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

.header__logo span {
  font-weight: 300;
  color: var(--text-muted);
}

/* Catalog dropdown */
.catalog-dropdown {
  position: relative;
}

.catalog-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition);
}

.catalog-dropdown__btn:hover {
  background: var(--accent-hover);
}

.catalog-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  z-index: 200;
}

.catalog-dropdown__menu.open {
  display: block;
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.catalog-dropdown__section {
  padding: 0 16px;
}

.catalog-dropdown__section + .catalog-dropdown__section {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.catalog-dropdown__heading--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}
.catalog-dropdown__heading--link:hover {
  color: var(--pink);
}

.catalog-dropdown__heading,
.catalog-dropdown__subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.catalog-dropdown__subheading {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 0 8px 8px;
  color: var(--text-muted);
}

.catalog-dropdown__heading:hover,
.catalog-dropdown__subheading:hover {
  color: var(--pink);
}

.chevron {
  transition: transform var(--transition);
}

.chevron.rotated {
  transform: rotate(180deg);
}

.catalog-dropdown__list,
.catalog-dropdown__sublist {
  list-style: none;
  display: none;
  padding-left: 0;
}

.catalog-dropdown__list.open,
.catalog-dropdown__sublist.open {
  display: block;
  animation: fadeDown 0.15s ease;
}

.catalog-dropdown__list li a,
.catalog-dropdown__sublist li a {
  display: block;
  padding: 7px 12px;
  font-size: 0.87rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.catalog-dropdown__list li a:hover,
.catalog-dropdown__sublist li a:hover {
  background: var(--bg);
  color: var(--pink);
}

.catalog-dropdown__all a {
  font-weight: 600;
  color: var(--pink) !important;
}

.catalog-dropdown__count {
  color: #999;
  font-size: 0.85em;
  font-weight: 400;
}

/* ── Category group header (parent category with children) ──── */
.catalog-dropdown__group-header {
  padding: 0;
}
.catalog-dropdown__group-title {
  display: block;
  padding: 7px 12px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa !important;
  cursor: default;
  pointer-events: none;
}
.catalog-dropdown__group-list {
  list-style: none;
  padding-left: 8px;
  margin: 0 0 6px;
}
.catalog-dropdown__group-list li a {
  display: block;
  padding: 5px 12px;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.catalog-dropdown__group-list li a:hover {
  background: var(--bg);
  color: var(--pink);
}

/* Search */
.header__search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header__search input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.header__search input:focus {
  border-color: var(--accent);
}

.header__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.header__search-btn:hover {
  color: var(--accent);
}

/* Search dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  max-height: 420px;
  overflow-y: auto;
}

.search-dropdown.open {
  display: block;
}

.search-dropdown__item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
}

.search-dropdown__item:hover {
  background: var(--bg);
}

.search-dropdown__img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.search-dropdown__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-dropdown__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-dropdown__brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.search-dropdown__title {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__price {
  font-size: 0.85rem;
  font-weight: 600;
}

.search-dropdown__more {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

.search-dropdown__more:hover {
  background: var(--bg);
}

.search-dropdown__empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Search results heading */
.search-heading {
  font-size: 1.3rem;
  font-weight: 600;
}

.search-count {
  font-weight: 400;
  color: var(--text-muted);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background var(--transition);
  color: var(--text);
}

.header__icon-btn:hover {
  background: var(--bg);
  color: var(--pink);
}

.header__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.header__badge.visible {
  opacity: 1;
}

/* ── Main ─────────────────────────────────────────────── */
.main {
  flex: 1;
  width: 100%;
}

/* ── Products Grid ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
/* mobile grid — 2 columns (overrides 1fr from old rule) */
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── Product Card ─────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Carousel */
.product-card__carousel {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.placeholder-img.large {
  min-height: 400px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.product-card__carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn--left  { left: 8px; }
.carousel-btn--right { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background var(--transition);
}

.dot.active {
  background: #fff;
}

/* Favorite button on card */
.product-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--transition), color var(--transition);
  color: var(--text-muted);
}

.product-card__fav:hover,
.product-card__fav.active {
  color: var(--pink);
  background: var(--pink-light);
}

.product-card__fav.active svg {
  fill: var(--pink);
}

/* Card info */
.product-card__info {
  padding: 14px 16px 8px;
  display: block;
  flex: 1;
}

.product-card__brand {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.product-card__title {
  font-size: 0.92rem;
  font-weight: 400;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 600;
}

.product-card__price--old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.88rem;
}

.product-card__price--new {
  color: var(--pink);
}

.product-card__discount {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pink-light);
  color: var(--pink);
  padding: 2px 6px;
  border-radius: 4px;
}

.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 16px 8px;
}

.size-chip {
  font-size: 0.72rem;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 7px;
  line-height: 1;
  background: #fff;
  white-space: nowrap;
}

.size-chip--more {
  color: #bbb;
  border-color: #eee;
  background: #fafafa;
}

/* Sale badge on product card (overlay on image) */
.product-card {
  position: relative;
}
.product-card__sale-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  background: #e53935;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.35);
}

/* ── Admin edit mode button ──────────────────────────────────────── */
.header__edit-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.header__edit-mode-btn:hover { border-color: #e53935; color: #e53935; }
.header__edit-mode-btn--active {
  background: #e53935;
  border-color: #e53935;
  color: #fff;
}

/* ── Admin delete button on card ──────────────────────────────────── */
.product-card__admin-del {
  display: none;
  position: absolute;
  top: 10px;
  right: 44px;
  z-index: 10;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(229,57,53,.4);
  transition: transform .15s, box-shadow .15s;
}
.product-card__admin-del:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(229,57,53,.5);
}
/* Show delete buttons only in edit mode */
body.edit-mode .product-card__admin-del { display: flex; }

.product-card__preorder-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: #1565c0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.35);
}

.product-card__express-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: #2e7d32;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35);
}

/* When both badges are present, shift preorder below express */
.product-card__express-badge + .product-card__preorder-badge {
  top: 44px;
}

.product-detail__preorder-label {
  display: inline-block;
  background: #1565c0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
}

/* Sale badge on product detail page */
.product-detail__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  align-items: start;
}
.product-detail__express-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: #2e7d32;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.35);
}

.product-detail__sale-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  background: #e53935;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
}

/* Add to cart button */
.product-card__cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 16px 16px;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition);
}

.product-card__cart-btn:hover {
  background: var(--accent-hover);
}

.product-card__cart-btn.added {
  background: var(--green);
}

/* ── Catalog page container ───────────────────────────── */
.catalog {
  max-width: 1800px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

/* ── Catalog layout (sidebar + grid) ─────────────────── */
.catalog__layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
  align-content: start;
}

@media (max-width: 640px) {
  .catalog__layout {
    grid-template-columns: 1fr;
  }
}

/* ── Results count ───────────────────────────────────── */
.catalog__results-count {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

/* ── Toolbar (sort + filter toggle) ──────────────────── */
.catalog__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.catalog__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.catalog__sort select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--surface);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.catalog__sort select:focus {
  border-color: var(--accent);
}

.catalog__per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--text-muted);
}

.catalog__per-page select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .92rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.catalog__per-page select:focus {
  border-color: var(--accent);
}

.catalog__filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.catalog__filter-toggle:hover {
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .catalog__filter-toggle {
    display: inline-flex;
  }
}

/* ── Filter Sidebar ──────────────────────────────────── */
.catalog__sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.catalog__sidebar::-webkit-scrollbar {
  width: 4px;
}

.catalog__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.catalog__sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.filter-section:first-child {
  padding-top: 0;
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-section__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Checkbox (In stock) */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input {
  display: none;
}

.filter-checkbox__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.filter-checkbox input:checked + .filter-checkbox__mark {
  background: var(--green);
  border-color: var(--green);
}

.filter-checkbox input:checked + .filter-checkbox__mark::after {
  content: '\2713';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Price inputs */
.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  background: var(--bg);
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}

.filter-price-input::-webkit-inner-spin-button,
.filter-price-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.filter-price-input:focus {
  border-color: var(--accent);
}

.filter-price-sep {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Radio options (color, etc.) */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-options--scrollable {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-options--scrollable::-webkit-scrollbar {
  width: 4px;
}

.filter-options--scrollable::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.filter-radio input {
  display: none;
}

.filter-radio__label {
  font-size: 0.87rem;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}

.filter-radio input:checked + .filter-radio__label {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.filter-radio__label:hover {
  background: var(--bg);
}

.filter-radio__label--reset {
  color: var(--pink);
  font-weight: 500;
}

/* Checkbox filter items (multi-select) */
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-check__label {
  font-size: 0.87rem;
  line-height: 1.3;
  transition: color var(--transition);
}

.filter-check:hover .filter-check__label {
  color: var(--accent);
}

.filter-check input:checked + .filter-check__label {
  color: var(--accent);
  font-weight: 500;
}

.filter-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-check--child {
  padding-left: 10px;
}

.filter-check__label--muted {
  color: #aaa;
  font-style: italic;
}

.filter-count {
  font-size: 0.75rem;
  color: #999;
  font-weight: 400;
  margin-left: 3px;
}

/* Size buttons (legacy, kept for backwards compat) */
.filter-options--sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  user-select: none;
}

.filter-size-btn input {
  display: none;
}

.filter-size-btn:hover {
  border-color: var(--accent);
}

.filter-size-btn.active,
.filter-size-btn:has(input:checked) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.filter-size-btn--reset {
  color: var(--pink);
  border-color: var(--pink);
}

/* Category links in sidebar */
.filter-link {
  display: block;
  padding: 5px 8px;
  font-size: 0.87rem;
  border-radius: 4px;
  transition: all var(--transition);
}

.filter-link:hover {
  background: var(--bg);
  color: var(--pink);
}

.filter-link.active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.filter-link--reset {
  color: var(--pink);
  font-weight: 500;
}

/* Category hierarchy in filter sidebar */
.filter-group-label {
  display: block;
  padding: 8px 8px 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #b0b0b0;
  margin-top: 4px;
}
.filter-link--child {
  padding-left: 16px;
}

/* Apply / Reset buttons */
.filter-apply-btn {
  margin-top: 16px;
}

.filter-reset-btn {
  margin-top: 8px;
  font-size: 0.82rem;
}

/* ── Filters bar (active tags) ───────────────────────── */
.catalog__filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.85rem;
}

.filter-tag a {
  color: var(--text-muted);
  font-weight: 700;
}

.filter-tag a:hover {
  color: var(--pink);
}

.clear-filters {
  color: var(--pink);
  font-weight: 500;
  margin-left: 8px;
}

/* ── Pagination ───────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination__btn,
.pagination__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.pagination__btn:hover,
.pagination__num:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.pagination__num.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Empty state ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state svg {
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Brands Page ──────────────────────────────────────── */
.brands-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.brand-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.brand-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.brand-card__icon span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* ── Product Detail ───────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text);
}

.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.gallery-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 76px;
  height: 96px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-main {
  grid-column: 2;
  grid-row: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
}

.gallery-main img {
  width: 100%;
  max-height: calc(100vh - 180px);
  aspect-ratio: unset;
  object-fit: contain;
}

.product-detail__brand {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-detail__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-detail__prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.price--current {
  font-size: 1.5rem;
  font-weight: 700;
}

.price--old {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.price--new {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
}

.discount-badge {
  background: var(--pink-light);
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-detail__field {
  margin-bottom: 16px;
}

.product-detail__field strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-detail__field p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 0.95rem;
}

/* ── Page section ─────────────────────────────────────── */
.page-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

/* ── Account ──────────────────────────────────────────── */
.account-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 60px 40px;
}

.account-card__avatar {
  margin-bottom: 20px;
}

.account-card__text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Cart items (JS rendered) ─────────────────────────── */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  align-items: center;
}

.cart-item__img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f0f0f0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.cart-item__title {
  font-size: 0.95rem;
  margin: 4px 0;
}

.cart-item__size {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.cart-item__price {
  font-weight: 600;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 8px;
  transition: color var(--transition);
}

.cart-item__remove:hover {
  color: var(--pink);
}

/* ── Product card meta (article & color) ──────────────── */
.product-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.product-card__article {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-card__color {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  vertical-align: middle;
}

.color-dot--lg {
  width: 16px;
  height: 16px;
}

.color-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.product-detail__color-field {
  display: flex;
  flex-direction: column;
}

/* ── Flash Messages ──────────────────────────────────── */
.flash-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px 0;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 8px;
  animation: fadeDown 0.2s ease;
}

.flash--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.flash--error {
  background: #fdeef1;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

.flash__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0 4px;
}

.flash__close:hover {
  opacity: 1;
}

/* ── Auth Pages ──────────────────────────────────────── */
.auth-page {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}

.auth-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  background: var(--bg);
}

.form-group input:focus {
  border-color: var(--accent);
  background: #fff;
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.auth-card__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card__footer a {
  color: var(--pink);
  font-weight: 600;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

/* ── Account Page (logged-in) ────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 40px 28px;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.account-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.account-card__email {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.account-card__phone {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.account-card__since {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.account-card__avatar {
  margin-bottom: 0;
}

.account-edit {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.account-edit__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Header user name indicator */
.header__icon-btn--account {
  width: auto;
  gap: 6px;
  padding: 0 4px;
}

.header__user-name {
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Home page (Farfetch-style redesign) ──────────────── */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── HERO (Variant 1 — full-bleed overlay) ── */
.hp-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 560px;
  overflow: hidden;
  background: #1a1a1a;
}

.hp-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  opacity: 0.82;
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.30) 50%,
    rgba(0,0,0,0.05) 100%
  );
}

.hp-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 80px;
  max-width: 700px;
}

.hp-hero__eyebrow {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
  font-weight: 500;
}

.hp-hero__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.0;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 400;
}

.hp-hero__title em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}

.hp-hero__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 44px;
  line-height: 1.7;
  max-width: 400px;
}

.hp-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.hp-btn--light { background: #fff; color: #111; border: 1px solid #fff; }
.hp-btn--light:hover { background: #e8e8e8; border-color: #e8e8e8; }

.hp-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.hp-btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.hp-hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 48px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hp-hero__scroll-hint::after {
  content: '';
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.2);
}

/* ── BRAND TICKER ── */
.hp-ticker {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  overflow: hidden;
  padding: 11px 0;
  background: #fff;
}

.hp-ticker__inner {
  display: flex;
  gap: 0;
  animation: hp-ticker-scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.hp-ticker__item {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  padding: 0 20px;
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.hp-ticker__item:hover { opacity: 1; }

.hp-ticker__dot {
  color: #ccc;
  font-size: 13px;
  line-height: 1;
  align-self: center;
  flex-shrink: 0;
}

@keyframes hp-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS COMMON ── */
.hp-sect {
  padding: 24px 0;
}

.hp-sect--light {
  background: #f6f6f6;
}

.hp-sect__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.hp-sect__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.hp-sect__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  color: #111;
}

.hp-sect__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.hp-sect__link:hover { opacity: 0.6; }

/* ── NEW ARRIVALS ROW ── */
.hp-row-wrap { position: relative; }

.hp-row {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.hp-row::-webkit-scrollbar { display: none; }

.hp-row-btn {
  position: absolute;
  /* photo is aspect-ratio 3/4; text below ≈80px — center on photo, not full card */
  top: calc(50% - 40px);
  transform: translateY(-50%);
  bottom: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: #111;
  transition: background .18s, color .18s;
  z-index: 4;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
.hp-row-btn:hover {
  background: rgba(180,180,180,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hp-row-btn--prev { left: 8px; }
.hp-row-btn--next { right: 8px; }

.hp-pc {
  flex: 0 0 calc(100% / 6 - 2px);
  min-width: 160px;
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
}

.hp-pc__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f0ee;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.hp-pc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.hp-pc:hover .hp-pc__img img { transform: scale(1.04); }

.hp-pc__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-pc__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  color: #fff;
  z-index: 2;
}
.hp-pc__badge--preorder { background: #111; }
.hp-pc__badge--express  { background: #1a6e3a; }
.hp-pc__badge--sale {
  background: #c0392b;
  top: auto;
  left: auto;
  bottom: 10px;
  right: 10px;
}

/* ── Express delivery section ──────────────────────────────────────────── */
.hp-sect--express {
  background: #f8faf8;
}

/* ── Sale section ───────────────────────────────────────────────────────── */
.hp-sect--sale {
  background: #faf8f8;
}
.hp-sect--express .hp-sect__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-express-badge {
  font-size: 1.1em;
  line-height: 1;
}

.hp-pc__brand {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
  padding: 0 4px;
}

.hp-pc__name {
  font-size: 13px;
  color: #111;
  margin-bottom: 6px;
  padding: 0 4px;
  line-height: 1.4;
}

.hp-pc__price {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  padding: 0 4px 16px;
}

.hp-pc__old {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 400;
}

/* ── EDITORIAL: для него / для неё ── */
/* ── GENDER SECTIONS (Variant A) ── */
.hp-gender-sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #eee;
}

.hp-gs { background: #fff; }

.hp-gs__header {
  display: block;
  text-decoration: none;
  padding: 40px 48px 36px;
  background: linear-gradient(135deg, #1e2d3e 0%, #2c4a6e 100%);
  color: #fff;
  transition: filter 0.2s;
}
.hp-gs__header--women {
  background: linear-gradient(135deg, #3a1828 0%, #6b2d4a 100%);
}
.hp-gs__header:hover { filter: brightness(1.08); }

.hp-gs__label {
  display: block;
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.hp-gs__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 20px;
}

.hp-gs__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-gs__count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.hp-gs__cta {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.hp-gs__header:hover .hp-gs__cta { border-color: #fff; }

.hp-gs__cats {
  display: flex;
  gap: 1px;
  background: #f0f0f0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.hp-gs__cats::-webkit-scrollbar { display: none; }

.hp-gs__cat {
  flex: 1 1 0;
  min-width: 120px;
  padding: 18px 20px 16px;
  background: #fff;
  text-decoration: none;
  color: #111;
  border-top: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.hp-gs__cat:hover {
  border-top-color: #111;
  background: #fafafa;
}

.hp-gs__cat-name {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-gs__cat-count {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

/* keep old classes in case they're referenced elsewhere */
.hp-editorial { display: none; }
.hp-ed { display: none; }

/* ── CATEGORIES STRIP ── */
.hp-cat-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.hp-cat-strip::-webkit-scrollbar { display: none; }

.hp-cat-tile {
  flex: 0 0 200px;
  aspect-ratio: 2 / 3;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: filter 0.2s;
}
.hp-cat-tile:hover { filter: brightness(1.15); }

.hp-cat-tile__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 60%);
}

.hp-cat-tile__name {
  position: relative;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  text-align: center;
}

.hp-cat-tile__count {
  position: relative;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  text-align: center;
}

/* ── BENEFITS ── */
.hp-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e8e8e8;
}

.hp-benefit {
  padding: 48px 40px;
  border-right: 1px solid #e8e8e8;
  text-align: center;
  background: #f6f6f6;
}
.hp-benefit:last-child { border-right: none; }

.hp-benefit__icon {
  margin-bottom: 18px;
  opacity: 0.55;
  display: flex;
  justify-content: center;
}

.hp-benefit__title {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
}

.hp-benefit__text {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

/* ── HOME RESPONSIVE ── */
@media (max-width: 900px) {
  .hp-hero { height: 80vw; min-height: 420px; }
  .hp-hero__content { padding: 40px 28px; max-width: 100%; }
  .hp-hero__scroll-hint { display: none; }
  .hp-pc { flex: 0 0 calc(100% / 4 - 2px); min-width: 140px; }
  .hp-gs__header { padding: 28px 24px 24px; }
  .hp-gs__cat { min-width: 100px; padding: 14px 14px 12px; }
  .hp-benefits { grid-template-columns: 1fr 1fr; }
  .hp-benefit { border-bottom: 1px solid #e8e8e8; }
  .hp-sect__inner { padding: 0 20px; }
}

@media (max-width: 600px) {
  .hp-hero { height: 100svh; }
  .hp-hero__content { padding: 32px 20px; }
  .hp-hero__btns { flex-direction: column; gap: 10px; }
  .hp-btn { width: 100%; max-width: 280px; }
  .hp-pc { flex: 0 0 calc(100% / 2.3 - 2px); min-width: 120px; }
  .hp-cat-tile { flex: 0 0 150px; }
  .hp-benefits { grid-template-columns: 1fr 1fr; }
  /* On mobile swipe is used — hide nav buttons */
  .hp-row-btn { display: none; }
  .hp-sect__head { flex-direction: column; gap: 8px; }
}

/* ── OBSOLETE: kept for safe removal ── */
.hp-gender, .hp-gc, .hp-gc__noise, .hp-gc__body,
.hp-gc__label, .hp-gc__title, .hp-gc__count, .hp-gc__cta, .hp-gc-divider,
.hp-carousel-wrap, .hp-carousel, .hp-carousel__nav, .hp-cnav,
.hp-cat-grid, .hp-cat {
  /* legacy – safe to ignore */
}

/* ── CATEGORIES GRID (legacy) ── */
.hp-cat {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.hp-cat--big { grid-row: span 2; }

.hp-cat__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-cat:hover .hp-cat__bg { transform: scale(1.06); }

/* Category colour palette */
.hp-cat[data-idx="0"] .hp-cat__bg { background: linear-gradient(155deg, #1e2d5c 0%, #2d4a9a 100%); }
.hp-cat[data-idx="1"] .hp-cat__bg { background: linear-gradient(155deg, #3d2a1e 0%, #7a5530 100%); }
.hp-cat[data-idx="2"] .hp-cat__bg { background: linear-gradient(155deg, #1a3d26 0%, #2e7744 100%); }
.hp-cat[data-idx="3"] .hp-cat__bg { background: linear-gradient(155deg, #1a2f3d 0%, #2e6080 100%); }
.hp-cat[data-idx="4"] .hp-cat__bg { background: linear-gradient(155deg, #3d1a33 0%, #7a2d66 100%); }

.hp-cat__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 55%);
}

.hp-cat__body {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: #fff;
  width: 100%;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.filter-gender-label {
  color: var(--text-muted);
  font-size: 0.8em;
}

/* ── Size Selector (product detail page) ──────────────── */
.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.size-selector__btn {
  min-width: 48px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.size-selector__btn:hover {
  border-color: var(--accent);
}

.size-selector__btn.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.size-selector__hint {
  font-size: 0.82rem;
  color: var(--pink);
  margin-top: 6px;
  transition: opacity var(--transition);
}

.size-selector__hint.hidden {
  opacity: 0;
}

/* ── Size Modal (catalog page) ────────────────────────── */
.size-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.size-modal.open {
  display: flex;
}

.size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.size-modal__content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  min-width: 280px;
  max-width: 400px;
  animation: fadeDown 0.2s ease;
}

.size-modal__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.size-modal__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.size-modal__btn {
  min-width: 48px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.size-modal__btn:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.size-modal__cancel {
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .header__inner {
    padding: 0 16px;
    gap: 12px;
  }
  .header__search {
    max-width: 200px;
  }
  .catalog-dropdown__menu {
    min-width: 260px;
  }
  .products-grid {
    gap: 16px;
  }
  .product-detail__actions {
    flex-direction: column;
  }
  .catalog { padding: 16px 16px 48px; }
  .product-detail { padding: 16px; }
  .page-section { padding: 16px 16px 48px; }
  .cart-page { padding: 16px 16px 48px; }
  .brands-page { padding: 16px 16px 48px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤640px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Base ── */
  html { font-size: 15px; }

  .catalog { padding: 8px 12px 80px; }
  .product-detail { padding: 8px 12px 80px; }
  .page-section { padding: 8px 12px 80px; }
  .cart-page { padding: 8px 12px 80px; }
  .brands-page { padding: 8px 12px 80px; }

  /* ── Header ── */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
  }

  .main {
    padding-top: 56px;
  }

  .header__inner {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  /* Show PA monogram, hide full logo image */
  .header__logo-img--full {
    display: none;
  }

  .header__logo-monogram {
    display: block;
  }

  /* Show mobile search button in header */
  .header__mob-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Hide desktop search bar */
  .header__search {
    display: none;
  }

  /* Hide desktop icon buttons — shown in bottom nav */
  .header__actions {
    display: none;
  }

  /* ── Bottom Navigation Bar ── */
  .mobile-bottom-nav {
    display: flex;
  }

  /* ── Catalog dropdown ── */
  .catalog-dropdown__menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
  }

  /* ── Products Grid ── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ── Product Card ── */
  .product-card {
    border-radius: 10px;
  }

  .product-card__info {
    padding: 8px 10px 4px;
  }

  .product-card__brand {
    font-size: 0.7rem;
  }

  .product-card__title {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__prices {
    margin-top: 4px;
    gap: 4px;
    flex-wrap: wrap;
  }

  .product-card__price {
    font-size: 0.88rem;
  }

  .product-card__cart-btn {
    padding: 9px 12px;
    font-size: 0.78rem;
    border-radius: 0 0 10px 10px;
  }

  .product-card__meta {
    display: none; /* скрываем артикул/цвет в гриде на мобильном */
  }

  /* ── Catalog layout ── */
  .catalog__layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar скрыт — открывается как drawer снизу */
  .catalog__sidebar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 80vh;
    width: 100%;
    border-radius: 20px 20px 0 0;
    z-index: 300;
    padding: 20px 16px 32px;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    overflow-y: auto;
  }

  .catalog__sidebar.open {
    display: block;
    animation: slideUpDrawer 0.28s ease;
  }

  @keyframes slideUpDrawer {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  /* Overlay behind drawer */
  .catalog__sidebar.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
  }

  /* Drawer handle */
  .catalog__sidebar::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 16px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ── Toolbar ── */
  .catalog__toolbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .catalog__sort label,
  .catalog__per-page label {
    display: none;
  }

  .catalog__sort select,
  .catalog__per-page select {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .catalog__filter-toggle {
    display: inline-flex;
    padding: 7px 14px;
    font-size: 0.82rem;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    gap: 6px;
  }

  .catalog__filter-toggle:hover {
    background: var(--accent-hover);
  }

  /* ── Active filter tags ── */
  .catalog__filters-bar {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    padding: 8px 0;
    margin-bottom: 8px;
  }

  /* ── Pagination ── */
  .pagination {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination__num,
  .pagination__btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 12px;
    font-size: 0.85rem;
  }

  .product-detail__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Mobile gallery: single column, thumbs go horizontal below main photo */
  .product-detail__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  .gallery-main {
    grid-column: 1;
    grid-row: 1;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .gallery-main img {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 3/4;
    object-fit: cover;
  }

  .gallery-thumbs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    gap: 8px;
  }

  .gallery-thumb {
    width: 60px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
  }

  .product-detail__info {
    padding: 16px 0 100px; /* space for sticky button */
  }

  .product-detail__title {
    font-size: 1.2rem;
  }

  .product-detail__prices {
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
  }

  /* Sticky bottom CTA on product page */
  .product-detail__actions {
    position: fixed;
    bottom: 62px; /* above bottom nav */
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--surface);
    padding: 10px 16px 10px;
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 10px;
    margin: 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }

  .product-detail__actions .btn--primary {
    flex: 2;
  }

  .product-detail__actions .btn--outline {
    flex: 1;
    padding: 12px 10px;
  }

  /* ── Filter sidebar apply/reset buttons ── */
  .filter-apply-btn,
  .filter-reset-btn {
    position: sticky;
    bottom: 0;
    background: var(--surface);
  }

  /* ── Search page ── */
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ── Flash messages ── */
  .flash-container {
    top: 60px;
    left: 8px;
    right: 8px;
  }

  /* ── Contact widget ── */
  .contact-widget {
    bottom: 72px; /* above bottom nav */
    right: 12px;
  }
}

/* ── Admin Tabs ───────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 2px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  text-decoration: none;
}

.admin-tab:hover {
  color: var(--text);
  background: var(--bg);
}

.admin-tab.active {
  color: var(--accent);
  border-color: var(--border);
  border-bottom-color: var(--surface);
  background: var(--surface);
}

.admin-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-tab__badge--warn {
  background: #e67e22;
}

.admin-tab__badge--muted {
  background: var(--text-muted);
}

/* Archive-specific */
.admin__archive-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.admin__row--expiring td {
  background: #fff8f0;
}

.admin__days-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.admin__days-badge--warn {
  background: #fff3e0;
  color: #e67e22;
  border-color: #f0a500;
}

.admin__days-badge--critical {
  background: #fdeef1;
  color: var(--pink);
  border-color: var(--pink);
}

.admin__count--hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Admin panel ──────────────────────────────────────── */

.header__admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--pink-light);
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.header__admin-btn:hover {
  background: var(--pink);
  color: #fff;
}

.admin {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 48px 64px;
}

.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin__search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin__search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  transition: border-color var(--transition);
}

.admin__search-input:focus {
  border-color: var(--accent);
}

.admin__count {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.admin__table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin__table thead {
  background: var(--bg);
}

.admin__table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.admin__table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin__table tbody tr:hover {
  background: var(--bg);
}

.admin__table tbody tr:last-child td {
  border-bottom: none;
}

.admin__cell--id {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin__cell--img {
  width: 56px;
}

.admin__thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg);
}

.admin__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.admin__product-link {
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

.admin__product-link:hover {
  color: var(--pink);
}

.admin__cell--mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin__cell--price {
  font-weight: 600;
  white-space: nowrap;
}

.admin__cell--size {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin__cell--check {
  width: 36px;
  text-align: center;
}

.admin__cell--check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--accent);
}

.admin__bulk-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  margin-bottom: 12px;
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: #b91c1c;
  font-weight: 500;
}

/* ── Bulk editor panel ────────────────────────────────────────── */
.admin__bulk-editor {
  margin-bottom: 14px;
  padding: 16px 20px;
  background: #f0f7ff;
  border: 1px solid #b6d4f5;
  border-radius: var(--radius);
  animation: fadeDown 0.15s ease;
}
.admin__bulk-editor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a4a80;
  margin-bottom: 14px;
}
.admin__bulk-editor-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.admin__bulk-editor-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}
.admin__bulk-editor-field--wide {
  flex: 1;
  min-width: 260px;
}
.admin__bulk-editor-field--separator {
  width: 1px;
  background: #d0e4f7;
  margin: 0 4px;
  min-width: 1px;
  flex: 0 0 1px;
  align-self: stretch;
}
.admin__bulk-editor-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin__bulk-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #c8e0f8;
}

.admin__cell--sizes {
  white-space: nowrap;
}

.admin__cell--gender {
  text-align: center;
  white-space: nowrap;
}

.admin__cell--cat {
  font-size: .85rem;
  color: #555;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gender-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.gender-badge--men {
  background: #dbeafe;
  color: #1d4ed8;
}

.gender-badge--women {
  background: #fce7f3;
  color: #be185d;
}

.admin__source-link {
  font-size: .78rem;
  color: #6b7280;
  text-decoration: underline dotted;
  word-break: break-all;
  max-width: 220px;
  display: inline-block;
}
.admin__source-link:hover { color: var(--accent); }

/* ── Admin split-button "Добавить товар" ─────────────────────────── */
.admin__add-split {
  position: relative;
  display: inline-flex;
  gap: 0;
}

.admin__add-split > .btn--primary:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.admin__add-arrow {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgba(255,255,255,.25);
  padding: 0 10px;
  font-size: .8rem;
}

.admin__add-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}

.admin__add-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: #1f2937;
  font-size: .88rem;
  transition: background .15s;
}

.admin__add-dropdown a:hover {
  background: #f3f4f6;
  text-decoration: none;
}

/* ── Import-by-URL form ──────────────────────────────────────────── */
.admin__import-form-wrap {
  max-width: 640px;
  margin-top: 28px;
}

.admin__import-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin__import-optional-title {
  font-size: .82rem;
  color: #6b7280;
  margin: 4px 0 -8px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 16px;
}

.admin__import-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .admin__import-row { grid-template-columns: 1fr; }
}

.admin__import-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.import-hint {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .82rem;
  color: #166534;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: -6px;
}

.import-hint svg { flex-shrink: 0; margin-top: 2px; }

.import-hint--warn {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.admin__import-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.admin__import-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-weight: 400;
}

.admin__import-radio:has(input:checked) {
  border-color: var(--accent);
  background: #f0fdf4;
}

.admin__import-radio input[type="radio"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.admin__import-radio span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
}

.admin__import-radio small {
  color: #6b7280;
  font-size: .8rem;
}

.import-hint code {
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .8rem;
  word-break: break-all;
}

/* Progress page */
.admin__import-progress-wrap {
  max-width: 520px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.admin__import-progress-phase {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  text-align: center;
}

.admin__import-progress-bar-track {
  width: 100%;
  background: #e5e7eb;
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}

.admin__import-progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .4s ease;
}

.admin__import-progress-counter {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -.5px;
}

.admin__import-progress-result {
  font-size: 1rem;
  color: #166534;
  font-weight: 500;
}

.admin__import-progress-error {
  font-size: .95rem;
  color: #991b1b;
  font-weight: 500;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 8px;
}

/* Loading overlay */
.admin__import-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 60px 20px;
  color: #6b7280;
  font-size: .95rem;
}

.admin__import-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.size-badge {
  display: inline-block;
  padding: 2px 7px;
  margin: 2px 2px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 500;
  color: #555;
  line-height: 1.4;
  white-space: nowrap;
}

.admin__cell--actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
}

.admin__discount {
  background: var(--pink-light);
  color: var(--pink);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn--danger {
  background: #fdeef1;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

.btn--danger:hover {
  background: #c62828;
  color: #fff;
}

/* ── Admin edit form ─────────────────────────────────── */

.admin-form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .admin-form__grid {
    grid-template-columns: 1fr;
  }
}

.admin-form__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-form .form-group select,
.admin-form .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  background: var(--bg);
  transition: border-color var(--transition);
  resize: vertical;
}

.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.admin-form__images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form__image-item {
  position: relative;
  width: 80px;
  cursor: pointer;
}

.admin-form__image-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.admin-form__image-item:has(input:checked) img {
  border-color: #c62828;
  opacity: 0.5;
}

.admin-form__image-delete {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
}

.admin-form__image-delete input {
  accent-color: #c62828;
}

.admin-form__readonly {
  background: #f5f5f5;
  color: #666;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.admin-form__file-input {
  padding: 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.88rem;
  width: 100%;
}

/* ── Inline new-category widget ─────────────────────────────── */
/* Always-visible new-category row */
.admin-form__new-cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8faff;
  border: 1px dashed #c9daf8;
  border-radius: var(--radius-sm);
}
.admin-form__new-cat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}
.admin-form__new-cat-input {
  flex: 1;
  min-width: 140px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.admin-form__new-cat-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: #fff;
}
#newCatMsg {
  font-size: 0.82rem;
}

.admin-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Mobile Bottom Navigation ────────────────────────── */
.mobile-bottom-nav {
  display: none; /* shown only on mobile via media query */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 250;
  align-items: stretch;
  justify-content: space-around;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}

.mob-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 8px 4px 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mob-nav__item.active,
.mob-nav__item:active {
  color: var(--accent);
}

.mob-nav__item svg {
  flex-shrink: 0;
}

/* ── Mobile Search Overlay ────────────────────────────── */
.mob-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  align-items: flex-start;
  padding-top: 0;
}

.mob-search-overlay.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mob-search-box {
  width: 100%;
  background: var(--surface);
  padding: 12px 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.mob-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 44px;
}

.mob-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  color: var(--text);
}

.mob-search-submit {
  background: none;
  border: none;
  padding: 0 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mob-search-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  padding: 8px 4px;
}

/* ── Contact Widget ───────────────────────────────────── */
.contact-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.contact-widget__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.contact-widget__btn:hover {
  background: #333;
  transform: scale(1.07);
}

.contact-widget__icon-close {
  display: none;
}

.contact-widget.open .contact-widget__icon-chat {
  display: none;
}

.contact-widget.open .contact-widget__icon-close {
  display: block;
}

.contact-widget__menu {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 20px 18px 14px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  transform-origin: bottom right;
}

.contact-widget.open .contact-widget__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.contact-widget__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 4px;
}

.contact-widget__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-widget__option:hover {
  transform: translateX(3px);
  opacity: 0.85;
}

.contact-widget__option--tg {
  background: #e8f4fd;
  color: #2292d8;
}

.contact-widget__option--wa {
  background: #e8f8ef;
  color: #25d366;
}

@media (max-width: 600px) {
  .contact-widget {
    bottom: 18px;
    right: 16px;
  }
  .contact-widget__btn {
    width: 50px;
    height: 50px;
  }
}

/* ── Admin filters panel ──────────────────────────────── */

.admin__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.admin__filters .admin__search-input {
  flex: 1 1 200px;
  min-width: 160px;
}

.admin__filter-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  min-width: 130px;
}

.admin__filter-select:focus {
  outline: none;
  border-color: var(--pink);
}

/* Drafts inline photo strip */
.admin__photos-cell {
  padding: 6px 4px !important;
  vertical-align: top;
}

.admin__photos-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 180px;
}

.admin__photo-thumb {
  position: relative;
  width: 48px;
  height: 60px;
  flex-shrink: 0;
}

.admin__photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.admin__photo-del {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
  z-index: 2;
}

.admin__photo-thumb:hover .admin__photo-del {
  opacity: 1;
}

/* Drag-and-drop states */
.admin__photo-thumb[draggable],
.admin-form__image-item[draggable] {
  cursor: grab;
}

.admin__photo-thumb[draggable]:active,
.admin-form__image-item[draggable]:active {
  cursor: grabbing;
}

.admin__photo-thumb.photo-dragging,
.admin-form__image-item.photo-dragging {
  opacity: 0.35;
}

.admin__photo-thumb.photo-drag-over img,
.admin-form__image-item.photo-drag-over img {
  outline: 2px dashed var(--accent, #2563eb);
  outline-offset: 2px;
  border-radius: 5px;
}

/* Drag handle in edit form */
.admin-form__drag-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 14px;
  line-height: 1;
  color: rgba(0,0,0,.35);
  cursor: grab;
  user-select: none;
  z-index: 3;
}

.admin-form__image-item[draggable]:hover .admin-form__drag-handle {
  color: rgba(0,0,0,.7);
}

.admin__photo-empty {
  width: 48px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Multi-select brand dropdown */
.admin__multiselect {
  position: relative;
}

.admin__multiselect-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  min-width: 160px;
  white-space: nowrap;
  overflow: hidden;
}

.admin__multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 120;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  min-width: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 0 0;
}

.admin__multiselect-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .1s;
  color: var(--text);
}

.admin__multiselect-item:hover { background: #f9fafb; }

.admin__multiselect-all { font-weight: 600; }

.admin__multiselect-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.admin__multiselect-footer {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: #f9fafb;
  position: sticky;
  bottom: 0;
}

.admin__filter-prices {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin__filter-prices span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin__filter-price-input {
  width: 90px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #fff;
}

.admin__filter-price-input:focus {
  outline: none;
  border-color: var(--pink);
}

.admin__filter-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

/* ── Admin sortable column headers ───────────────────── */

.admin__th-sort a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.admin__th-sort a:hover {
  color: var(--pink);
}

.admin__sort-icon {
  font-size: 0.75rem;
  color: var(--pink);
  line-height: 1;
}

@media (max-width: 768px) {
  .admin__filters {
    flex-direction: column;
    align-items: stretch;
  }
  .admin__filter-select,
  .admin__filter-price-input {
    width: 100%;
    min-width: unset;
  }
  .admin__filter-prices {
    width: 100%;
  }
  .admin__filter-prices .admin__filter-price-input {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ORDER STATUS BADGES
═══════════════════════════════════════════════════════════════ */
.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.order-status--new        { background: #fff3cd; color: #856404; }
.order-status--confirmed  { background: #d1ecf1; color: #0c5460; }
.order-status--processing { background: #cce5ff; color: #004085; }
.order-status--completed  { background: #d4edda; color: #155724; }
.order-status--cancelled  { background: #f8d7da; color: #721c24; }

/* orders tab badge */
.admin-tab__badge--orders {
  background: #e74c3c;
  color: #fff;
}

/* duplicate rows highlight */
.admin__row--dupe {
  background: #fff8f0 !important;
  border-left: 3px solid #e67e22;
}
.admin__row--dupe:hover {
  background: #fff2e0 !important;
}
.admin__btn-dupes {
  white-space: nowrap;
}
.admin__dupes-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════════════════ */
.cart-page { max-width: 860px; margin: 0 auto; padding: 32px 32px 64px; }

.cart-list { display: flex; flex-direction: column; gap: 14px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-item__img-wrap { flex-shrink: 0; }
.cart-item__img {
  width: 88px; height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.cart-item__img-placeholder {
  width: 88px; height: 110px;
  background: #f4f4f4;
  border-radius: var(--radius-sm);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__brand { font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.cart-item__title { font-size: 0.95rem; font-weight: 500; margin: 3px 0; }
.cart-item__size  { font-size: 0.82rem; color: #666; }
.cart-item__price { font-size: 0.9rem; font-weight: 600; margin-top: 6px; }

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}
.cart-qty__btn {
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; color: #444; padding: 0 4px;
  line-height: 1;
}
.cart-qty__val { font-size: 0.9rem; min-width: 22px; text-align: center; }
.cart-item__subtotal { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cart-item__remove {
  background: none; border: none; cursor: pointer;
  color: #bbb; padding: 4px;
  transition: color .2s;
}
.cart-item__remove:hover { color: #e74c3c; }

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 20px 0;
  border-top: 2px solid var(--border);
  gap: 16px;
}
.cart-footer__total { font-size: 1.1rem; }
.cart-footer__total strong { font-size: 1.3rem; }

/* ── Order modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: #999; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-title    { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.modal-subtitle { font-size: 0.87rem; color: #666; margin-bottom: 20px; }

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: #fff;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--text); }
.form-error { color: #c00; font-size: 0.84rem; margin-bottom: 10px; }
.btn--full { width: 100%; }

.order-success-icon { text-align: center; margin-bottom: 12px; }
.order-success-title { text-align: center; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.order-success-number { text-align: center; font-size: 1rem; margin-bottom: 6px; }
.order-success-hint { text-align: center; font-size: 0.85rem; color: #666; margin-bottom: 18px; }
.order-success-link-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #f8faff; border: 1px solid #d0e0ff;
  border-radius: var(--radius-sm); padding: 10px 12px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.order-success-link-label { font-size: 0.8rem; color: #666; }
.order-success-link { font-size: 0.8rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   ORDER VIEW PAGE (public)
═══════════════════════════════════════════════════════════════ */
.order-view { max-width: 820px; margin: 0 auto; }

.order-view__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.order-view__title { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.order-view__date  { font-size: 0.85rem; color: #888; }

.order-view__section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.order-view__section-title {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.order-items-table { display: flex; flex-direction: column; gap: 0; }
.order-items-table__head {
  display: grid;
  grid-template-columns: 1fr 80px 60px 100px 100px;
  padding: 6px 0; font-size: 0.78rem;
  font-weight: 600; color: #888;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.order-items-table__row {
  display: grid;
  grid-template-columns: 1fr 80px 60px 100px 100px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}
.order-item-info { display: flex; gap: 12px; align-items: center; }
.order-item-img {
  width: 56px; height: 70px;
  object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.order-item-img--empty {
  width: 56px; height: 70px;
  background: #f0f0f0; border-radius: 4px; flex-shrink: 0;
}
.order-item-brand { font-size: 0.76rem; color: #888; }
.order-item-title { font-size: 0.9rem; font-weight: 500; }
.order-item-size, .order-item-qty { font-size: 0.88rem; color: #555; }
.order-item-price, .order-item-subtotal { font-size: 0.9rem; font-weight: 500; }
.order-item-subtotal { font-weight: 700; }

.order-total {
  text-align: right;
  font-size: 1.05rem;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid var(--border);
}
.order-total strong { font-size: 1.2rem; }

.order-client-info { display: flex; flex-direction: column; gap: 10px; }
.order-client-info__row { display: flex; gap: 12px; }
.order-client-info__label { width: 130px; font-size: 0.85rem; color: #888; flex-shrink: 0; }
.order-client-info__val   { font-size: 0.9rem; }

.order-logs {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; overflow-y: auto;
}
.order-log-entry {
  background: #f8f9fb;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.order-log-entry__meta {
  display: flex; gap: 10px;
  font-size: 0.78rem; color: #888; margin-bottom: 4px;
}
.order-log-entry__author { font-weight: 600; color: #555; }
.order-log-entry__msg    { font-size: 0.88rem; line-height: 1.45; }

.order-view__footer { margin-top: 24px; text-align: center; }
.order-view__footer-note { font-size: 0.85rem; color: #aaa; }
.order-empty-items { color: #aaa; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN ORDERS LIST
═══════════════════════════════════════════════════════════════ */
.orders-table th, .orders-table td { padding: 10px 12px; }
.orders-table__row--new { background: #fffdf2; }
.orders-table__num  { font-weight: 700; }
.orders-table__link { color: var(--text); text-decoration: none; }
.orders-table__link:hover { text-decoration: underline; color: var(--pink); }
.orders-table__date  { font-size: 0.85rem; color: #888; white-space: nowrap; }
.orders-table__total { font-weight: 600; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN ORDER DETAIL
═══════════════════════════════════════════════════════════════ */
.order-detail { padding-bottom: 60px; }
.order-detail__nav { margin-bottom: 16px; }

.order-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.order-detail__title-wrap {
  display: flex; align-items: center; gap: 14px;
}
.order-detail__title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.order-detail__actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.order-detail__status-wrap { display: flex; align-items: center; gap: 8px; }

.order-detail__link-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  background: #f8faff;
  border: 1px solid #d0e0ff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.order-detail__link-label { color: #666; white-space: nowrap; }
.order-detail__link {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #1a6fb5;
}

.order-action-msg {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #d4edda;
  color: #155724;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.order-detail__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.order-detail__main, .order-detail__sidebar { display: flex; flex-direction: column; gap: 20px; }

.order-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.order-section--add { }
.order-section__title {
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Item rows in admin */
.order-items-admin { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.order-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
}
.order-item-row__img img, .order-item-row__img .order-item-img--empty {
  width: 56px; height: 70px;
  object-fit: cover; border-radius: 4px;
}
.order-item-row__controls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.order-item-size-input {
  width: 90px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.order-item-qty-wrap {
  display: flex; align-items: center; gap: 4px;
}
.order-item-qty-input {
  width: 44px; padding: 4px 6px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.order-item-delete {
  background: none; border: 1px solid #fcc;
  color: #c0392b; border-radius: var(--radius-sm);
  padding: 4px 7px; cursor: pointer;
}
.order-item-delete:hover { background: #fff0f0; }

/* Add item form */
.order-add-item-form { display: flex; flex-direction: column; gap: 12px; }
.order-add-item-search { position: relative; }
.order-search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 100; max-height: 240px; overflow-y: auto;
}
.order-search-result {
  display: flex; gap: 10px; align-items: center;
  padding: 9px 14px; cursor: pointer;
  border-bottom: 1px solid #f0f0f0; font-size: 0.88rem;
}
.order-search-result:hover { background: #f8faff; }
.osr__title { flex: 1; font-weight: 500; }
.osr__brand { color: #888; font-size: 0.8rem; }
.osr__price { font-weight: 600; white-space: nowrap; }
.order-add-item-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.order-add-item-fields .form-input { font-size: 0.88rem; }

/* Comments */
.order-comment-form { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.order-comment-textarea {
  width: 100%; min-height: 72px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.order-comment-textarea:focus { outline: none; border-color: var(--text); }

@media (max-width: 768px) {
  .order-detail__grid { grid-template-columns: 1fr; }
  .order-items-table__head, .order-items-table__row {
    grid-template-columns: 1fr 60px 50px 80px;
  }
  .order-items-table__row > span:last-child { display: none; }
  .cart-item { flex-wrap: wrap; }
  .order-add-item-fields { grid-template-columns: 1fr; }
  .cart-footer { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Gender filter row in product form ───────────────────────────── */
.admin-form__gender-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.admin-form__gender-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
}
.admin-form__gender-opt input[type="radio"] {
  cursor: pointer;
  accent-color: #111;
}

/* ── Upload dropzone ──────────────────────────────────────────────── */
.upload-dropzone {
  border: 2px dashed #ddd;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fafafa;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: #111;
  background: #f3f3f3;
}
.upload-dropzone__input { display: none; }
.upload-dropzone__label {
  font-size: 13px;
  color: #888;
}
.upload-dropzone__label span {
  color: #111;
  text-decoration: underline;
  cursor: pointer;
}

/* Preview strip for new (not yet uploaded) photos */
.upload-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.upload-preview-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  cursor: grab;
  border-radius: 5px;
  overflow: visible;
}
.upload-preview-thumb:active { cursor: grabbing; }
.upload-preview-thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  pointer-events: none;
}
.upload-preview-thumb__del {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.upload-preview-thumb__del:hover { background: #c00; }
.upload-preview-thumb.photo-dragging { opacity: .35; }
.upload-preview-thumb.photo-drag-over img {
  outline: 2px dashed var(--accent, #2563eb);
  outline-offset: 2px;
  border-radius: 5px;
}
