@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap");

:root {
  --bg: #fffaf2;
  --panel: #ffffff;
  --ink: #1a202c;
  --muted: #4a5568;
  --primary: #ff6b2c;
  --primary-2: #ff9f43;
  --danger: #dc2626;
  --ok: #16a34a;
  --shadow: 0 12px 35px rgba(255, 107, 44, 0.16);
  --radius: 16px;
  --modal-image-gap: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #ffe1cf 0%, transparent 44%),
    radial-gradient(circle at bottom left, #ffd9bd 0%, transparent 36%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ffd8bf;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #7c2d12;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}

.brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  display: block;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.02rem;
}

.brand-text small {
  font-size: 0.72rem;
  color: #7d8ca1;
  font-weight: 600;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #efd9c7;
  background: #fff;
  color: #7c2d12;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.menu-toggle:hover {
  background: #fff3ea;
  border-color: #f0bfa0;
  color: #9a3412;
}

.menu-link {
  appearance: none;
  border: 1px solid #efd9c7;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 0 14px;
  height: 42px;
  min-height: 42px;
  line-height: 1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-link:hover {
  background: #fff3ea;
  border-color: #f0bfa0;
  color: #9a3412;
}

.menu-link-primary {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
}

.menu-link-active {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 107, 44, 0.24);
}

.menu-link-logout {
  background: #f0f3f8;
  color: var(--ink);
  border-color: #d8e1ee;
}

.store-nav-link {
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-live-badge {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 18px;
  display: inline-grid;
  place-items: center;
  text-align: center;
}

.menu-live-badge[hidden] {
  display: none !important;
}

.menu-live-badge.is-zero-out {
  animation: menuBadgeZeroOut 240ms ease forwards;
}

@keyframes menuBadgeZeroOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.65);
  }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px;
  width: 100%;
  flex: 1 0 auto;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid #f2d4bf;
  background: rgba(255, 255, 255, 0.72);
}

.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.site-footer-copy {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer-links a {
  text-decoration: none;
  color: #7c2d12;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero {
  background: linear-gradient(125deg, #ff6b2c, #ffa654);
  color: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18) 0%, transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(255, 255, 255, 0.16) 0%, transparent 40%),
    linear-gradient(130deg, #ff6b2c 0%, #ff9346 48%, #ffb45e 100%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.home-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.home-lead {
  margin: 0;
  max-width: 56ch;
  color: #fff9f3;
}

.home-cta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero-badge {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(124, 45, 18, 0.18);
  backdrop-filter: blur(2px);
  display: grid;
  gap: 3px;
}

.home-hero-badge span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.home-hero-badge strong {
  font-size: 0.96rem;
}

.home-hero-badge small {
  opacity: 0.92;
}

.home-features-panel h2 {
  margin-top: 0;
}

.home-features-grid {
  display: grid;
  gap: 10px;
}

.home-feature {
  border: 1px solid #f4dccb;
  border-radius: 12px;
  background: #fffdf8;
  padding: 12px;
}

.home-feature h3 {
  margin: 0 0 6px;
  color: #7c2d12;
}

.home-feature p {
  margin: 0;
  color: #4a5568;
}

.home-note-panel p {
  margin: 0;
}

.help-faq {
  display: grid;
  gap: 8px;
}

.help-faq details {
  border: 1px solid #f2d9c8;
  border-radius: 12px;
  background: #fffdf8;
  padding: 10px;
}

.help-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.help-faq p {
  margin: 8px 0 0;
}

.help-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 16px;
  padding: 16px;
  min-width: 0;
}

.panel.soft {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.narrow {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.filters,
.form-grid {
  display: grid;
  gap: 10px;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #f5c9ab;
  background: #fffefb;
  border-radius: 12px;
  padding: 10px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  accent-color: var(--primary);
}

button,
.button-like {
  display: inline-block;
  border: 0;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #f0f3f8;
  color: var(--ink);
}

.button-like.secondary {
  background: #f0f3f8;
  color: var(--ink);
}

button.danger {
  background: var(--danger);
}

.inline-form {
  display: inline;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
}

.menu .link-btn {
  color: #334155;
  cursor: pointer;
}

.menu a.menu-link,
.menu button.menu-link,
.menu .inline-form > .menu-link {
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
}

.flash {
  width: min(92vw, 420px);
  border-radius: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.flash-wrap {
  position: fixed;
  top: 72px;
  right: 14px;
  z-index: 70;
}

.realtime-toast-wrap {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 71;
  width: min(92vw, 360px);
  display: grid;
  gap: 8px;
}

.realtime-toast {
  background: #ffffff;
  border: 1px solid #ffd8bf;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  padding: 10px 11px;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.realtime-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.realtime-toast.is-link {
  cursor: pointer;
}

.realtime-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.realtime-toast p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
}

.realtime-toast-close {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  background: #fff2e8;
  color: #9a3412;
}

.scroll-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 65;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(10px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 320ms ease-out,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-top-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.flash.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.flash-message {
  margin: 0;
  line-height: 1.35;
}

.flash-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.flash-success {
  background: #ddffe9;
  border-color: #9ce2ba;
  color: #0a6130;
}

.flash-error {
  background: #ffe1e1;
  border-color: #f7b0b0;
  color: #8f1f1f;
}

.products-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.stores-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.store-card .card-body {
  display: grid;
  gap: 8px;
}

.store-card .actions {
  justify-content: flex-start;
}

.store-hero {
  display: grid;
  gap: 10px;
  padding: 26px 28px;
  margin-bottom: 18px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a2f 0%, #ffb056 100%);
  box-shadow: 0 18px 40px rgba(255, 122, 47, 0.18);
}

.store-hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.store-hero-copy {
  display: grid;
  gap: 4px;
}

.store-hero-image {
  width: 152px;
  height: 152px;
  object-fit: cover;
  border-radius: 32px;
  border: 3px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(130, 45, 0, 0.16);
  flex: 0 0 auto;
}

.store-hero h1 {
  margin: 0;
  line-height: 1.02;
  color: #fff;
}

.store-hero-kicker {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.store-hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.96);
}

.store-hero-description {
  margin: 0;
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.96);
}

.store-hero .meta {
  color: rgba(255, 255, 255, 0.92);
}

.store-panel-head h2 {
  margin: 0;
}

.store-panel-head .meta {
  margin: 2px 0 0;
}

.store-products-grid .card-body {
  display: grid;
  gap: 8px;
}

.store-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.store-card-main h3 {
  margin: 0;
}

.store-card-price {
  margin: 2px 0 0;
}

.store-card-category {
  margin: 0;
  align-self: start;
}

.store-card-description {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-products-grid .catalog-card-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.store-products-grid .catalog-card-actions .button-like,
.store-products-grid .catalog-card-actions button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 0 12px;
  font-size: 0.95rem;
  text-align: center;
  white-space: normal;
}

.catalog-modal-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.catalog-modal-actions form {
  margin: 0;
}

[data-seller-gallery-category],
[data-cart-gallery-category],
[data-live-category],
[data-catalog-gallery-category] {
  font-size: 0.7rem !important;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.seller-card-image-btn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.seller-card-image-btn:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.img-placeholder {
  height: 200px;
  display: grid;
  place-items: center;
  background: #fff0e4;
  color: #92400e;
}

.card-body {
  padding: 12px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  color: #1a4d2e;
  font-weight: 800;
  font-size: 1.06rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #ffd9c2;
  border-radius: 14px;
  padding: 10px;
  background: #fffdfa;
  align-items: stretch;
}

.cart-item img {
  width: 100%;
  height: clamp(190px, 52vw, 240px);
  object-fit: cover;
  border-radius: 12px;
}

.cart-image-btn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.cart-image-btn:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.cart-body {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 4px;
  overflow: hidden;
}

.cart-body h3,
.cart-body p {
  margin: 0;
}

.cart-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-body p:first-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-body .countdown {
  align-self: end;
}

.cart-item-actions {
  justify-content: flex-start;
  align-self: end;
  margin-top: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-item-actions .button-like,
.cart-item-actions button {
  padding: 8px 12px;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
}

.countdown {
  font-weight: 700;
  color: #7c2d12;
}

.checkout-box {
  margin-top: 14px;
  border: 1px dashed #f0b18f;
  border-radius: 14px;
  padding: 12px;
}

.cart-seller-transfer-list {
  margin: 10px 0;
  display: grid;
  gap: 8px;
}

.cart-seller-transfer-card {
  border: 1px solid #f2d9c8;
  background: #fffdfa;
  border-radius: 12px;
  padding: 10px;
}

.cart-seller-transfer-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #7c2d12;
}

.cart-seller-transfer-card p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.cart-copy-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-copy-feedback {
  min-height: 1em;
}

.checkout-box button[type="submit"] {
  width: auto;
  min-width: 152px;
  padding: 9px 14px;
  font-size: 0.95rem;
  justify-self: center;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.eye-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.eye-btn:hover {
  background: #fff2e8;
  color: #9a3412;
}

.eye-btn:focus-visible {
  outline: 0;
  border-color: #f5c9ab;
  background: #fff2e8;
}

.eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-closed {
  display: none;
}

.eye-btn[aria-pressed="true"] .eye-open {
  display: none;
}

.eye-btn[aria-pressed="true"] .eye-closed {
  display: block;
}

.dropzone {
  border: 2px dashed #ffa36b;
  background: #fff6f0;
  border-radius: 14px;
  padding: 14px;
}

.dropzone input[type="file"] {
  width: 100%;
  background: #fffefb;
  border: 1px solid #f5c9ab;
  border-radius: 12px;
  padding: 6px 10px;
}

.dropzone input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 10px;
  background: #ffe8d6;
  color: #8a3410;
  font-weight: 700;
  cursor: pointer;
}

.dropzone input[type="file"]::-webkit-file-upload-button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-right: 10px;
  background: #ffe8d6;
  color: #8a3410;
  font-weight: 700;
  cursor: pointer;
}

.preview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preview-item {
  position: relative;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.preview-item.is-cover {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.preview-grid img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.preview-cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 95, 43, 0.92);
  padding: 2px 7px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.preview-item.is-cover .preview-cover-badge {
  opacity: 1;
  transform: translateY(0);
}

.existing-images {
  display: grid;
  gap: 8px;
}

.image-chip {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
}

.image-chip img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.seller-product-layout {
  display: grid;
  gap: 14px;
}

.seller-product-preview {
  background: #fffdf8;
  border: 1px solid #f2d9c8;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.seller-product-preview h2 {
  margin: 0;
  font-size: 1rem;
}

.seller-live-card {
  margin: 0;
  overflow: hidden;
}

.seller-live-image-wrap {
  border-bottom: 1px solid #f4e1d5;
  min-height: 180px;
  background: #fff6ef;
}

.seller-live-image-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.seller-live-image-wrap img[hidden] {
  display: none !important;
}

.seller-live-image-wrap .img-placeholder {
  height: 180px;
  display: grid;
  place-items: center;
}

.seller-live-image-wrap .img-placeholder[hidden] {
  display: none;
}

.seller-live-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-category-picker {
  display: grid;
  gap: 8px;
}

.seller-category-picker .is-readonly {
  background: #f8fafc;
  color: #64748b;
}

.seller-product-form > button[type="submit"] {
  width: auto;
  min-width: 220px;
  justify-self: center;
  padding: 9px 14px;
  font-size: 0.95rem;
}

.seller-store-name-line {
  margin-bottom: 2px;
}

.seller-store-description-line {
  margin-top: 0;
}

.seller-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #d7e5f8;
  color: #1f3f73;
  background: #eef5ff;
}

.seller-status-badge.is-reserved {
  border-color: #bcd3fb;
  color: #1d4ed8;
  background: #eaf2ff;
}

.seller-status-badge.is-available {
  border-color: #b9e7cb;
  color: #166534;
  background: #ebfff3;
}

.seller-status-badge.is-unavailable {
  border-color: #f1d6c3;
  color: #7c2d12;
  background: #fff2e8;
}

.seller-card-actions {
  justify-content: center;
}

.seller-card-actions form {
  margin: 0;
}

.seller-card-actions .button-like,
.seller-card-actions button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.94rem;
}

.seller-gallery-modal[hidden] {
  display: none;
}

.seller-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}

.seller-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
}

.seller-gallery-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #f2d4bf;
  background: #fffdfa;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.seller-gallery-close {
  position: absolute;
  top: 10px;
  right: 12px;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  z-index: 1;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
}

.seller-gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 54px;
}

.seller-gallery-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.seller-gallery-main-wrap {
  background: #fff6ef;
  border: 1px solid #f5d7c4;
  border-radius: 12px;
  overflow: hidden;
  height: clamp(260px, 52vh, 420px);
  display: grid;
  place-items: center;
}

.seller-gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller-gallery-main-wrap img[hidden] {
  display: none;
}

.seller-gallery-main-wrap .img-placeholder[hidden] {
  display: none;
}

.seller-gallery-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
}

.seller-gallery-nav-icon {
  width: 28px;
  height: 28px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seller-gallery-nav-icon.prev {
  transform: rotate(-90deg);
}

.seller-gallery-nav-icon.next {
  transform: rotate(90deg);
}

.seller-gallery-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.seller-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.seller-gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.seller-gallery-thumb.is-active {
  border-color: #22c55e;
}

.seller-gallery-info {
  border: 1px solid #f2d9c8;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.seller-gallery-info h3 {
  margin: 0 0 4px;
}

.seller-gallery-info p {
  margin: 0 0 6px;
}

.catalog-view-btn {
  margin-bottom: 8px;
}

.catalog-gallery-modal[hidden] {
  display: none;
}

.catalog-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 16px;
}

.catalog-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
}

.catalog-gallery-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #f2d4bf;
  background: #fffdfa;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.catalog-gallery-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  z-index: 1;
}

.catalog-gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.catalog-gallery-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.catalog-gallery-main-wrap {
  background: #fff6ef;
  border: 1px solid #f5d7c4;
  border-radius: 12px;
  overflow: hidden;
  height: clamp(260px, 52vh, 420px);
  display: grid;
  place-items: center;
}

.catalog-gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-gallery-main-wrap img[hidden] {
  display: none;
}

.catalog-gallery-main-wrap .img-placeholder[hidden] {
  display: none;
}

.catalog-gallery-main-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  background: transparent;
  color: #92400e;
}

.catalog-gallery-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
}

.catalog-gallery-nav-icon {
  width: 28px;
  height: 28px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-gallery-nav-icon.prev {
  transform: rotate(-90deg);
}

.catalog-gallery-nav-icon.next {
  transform: rotate(90deg);
}

.catalog-gallery-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.catalog-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.catalog-gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.catalog-gallery-thumb.is-active {
  border-color: #22c55e;
}

.catalog-gallery-info {
  border: 1px solid #f2d9c8;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.catalog-gallery-info h3 {
  margin: 0 0 4px;
}

.catalog-gallery-info p {
  margin: 0 0 6px;
}

.catalog-side-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.catalog-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.catalog-detail-main h3 {
  margin: 0 0 4px;
}

.catalog-detail-main .price {
  margin: 0 0 6px;
}

.catalog-detail-description {
  margin: 0;
  color: #334155;
}

.catalog-category-pill {
  margin: 0;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffeddc;
  border: 1px solid #ffd3b3;
  color: #8a3410;
  font-weight: 700;
  font-size: 0.7rem;
  white-space: nowrap;
}

.catalog-detail-bottom {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f4e1d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-detail-bottom p {
  margin: 0;
  font-size: 0.84rem;
}

.catalog-modal-cta {
  width: 100%;
  margin-top: 0;
  justify-self: stretch;
  display: grid;
  gap: 14px;
}

.catalog-share-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid #f2d9c8;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 77, 0.18), transparent 46%),
    linear-gradient(180deg, #fffdfa 0%, #fff4ea 100%);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.08);
}

.catalog-share-label {
  margin: 0;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.catalog-share-actions {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.catalog-share-btn.button-like,
.catalog-share-btn {
  display: inline-flex;
  width: 100%;
  min-width: 0 !important;
  min-height: 46px !important;
  height: 46px;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.catalog-share-btn.button-like:hover,
.catalog-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
  filter: saturate(1.04);
}

.catalog-share-btn::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.84rem;
}

.catalog-share-btn-native {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
}

.catalog-share-btn-native::before {
  content: "↗";
}

.catalog-share-btn-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

.catalog-share-btn-whatsapp::before {
  content: "WA";
}

.catalog-share-btn-x {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%) !important;
}

.catalog-share-btn-x::before {
  content: "X";
}

.catalog-share-btn-facebook {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.catalog-share-btn-facebook::before {
  content: "f";
  text-transform: lowercase;
  font-size: 1rem;
  font-weight: 900;
}

.catalog-share-btn-copy {
  grid-column: auto;
  background: linear-gradient(135deg, #fde68a 0%, #fdba74 100%) !important;
  color: #7c2d12;
}

.catalog-share-btn-copy::before {
  content: "⛓";
  background: rgba(124, 45, 18, 0.12);
  border-color: rgba(124, 45, 18, 0.16);
}

.catalog-modal-cta form,
.catalog-modal-cta .button-like {
  display: inline-flex;
}

.catalog-share-btn.button-like,
.catalog-share-btn {
  align-items: center;
}

.catalog-share-btn::before {
  content: none;
  display: none;
}

.catalog-share-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0 auto;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.catalog-share-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.catalog-share-btn > span:not(.catalog-share-btn-icon) {
  display: none !important;
}

.catalog-share-btn-copy .catalog-share-btn-icon {
  background: transparent;
  border: 0;
}

.catalog-modal-actions,
.catalog-modal-cta > [data-catalog-modal-login-link] {
  margin-top: 2px;
}

.store-product-modal .catalog-gallery-dialog {
  width: min(1100px, 97vw);
}

.store-product-modal .catalog-gallery-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
  align-items: start;
}

.store-product-modal .catalog-gallery-main-wrap {
  height: clamp(320px, 62vh, 520px);
}

.store-product-modal .catalog-gallery-nav {
  width: 42px;
  height: 42px;
}

.store-product-modal .catalog-gallery-nav-icon {
  width: 30px;
  height: 30px;
}

.store-product-modal .catalog-gallery-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.store-product-modal .catalog-gallery-thumb img {
  height: 66px;
}

.store-product-modal .catalog-modal-cta button,
.store-product-modal .catalog-modal-cta .button-like {
  min-width: 144px;
  min-height: 40px;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.store-product-modal .catalog-modal-actions form {
  display: inline-flex;
}

.store-product-modal .catalog-modal-actions form button,
.store-product-modal .catalog-modal-actions .button-like,
.store-product-modal [data-catalog-modal-login-link] {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cart-gallery-modal[hidden] {
  display: none;
}

.cart-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 16px;
}

.cart-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
}

.cart-gallery-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #f2d4bf;
  background: #fffdfa;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.cart-gallery-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  z-index: 1;
}

.cart-gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.cart-gallery-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.cart-gallery-main-wrap {
  background: #fff6ef;
  border: 1px solid #f5d7c4;
  border-radius: 12px;
  overflow: hidden;
  height: clamp(260px, 52vh, 420px);
  display: grid;
  place-items: center;
}

.cart-gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-gallery-main-wrap img[hidden] {
  display: none;
}

.cart-gallery-main-wrap .img-placeholder[hidden] {
  display: none;
}

.cart-gallery-main-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  background: transparent;
  color: #92400e;
}

.cart-gallery-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
}

.cart-gallery-nav-icon {
  width: 28px;
  height: 28px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-gallery-nav-icon.prev {
  transform: rotate(-90deg);
}

.cart-gallery-nav-icon.next {
  transform: rotate(90deg);
}

.cart-gallery-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.cart-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.cart-gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.cart-gallery-thumb.is-active {
  border-color: #22c55e;
}

.cart-gallery-info {
  border: 1px solid #f2d9c8;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.cart-gallery-info h3 {
  margin: 0 0 4px;
}

.cart-gallery-info p {
  margin: 0 0 6px;
}

.stats-grid {
  display: grid;
  gap: 10px;
}

.stat-card {
  background: #fff7f1;
  border: 1px solid #ffd9bf;
  border-radius: 12px;
  padding: 12px;
}

.stat-card p {
  margin: 6px 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.quick-links,
.stack,
.clean-list {
  display: grid;
  gap: 8px;
}

.admin-stats-grid {
  margin-bottom: 12px;
  gap: 8px;
}

.admin-stats-grid .stat-card {
  padding: 10px;
}

.admin-stats-grid .stat-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.admin-stats-grid .stat-card p {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.admin-tools-panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.admin-quick-links {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  justify-items: stretch;
}

.admin-quick-links .button-like {
  text-align: center;
  justify-content: center;
}

.admin-filters {
  margin: 10px 0 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.admin-btn-sm {
  min-height: 34px;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 0.86rem !important;
  line-height: 1.15;
}

.admin-card-actions {
  justify-content: flex-start;
  gap: 6px;
}

.admin-card-actions form,
.admin-card-actions .button-like {
  margin: 0;
}

.admin-report-actions {
  justify-content: flex-start;
}

.admin-alert-grid {
  display: grid;
  gap: 10px;
}

.admin-alert-card {
  margin-top: 0;
  min-height: 210px;
  padding: 12px;
}

.admin-alert-card h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-severity-badge,
.admin-severity-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.admin-severity-inline {
  width: fit-content;
  margin-bottom: 2px;
}

.admin-severity-badge.is-high,
.admin-severity-inline.is-high {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.admin-severity-badge.is-medium,
.admin-severity-inline.is-medium {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}

.admin-severity-badge.is-low,
.admin-severity-inline.is-low {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.admin-alert-item {
  display: grid;
  gap: 3px;
  border-top: 1px solid #f2dfd1;
  padding-top: 8px;
  margin-top: 8px;
}

.admin-alert-item:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

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

.admin-alert-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.admin-alert-head h2 {
  margin: 0;
}

.admin-alert-total {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #f2d9c8;
  background: #fffaf4;
  font-size: 0.88rem;
}

.admin-empty-alert {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  margin: 0;
}

.admin-notification-item {
  margin-top: 0;
  padding: 10px 12px;
}

.admin-notification-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.admin-notification-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #f2d9c8;
  background: #fff5ec;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-notification-summary {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.admin-notification-summary p {
  margin: 0;
}

.admin-notification-details {
  margin-top: 8px;
}

.admin-notification-details summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-notification-details pre {
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #f2dfd1;
  background: #fffaf4;
  overflow: auto;
  font-size: 0.8rem;
  line-height: 1.35;
}

.admin-user-save-btn {
  width: auto;
  min-width: 150px;
  justify-self: center;
}

.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.admin-user-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-user-meta-icon {
  width: 15px;
  height: 15px;
  color: #475569;
  flex-shrink: 0;
}

.admin-user-role-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: end;
}

.admin-user-field {
  display: grid;
  gap: 6px;
}

.admin-users-page .admin-user-card.panel.soft {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  background: antiquewhite;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-panel {
  background:
    radial-gradient(circle at top right, #ffe4d2 0%, transparent 55%),
    linear-gradient(180deg, #fffdfa 0%, #fff7f0 100%);
}

.client-top {
  display: grid;
  gap: 16px;
}

.client-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: stretch;
  background: #ffffffc9;
  border: 1px solid #ffd9c2;
  border-radius: 14px;
  padding: 14px;
}

.client-avatar {
  width: 142px;
  height: 142px;
  align-self: center;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #9a3412;
  background: linear-gradient(145deg, #ffd8bf, #fff0e6);
  border: 2px solid #ffcaa8;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-open-btn {
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  cursor: zoom-in;
  overflow: hidden;
  background: transparent;
}

.avatar-open-btn:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.client-photo-form {
  display: grid;
  gap: 8px;
  width: min(100%, 340px);
  align-content: start;
  background: #fffdfa;
  border: 1px solid #ffd8c2;
  border-radius: 12px;
  padding: 10px;
}

.client-photo-form > label:first-child {
  font-weight: 700;
  font-size: 0.92rem;
  color: #7c2d12;
}

.client-name {
  margin: 8px 0 4px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.client-contact {
  margin: 2px 0 0;
}

.client-info {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.client-member-since {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #7d8ca1;
}

.client-store-name {
  color: #7c2d12;
}

.client-store-inline {
  margin: auto 0 2px;
}

.client-file-input {
  background: #fffdf9;
  border: 1px solid #f3d2bc;
  border-radius: 10px;
  padding: 6px;
  font-size: 0.88rem;
}

.client-file-input::file-selector-button {
  border: 0;
  border-radius: 9px;
  padding: 6px 10px;
  margin-right: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #8a3410;
  background: #ffe5d2;
}

.client-photo-form .checkbox-line {
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.9rem;
}

.client-photo-form .checkbox-line span {
  color: var(--ink);
}

.profile-photo-preview {
  border: 1px solid #f3d2bc;
  background: #fffaf5;
  border-radius: 12px;
  padding: 8px;
}

.profile-photo-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.client-photo-form button[type="submit"] {
  width: auto;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 10px;
}

.photo-empty-state {
  display: grid;
  gap: 4px;
  border: 1px dashed #f3b48d;
  border-radius: 12px;
  background: #fff7f1;
  padding: 10px;
}

.photo-empty-state strong {
  color: #9a3412;
}

.photo-empty-state span {
  color: var(--muted);
  font-size: 0.9rem;
}

.client-stats {
  margin-top: 0;
  display: grid;
  gap: 6px;
}

.client-stat {
  border: 1px solid #ffd5bc;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}

.client-stat h3 {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.client-stat p {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #9a3412;
}

.client-list {
  display: grid;
  gap: 8px;
}

.client-list li {
  display: grid;
  gap: 4px;
  border: 1px solid #ffe1cf;
  background: #fffdfa;
  border-radius: 12px;
  padding: 10px;
}

.client-reservation-item {
  grid-template-columns: 56px 1fr;
  align-items: center;
  column-gap: 10px;
}

.client-reservation-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f5d7c4;
  background: #fff;
}

.client-reservation-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #92400e;
  background: #fff1e5;
}

.client-reservation-content {
  display: grid;
  gap: 2px;
}

.client-sale-item {
  grid-template-columns: 88px 1fr;
  align-items: start;
  column-gap: 10px;
}

.client-sale-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f5d7c4;
  background: #fff;
}

.client-sale-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #92400e;
  background: #fff1e5;
}

.client-sale-content {
  display: grid;
  gap: 3px;
}

.client-sale-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.client-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #d6e4f5;
  background: #f3f8ff;
  color: #334155;
  font-weight: 700;
}

.history-entry-item {
  padding: 0 !important;
}

.history-entry-details {
  display: block;
  border-radius: 12px;
}

.history-entry-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.history-entry-summary::-webkit-details-marker {
  display: none;
}

.history-entry-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.history-kind-badge.is-purchase {
  background: #e8f1ff;
  border: 1px solid #c9dcfa;
  color: #1d4ed8;
}

.history-kind-badge.is-sale {
  background: #e9fff2;
  border: 1px solid #b8eecf;
  color: #166534;
}

.history-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: #4a5568;
  font-size: 0.9rem;
}

.history-entry-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: #f1f5f9;
  color: #1f2937;
  font-weight: 700;
  font-size: 0.85rem;
}

.history-entry-details[open] .history-entry-toggle {
  background: #ffe9d7;
  border-color: #f4c9ab;
  color: #8a3410;
}

.history-entry-body {
  border-top: 1px solid #f4e1d5;
  padding: 0 10px 10px;
  display: grid;
  gap: 6px;
}

.history-items-list {
  display: grid;
  gap: 4px;
}

.history-items-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #f6e5d7;
  background: #fffefb;
  border-radius: 10px;
  padding: 8px 10px;
}

.history-item-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.history-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #f1d8c7;
  background: #fff;
}

.history-item-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.6rem;
  line-height: 1.1;
  color: #92400e;
  background: #fff1e5;
}

.client-sales-group {
  gap: 8px !important;
}

.client-sales-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f4e1d5;
}

.client-sales-group-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.client-sales-group-list {
  display: grid;
  gap: 8px;
}

.client-item-thumb-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: inline-flex;
  border-radius: 10px;
}

.client-item-thumb-btn:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.client-detail-modal[hidden] {
  display: none;
}

.client-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 87;
  display: grid;
  place-items: center;
  padding: 16px;
}

.client-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
}

.client-detail-dialog {
  position: relative;
  width: min(820px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #f2d4bf;
  background: #fffdfa;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.client-detail-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  z-index: 1;
}

.client-detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.client-detail-media {
  position: relative;
  background: #fff6ef;
  border: 1px solid #f5d7c4;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  align-items: center;
  justify-items: stretch;
  padding: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.client-detail-media img {
  grid-column: 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 340px;
  display: block;
  border-radius: 10px;
}

.client-detail-media img[hidden] {
  display: none;
}

.client-detail-media .img-placeholder[hidden] {
  display: none;
}

.client-detail-media .img-placeholder {
  width: 100%;
  min-height: 220px;
  background: transparent;
  grid-column: 2;
}

.client-detail-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
}

.client-detail-nav-icon {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-detail-nav-icon.prev {
  transform: rotate(-90deg);
}

.client-detail-nav-icon.next {
  transform: rotate(90deg);
}

.client-detail-thumbs {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 2px;
}

.client-detail-thumb {
  flex: 0 0 84px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.client-detail-thumb img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.client-detail-thumb.is-active {
  border-color: #22c55e;
}

.client-detail-info {
  border: 1px solid #f2d9c8;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.client-detail-info h3 {
  margin: 0 0 4px;
}

.client-detail-info p {
  margin: 0 0 6px;
}

.client-seller-panel {
  background: linear-gradient(180deg, #fff7f0 0%, #fffefc 100%);
  border: 1px solid #ffd9c2;
}

.client-seller-form {
  display: grid;
  gap: 8px;
  width: 100%;
}

.client-store-visibility-form {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #f2d4bf;
  border-radius: 12px;
  background: #fffdf8;
  display: grid;
  gap: 8px;
}

.client-store-visibility-form h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #7c2d12;
}

.store-hub {
  display: grid;
  gap: 14px;
}

.store-main {
  min-width: 0;
}

.store-side {
  display: grid;
  gap: 10px;
}

.store-side-card {
  background: #fffdf8;
  border: 1px solid #f5d7c4;
  border-radius: 12px;
  padding: 10px;
}

.store-side-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: #7c2d12;
}

.store-title-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.store-title-copy {
  display: grid;
  gap: 4px;
}

.store-title-copy h2 {
  margin: 0;
}

.store-title-name {
  margin: 0;
  color: #ea580c;
  font-weight: 800;
  font-size: 1rem;
}

.store-title-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #f3d2bc;
  background: #fff;
  display: block;
  flex: 0 0 auto;
}

.store-title-image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff1e6, #ffe0cc);
  color: #9a3412;
  font-size: 1.35rem;
  font-weight: 800;
}

.store-status-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f3d2bc;
  background: #fff;
  margin-bottom: 10px;
}

.store-image-editor {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(220px, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
  margin-bottom: 16px;
}

.store-image-form {
  width: 100%;
}

.store-image-stage {
  min-height: 220px;
  border: 1px solid #f3d2bc;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff4eb 100%);
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.store-image-stage-empty {
  display: grid;
  gap: 8px;
  text-align: center;
  color: #9a3412;
}

.store-image-stage-empty strong {
  font-size: 1.1rem;
}

.store-image-stage-empty span {
  color: var(--muted);
}

.store-image-stage-preview {
  width: 100%;
  height: 100%;
  min-height: 196px;
  border: 0;
  background: transparent;
  padding: 0;
}

.store-image-stage-preview img {
  width: 100%;
  height: 100%;
  min-height: 196px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.store-share-card {
  text-align: center;
}

.store-share-panel {
  margin-top: 12px;
}

.store-page-share-bar {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 20px 10px 5px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.store-page-share-bar .catalog-share-actions {
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
}

.store-page-share-bar .catalog-share-btn.button-like,
.store-page-share-bar .catalog-share-btn {
  min-height: 34px !important;
  height: 34px;
  padding: 0;
  border-radius: 14px;
  box-shadow: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.store-page-share-bar .catalog-share-btn.button-like:hover,
.store-page-share-bar .catalog-share-btn:hover {
  box-shadow: none;
  filter: none;
}

.store-page-share-bar .catalog-share-btn-icon {
  width: 16px;
  height: 16px;
  margin: 0 auto;
}

.store-share-card .store-qr-image {
  margin-left: auto;
  margin-right: auto;
}

.store-share-card .store-share-url {
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.store-qr-image {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
  border: 1px solid #f2d9c8;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.store-status-name {
  margin: 0 0 2px !important;
}

.store-status-description {
  margin: 0 !important;
}

.store-status-state {
  margin: 10px 0 0 !important;
}

.store-status-cooldown {
  margin: 8px 0 0 !important;
}

.store-kpi-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f4e1d5;
  padding-top: 6px;
  margin-top: 6px;
}

.store-kpi-list li:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.store-kpi-list strong {
  color: #7c2d12;
}

.store-checklist li,
.store-tips li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.store-checklist li.is-done {
  color: #14532d;
}

.store-next-step {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #efc9b1;
}

.store-next-step strong {
  color: #7c2d12;
}

.store-tips[data-rotating-tips] li {
  display: none;
}

.store-tips[data-rotating-tips] li.is-active {
  display: grid;
  animation: store-tip-fade-in 260ms ease;
}

@keyframes store-tip-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-seller-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.client-seller-actions button,
.client-seller-actions .button-like {
  width: 100%;
  min-width: 0;
}

.client-remove-store-form {
  margin: 0;
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.client-remove-store-form button {
  width: 100%;
}

.client-remove-store-form.is-confirming [data-remove-store-toggle] {
  display: none !important;
}

.remove-store-confirm-block[hidden] {
  display: none;
}

.remove-store-confirm-block {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 8px 10px;
  border: 1px solid #f2d4bf;
  border-radius: 12px;
  background: #fffaf6;
}

.remove-store-confirm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #7c2d12;
}

.remove-store-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.remove-store-confirm-input {
  max-width: 152px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.03em;
}

.remove-store-confirm-block .remove-store-confirm-label {
  grid-column: 1 / -1;
}

.client-secondary-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.seller-go-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-tooltip {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  color: #7c2d12;
  background: #ffe7d6;
  border: 1px solid #f5c9ab;
  cursor: help;
}

.help-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(280px, 72vw);
  background: #1f2937;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  z-index: 5;
}

.help-tooltip:hover::after,
.help-tooltip:focus-visible::after {
  opacity: 1;
}

.store-main .help-tooltip,
.profile-tab-grid .help-tooltip {
  color: #7c2d12 !important;
  background: #ffe7d6;
  border-color: #f5c9ab;
}

.client-tab-pane .help-tooltip {
  color: #7c2d12 !important;
}

.store-main .help-tooltip::after,
.profile-tab-grid .help-tooltip::after {
  background: #1f2937;
  color: #fff;
}

.store-cooldown-alert {
  margin: 10px 0 12px;
  max-width: 560px;
  border: 1px solid #f5c9ab;
  background: #fff3e8;
  border-radius: 12px;
  padding: 10px 12px;
}

.store-cooldown-alert strong {
  color: #8a3410;
}

.store-cooldown-alert p {
  margin: 4px 0 0;
}

.store-cooldown-alert [data-store-name-cooldown] {
  font-weight: 800;
  color: #9a3412;
}

.store-cooldown-alert.is-finished {
  border-color: #98ddb7;
  background: #e6ffef;
}

.store-cooldown-alert.is-finished strong {
  color: #0f6c39;
}

#storeName[data-store-name-locked="true"] {
  background: #f7f7f7;
  color: #6b7280;
  cursor: not-allowed;
}

.client-edit-panel {
  background: linear-gradient(180deg, #fffdf9 0%, #fff7f0 100%);
  border: 1px solid #ffd9c2;
}

.client-edit-form {
  display: grid;
  gap: 8px;
}

.client-edit-form button[type="submit"] {
  width: auto;
  min-width: 220px;
  justify-self: center;
}

.client-password-form {
  display: grid;
  gap: 8px;
  border: 1px solid #f2d9c8;
  border-radius: 12px;
  padding: 10px;
  background: #fffdf9;
}

.client-password-form h3 {
  margin: 0 0 2px;
  color: #7c2d12;
}

.client-password-form button[type="submit"] {
  width: auto;
  min-width: 220px;
  justify-self: center;
}

.profile-row-two {
  display: grid;
  gap: 8px;
}

.profile-field {
  display: grid;
  gap: 6px;
}

.field-optional {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa1b6;
}

input.is-invalid {
  border-color: #dc2626;
  background: #fff5f5;
}

.field-error {
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-tab-grid {
  display: grid;
  gap: 12px;
}

.client-tabs-panel {
  background: linear-gradient(180deg, #fffdfa 0%, #fff7f0 100%);
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.client-tab {
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid #ecdca9;
  border-radius: 14px;
  min-width: 120px;
  padding: 10px 18px;
  font-weight: 700;
  text-align: center;
}

.client-tab:hover {
  background: #fff6ec;
}

.client-tab.is-active {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
}

.client-tab-pane {
  display: none;
}

.client-tab-pane.is-active {
  display: block;
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.profile-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(73, 32, 13, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.profile-modal.is-open .profile-modal-backdrop {
  opacity: 1;
}

.profile-modal-dialog {
  position: relative;
  width: fit-content;
  max-width: min(92vw, 820px);
  max-height: 90vh;
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, #ffe5d4 0%, transparent 48%),
    linear-gradient(145deg, #fff9f4, #fff3e8);
  border: 1px solid #ffd6be;
  box-shadow: 0 18px 50px rgba(120, 46, 10, 0.25);
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  transform: scale(0.97);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.profile-modal.is-open .profile-modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.profile-modal-dialog img {
  width: auto;
  height: auto;
  max-width: calc(min(92vw, 820px) - (var(--modal-image-gap) * 2) - 24px);
  max-height: calc(90vh - (var(--modal-image-gap) * 2) - 90px);
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fff;
}

.profile-modal-image-wrap {
  border-radius: 12px;
  border: 1px solid #ffd9c2;
  background: #fffaf5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--modal-image-gap);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  max-height: calc(90vh - 90px);
}

.profile-modal-close {
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
}

@media (min-width: 720px) {
  .site-header {
    align-items: center;
  }

  .container {
    padding: 22px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.25fr) auto;
    align-items: end;
    min-height: 280px;
  }

  .home-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-item {
    grid-template-columns: 180px 1fr;
  }

  .cart-item img {
    height: 180px;
  }

  .cart-body {
    min-height: 180px;
    grid-template-rows: auto auto auto 1fr auto auto;
  }

  .cart-item-actions {
    flex-wrap: nowrap;
  }

  .cart-item-actions .button-like,
  .cart-item-actions button {
    white-space: nowrap;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

.admin-alert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .client-top {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 320px);
    align-items: stretch;
  }

  .client-tab {
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .profile-tab-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 340px);
    align-items: start;
  }

  .seller-gallery-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .catalog-gallery-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .catalog-modal-actions {
    width: auto;
  }

  .catalog-modal-actions form {
    width: auto;
  }

  .catalog-modal-actions form button,
  .catalog-modal-actions .button-like {
    width: auto;
  }

  .store-product-modal .catalog-gallery-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
  }

  .cart-gallery-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .client-detail-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
    align-items: start;
  }

  .catalog-side-col {
    grid-column: 2;
  }

  .seller-product-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: start;
  }

  .seller-product-preview {
    position: sticky;
    top: 88px;
  }

  .profile-tab-grid .client-photo-form {
    margin-top: 24px;
  }

  .profile-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-seller-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .client-seller-actions button,
  .client-seller-actions .button-like {
    width: auto;
    min-width: 152px;
    padding: 9px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .client-remove-store-form {
    width: auto;
  }

  .client-remove-store-form button {
    width: auto;
    min-width: 152px;
    padding: 9px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .client-secondary-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .client-secondary-actions .button-like,
  .client-secondary-actions .client-remove-store-form button {
    min-width: 152px;
    padding: 9px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .remove-store-confirm-block {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: 8px;
    row-gap: 6px;
  }

  .remove-store-confirm-block .remove-store-confirm-input {
    width: 152px;
    max-width: 152px;
  }

  .remove-store-confirm-block [data-remove-store-submit] {
    margin: 0;
  }

  .store-hub {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.95fr);
    align-items: start;
  }

  .store-side {
    position: sticky;
    top: 88px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 12px;
  }

  .panel {
    padding: 12px;
    border-radius: 14px;
  }

  .site-header {
    padding: 10px 12px;
    gap: 8px 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-logo img {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .client-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .client-avatar {
    width: 108px;
    height: 108px;
  }

  .client-info {
    align-items: center;
  }

  .client-store-inline {
    margin: 0;
  }

  .client-name {
    margin: 0;
    font-size: clamp(1.55rem, 6.4vw, 1.95rem);
  }

  .client-tabs {
    gap: 8px;
  }

  .client-tab {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .between > h1,
  .between > h2 {
    margin: 0;
  }

  .store-hero {
    gap: 8px;
    padding: 16px;
  }

  .store-hero-title {
    align-items: flex-start;
    gap: 12px;
  }

  .store-hero-image {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .store-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .store-title-image {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .store-image-editor {
    grid-template-columns: 1fr;
  }

  .store-image-stage {
    min-height: 180px;
  }

  .store-panel-head {
    gap: 10px;
  }

  .store-panel-head .button-like {
    width: 100%;
    justify-content: center;
  }

  .store-share-card .store-share-url {
    word-break: break-all;
  }

  .actions {
    justify-content: stretch;
  }

  .actions form,
  .actions .button-like,
  .actions button {
    width: 100%;
  }

  .actions .button-like,
  .actions button {
    justify-content: center;
  }

  .seller-card-actions {
    justify-content: center;
    gap: 8px;
  }

  .seller-card-actions form,
  .seller-card-actions .button-like,
  .seller-card-actions button {
    width: auto;
    min-width: 118px;
  }

  .seller-store-name-line {
    margin: 0 0 1px;
  }

  .seller-store-description-line {
    margin: 0;
    font-size: 0.88rem;
  }

  .catalog-gallery-dialog,
  .cart-gallery-dialog,
  .seller-gallery-dialog,
  .moderation-gallery-dialog,
  .client-detail-dialog,
  .profile-modal-dialog {
    width: min(100%, 96vw);
    max-height: calc(100dvh - 16px);
    padding: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .catalog-gallery-grid,
  .cart-gallery-grid,
  .seller-gallery-grid,
  .moderation-gallery-grid,
  .client-detail-grid {
    gap: 10px;
    margin-top: 36px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
  }

  .catalog-gallery-main-wrap,
  .cart-gallery-main-wrap,
  .seller-gallery-main-wrap,
  .moderation-gallery-main-wrap {
    height: clamp(180px, 34vh, 260px);
  }

  .store-product-modal .catalog-gallery-grid {
    grid-template-columns: 1fr;
    padding-bottom: 10px;
  }

  .store-product-modal .catalog-gallery-media {
    order: 1;
  }

  .store-product-modal .catalog-side-col {
    order: 2;
    grid-column: auto;
  }

  .store-product-modal .catalog-gallery-main-wrap {
    width: 100%;
    min-width: 0;
    height: clamp(190px, 36vh, 280px);
  }

  .store-product-modal .catalog-gallery-thumbs {
    margin-top: 6px;
  }

  .store-product-modal .catalog-modal-cta {
    justify-self: stretch;
    width: 100%;
    padding-bottom: 4px;
  }

  .catalog-gallery-media,
  .cart-gallery-media,
  .seller-gallery-media,
  .moderation-gallery-media,
  .client-detail-media {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
    align-items: center;
  }

  .catalog-gallery-nav,
  .cart-gallery-nav,
  .seller-gallery-nav,
  .moderation-gallery-nav,
  .client-detail-nav {
    width: 34px;
    height: 34px;
  }

  .catalog-gallery-nav-icon,
  .cart-gallery-nav-icon,
  .seller-gallery-nav-icon,
  .moderation-gallery-nav-icon,
  .client-detail-nav-icon {
    width: 22px;
    height: 22px;
  }

  .catalog-gallery-thumbs,
  .cart-gallery-thumbs,
  .seller-gallery-thumbs,
  .moderation-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    grid-template-columns: none;
  }

  .catalog-gallery-thumb,
  .cart-gallery-thumb,
  .seller-gallery-thumb,
  .moderation-gallery-thumb {
    flex: 0 0 74px;
  }

  .catalog-gallery-thumb img,
  .cart-gallery-thumb img,
  .seller-gallery-thumb img,
  .moderation-gallery-thumb img {
    height: 50px;
  }

  .client-detail-media {
    min-height: 0;
    padding: 8px;
  }

  .client-detail-media img {
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: contain;
  }

  .client-detail-media .img-placeholder {
    min-height: 180px;
  }

  .client-detail-thumbs {
    gap: 6px;
  }

  .client-detail-thumb {
    flex: 0 0 72px;
  }

  .client-detail-thumb img {
    height: 50px;
  }

  .catalog-gallery-info,
  .cart-gallery-info,
  .seller-gallery-info,
  .moderation-gallery-info,
  .client-detail-info {
    padding: 9px;
  }

  .catalog-gallery-close,
  .cart-gallery-close,
  .seller-gallery-close,
  .moderation-gallery-close,
  .client-detail-close,
  .profile-modal-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 0.96rem;
  }

  .profile-modal-image-wrap {
    max-height: calc(100dvh - 96px);
    padding: 10px;
  }

  .profile-modal-dialog img {
    max-height: calc(100dvh - 120px);
  }

  .admin-filters {
    gap: 8px;
  }

  .admin-user-role-row {
    grid-template-columns: 1fr;
  }

  .admin-quick-links .button-like {
    min-height: 38px;
  }

  .admin-table {
    min-width: 680px;
  }

  .admin-table th,
  .admin-table td {
    padding: 7px;
    font-size: 0.84rem;
  }

  .list-pagination {
    margin-top: 12px;
    gap: 8px;
  }

  .list-pagination .pagination-btn {
    min-width: 104px;
    padding: 8px 10px;
  }

  .store-card-head,
  .catalog-detail-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .store-card-category,
  .catalog-category-pill {
    justify-self: start;
  }

  .catalog-detail-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .history-items-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .catalog-modal-actions {
    width: 100%;
    justify-content: stretch;
  }

  .catalog-modal-actions form {
    width: 100%;
  }

  .catalog-modal-actions form button,
  .catalog-modal-actions .button-like {
    width: 100%;
    justify-content: center;
  }

  .catalog-share-actions {
    grid-template-columns: repeat(3, 42px);
    justify-content: center;
  }

  .catalog-share-btn.button-like,
  .catalog-share-btn {
    min-height: 42px !important;
    height: 42px;
  }

  .client-sales-group-head-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .client-tab {
    flex: 1 1 100%;
  }

  .menu {
    right: 8px;
    width: calc(100vw - 16px);
  }

  .menu-link {
    font-size: 0.86rem;
  }

  .admin-delete-user-form input {
    width: 100%;
    max-width: 180px;
  }

  .catalog-gallery-main-wrap,
  .cart-gallery-main-wrap,
  .seller-gallery-main-wrap,
  .moderation-gallery-main-wrap {
    height: clamp(150px, 30vh, 210px);
  }

  .store-product-modal .catalog-gallery-main-wrap {
    height: clamp(160px, 30vh, 220px);
  }

  .catalog-gallery-nav,
  .cart-gallery-nav,
  .seller-gallery-nav,
  .moderation-gallery-nav,
  .client-detail-nav {
    width: 30px;
    height: 30px;
  }

  .catalog-gallery-nav-icon,
  .cart-gallery-nav-icon,
  .seller-gallery-nav-icon,
  .moderation-gallery-nav-icon,
  .client-detail-nav-icon {
    width: 20px;
    height: 20px;
  }

  .catalog-gallery-thumb,
  .cart-gallery-thumb,
  .seller-gallery-thumb,
  .moderation-gallery-thumb,
  .client-detail-thumb {
    flex: 0 0 64px;
  }

  .catalog-gallery-thumb img,
  .cart-gallery-thumb img,
  .seller-gallery-thumb img,
  .moderation-gallery-thumb img,
  .client-detail-thumb img {
    height: 46px;
  }
}

.admin-stack-list {
  display: grid;
  gap: 8px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-list-item > * {
  min-width: 0;
}

.list-pagination {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.list-pagination .pagination-btn {
  min-width: 112px;
  text-align: center;
}

.list-pagination .pagination-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.list-pagination [data-page-status] {
  min-width: 0;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.admin-table th,
.admin-table td {
  border: 1px solid #f0ddcf;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #fff4ea;
  color: #7c2d12;
}

.admin-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  word-break: break-word;
}

.admin-table-security {
  table-layout: fixed;
  min-width: 980px;
}

.admin-table-security th,
.admin-table-security td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-table-security .security-path-col {
  max-width: 220px;
}

.admin-table-security .security-detail-col {
  max-width: 340px;
  white-space: pre-wrap;
}

.admin-table-backups {
  table-layout: fixed;
  min-width: 980px;
}

.admin-table-backups th,
.admin-table-backups td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-table-backups .backup-file-col {
  max-width: 220px;
}

.admin-table-backups .backup-email-col {
  max-width: 220px;
}

.admin-table-backups .backup-notes-col {
  max-width: 320px;
  white-space: pre-wrap;
}

.admin-order-snapshot {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.admin-order-snapshot span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.moderation-product-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.moderation-product-thumb-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.moderation-product-thumb {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #f0ddcf;
}

.moderation-product-thumb.placeholder {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  border: 1px solid #f0ddcf;
  display: grid;
  place-items: center;
  background: #fff4ea;
  color: #9a3412;
  font-size: 0.8rem;
  text-align: center;
}

.moderation-product-preview-meta {
  display: grid;
  gap: 4px;
}

.moderation-gallery-modal[hidden] {
  display: none;
}

.moderation-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 16px;
}

.moderation-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
}

.moderation-gallery-dialog {
  position: relative;
  width: min(1080px, 97vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #f2d4bf;
  background: #fffdfa;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.moderation-gallery-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 1;
}

.moderation-gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 54px;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
  align-items: start;
}

.moderation-gallery-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.moderation-gallery-main-wrap {
  background: #fff6ef;
  border: 1px solid #f5d7c4;
  border-radius: 12px;
  overflow: hidden;
  height: clamp(320px, 62vh, 520px);
  display: grid;
  place-items: center;
}

.moderation-gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moderation-gallery-main-wrap img[hidden],
.moderation-gallery-main-wrap .img-placeholder[hidden] {
  display: none;
}

.moderation-gallery-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
}

.moderation-gallery-nav-icon {
  width: 30px;
  height: 30px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moderation-gallery-nav-icon.prev {
  transform: rotate(-90deg);
}

.moderation-gallery-nav-icon.next {
  transform: rotate(90deg);
}

.moderation-gallery-thumbs {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.moderation-gallery-thumb {
  border: 2px solid #f2d7c5;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.moderation-gallery-thumb.is-active {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.moderation-gallery-thumb img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  display: block;
}

.moderation-gallery-info {
  display: grid;
  gap: 8px;
  border: 1px solid #f2d7c5;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.moderation-gallery-info h3,
.moderation-gallery-info p {
  margin: 0;
}

.admin-delete-user-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-delete-user-form input {
  width: 124px;
  text-transform: uppercase;
}

.admin-delete-user-confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  transition: opacity 380ms ease, transform 380ms ease;
  will-change: opacity, transform;
}

.admin-delete-user-confirm.is-open {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.admin-delete-user-item {
  align-items: flex-start;
}

.admin-delete-user-actions {
  min-width: 520px;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.admin-delete-user-confirm p {
  margin: 0;
}

.admin-delete-user-countdown {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe8d5;
  color: #9a3412;
  font-weight: 700;
}

.admin-delete-user-note {
  margin: 0;
  text-align: right;
}

.admin-delete-user-confirm[hidden],
.admin-delete-user-form [data-delete-user-submit][hidden] {
  display: none !important;
}

.admin-delete-user-form [data-delete-user-submit] {
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  transition: opacity 380ms ease, transform 380ms ease;
  will-change: opacity, transform;
}

.admin-delete-user-form [data-delete-user-submit].is-open {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (max-width: 720px) {
  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-delete-user-actions {
    width: 100%;
  }

  .admin-delete-user-form {
    width: 100%;
    justify-content: flex-start;
  }

  .between {
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .admin-delete-user-actions {
    min-width: 0;
    width: 100%;
    justify-items: start;
  }

  .admin-delete-user-form {
    justify-content: flex-start;
  }

  .admin-delete-user-note {
    text-align: left;
  }

  .moderation-gallery-grid {
    grid-template-columns: 1fr;
  }

  .moderation-gallery-main-wrap {
    height: clamp(260px, 48vh, 380px);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: auto;
    width: min(340px, calc(100vw - 24px));
    z-index: 31;
    padding: 12px;
    border: 1px solid #f2d4bf;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.18);
    display: grid;
    gap: 9px;
    justify-items: stretch;
    justify-content: stretch;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu .inline-form {
    width: 100%;
    display: block;
  }

  .menu-link {
    width: 100%;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    border-radius: 12px;
  }
}

@media (min-width: 720px) and (max-width: 979px) {
  .client-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .client-tab {
    width: 100%;
    min-width: 0;
    flex: initial;
  }
}

@media (min-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stores-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 360px);
  }

  .client-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .client-tab {
    flex: 0 1 auto;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .store-nav-link {
    width: auto;
    max-width: 180px;
  }

  .filters {
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1280px) {
  .client-tabs {
    display: flex;
    flex-wrap: nowrap;
  }
}

@media (min-width: 980px) and (max-width: 1279px) {
  .client-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .client-tab {
    width: 100%;
    min-width: 0;
    flex: initial;
  }
}
