:root {
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  color: #101627;
  background: #f1f3f1;
  line-height: 1.5;
  --tone-green: #72977e;
  --tone-pink: #d8b2ba;
  --tone-gray: #acb2b3;
  --page-bg: #f1f3f1;
  --page-surface: rgba(255, 255, 255, 0.96);
  --gradient-top-left: rgba(114, 151, 126, 0.28);
  --gradient-top-right: rgba(216, 178, 186, 0.28);
  --gradient-bottom-right: rgba(172, 178, 179, 0.3);
  --gradient-bottom-left: rgba(114, 151, 126, 0.22);
  --accent-primary: var(--tone-green);
  --accent-primary-soft: rgba(114, 151, 126, 0.25);
  --accent-secondary: var(--tone-pink);
  --muted-border: rgba(53, 64, 60, 0.16);
  --card-border: rgba(53, 64, 60, 0.08);
  --hero-surface: rgba(255, 255, 255, 0.94);
  --hero-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(216, 178, 186, 0.32));
  --hero-glow: radial-gradient(circle at 15% 10%, rgba(114, 151, 126, 0.32), transparent 65%);
  --hero-border: rgba(114, 151, 126, 0.35);
  --category-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 236, 232, 0.95));
  --category-glow: radial-gradient(circle at 60% 5%, rgba(216, 178, 186, 0.4), transparent 55%);
  --cart-glow: radial-gradient(circle at 80% 20%, rgba(114, 151, 126, 0.3), transparent 65%);
  --order-glow: radial-gradient(circle at 40% 90%, rgba(216, 178, 186, 0.28), transparent 60%);
  --gallery-dot: rgba(255, 255, 255, 0.35);
  --gallery-dot-active: rgba(255, 255, 255, 0.9);
  --favorite-red: #c67b8a;
  --btn-ghost-border: rgba(53, 64, 60, 0.15);
  --overlay-cart-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(225, 235, 230, 0.95));
  --overlay-favorites-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 229, 234, 0.95));
  --overlay-orders-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 238, 236, 0.95));
  --overlay-support-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 232, 236, 0.95));
  --overlay-panel-shadow: 0 -25px 50px rgba(20, 28, 24, 0.35);
  --gallery-paper: rgba(255, 255, 255, 0.9);
  --button-primary-gradient: linear-gradient(135deg, #b57d8c, #d6a7b4);
  --button-primary-shadow: 0 14px 35px rgba(181, 125, 140, 0.35);
  --favorite-card-surface: rgba(255, 255, 255, 0.92);
  --hero-shell-top: #8fcb91;
  --hero-shell-bottom: #f7f1df;
  --hero-shell-border: rgba(98, 140, 105, 0.18);
  --hero-title: #244238;
  --hero-copy: #496156;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  position: relative;
  color: #101627;
  font-size: 16px;
}

body.overlay-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, var(--gradient-top-left), transparent 35%),
    radial-gradient(circle at top right, var(--gradient-top-right), transparent 45%),
    radial-gradient(circle at bottom right, var(--gradient-bottom-right), transparent 40%),
    radial-gradient(circle at bottom left, var(--gradient-bottom-left), transparent 40%),
    var(--hero-glow);
  filter: blur(8px);
  opacity: 0.9;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.5), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(216, 178, 186, 0.35), transparent 50%);
}

.page-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: transparent;
  border-radius: 20px;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 0;
  padding: 1.25rem clamp(0.9rem, 3vw, 2rem) 6rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.1rem, 2vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, var(--hero-shell-top) 0 35%, var(--hero-shell-bottom) 35% 100%);
  border-radius: 32px;
  border: 1px solid var(--hero-shell-border);
  box-shadow: 0 26px 55px rgba(66, 96, 73, 0.18);
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#hero-section {
  grid-template-columns: 1fr;
  min-height: clamp(255px, 43vw, 425px);
  align-items: end;
  padding: clamp(2rem, 4.6vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
  background-image: url("assets/hero/esti-hero-cloud.png");
  background-repeat: no-repeat;
  background-size: 92% auto;
  background-position: right top;
  background-color: #95add6;
}

#hero-section::before,
#hero-section::after {
  display: none;
}

#hero-section .hero__content {
  max-width: min(26ch, calc(100% - clamp(8.5rem, 22vw, 19rem)));
  width: 100%;
  margin: clamp(0.8rem, 2.5vw, 1.5rem) 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  text-align: left;
  gap: 0.8rem;
}

#hero-section .hero__content h1,
#hero-section .hero__lead {
  font-family: "Marck Script", "Segoe Print", "Comic Sans MS", cursive;
  color: #fff;
  text-shadow: 0 1px 2px rgba(8, 14, 26, 0.3);
}

#hero-section .hero__content h1 {
  margin: 0;
  font-size: clamp(2.85rem, 7.6vw, 4.45rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 800;
}

#hero-section .hero__lead {
  margin: clamp(0.45rem, 1.4vw, 0.9rem) 0 0;
  max-width: min(23ch, 100%);
  font-size: clamp(0.86rem, 1.75vw, 1rem);
  line-height: 1.37;
}

#hero-section .hero__media {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: clamp(150px, 24vw, 220px);
  background: linear-gradient(135deg, #6eb47d, #9cd19f);
  border-radius: 0 0 44% 56% / 0 0 42% 58%;
  transform: translateY(-26%);
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  width: clamp(180px, 24vw, 280px);
  height: clamp(180px, 24vw, 280px);
  right: clamp(-40px, 4vw, -20px);
  bottom: clamp(-80px, 5vw, -20px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  z-index: -1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--hero-title);
  text-wrap: balance;
}

.hero__media {
  position: relative;
  min-height: clamp(220px, 30vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero__media::before {
  content: '';
  position: absolute;
  inset: auto 8% 5% 12%;
  height: 28%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(122, 166, 120, 0.26), rgba(122, 166, 120, 0));
  pointer-events: none;
}

.hero__art {
  display: block;
  width: min(100%, 560px);
  height: auto;
  border-radius: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 32px rgba(83, 118, 77, 0.16);
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(114, 151, 126, 0.15);
  color: #4c6a57;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__lead {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--hero-copy);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background: var(--button-primary-gradient);
  color: white;
  box-shadow: var(--button-primary-shadow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--btn-ghost-border);
  color: #1f2430;
}

.btn--ghost:hover {
  box-shadow: 0 12px 28px rgba(15, 20, 48, 0.18);
}

.btn--iconic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn__icon {
  font-size: 1.1rem;
}

.hero__metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metric__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.metric__label {
  color: #6b738b;
  font-size: 0.85rem;
}

.section {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.section.categories {
  padding: 0;
}

.section.cart,
.section.order {
  border-color: rgba(15, 20, 48, 0.08);
  box-shadow: 0 18px 40px rgba(15, 20, 48, 0.15);
  overflow: hidden;
}

.products {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.section__head h2 {
  margin: 0;
}

.section__hint {
  font-size: 0.9rem;
  color: #6b738b;
}

.categories__rail {
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.categories__track {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
}

.category-btn {
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 20, 48, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #101627;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 auto;
  min-width: 140px;
  scroll-snap-align: start;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.category-btn__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-btn__icon svg {
  width: 100%;
  height: 100%;
}

.category-btn.is-active {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(114, 151, 126, 0.35);
}

.category-btn:not(.is-active):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 20, 48, 0.15);
}

.products__grid {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  align-items: stretch;
}

.products__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: #6a7086;
  border-radius: 16px;
  border: 1px dashed rgba(120, 130, 160, 0.25);
  background: rgba(255, 255, 255, 0.7);
}

.product-card {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 420px;
  justify-self: center;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(12, 16, 32, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 20, 48, 0.16);
}

.product-card__cover {
  position: relative;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, rgba(114, 151, 126, 0.16), rgba(255, 255, 255, 0.96));
  border-bottom: none;
  padding: 0;
  overflow: hidden;
}

.product-card__cover span {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(15, 20, 48, 0.55);
  text-transform: uppercase;
}

.gallery-slide {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 20, 48, 0.22);
  cursor: pointer;
}

.gallery-slide__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.product-card .gallery-slide__photo {
  object-fit: contain;
  object-position: center;
  background: rgba(248, 250, 252, 0.92);
}

.gallery-slide__photo--hidden {
  opacity: 0;
}

.gallery-slide__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(12, 12, 24, 0.15), rgba(12, 12, 24, 0.65));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-card .gallery-slide__content {
  display: none;
}

.gallery-slide__label {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.gallery-slide__description {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-controls {
  position: absolute;
  inset: auto 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 2;
  pointer-events: auto;
}

.gallery-btn {
  border: none;
  background: rgba(15, 20, 48, 0.35);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-btn:hover {
  transform: translateY(-1px);
  background: rgba(15, 20, 48, 0.5);
}

.gallery-pagination {
  display: flex;
  gap: 0.35rem;
}

.gallery-pagination span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gallery-dot);
  transition: background 0.2s ease;
}

.gallery-pagination button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--gallery-dot);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.gallery-pagination button:hover {
  transform: scale(1.08);
}

.gallery-pagination span.is-active {
  background: var(--gallery-dot-active);
}

.gallery-pagination button.is-active {
  background: var(--gallery-dot-active);
}

.product-card__body {
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.product-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.product-card__lead {
  margin: 0;
  color: #4a4f65;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card__price-group {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.product-card__price {
  font-size: 1.3rem;
  font-weight: 700;
}

.product-card__price-old {
  font-size: 0.9rem;
  color: #9aa0b4;
  text-decoration: line-through;
}

.product-card__badges {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.product-card__status--available {
  background: #dff3ea;
  color: #1a6d45;
}

.product-card__status--limited {
  background: #fff3d6;
  color: #8a5a1c;
}

.product-card__status--preorder {
  background: #edf3ef;
  color: #3f5f52;
}

.product-card__status--soldout {
  background: #f7e1e1;
  color: #922b2b;
}

.product-card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ffe7d8;
  color: #a94822;
}

.product-card__facts {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4a4f65;
  font-size: 0.84rem;
  display: grid;
  gap: 0.28rem;
}

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

.product-card__facts li {
  position: relative;
  padding-left: 0.85rem;
  line-height: 1.35;
}

.product-card__facts li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
}

.product-card__facts.is-hidden {
  display: none;
}

.product-card__offers {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

.product-offer {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.95);
  padding: 0.62rem 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.product-offer__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2430;
}

.product-offer__description {
  margin: 0;
  font-size: 0.83rem;
  color: #4b5066;
}

.product-offer__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.product-offer__option {
  border: 1px solid rgba(31, 36, 48, 0.2);
  border-radius: 10px;
  background: white;
  color: #1f2430;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.product-offer__option span {
  font-size: 0.78rem;
  color: #5a6078;
}

.product-offer__option strong {
  font-size: 0.92rem;
}

.product-offer__option:hover {
  border-color: rgba(93, 129, 106, 0.5);
  background: rgba(244, 250, 245, 0.96);
}

.product-offer__option.is-active {
  border-color: rgba(93, 129, 106, 0.92);
  background: linear-gradient(135deg, rgba(233, 244, 236, 0.98), rgba(246, 251, 247, 0.96));
  box-shadow: inset 0 0 0 1px rgba(93, 129, 106, 0.28);
}

.product-offer__option:focus-visible {
  outline: 2px solid rgba(93, 129, 106, 0.78);
  outline-offset: 1px;
}

.product-offer__cta {
  border: 1px solid rgba(31, 36, 48, 0.2);
  border-radius: 999px;
  background: white;
  color: #1f2430;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.product-offer__cta:hover {
  border-color: rgba(15, 20, 48, 0.35);
}

.product-card__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

.product-card__offers + .product-card__actions {
  margin-top: 0;
}

.product-card__actions .btn--primary {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  text-align: center;
}

.product-card__actions .btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.product-card__actions .btn--primary:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.product-card__qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(31, 36, 48, 0.2);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quantity-btn:hover {
  background: rgba(114, 151, 126, 0.12);
}

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

.quantity {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.favorite-btn {
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--favorite-red);
  box-shadow: 0 10px 20px rgba(15, 20, 48, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.favorite-btn.is-favorite {
  background: var(--favorite-red);
  color: #fff;
}

.product-card__favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(17, 23, 39, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 14px 30px rgba(6, 9, 18, 0.35);
}

.product-card__favorite:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 20, 48, 0.2);
}

.admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.admin-card {
  border: 1px solid rgba(15, 20, 48, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form {
  display: grid;
  gap: 0.85rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #1f2430;
}

.admin-form input,
.admin-form select {
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.2);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.admin-form button {
  align-self: flex-start;
  padding: 0.75rem 1.4rem;
}

.admin__grid h3 {
  margin-top: 0;
}

.admin-orders {
  padding-bottom: 0.75rem;
}

.admin__orders-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.status-filter {
  border: 1px solid rgba(31, 36, 48, 0.25);
  border-radius: 999px;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.status-filter.is-active {
  background: var(--accent-primary);
  color: white;
  border-color: transparent;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-row {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #eef1f0;
  border: 1px solid rgba(15, 20, 48, 0.12);
}

.order-row p {
  margin: 0;
  font-size: 0.9rem;
  color: #2f3352;
}

.admin__hint {
  font-size: 0.85rem;
  color: #6b738b;
  margin: 0;
}

.section.admin[data-auth="false"] [data-admin-content] {
  display: none;
}

.admin-login {
  border: 1px solid rgba(15, 20, 48, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  background: #f6eef0;
  margin-bottom: 1rem;
}

.admin-login form {
  display: grid;
  gap: 0.75rem;
}

.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-login input {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.25);
  font-size: 0.95rem;
}

.admin-login__message {
  margin: 0;
  font-size: 0.85rem;
  color: #c15555;
}

.section.admin[data-auth="true"] .admin-login {
  display: none;
}

.section--focus {
  outline: 3px solid rgba(38, 169, 108, 0.4);
  transition: outline 0.25s ease;
}

.page-feedback {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5rem;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.page-feedback.is-visible {
  opacity: 1;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 48, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.overlay-backdrop.overlay-backdrop--visible {
  opacity: 1;
  visibility: visible;
}

.overlay {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(520px, 92vw);
  max-height: min(92vh, 860px);
  background: var(--overlay-surface, linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.9)));
  border-radius: 24px 24px 0 0;
  box-shadow: var(--overlay-panel-shadow);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.3s ease;
  z-index: 60;
  will-change: transform, opacity;
}

.overlay--product-detail {
  width: min(1040px, 97vw);
  top: 50%;
  bottom: auto;
  border-radius: 24px;
  transform: translate(-50%, calc(-50% + 22px));
  max-height: min(94vh, 900px);
  overflow: auto;
}

.overlay--assistant {
  width: min(640px, 94vw);
}

.overlay#overlay-cart {
  --overlay-surface: var(--overlay-cart-surface);
}
.overlay#overlay-favorites {
  --overlay-surface: var(--overlay-favorites-surface);
}
.overlay#overlay-orders {
  --overlay-surface: var(--overlay-orders-surface);
}
.overlay#overlay-support {
  --overlay-surface: var(--overlay-support-surface);
}

.overlay--checkout .overlay__body {
  max-height: 60vh;
  padding-bottom: 0;
}

.checkout-summary {
  background: rgba(114, 151, 126, 0.1);
  border: 1px dashed rgba(114, 151, 126, 0.45);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.checkout-summary strong {
  font-weight: 700;
}

.overlay__body--checkout {
  display: grid;
  gap: 0.8rem;
}

.overlay__body--checkout label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #1f2430;
}

.overlay__body--checkout label span {
  font-size: 0.9rem;
}

.overlay__body--checkout input,
.overlay__body--checkout select,
.overlay__body--checkout textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.22);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: #111827;
}

.overlay__body--checkout textarea {
  min-height: 96px;
  resize: vertical;
}

.checkout-hint {
  font-size: 0.85rem;
  color: #6b738b;
  margin: 0;
}

.checkout-error {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--favorite-red);
}

.overlay--visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.overlay--product-detail.overlay--visible {
  transform: translate(-50%, -50%);
}

.overlay__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.overlay__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b738b;
  margin: 0;
}

.overlay__head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.overlay__body {
  margin-top: 1rem;
  max-height: 60vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.overlay__body--product {
  padding-bottom: 0.25rem;
  overflow-anchor: none;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(320px, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.overlay-product-gallery {
  display: grid;
  gap: 0;
  position: relative;
  align-self: start;
}

.overlay-product-gallery__slide {
  position: relative;
  border-radius: 24px;
  min-height: clamp(240px, 44vh, 500px);
  max-height: min(56vh, 500px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 18px 36px rgba(15, 20, 48, 0.18);
  background-size: contain;
  background-position: center center;
  border: 1px solid rgba(15, 20, 48, 0.08);
}

.overlay-product-gallery__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s ease;
  z-index: 0;
}

.overlay-product-gallery__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f8fb;
  filter: none;
}

.overlay-product-gallery__content {
  display: none;
}

.overlay-product-gallery__label {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.overlay-product-gallery__description {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.overlay-product-gallery__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  z-index: 2;
  pointer-events: none;
}

.overlay-product-gallery__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  color: #161c2f;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(15, 20, 48, 0.16);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.overlay-product-gallery__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 20, 48, 0.25);
}

.overlay-product-gallery__pagination {
  display: flex;
  gap: 0.35rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(20, 26, 46, 0.34);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.overlay-product-gallery__pagination span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease;
}

.overlay-product-gallery__pagination button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.overlay-product-gallery__pagination button:hover {
  transform: scale(1.08);
}

.overlay-product-gallery__pagination span.is-active {
  background: rgba(255, 255, 255, 0.95);
}

.overlay-product-gallery__pagination button.is-active {
  background: rgba(255, 255, 255, 0.95);
}

.overlay-product-content {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.overlay-product-offers {
  display: grid;
  gap: 0.65rem;
  order: 5;
}

.overlay-product-offers.is-hidden {
  display: none;
}

.overlay-product-gallery__slide.is-interactive {
  cursor: pointer;
}

.overlay__body--support p {
  margin: 0;
  color: #2f3352;
}

.overlay__footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.overlay__footer--product {
  flex-wrap: wrap;
  justify-content: space-between;
}

.overlay__footer--product .btn--primary {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.overlay__footer--product .btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(181, 125, 140, 0.4);
}

.overlay__footer--product .btn--primary:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.btn--primary.is-in-cart {
  background: linear-gradient(135deg, #5f8a70, #79a487);
  box-shadow: 0 14px 32px rgba(74, 117, 92, 0.38);
}

.overlay__quantity {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 600;
  color: #1f2430;
}

.overlay__quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15, 20, 48, 0.18);
  background: white;
  font-size: 1.3rem;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.overlay__quantity-btn:active {
  transform: translateY(1px);
  background: rgba(114, 151, 126, 0.12);
}

.overlay__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2030;
  order: 1;
}

.overlay__price {
  order: 3;
  display: grid;
  gap: 0.45rem;
  align-self: start;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(196, 117, 74, 0.18);
  background: linear-gradient(135deg, rgba(255, 242, 231, 0.96), rgba(255, 252, 248, 0.98));
  box-shadow: 0 18px 32px rgba(196, 117, 74, 0.12);
  color: #7d3d21;
}

.overlay__price-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 61, 33, 0.72);
}

.overlay__price-main {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.overlay__price-value {
  font-size: clamp(1.85rem, 3.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
}

.overlay__price-old {
  font-size: 1rem;
  color: rgba(125, 61, 33, 0.55);
  text-decoration: line-through;
}

.overlay__price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(194, 88, 43, 0.12);
  color: #b0441b;
  font-size: 0.82rem;
  font-weight: 700;
}

.overlay__meta {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #5f667c;
  margin: 0;
}

.overlay__meta span {
  background: #f4f6fa;
  border: 1px solid rgba(15, 20, 48, 0.08);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.overlay__features {
  order: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.overlay__features.is-hidden {
  display: none;
}

.overlay__features li {
  background: #f8f9fd;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #1f2030;
  border: 1px solid rgba(15, 20, 48, 0.06);
}

.overlay__close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.overlay-card {
  border: 1px solid rgba(15, 20, 48, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--gallery-paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overlay-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(15, 20, 48, 0.18);
}

.overlay-card--clickable {
  cursor: pointer;
}

.overlay-card__meta {
  display: block;
  font-size: 0.85rem;
  color: #4b5066;
}

.overlay-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.overlay-card__actions {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.overlay-card--cart {
  border-radius: 18px;
  border-color: rgba(15, 20, 48, 0.12);
  background: rgba(255, 255, 255, 0.93);
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.overlay-card__body--cart {
  gap: 0.45rem;
  width: 100%;
}

.overlay-card__row--cart {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.overlay-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  object-fit: cover;
  background: rgba(240, 244, 246, 0.9);
}

.overlay-card__meta--categories {
  font-size: 0.75rem;
  color: #5c6278;
  text-transform: none;
}

.overlay-card__actions--cart {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.overlay-card__qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 20, 48, 0.15);
  background: rgba(255, 255, 255, 0.8);
}

.overlay-card__qty-value {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
  color: #1f2430;
}

.overlay-card__subtotal {
  font-size: 1rem;
  color: #1f2430;
}

.icon-btn {
  border: none;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: #1f2430;
  background: rgba(15, 20, 48, 0.05);
  transition: transform 0.15s ease, background 0.2s ease;
}

.icon-btn span {
  display: block;
}

.icon-btn--outline {
  border: 1px solid rgba(15, 20, 48, 0.15);
  background: #fff;
}

.icon-btn--ghost {
  background: rgba(15, 20, 48, 0.08);
}

.icon-btn:hover {
  background: rgba(15, 20, 48, 0.12);
  transform: translateY(-1px);
}

.overlay-card__remove {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.25rem;
}

.overlay-empty {
  color: #6b738b;
  font-weight: 600;
  text-align: center;
}
.overlay-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.overlay-favorite-card {
  border-radius: 22px;
  padding: 1rem;
  background: var(--favorite-card-bg, linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 230, 255, 0.8)));
  box-shadow: 0 20px 40px rgba(15, 20, 48, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overlay-favorite-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.overlay-favorite-card__details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.overlay-favorite-card__title {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
}

.overlay-favorite-card__lead {
  margin: 0;
  color: rgba(15, 20, 48, 0.75);
  font-size: 0.9rem;
}

.overlay-favorite-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.overlay-favorite-card__actions-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.overlay-favorite-card__add {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2430;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 20, 48, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overlay-favorite-card__add:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 20, 48, 0.22);
}

.overlay-favorite-card__price {
  font-weight: 700;
  color: #1f2430;
}

.overlay-favorite-card__remove {
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 25px rgba(15, 20, 48, 0.25);
  color: #c15555;
  font-size: 1.25rem;
}

.overlay-favorite-card__remove:hover {
  background: rgba(214, 69, 84, 0.18);
}

.empty-state {
  margin: 0;
  color: #6b738b;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid rgba(15, 20, 48, 0.08);
  display: flex;
  justify-content: space-around;
  padding: 0.65rem 0;
  z-index: 10;
}

.bottom-nav__btn {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #6b738b;
  font-weight: 600;
  cursor: pointer;
}

.assistant-widget-toggle {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 21;
  border: none;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  background: linear-gradient(135deg, #0b4a6f, #0f6f8f);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(6, 52, 82, 0.34);
}

.assistant-widget-toggle:hover {
  filter: brightness(1.06);
}

.assistant-widget-toggle--inactive {
  background: linear-gradient(135deg, #4d5968, #5d6b7d);
  box-shadow: 0 14px 26px rgba(23, 31, 44, 0.28);
}

.assistant-widget-toggle--inactive:hover {
  filter: none;
}

.overlay__body--assistant {
  gap: 0.9rem;
}

.assistant-chat {
  display: grid;
  gap: 0.55rem;
  max-height: 45vh;
  overflow: auto;
  padding-right: 0.1rem;
}

.assistant-msg {
  margin: 0;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  line-height: 1.4;
  font-size: 0.93rem;
}

.assistant-msg--user {
  background: rgba(114, 151, 126, 0.16);
  justify-self: end;
}

.assistant-msg--assistant {
  background: rgba(15, 20, 48, 0.08);
}

.assistant-form {
  display: grid;
  gap: 0.45rem;
}

.assistant-form__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2430;
}

.assistant-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.22);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
  resize: vertical;
  min-height: 84px;
}

.assistant-form__submit {
  width: fit-content;
}

.bottom-nav__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav__label {
  font-size: 0.7rem;
}

.bottom-nav__badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(114, 151, 126, 0.12);
  color: var(--accent-primary);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}
.bottom-nav__badge--hidden {
  display: none;
}

.bottom-nav__btn.is-active {
  color: var(--accent-primary);
}

.admin-shell {
  min-height: 100vh;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.admin-panel {
  width: min(540px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 35px 70px rgba(15, 20, 48, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.admin-panel__header {
  margin-bottom: 1rem;
}

.admin-panel h1 {
  margin: 0.65rem 0 0.35rem;
  font-size: 2rem;
}

.admin-panel__intro {
  color: #4b5066;
  margin: 0;
}

.admin-panel__credentials {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(114, 151, 126, 0.12);
  color: #3d5a4a;
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-panel__credentials span {
  background: rgba(114, 151, 126, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.admin-form {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-form label {
  font-weight: 600;
  color: #1f2430;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-form input {
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.3);
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.admin-form button {
  border: none;
  background: var(--button-primary-gradient);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-form button:active {
  transform: translateY(1px);
}

.admin-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: #1a6d45;
}

.admin-status.is-error {
  color: #c15555;
}

.admin-shell[data-auth="false"] .admin-settings {
  display: none;
}

.admin-settings {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 36, 48, 0.12);
}

.admin-settings h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.admin-settings__note {
  margin: 0 0 1rem;
  color: #4b5066;
  font-size: 0.95rem;
}

.admin-form--settings {
  margin-bottom: 0.75rem;
}

.admin-panel__details {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #4b5066;
  line-height: 1.5;
}

.admin-panel__details code {
  background: rgba(16, 22, 40, 0.07);
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.admin-panel__details a {
  color: var(--accent-primary);
  font-weight: 600;
}

@media (max-width: 600px) {
  .admin-panel {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.4rem;
    border-radius: 26px;
  }

  .hero::before {
    height: 150px;
    transform: translateY(-30%);
  }

  .hero__content h1 {
    font-size: clamp(2.6rem, 16vw, 4.3rem);
  }

  .hero__lead {
    max-width: none;
  }

  #hero-section {
    min-height: clamp(230px, 66vw, 320px);
    padding-top: clamp(1.75rem, 8vw, 2.6rem);
    padding-bottom: clamp(1.65rem, 8vw, 2.55rem);
    background-size: cover;
    background-position: right 46%;
  }

  #hero-section .hero__content {
    max-width: min(24ch, 100%);
    width: min(100%, 24ch);
    margin: 0;
    justify-self: start;
    gap: clamp(0.85rem, 3.5vw, 1.35rem);
  }

  #hero-section .hero__content h1 {
    font-size: clamp(3.1rem, 13vw, 4.3rem);
    line-height: 0.88;
  }

  #hero-section .hero__lead {
    margin-top: clamp(0.55rem, 3vw, 1rem);
    max-width: 21ch;
    font-size: clamp(0.82rem, 3.1vw, 0.94rem);
    line-height: 1.35;
  }

  .hero__media {
    min-height: 0;
  }

  .hero__art {
    width: min(100%, 500px);
  }

  .section {
    padding: 1.5rem;
  }

  .overlay {
    width: 100vw;
    border-radius: 18px 18px 0 0;
    padding: 1rem;
    max-height: 92dvh;
  }

  .overlay--product-detail {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100vw;
    max-height: 100dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(104%);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    overflow: auto;
  }

  .overlay--product-detail.overlay--visible {
    transform: translateY(0);
  }

  .overlay--product-detail .overlay__body--product {
    max-height: none;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    overflow: visible;
  }

  .overlay-product-gallery {
    position: relative;
    top: auto;
  }

  .overlay-product-gallery__slide {
    min-height: clamp(220px, 62vw, 320px);
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .overlay-product-gallery__controls {
    bottom: 0.8rem;
    padding: 0 0.8rem;
  }

  .overlay-product-gallery__btn {
    width: 38px;
    height: 38px;
  }

  .overlay__price {
    padding: 0.9rem 1rem;
  }

  .product-offer__options {
    grid-template-columns: 1fr;
  }

  .overlay__footer--product .btn--primary {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .product-card__actions .btn--primary {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .assistant-widget-toggle {
    bottom: 5rem;
    right: 0.75rem;
    padding: 0.58rem 0.85rem;
    font-size: 0.9rem;
  }
}

/* Webapp Shop1 admin workspace */
.admin-shell {
  align-items: flex-start;
  padding: 2.2rem 1rem 3.5rem;
}

.admin-shell[data-auth="false"] {
  align-items: center;
}

.admin-shell[data-auth="false"] .admin-workspace {
  display: none;
}

.admin-shell[data-auth="true"] .admin-auth-card {
  display: none;
}

.admin-auth-card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(15, 20, 48, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.admin-auth-card__header h1 {
  margin: 0.55rem 0 0.5rem;
  font-size: clamp(1.7rem, 3.8vw, 2.1rem);
}

.admin-auth-card__header p {
  margin: 0;
  color: #4b5066;
}

.admin-auth-card__back-link {
  margin: 0.75rem 0 0;
}

.admin-auth-card__back-link a {
  color: var(--accent-primary);
  font-weight: 600;
}

.admin-workspace {
  width: min(1160px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: 0 35px 70px rgba(15, 20, 48, 0.22);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.admin-workspace__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-workspace__head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.admin-workspace__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-link-btn {
  border: 1px solid rgba(31, 36, 48, 0.16);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2430;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-link-btn--danger {
  color: #a43d44;
  border-color: rgba(164, 61, 68, 0.35);
}

.admin-tabs {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-tab {
  border: 1px solid rgba(31, 36, 48, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: #1f2430;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

.admin-tab.is-active {
  border-color: transparent;
  background: var(--button-primary-gradient);
  color: white;
}

.admin-pane {
  display: none;
  gap: 0.85rem;
}

.admin-pane.is-active {
  display: grid;
}

.admin-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-products-head__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2430;
}

.admin-products-add-btn {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 36, 48, 0.2);
  background: var(--button-primary-gradient);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-products-add-btn:hover {
  filter: brightness(1.02);
}

.admin-products-view {
  display: none;
  gap: 0.85rem;
}

.admin-products-view.is-active {
  display: grid;
}

.admin-products-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-products-form-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #1f2430;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-toolbar label {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  color: #1f2430;
}

.admin-toolbar select,
.admin-toolbar button {
  border-radius: 10px;
  border: 1px solid rgba(31, 36, 48, 0.25);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  background: white;
}

.admin-toolbar button {
  cursor: pointer;
  font-weight: 600;
}

.admin-form {
  margin: 0;
}

.admin-form textarea,
.admin-form select {
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.3);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
}

.admin-form--product {
  background: rgba(247, 249, 252, 0.95);
  border: 1px solid rgba(31, 36, 48, 0.08);
  border-radius: 18px;
  padding: 1rem;
}

.admin-upload-box {
  border: 1px dashed rgba(31, 36, 48, 0.22);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.82);
}

.admin-status--compact {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.88rem;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-form__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-offers-block {
  border: 1px solid rgba(31, 36, 48, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.admin-offers-block h5 {
  margin: 0;
  font-size: 0.96rem;
  color: #1f2430;
}

.admin-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-subtab {
  border: 1px solid rgba(31, 36, 48, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2430;
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-subtab.is-active {
  border-color: transparent;
  background: var(--button-primary-gradient);
  color: #fff;
}

.admin-ozon-view {
  display: none;
  gap: 0.65rem;
}

.admin-ozon-view.is-active {
  display: grid;
}

.admin-telegram-view {
  display: none;
}

.admin-telegram-view.is-active {
  display: grid;
}

.admin-btn--ghost {
  border: 1px solid rgba(31, 36, 48, 0.22) !important;
  background: white !important;
  color: #1f2430 !important;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-empty {
  margin: 0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(31, 36, 48, 0.05);
  color: #4b5066;
}

.admin-card {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 16px;
  background: white;
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.admin-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.admin-card__head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-card__meta {
  margin: 0;
  color: #5a6078;
  font-size: 0.9rem;
}

.admin-card__info {
  display: grid;
  gap: 0.25rem;
}

.admin-card__info p {
  margin: 0;
  color: #1f2430;
}

.admin-product-card__info {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: flex-start;
  gap: 0.85rem;
}

.admin-product-main {
  display: grid;
  gap: 0.6rem;
}

.admin-product-main__details {
  display: grid;
  gap: 0.35rem;
}

.admin-product-link {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #2f5d50;
  text-decoration: none;
  word-break: break-all;
}

.admin-product-link:hover {
  text-decoration: underline;
}

.admin-product-side {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: rgba(247, 249, 252, 0.95);
}

.admin-product-metric {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-product-metric__label {
  color: #5a6078;
  font-size: 0.83rem;
}

.admin-product-metric__value {
  color: #1f2430;
  font-size: 0.9rem;
}

.admin-product-warning {
  margin: 0.1rem 0 0;
  color: #b34a57;
  font-size: 0.8rem;
  line-height: 1.35;
}

.admin-product-thumb {
  width: min(100%, 220px);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.1);
  object-fit: cover;
  background: rgba(247, 249, 252, 0.9);
}

.admin-card__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-card__actions select,
.admin-card__actions textarea {
  border: 1px solid rgba(31, 36, 48, 0.24);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: #1f2430;
  font: inherit;
}

.admin-card__actions textarea {
  min-width: 220px;
  flex: 1 1 260px;
  min-height: 70px;
  resize: vertical;
}

.admin-card__actions button,
.admin-order-controls button {
  border: none;
  border-radius: 999px;
  background: var(--button-primary-gradient);
  color: white;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.admin-btn--danger {
  background: linear-gradient(140deg, #bf4f58, #9f2d38) !important;
}

.admin-order-items {
  margin: 0;
  padding-left: 1.1rem;
  color: #1f2430;
  display: grid;
  gap: 0.3rem;
}

.admin-order-controls {
  display: grid;
  gap: 0.55rem;
}

.admin-order-controls label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  color: #1f2430;
}

.admin-order-controls select,
.admin-order-controls textarea {
  border: 1px solid rgba(31, 36, 48, 0.3);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  background: white;
  font-family: inherit;
}

@media (max-width: 900px) {
  .admin-workspace__head {
    flex-direction: column;
  }

  .admin-form__grid {
    grid-template-columns: 1fr;
  }

  .admin-product-card__info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    padding: 1.2rem 0.75rem 2.2rem;
  }

  .admin-auth-card,
  .admin-workspace {
    border-radius: 20px;
    padding: 1rem;
  }

  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .admin-form button {
    font-size: 0.95rem;
  }

  .admin-products-form-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Webapp Shop1 admin tables and pagination */
.admin-toolbar input {
  border-radius: 10px;
  border: 1px solid rgba(31, 36, 48, 0.25);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  background: white;
  min-width: 150px;
}

.admin-table-wrap {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 14px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
}

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

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid rgba(31, 36, 48, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  color: #1f2430;
}

.admin-table th {
  background: rgba(31, 36, 48, 0.05);
  font-weight: 700;
  white-space: nowrap;
}

.admin-table tr.is-new td {
  background: rgba(114, 151, 126, 0.14);
}

.admin-table__items {
  min-width: 260px;
}

.admin-table__note {
  width: 100%;
  min-width: 220px;
  border: 1px solid rgba(31, 36, 48, 0.22);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  resize: vertical;
}

.admin-table__tracking-input {
  width: 100%;
  min-width: 220px;
  margin-top: 0.4rem;
  border: 1px solid rgba(31, 36, 48, 0.22);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.admin-table__actions {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-table__actions button {
  border: none;
  border-radius: 999px;
  background: var(--button-primary-gradient);
  color: white;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.admin-table__readonly {
  color: #6b738b;
  font-weight: 600;
}

.admin-table__empty {
  padding: 1rem;
  text-align: center;
  color: #5a6078;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-pagination button {
  border-radius: 10px;
  border: 1px solid rgba(31, 36, 48, 0.2);
  background: white;
  color: #1f2430;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.admin-pagination button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.admin-pagination span {
  font-weight: 700;
  color: #1f2430;
}

.admin-telegram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-telegram-card {
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.admin-telegram-card--source {
  background: rgba(245, 248, 252, 0.95);
}

.admin-telegram-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-telegram-card__head h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f2430;
}

.admin-telegram-source {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.admin-telegram-source__item {
  margin: 0;
  border: 1px solid rgba(31, 36, 48, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.45rem 0.6rem;
  display: grid;
  gap: 0.2rem;
}

.admin-telegram-source__label {
  font-size: 0.78rem;
  color: #6b738b;
  font-weight: 600;
}

.admin-telegram-source__value {
  font-size: 0.9rem;
  color: #1f2430;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-telegram-source__empty {
  margin: 0;
  color: #5a6078;
}

.admin-telegram-actions {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-telegram-actions label {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  color: #1f2430;
}

.admin-telegram-actions input,
.admin-telegram-actions select,
.admin-telegram-actions button {
  border-radius: 10px;
  border: 1px solid rgba(31, 36, 48, 0.25);
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  background: white;
}

.admin-telegram-actions button {
  cursor: pointer;
  font-weight: 600;
}

.admin-telegram-post-text {
  margin: 0;
  color: #1f2430;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-telegram-post-text--empty {
  color: #6b738b;
}

.admin-telegram-post-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.admin-telegram-post-media-item {
  border: 1px solid rgba(31, 36, 48, 0.14);
  border-radius: 12px;
  width: 96px;
  height: 96px;
  min-height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(247, 250, 255, 0.95);
}

.admin-telegram-post-media-image,
.admin-telegram-post-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-telegram-post-media-file {
  font-size: 0.84rem;
  color: #1f2430;
  padding: 0.6rem;
  text-align: center;
  overflow-wrap: anywhere;
}

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