:root{
  --bg:#0b1020;
  --card:#101a33;
  --muted:#8da2c0;
  --text:#e9f0ff;
  --line:rgba(255,255,255,.10);

  --ok:#35c29a;
  --bad:#ff5c6c;
  --warn:#ffcc66;

  --btn:#2a66ff;
  --btn2:#1b2a4d;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(42,102,255,.25), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(53,194,154,.18), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:#b8ccff; text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px; margin:0 auto; padding:24px}

/* Top */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(16,26,51,.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand{display:flex; gap:10px; align-items:center}
.logo{
  width:34px; height:34px; border-radius:10px;
  background:linear-gradient(135deg, rgba(42,102,255,.9), rgba(53,194,154,.8));
}
.title{font-weight:800}
.subtitle{color:var(--muted); font-size:13px; margin-top:2px}

/* Cards / Layout */
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(16,26,51,.72);
  backdrop-filter: blur(10px);
  padding:18px;
  box-shadow: var(--shadow);
}

.grid{display:grid; gap:14px}
.grid2{grid-template-columns: 1fr 1fr}
@media (max-width:900px){.grid2{grid-template-columns:1fr}}

.h1{font-size:26px; margin:6px 0 8px}
.h2{font-size:18px; margin:0 0 10px}
.p{color:var(--muted); line-height:1.6; margin:0}

.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

hr{border:0; border-top:1px solid var(--line); margin:16px 0}

label{font-size:13px; color:var(--muted); display:block; margin:0 0 6px}

input,select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}

input::placeholder, textarea::placeholder{color:rgba(141,162,192,.75)}
textarea{min-height:110px; resize:vertical}

input:focus,select:focus,textarea:focus{
  border-color: rgba(42,102,255,.55);
  box-shadow: 0 0 0 4px rgba(42,102,255,.18);
}

/* Buttons */
.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--btn);
  color:white;
  font-weight:800;
  cursor:pointer;
  transition: transform .06s ease, filter .12s ease, opacity .12s ease;
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform: translateY(1px)}
.btn.secondary{background:var(--btn2)}
.btn.ghost{background:transparent}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none}

.btn-xs{padding:6px 10px; border-radius:10px; font-size:12px; font-weight:800}

/* Badges / Notices */
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.12);
  color:var(--muted);
  font-size:12px;
}

.notice{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.14);
  margin-top:10px;
}
.notice.ok{border-color:rgba(53,194,154,.35); color:#c7ffee}
.notice.bad{border-color:rgba(255,92,108,.35); color:#ffd3d7}
.notice.warn{border-color:rgba(255,204,102,.35); color:#ffe9b6}

/* Pills (status) */
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.12);
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.pill.ok{border-color:rgba(53,194,154,.45); color:#c7ffee}
.pill.bad{border-color:rgba(255,92,108,.45); color:#ffd3d7}
.pill.warn{border-color:rgba(255,204,102,.45); color:#ffe9b6}

/* Tabs */
.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab{
  padding:9px 12px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.10);
  color:var(--muted);
  cursor:pointer;
}
.tab.active{background:rgba(42,102,255,.22); color:#dbe8ff}

/* Table */
.table{width:100%; border-collapse:collapse; font-size:13px}
.table th,.table td{padding:10px; border-bottom:1px solid var(--line); vertical-align:top}
.table th{color:#cfe0ff; text-align:left; font-weight:900}
.table tr:hover td{background:rgba(255,255,255,.03)}
.table .right{text-align:right}

/* Monospace */
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono"; font-size:12px}
.small{font-size:12px; color:var(--muted)}
.right{margin-left:auto}

/* Dropzone */
.dropzone{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:16px;
  padding:16px;
  background:rgba(0,0,0,.10);
  min-height:120px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}
.dropzone.dragover{
  border-color: rgba(42,102,255,.75);
  box-shadow: 0 0 0 4px rgba(42,102,255,.18);
  background:rgba(42,102,255,.08);
}

/* Upload Queue */
.queue{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.queue-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.10);
}
.queue-item--done{border-color:rgba(53,194,154,.25)}
.queue-item--error{border-color:rgba(255,92,108,.25)}
.queue-item--job,.queue-item--uploaded,.queue-item--uploading,.queue-item--queued{border-color:rgba(255,255,255,.10)}

.queue-main{min-width:0}
.qi-name{font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:520px}
.qi-meta{margin-top:4px}
.queue-side{display:flex; gap:8px; align-items:center}

/* Utilities */
.hidden{display:none !important}
.mt-14{margin-top:14px}
.mt-10{margin-top:10px}
.mt-12{margin-top:12px}
.prewrap{white-space:pre-wrap; margin:0}
.grow{flex:1}
.field{min-width:220px}

/* Accessibility */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  background:rgba(16,26,51,.92);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}

/* ===========================
   THEME: Landing (light)
   Включается через <body class="theme-landing">
   =========================== */

body.theme-landing{
  /* токены светлой темы */
  --bg:#ffffff;
  --card:rgba(255,255,255,.86);
  --muted:rgba(15,23,42,.64);
  --text:#0b1020;
  --line:rgba(15,23,42,.10);

  --btn:#2a66ff;
  --btn2:rgba(15,23,42,.06);

  --shadow: 0 18px 60px rgba(2,6,23,.12);
  --radius:18px;

  /* фон как на лендинге */
  background:
    radial-gradient(1100px 700px at 18% 12%, rgba(42,102,255,.22), transparent 62%),
    radial-gradient(900px 650px at 82% 18%, rgba(53,194,154,.16), transparent 62%),
    radial-gradient(900px 650px at 60% 70%, rgba(42,102,255,.10), transparent 62%),
    var(--bg);
  color:var(--text);
}

/* ссылки — лендинговые */
body.theme-landing a{ color:#1e50ff; }
body.theme-landing a:hover{ text-decoration:underline; }

/* topbar — светлый */
body.theme-landing .topbar{
  background: rgba(255,255,255,.72);
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

/* карточки — светлые */
body.theme-landing .card{
  background: rgba(255,255,255,.78);
  border-color: rgba(15,23,42,.10);
  box-shadow: var(--shadow);
}

/* подписи/тексты */
body.theme-landing .p,
body.theme-landing .small,
body.theme-landing label,
body.theme-landing .subtitle{
  color: var(--muted);
}

/* hr */
body.theme-landing hr{ border-top-color: var(--line); }

/* инпуты — светлые */
body.theme-landing input,
body.theme-landing select,
body.theme-landing textarea{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.12);
  color: var(--text);
}
body.theme-landing input::placeholder,
body.theme-landing textarea::placeholder{
  color: rgba(15,23,42,.40);
}
body.theme-landing input:focus,
body.theme-landing select:focus,
body.theme-landing textarea:focus{
  border-color: rgba(42,102,255,.55);
  box-shadow: 0 0 0 4px rgba(42,102,255,.16);
}

/* кнопки */
body.theme-landing .btn{
  border-color: rgba(42,102,255,.20);
  box-shadow: 0 10px 24px rgba(42,102,255,.18);
}
body.theme-landing .btn.secondary{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
  box-shadow: none;
  color: var(--text);
}
body.theme-landing .btn.ghost{
  background: transparent;
  border-color: rgba(15,23,42,.12);
  box-shadow: none;
  color: rgba(15,23,42,.78);
}

/* badge/notice — светлые */
body.theme-landing .badge{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  color: rgba(15,23,42,.64);
}

body.theme-landing .notice{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  color: rgba(15,23,42,.78);
}
body.theme-landing .notice.ok{
  background: rgba(53,194,154,.10);
  border-color: rgba(53,194,154,.25);
  color: rgba(3,42,32,.92);
}
body.theme-landing .notice.bad{
  background: rgba(255,92,108,.10);
  border-color: rgba(255,92,108,.22);
  color: rgba(71,6,12,.92);
}
body.theme-landing .notice.warn{
  background: rgba(255,204,102,.14);
  border-color: rgba(255,204,102,.28);
  color: rgba(60,35,0,.92);
}

/* skip-link — не тёмный */
body.theme-landing .skip-link:focus{
  background: rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.12);
  color: rgba(15,23,42,.90);
}

/* ===========================
   APP UI tweaks + Mobile
   =========================== */

/* контейнер на мобиле — уже */
@media (max-width: 900px){
  .container{ padding:16px; }
  .topbar{ padding:12px 12px; border-radius:14px; }
  .card{ padding:14px; }
  .h1{ font-size:22px; }
  .h2{ font-size:16px; }
}

/* кнопки/табы — крупнее на мобиле */
@media (max-width: 900px){
  .btn{ padding:12px 14px; border-radius:14px; }
  .btn-xs{ padding:10px 12px; border-radius:12px; font-size:13px; }
  .tab{ padding:10px 12px; }
  input,select,textarea{ padding:12px 12px; border-radius:14px; }
}

/* шапка: на мобиле уводим действия вниз, чтобы не ломало */
@media (max-width: 900px){
  .topbar{ flex-wrap:wrap; gap:10px; }
  .topbar .brand{ flex: 1 1 100%; }
  .topbar .row{ width:100%; justify-content:flex-end; }
}

/* grid2 -> одна колонка на планшете/мобиле (у тебя уже есть на 900px, усилим на 1024) */
@media (max-width: 1024px){
  .grid2{ grid-template-columns:1fr; }
}

/* формы: "поиск + статус + кнопки" часто в один ряд — на мобиле в столбик */
@media (max-width: 900px){
  .row{ gap:10px; }
  .field{ min-width: 0; width: 100%; }
}

/* таблица: делаем горизонтальный скролл внутри карточки */
.table-wrap{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
.table{ min-width: 720px; } /* чтобы не ломало колонки */

/* на мобиле таблица пусть будет шире, но скроллится */
@media (max-width: 900px){
  .table{ min-width: 860px; }
}

/* “липкие” заголовки таблицы — удобно на скролле */
.table thead th{
  position: sticky;
  top: 0;
  background: rgba(16,26,51,.92);
  backdrop-filter: blur(8px);
  z-index: 1;
}

/* статус/уведомления: не растягивать на всю ширину */
.notice{ max-width: 100%; }

/* ===========================
   APP: Landing theme + Mobile
   =========================== */

/* комфортнее hit-area */
.btn{ min-height: 40px; }
.tab{ min-height: 38px; }

/* table scroll wrapper */
.table-wrap{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}

/* чуть шире таблица, чтобы колонки не ломались */
.table{ min-width: 760px; }

/* sticky header — под theme-landing */
body.theme-landing .table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
}

/* hover не такой "тёмный" на светлой теме */
body.theme-landing .table tr:hover td{
  background: rgba(15,23,42,.03);
}

/* ===== Mobile ===== */
@media (max-width: 900px){
  .container{ padding:16px; }
  .topbar{
    padding:12px 12px;
    border-radius:14px;
    flex-wrap:wrap;
    gap:10px;
  }
  .card{ padding:14px; }
  .h1{ font-size:22px; }
  .h2{ font-size:16px; }

  input,select,textarea{
    padding:12px 12px;
    border-radius:14px;
  }

  .btn{
    padding:12px 14px;
    border-radius:14px;
  }
  .tab{ padding:10px 12px; }

  /* header */
  .topbar .brand{ flex: 1 1 100%; }
  .top-actions{ width:100%; justify-content:flex-end; }

  /* wardrobe filters -> column */
  .filters-row{
    flex-direction: column;
    align-items: stretch;
  }
  .filters-row .field,
  .filters-row .grow{
    width:100%;
    min-width:0;
  }

  /* action buttons -> full width */
  .actions-row{
    width:100%;
    flex-direction: column;
    align-items: stretch;
  }
  .actions-row .btn{ width:100%; }

  /* upload grid -> one col */
  .grid2{ grid-template-columns: 1fr !important; }

  /* editor header actions */
  .editor-actions{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }
}

/* ===========================
   Mobile Pro UX: tabs scroll + table cards
   =========================== */

/* Tabs: горизонтальный скролл на мобиле */
@media (max-width: 600px){
  .tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 6px 2px;
    scrollbar-width: none; /* Firefox */
  }
  .tabs::-webkit-scrollbar{ display:none; } /* Chrome/Safari */
  .tab{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Table -> Cards on very small screens */
@media (max-width: 520px){
  /* убираем горизонтальный скролл-режим */
  .table-wrap{ overflow: visible; }
  .table{ min-width: 0; }

  /* скрываем шапку */
  .table thead{ display:none; }

  /* превращаем строки в карточки */
  .table,
  .table tbody,
  .table tr,
  .table td{
    display:block;
    width:100%;
  }

  .table tr{
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 60px rgba(2,6,23,.10);
    border-radius: 16px;
    padding: 12px;
    margin: 10px 0;
  }

  /* ячейки: лейбл слева, значение справа */
  .table td{
    border-bottom: 1px solid rgba(15,23,42,.08);
    padding: 10px 0;
  }
  .table td:last-child{ border-bottom:0; }

  .table td::before{
    display:block;
    font-size: 12px;
    color: rgba(15,23,42,.60);
    margin-bottom: 6px;
    font-weight: 700;
  }

  /* Лейблы по порядку колонок */
  .table td:nth-child(1)::before{ content: "Товар"; }
  .table td:nth-child(2)::before{ content: "Статус"; }
  .table td:nth-child(3)::before{ content: "Категория"; }
  .table td:nth-child(4)::before{ content: "Действия"; }

  /* кнопки в действиях: в строку и с переносом */
  .table td:nth-child(4) .row{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .table td:nth-child(4) .btn{
    width: auto;
  }
}

/* На 521-900: остаётся скролл-таблица (как раньше) */

/* Mobile Cards polish */
@media (max-width: 520px){
  /* 1-я строка (Товар) — как заголовок карточки */
  .table td:nth-child(1){
    padding-top: 6px;
  }
  .table td:nth-child(1){
    font-weight: 900;
    font-size: 15px;
  }

  /* Статус — аккуратнее */
  .table td:nth-child(2){
    padding-top: 8px;
  }

  /* Действия: кнопки на всю ширину по одной (удобно пальцем) */
  .table td:nth-child(4) .btn{
    width: 100%;
  }
  .table td:nth-child(4) .btn + .btn{
    margin-top: 8px;
  }
}

/* =========================================
   WARDROBE GRID (MARKETPLACE STYLE)
========================================= */

#feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile-first */
  gap: 10px;
}

/* планшет */
@media (min-width: 640px){
  #feed {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* десктоп */
@media (min-width: 1024px){
  #feed {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16,26,51,.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
}


/* =========================================
   IMAGE (FIXED RATIO)
========================================= */

.product-image {
  width: 100%;
  aspect-ratio: 3 / 4; /* 🔥 ключ для адаптива */
  overflow: hidden;
  background: #000;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================
   CONTENT
========================================= */

.product-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}


/* TITLE */
.product-title {
  font-weight: 800;
  font-size: 14px;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* максимум 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* DESCRIPTION */
.product-desc {
  font-size: 12px;
  color: var(--muted);

  display: -webkit-box;
  -webkit-line-clamp: 3;   /* максимум 3 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* STATUS */
.product-status {
  font-size: 11px;
  opacity: 0.7;
  margin-top: auto;
}


/* ACTIONS */
.product-actions {
  margin-top: 8px;
}

.product-actions .btn {
  width: 100%;
}


/* =========================================
   MOBILE UX IMPROVEMENTS
========================================= */

@media (max-width: 480px){

  .product-title {
    font-size: 13px;
  }

  .product-desc {
    font-size: 11px;
  }

}

/* =========================================
   PRODUCT HOVER OVERLAY
========================================= */

.product-card {
  position: relative;
}

/* overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  opacity: 0;
  transition: opacity .2s ease;
}

/* показываем overlay при hover */
.product-card:hover .product-overlay {
  opacity: 1;
}

/* кнопки внутри overlay */
.product-overlay .btn {
  background: white;
  color: black;
  font-size: 12px;
  padding: 8px 10px;
}

/* мобильные — overlay всегда виден */
@media (max-width: 768px){
  .product-overlay {
    opacity: 1;
    position: static;
    background: none;
    padding: 10px;
    justify-content: flex-start;
  }
}

/* =========================
   ACTIONS (DESKTOP)
========================= */

.product-overlay{
  position:absolute;
  inset:0;
  display:flex;
  gap:8px;
  align-items:flex-end;
  justify-content:center;
  padding:12px;
  opacity:0;
  transition:0.2s;
  background:linear-gradient(to top, rgba(0,0,0,.6), transparent);
}

.product-card:hover .product-overlay{
  opacity:1;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px){

  .product-overlay{
    position:static;
    opacity:1;
    background:none;
    padding:8px;
    flex-wrap:wrap;
    justify-content:space-between;
  }

  .product-overlay .btn{
    flex:1;
    font-size:12px;
    padding:8px 10px;
    border-radius:10px;
  }

  .product-overlay .btn + .btn{
    margin-left:6px;
  }

}
/* =========================================
   WARDROBE PRODUCT ACTIONS v2
   Главная кнопка + компактные иконки
========================================= */

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px 0;
  margin-top: 0;
  box-sizing: border-box;
}

.product-actions .publish-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

.product-icon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform .08s ease,
    filter .12s ease,
    background .12s ease,
    border-color .12s ease;
}

.icon-btn:hover {
  filter: brightness(1.12);
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn.edit-btn {
  color: #dbe8ff;
}

.icon-btn.delete-btn {
  color: #ffd3d7;
  border-color: rgba(255,92,108,.28);
  background: rgba(255,92,108,.08);
}

.icon-btn.delete-btn:hover {
  background: rgba(255,92,108,.16);
  border-color: rgba(255,92,108,.45);
}

/* Если товар уже опубликован, остаются только иконки справа */
.product-actions:not(:has(.publish-btn)) {
  justify-content: flex-end;
}

/* Светлая тема */
body.theme-landing .icon-btn {
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.10);
  color: rgba(15,23,42,.82);
}

body.theme-landing .icon-btn:hover {
  background: rgba(15,23,42,.10);
}

body.theme-landing .icon-btn.delete-btn {
  color: #b91c1c;
  background: rgba(185,28,28,.06);
  border-color: rgba(185,28,28,.18);
}

body.theme-landing .icon-btn.delete-btn:hover {
  background: rgba(185,28,28,.12);
  border-color: rgba(185,28,28,.30);
}

/* Мобильный адаптив */
@media (max-width: 520px) {
  .product-actions {
    gap: 8px;
    padding: 9px 10px 0;
  }

  .product-actions .publish-btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
  }

  .product-icon-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 19px;
  }
}

/* На очень узких экранах кнопки не должны вылезать из карточки */
@media (max-width: 380px) {
  .product-actions {
    flex-wrap: wrap;
  }

  .product-actions .publish-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .product-icon-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/* =========================================
   WARDROBE MOBILE ACTIONS FIX v3
   На мобильной карточке главная кнопка отдельно,
   иконки редактирования/удаления — отдельной строкой
========================================= */

@media (max-width: 520px) {
  .product-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 10px 10px 0;
  }

  .product-actions .publish-btn {
    width: 100%;
    flex: 1 1 auto;
    min-height: 38px;
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 12px;
    text-align: center;
  }

  .product-icon-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  /* Если карточка уже опубликована и кнопки "Опубликовать" нет,
     иконки остаются аккуратно справа */
  .product-actions:not(:has(.publish-btn)) {
    align-items: flex-end;
  }

  .product-actions:not(:has(.publish-btn)) .product-icon-actions {
    justify-content: flex-end;
  }
}

/* На очень узких экранах сохраняем читаемость */
@media (max-width: 380px) {
  .product-actions {
    padding: 9px 9px 0;
  }

  .product-actions .publish-btn {
    font-size: 11px;
    min-height: 36px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 18px;
  }
}


/* =========================================
   WARDROBE DESCRIPTION EXPAND v1
   Нативное раскрытие описания по клику
========================================= */

.product-desc {
  cursor: pointer;
  position: relative;
}

.product-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  white-space: normal;
}

.product-desc.expanded::after {
  content: "";
  display: none;
}



/* =========================================
   WARDROBE CATEGORY FILTERS v1
   Desktop: flexible chips
   Mobile: horizontal scroll chips
========================================= */

.wardrobe-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wardrobe-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
  padding: 2px 0;
}

.wardrobe-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}

.wardrobe-category-chip:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.wardrobe-category-chip:active {
  transform: translateY(1px);
}

.wardrobe-category-chip.active {
  background: rgba(42,102,255,.28);
  border-color: rgba(42,102,255,.55);
  color: #ffffff;
}

.wardrobe-category-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 900;
}

.wardrobe-category-chip.active .wardrobe-category-chip-count {
  background: rgba(255,255,255,.18);
  color: #ffffff;
}

/* Mobile: chips as horizontal navigation */
@media (max-width: 768px) {
  .wardrobe-feed-head {
    margin-bottom: 6px;
  }

  .wardrobe-category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin: 6px -14px 14px;
    padding: 4px 14px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .wardrobe-category-filters::-webkit-scrollbar {
    display: none;
  }

  .wardrobe-category-chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }
}

/* Very small mobile */
@media (max-width: 380px) {
  .wardrobe-category-chip {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .wardrobe-category-chip-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* ============================================================
   AI REVIEW BADGE v1
   Карточки, где AI не уверен в распознавании
   ============================================================ */

.product-ai-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  margin-bottom: 2px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.13);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.08);
}

.product-ai-review-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

@media (max-width: 560px) {
  .product-ai-review-badge {
    font-size: 11px;
    padding: 6px 9px;
    white-space: normal;
  }
}


/* ============================================================
   PRODUCT EDIT FORM v1
   Редактирование карточки и ручной перенос категории
   ============================================================ */

.edit-field-label {
  display: block;
  margin: 10px 0 6px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.edit-title,
.edit-desc,
.edit-category {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.76);
  color: #eef4ff;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

.edit-title {
  min-height: 42px;
  padding: 10px 12px;
}

.edit-desc {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.35;
}

.edit-category {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
}

.edit-title:focus,
.edit-desc:focus,
.edit-category:focus {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.edit-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.edit-actions-row .save-btn,
.edit-actions-row .cancel-btn {
  min-height: 40px;
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.edit-actions-row .save-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
}

.edit-actions-row .cancel-btn {
  background: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
}

@media (max-width: 560px) {
  .edit-title,
  .edit-desc,
  .edit-category {
    font-size: 13px;
  }

  .edit-actions-row {
    flex-direction: column;
  }
}


/* ============================================================
   OUTFIT STYLIST MVP
   ============================================================ */

.outfit-stylist-panel {
  margin: 22px 0 26px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.26);
  color: #e5e7eb;
}

.outfit-stylist-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.outfit-stylist-kicker,
.outfit-result-kicker {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.outfit-stylist-header h2,
.outfit-result-header h3 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.outfit-stylist-header p {
  margin: 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 14px;
  line-height: 1.5;
}

.outfit-readiness-box {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.32);
}

.outfit-readiness-box.ready {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(22, 101, 52, 0.16);
}

.outfit-readiness-box.locked {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.18);
}

.outfit-readiness-title {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.outfit-readiness-text {
  color: rgba(226, 232, 240, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.outfit-readiness-progress {
  overflow: hidden;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.outfit-readiness-progress > div,
#outfitReadinessProgressBar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.35s ease;
}

.outfit-stylist-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.outfit-stylist-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.outfit-stylist-form label span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.outfit-stylist-form select,
.outfit-stylist-form input[type="number"] {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  outline: none;
}

.outfit-check {
  min-height: 42px;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
}

.outfit-check input {
  width: 16px;
  height: 16px;
}

.outfit-stylist-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.outfit-suggest-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}

.outfit-suggest-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.outfit-stylist-status {
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.outfit-stylist-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.outfit-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.outfit-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.42);
}

.outfit-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(15, 23, 42, 0.82);
}

.outfit-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outfit-no-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(226, 232, 240, 0.52);
  font-size: 13px;
}

.outfit-card-body {
  padding: 14px;
}

.outfit-role {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
}

.outfit-card h4 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.outfit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.outfit-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.outfit-card-reasons,
.outfit-card-warnings,
.outfit-explain-block ul,
.outfit-warning-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.outfit-card-warnings,
.outfit-warning-block ul {
  color: #fed7aa;
}

.outfit-explain-block,
.outfit-warning-block,
.outfit-empty {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.outfit-explain-block h4,
.outfit-warning-block h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 980px) {
  .outfit-stylist-form {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .outfit-stylist-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .outfit-stylist-form {
    grid-template-columns: 1fr;
  }

  .outfit-stylist-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .outfit-suggest-btn {
    width: 100%;
  }
}


/* ============================================================
   OUTFIT STYLIST SCENARIO MODE
   ============================================================ */

.outfit-scenario-block {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.outfit-scenario-group {
  display: grid;
  gap: 10px;
}

.outfit-scenario-title {
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.outfit-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outfit-chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: rgba(226, 232, 240, 0.88);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.outfit-chip:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(30, 64, 175, 0.22);
}

.outfit-chip.active {
  border-color: rgba(59, 130, 246, 0.86);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.outfit-custom-date {
  width: min(260px, 100%);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  outline: none;
}

.outfit-weather-note {
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 18px;
  background: rgba(30, 64, 175, 0.13);
}

.outfit-weather-title {
  margin-bottom: 5px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 900;
}

.outfit-weather-text {
  color: rgba(226, 232, 240, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.outfit-weather-text strong {
  color: #fff;
}

@media (max-width: 640px) {
  .outfit-chip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .outfit-chip {
    width: 100%;
  }
}


/* ============================================================
   OUTFIT VARIANTS + SAVED OUTFITS
   ============================================================ */

.outfit-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.outfit-variant-card {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.34);
}

.outfit-variant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.outfit-variant-head h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.outfit-save-btn {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.outfit-save-btn:hover {
  background: rgba(37, 99, 235, 0.32);
}

.outfit-save-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.outfit-variant-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  gap: 12px;
}

.outfit-variant-items .outfit-card {
  border-radius: 18px;
}

.outfit-variant-items .outfit-card-image {
  max-height: 330px;
  aspect-ratio: 3 / 4;
}

.outfit-variant-items .outfit-card-image img {
  object-fit: cover;
}

.outfit-variant-items .outfit-card-body {
  padding: 12px;
}

.outfit-variant-items .outfit-card h4 {
  font-size: 15px;
}

.outfit-explain-block.compact,
.outfit-warning-block.compact {
  margin-top: 12px;
  padding: 12px;
}

.saved-outfits-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.46);
}

.saved-outfits-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.saved-outfits-empty {
  color: rgba(226, 232, 240, 0.68);
  font-size: 13px;
}

.saved-outfits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saved-outfit-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.saved-outfit-pill span {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 900;
}

.saved-outfit-pill small {
  color: rgba(226, 232, 240, 0.58);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .outfit-variants-grid {
    grid-template-columns: 1fr;
  }

  .outfit-variant-head {
    flex-direction: column;
  }

  .outfit-save-btn {
    width: 100%;
  }

  .outfit-variant-items {
    grid-template-columns: 1fr;
  }

  .outfit-variant-items .outfit-card-image {
    max-height: 420px;
  }
}


/* ============================================================
   OUTFIT VARIANTS MOBILE COMPACT FIX
   ============================================================ */

@media (max-width: 700px) {
  .outfit-variant-card {
    padding: 12px;
    border-radius: 20px;
  }

  .outfit-variant-head h3 {
    font-size: 20px;
  }

  .outfit-variant-items {
    gap: 10px;
  }

  .outfit-variant-items .outfit-card {
    border-radius: 16px;
  }

  .outfit-variant-items .outfit-card-image {
    max-height: 250px !important;
    aspect-ratio: 4 / 3 !important;
  }

  .outfit-variant-items .outfit-card-body {
    padding: 10px;
  }

  .outfit-variant-items .outfit-card h4 {
    font-size: 15px;
    line-height: 1.2;
  }

  .outfit-variant-items .outfit-card-reasons {
    display: none;
  }

  .outfit-explain-block.compact,
  .outfit-warning-block.compact {
    padding: 10px;
  }

  .outfit-explain-block.compact ul,
  .outfit-warning-block.compact ul {
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .outfit-variant-items .outfit-card-image {
    max-height: 220px !important;
  }

  .outfit-variants-grid {
    gap: 14px;
  }

  .outfit-variant-card {
    padding: 10px;
  }
}


/* ============================================================
   SAVED OUTFITS BACKEND CONTROLS
   ============================================================ */

.saved-outfit-delete {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 2px;
  border: 1px solid rgba(248, 113, 113, 0.38);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.saved-outfit-delete:hover {
  background: rgba(127, 29, 29, 0.42);
}

.saved-outfit-delete:disabled {
  opacity: 0.5;
  cursor: default;
}


/* ============================================================
   SAVED OUTFIT BUTTON STATE
   ============================================================ */

.outfit-save-btn.saved,
.outfit-save-btn.saved:disabled {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0;
  cursor: default;
  opacity: 1;
}


/* ============================================================
   OUTFIT WEATHER CONTEXT
   ============================================================ */

.outfit-weather-note.ready {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(22, 101, 52, 0.16);
}

.outfit-weather-btn {
  margin-top: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.outfit-weather-btn:hover {
  background: rgba(37, 99, 235, 0.32);
}

.outfit-weather-btn:disabled {
  opacity: 0.65;
  cursor: default;
}


/* ============================================================
   SAVED OUTFITS CARDS
   ============================================================ */

.saved-outfits-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.saved-outfit-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
}

.saved-outfit-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(15, 23, 42, 0.86);
}

.saved-outfit-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-outfit-card-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(226, 232, 240, 0.62);
  font-size: 14px;
  font-weight: 800;
}

.saved-outfit-card-body {
  padding: 14px;
}

.saved-outfit-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.saved-outfit-card-label {
  margin-bottom: 4px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.saved-outfit-card h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.12;
}

.saved-outfit-card-delete {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.saved-outfit-card-delete:hover {
  background: rgba(127, 29, 29, 0.44);
}

.saved-outfit-card-delete:disabled {
  opacity: 0.55;
  cursor: default;
}

.saved-outfit-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.saved-outfit-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.86);
  color: rgba(226, 232, 240, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.saved-outfit-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.saved-outfit-card-items span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.20);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .saved-outfits-cards {
    grid-template-columns: 1fr;
  }

  .saved-outfit-card {
    border-radius: 20px;
  }

  .saved-outfit-card h4 {
    font-size: 16px;
  }
}



/* ============================================================
   WARDROBE INFINITE SCROLL SENTINEL
   Технический невидимый элемент для автодогрузки карточек.
   Не должен менять дизайн, высоту карточек или сетку.
   ============================================================ */

.feed-infinite-sentinel {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.feed-infinite-sentinel.hidden,
.feed-infinite-sentinel.done {
  display: block;
}
