:root {
  --bg: #fff8f0;
  --ink: #2d1b4e;
  --ink-soft: #6b5e86;
  --coral: #ff5d73;
  --coral-dark: #e84a60;
  --sun: #ffc531;
  --mint: #2ec4b6;
  --sky: #4d96ff;
  --purple: #845ec2;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 12px 30px rgba(45, 27, 78, 0.12);
  --shadow-hover: 0 18px 40px rgba(45, 27, 78, 0.18);
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding: 72px 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 12px;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 27, 78, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
  color: var(--purple);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 24px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--coral);
}

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

.cart-btn {
  position: relative;
  border: none;
  cursor: pointer;
  font-size: 20px;
  background: var(--sun);
  border-radius: 999px;
  width: 52px;
  height: 52px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.cart-btn:hover {
  transform: scale(1.08);
}

.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
}

.burger {
  display: none;
  border: none;
  background: var(--card);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--coral), var(--purple));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 93, 115, 0.4);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

.btn--small {
  padding: 10px 18px;
  font-size: 15px;
  background: var(--mint);
  color: #fff;
  box-shadow: 0 6px 14px rgba(46, 196, 182, 0.35);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hero {
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(255, 197, 49, 0.35), transparent),
    radial-gradient(600px 300px at 85% 80%, rgba(132, 94, 194, 0.25), transparent),
    linear-gradient(160deg, #ffe9f0, #fff6df);
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero__badge {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--coral-dark);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
}

.hero__facts b {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--purple);
}

.hero__facts span {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero__art {
  position: relative;
  height: 380px;
}

.hero__blob {
  position: absolute;
  inset: 10% 18%;
  background: linear-gradient(140deg, var(--sun), var(--coral));
  border-radius: 44% 56% 55% 45% / 50% 44% 56% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 130px;
  box-shadow: var(--shadow-hover);
  animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
  0%, 100% { border-radius: 44% 56% 55% 45% / 50% 44% 56% 50%; }
  50% { border-radius: 56% 44% 45% 55% / 44% 56% 44% 56%; }
}

.hero__bubble {
  position: absolute;
  width: 84px;
  height: 84px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.hero__bubble--1 { top: 0; left: 4%; }
.hero__bubble--2 { bottom: 6%; left: 0; animation-delay: 1.2s; }
.hero__bubble--3 { top: 18%; right: 0; animation-delay: 2.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card__emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.chip {
  border: 2px solid rgba(45, 27, 78, 0.15);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--coral);
}

.chip--active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.product-card__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  height: 150px;
  background: linear-gradient(135deg, #ffe8f0, #fff3d6);
  overflow: hidden;
}

.product-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__art .badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.product-card__sku {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 14px;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--purple);
  white-space: nowrap;
}

.how {
  background: linear-gradient(160deg, #f3ecff, #e6f7f5);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.how__step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.how__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--purple));
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.how__step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.how__step p {
  font-size: 14px;
  color: var(--ink-soft);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  font-size: 15px;
}

.review-card__stars {
  color: var(--sun);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-card footer {
  margin-top: 14px;
  font-weight: 800;
  color: var(--purple);
}

.faq__item {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq__item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.faq__item p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

.contacts {
  background: linear-gradient(160deg, #fff6df, #ffe9f0);
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  margin: 20px 0;
}

.contacts__list a:hover {
  color: var(--coral);
}

.contacts__list small {
  color: var(--ink-soft);
}

.contacts__note {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

.contacts__form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts__form h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 2px solid rgba(45, 27, 78, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
}

textarea {
  resize: vertical;
}

.form-hint {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.footer {
  background: var(--purple);
  color: #fff;
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 78, 0.5);
  z-index: 90;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  box-shadow: -10px 0 40px rgba(45, 27, 78, 0.25);
}

.drawer--open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(45, 27, 78, 0.1);
}

.drawer__head h2 {
  font-family: var(--font-display);
  font-size: 24px;
}

.icon-btn {
  border: none;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 40px;
}

.cart-item {
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
}

.cart-item__art {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe8f0, #fff3d6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-weight: 800;
  font-size: 15px;
}

.cart-item__price {
  font-size: 13px;
  color: var(--ink-soft);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 800;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: none;
  background: var(--sun);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.cart-item__remove {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--coral);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item__sum {
  font-weight: 800;
  white-space: nowrap;
}

.drawer__foot {
  padding: 20px 22px;
  border-top: 1px solid rgba(45, 27, 78, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer__total {
  font-size: 18px;
  text-align: right;
}

.drawer__total b {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--purple);
}

.drawer__hint {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 110;
}

.modal {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 28px;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
}

.modal h2 {
  font-family: var(--font-display);
  margin-bottom: 18px;
}

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

.modal__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.modal__step {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  border: 2px solid rgba(45, 27, 78, 0.1);
}

.modal__step--active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

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

.form-step__hint {
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff6df;
  border-radius: 14px;
  padding: 12px 14px;
}

.input--invalid {
  border-color: var(--coral) !important;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 120;
  opacity: 0;
  transition: all 0.25s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

  .hero__art {
    height: 300px;
    max-width: 420px;
    margin: 0 auto;
  }

  .features__grid,
  .how__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .contacts__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(45, 27, 78, 0.1);
    display: none;
  }

  .nav--open {
    display: flex;
  }

  .burger {
    display: block;
  }

  .section {
    padding: 52px 0;
  }

  .features__grid,
  .how__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero__art {
    height: 240px;
  }

  .hero__blob {
    font-size: 90px;
  }
}

.admin-body {
  background: #f6f2fb;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login__card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 36px 32px;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login__card h1 {
  font-family: var(--font-display);
  font-size: 26px;
}

.admin-login__hint {
  color: var(--ink-soft);
  font-size: 14px;
}

.admin-error {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 14px;
}

.admin-back {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.admin-back:hover {
  color: var(--purple);
}

.admin-header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.admin-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--purple);
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  gap: 8px;
}

.admin-tab {
  border: 2px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-tab:hover {
  color: var(--purple);
}

.admin-tab--active {
  background: var(--purple);
  color: #fff;
}

.admin-header__actions {
  display: flex;
  gap: 8px;
}

.admin-main {
  padding: 28px 20px 60px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

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

.admin-hint {
  color: var(--ink-soft);
  font-size: 14px;
}

.admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-chips .chip {
  font-size: 14px;
  padding: 7px 16px;
}

.import-preview {
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(45, 27, 78, 0.12);
  border-radius: 12px;
  margin-bottom: 14px;
}

.modal-backdrop--wide .modal {
  width: 100%;
  height: calc(100vh - 40px);
  max-height: none;
  display: flex;
  flex-direction: column;
}

.modal-backdrop--wide .modal form {
  flex: 1;
  min-height: 0;
}

.modal-backdrop--wide .form-step {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.modal-backdrop--wide .import-preview {
  flex: 1;
  min-height: 120px;
  max-height: none;
  margin-bottom: 0;
}

.import-preview th,
.import-preview td {
  font-size: 13px;
}

tr.import-row--error td {
  color: #c0392b;
}

.admin-sub {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
}

.admin-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--cream, #fff4e3);
  flex-shrink: 0;
}

.admin-thumb--emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.admin-table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  padding: 14px 16px;
  border-bottom: 2px solid rgba(45, 27, 78, 0.08);
}

.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(45, 27, 78, 0.06);
  font-size: 15px;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn--in {
  background: var(--mint);
  color: #fff;
  box-shadow: none;
}

.btn--out {
  background: var(--coral);
  color: #fff;
  box-shadow: none;
}

.btn--ghosty {
  background: #efe9f8;
  color: var(--purple);
  box-shadow: none;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge--ok {
  background: #dcf7f3;
  color: #157a6e;
}

.badge--warn {
  background: #fff1cf;
  color: #9a6b00;
}

.badge--gray {
  background: #eee9f5;
  color: var(--ink-soft);
}

.admin-table td.pos {
  color: #157a6e;
  font-weight: 800;
}

.admin-table td.neg {
  color: var(--coral-dark);
  font-weight: 800;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.order-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.order-card__date {
  color: var(--ink-soft);
  font-size: 13px;
  margin-left: auto;
}

.order-card__info {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.order-card__items {
  font-size: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 14px;
  margin-bottom: 12px;
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.admin-check input {
  width: 18px;
  height: 18px;
}

body.role-staff #addProductBtn,
body.role-staff #importBtn,
body.role-staff #printCennikiBtn,
body.role-staff #printEtiketkiBtn,
body.role-staff [data-status],
body.role-staff [data-edit],
body.role-staff [data-in],
body.role-staff [data-toggle],
body.role-staff .sel-product,
body.role-staff [data-scan-in],
body.role-staff [data-scan-cart],
body.role-staff #rashodBar,
body.role-staff [data-scan-edit],
body.role-staff [data-scan-cam] {
  display: none !important;
}

@media (max-width: 760px) {
  .admin-header__inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .admin-tabs {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-tab {
    padding: 8px 14px;
    font-size: 14px;
  }

  .admin-header__actions .btn--small {
    padding: 8px 12px;
  }

  .admin-main {
    padding: 16px 12px 40px;
  }

  .admin-toolbar .admin-hint {
    display: none;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table th,
  .admin-table td {
    padding: 9px 8px;
    font-size: 13px;
  }

  #tab-products .admin-table th:nth-child(3),
  #tab-products .admin-table td:nth-child(3),
  #tab-products .admin-table th:nth-child(4),
  #tab-products .admin-table td:nth-child(4),
  #tab-products .admin-table th:nth-child(7),
  #tab-products .admin-table td:nth-child(7) {
    display: none;
  }

  #tab-moves .admin-table th:nth-child(1),
  #tab-moves .admin-table td:nth-child(1),
  #tab-moves .admin-table th:nth-child(5),
  #tab-moves .admin-table td:nth-child(5) {
    display: none;
  }

  .admin-chips .chip {
    padding: 6px 12px;
    font-size: 13px;
  }

  .modal {
    padding: 20px 16px;
  }

  .modal input,
  .modal select,
  .modal textarea,
  .admin-login__card input {
    font-size: 16px;
  }
}

.admin-photocount {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(132, 94, 194, 0.14);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.photo-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(132, 94, 194, 0.45);
  border-radius: 14px;
}

.photo-editor__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-list:empty::after {
  content: "Пока нет фото — загрузите файл или добавьте ссылку";
  font-size: 13px;
  color: var(--ink-soft);
}

.photo-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.photo-thumb--main {
  border-color: var(--coral);
}

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

.photo-thumb__btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(45, 27, 78, 0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.photo-thumb__btn--del {
  top: auto;
  bottom: 4px;
  background: rgba(232, 74, 96, 0.9);
}

.photo-thumb__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  background: rgba(255, 93, 115, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.photo-link-row {
  display: flex;
  gap: 8px;
}

.photo-link-row input {
  flex: 1;
}

.pc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  padding: 0;
}

.pc-nav--prev {
  left: 8px;
}

.pc-nav--next {
  right: 8px;
}

.pc-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.pc-dot--active {
  background: var(--coral);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 27, 78, 0.92);
  padding: 20px;
}

.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
}

.product-card {
  cursor: pointer;
}

.pmodal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 27, 78, 0.5);
  padding: 20px;
}

.pmodal {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pmodal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(45, 27, 78, 0.12);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.pmodal__gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffe8f0, #fff3d6);
  min-height: 320px;
  overflow: hidden;
}

.pmodal__gallery--zoom .pmodal__img {
  cursor: zoom-in;
}

.pmodal__img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
}

.pmodal__emoji {
  font-size: 110px;
}

.pmodal__info {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pmodal__name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  padding-right: 40px;
}

.pmodal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.pmodal__desc {
  font-size: 15px;
  white-space: pre-line;
}

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

.pmodal__row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pmodal__price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--coral-dark);
}

.pmodal__hint {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

@media (max-width: 760px) {
  .lightbox {
    padding: 10px;
  }

  .lightbox__img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .pc-nav {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .pmodal-backdrop {
    padding: 10px;
  }

  .pmodal {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .pmodal__gallery {
    min-height: 230px;
  }

  .pmodal__img {
    max-height: 300px;
  }

  .pmodal__info {
    padding: 18px;
  }

  .pmodal__name {
    font-size: 21px;
  }
}

.scan-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.scan-panel__row {
  display: flex;
  gap: 10px;
}

.scan-panel__row .scan-input {
  flex: 1;
  min-width: 0;
}

.scan-cam-btn {
  flex: 0 0 auto;
  font-size: 18px;
  padding: 8px 14px;
}

.scan-cam__wrap {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

.scan-cam__wrap video {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.barcode-row {
  display: flex;
  gap: 8px;
}

.barcode-row input {
  flex: 1;
  min-width: 0;
}

.scan-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px dashed rgba(132, 94, 194, 0.5);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  background: var(--card);
}

.scan-input:focus {
  outline: none;
  border-color: var(--purple);
  border-style: solid;
}

.scan-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid rgba(132, 94, 194, 0.35);
  border-radius: 14px;
}

.rashod-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid rgba(232, 74, 96, 0.45);
  border-radius: 14px;
}

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

.rashod-bar__buyer {
  flex: 1 1 180px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(45, 27, 78, 0.25);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}

.rashod-bar__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
}

.rashod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.rashod-row__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rashod-row__qty,
.rashod-row__sum {
  font-weight: 700;
  white-space: nowrap;
}

.scan-result__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.scan-result__thumb--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #ffe8f0, #fff3d6);
}

.scan-result__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 220px;
  min-width: 180px;
}

.scan-result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.scan-qty {
  width: 84px;
  padding: 8px 10px;
  border: 1px solid rgba(45, 27, 78, 0.25);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}

tr.row-flash > td {
  animation: row-flash 1.6s ease;
}

@keyframes row-flash {
  0% {
    background: rgba(255, 197, 49, 0.55);
  }
  100% {
    background: transparent;
  }
}

@media (max-width: 760px) {
  .scan-input {
    padding: 10px 12px;
  }

  .scan-cam-btn {
    padding: 10px 14px;
  }

  .scan-result__actions {
    width: 100%;
  }

  .scan-qty {
    flex: 1 1 84px;
  }
}
