.seller-page,
:root {
  --text: #2d2018;
  --soft: #705847;
  --brand: #b7561c;
  --brand-dark: #8e3d12;
}

.shop-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(78, 44, 20, .1);
  background: rgba(255, 255, 255, .78);
  color: var(--brand-dark);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(45, 32, 24, .08);
  position: relative;
  flex: none;
}

.seller-auth {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, #fff8ef 0%, #f7ebd8 100%);
}

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

.seller-auth-card {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 250, 244, .96);
  border: 1px solid rgba(78, 44, 20, .1);
  box-shadow: 0 20px 50px rgba(69, 33, 17, .14);
}

.seller-auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1;
}

.seller-auth-card form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.seller-auth-error {
  display: none;
  color: #9b2618;
  font-size: .9rem;
  font-weight: 800;
}

.seller-auth-error.is-visible {
  display: block;
}

.shop-cart-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.shop-cart-button span {
  position: absolute;
  right: -5px;
  top: -5px;
  display: none;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #d3772b);
  color: #fff;
  font-size: .74rem;
  box-shadow: 0 8px 16px rgba(184, 85, 29, .22);
}

.shop-cart-button.has-items span {
  display: inline-grid;
}

.shop-price {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--brand-dark);
  font-weight: 900;
}

.shop-price small {
  color: rgba(112, 88, 71, .78);
  font-size: .78rem;
  font-weight: 800;
}

.catalog-pagination {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.catalog-pagination::-webkit-scrollbar {
  display: none;
}

.catalog-page-btn {
  flex: 0 0 auto;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(78, 44, 20, .1);
  color: var(--brand-dark);
  font-weight: 900;
}

.catalog-page-btn.active {
  background: linear-gradient(135deg, var(--brand), #d3772b);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 22px rgba(184, 85, 29, .2);
}

.shop-buy {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #d3772b);
  color: #fff;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-footer {
  position: relative;
  z-index: 7;
}

.shop-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(184, 85, 29, .22);
}

.shop-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(31, 18, 12, .48);
  backdrop-filter: blur(12px);
}

.shop-layer.open {
  display: grid;
  align-items: stretch;
  justify-items: end;
}

.shop-panel {
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 244, .99), rgba(247, 235, 216, .98));
  color: var(--text);
  box-shadow: -24px 0 50px rgba(31, 18, 12, .18);
}

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

.shop-panel h2 {
  font-family: "Prata", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.shop-close {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(78, 44, 20, .1);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
}

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

.shop-cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(78, 44, 20, .08);
}

.shop-cart-item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff6e8;
}

.shop-cart-item strong {
  display: block;
  line-height: 1.25;
}

.shop-muted {
  color: rgba(112, 88, 71, .82);
  font-size: .9rem;
}

.shop-line {
  height: 1px;
  margin: 18px 0;
  background: rgba(78, 44, 20, .1);
}

.shop-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.shop-qty button,
.shop-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(78, 44, 20, .1);
  color: var(--brand-dark);
  font-weight: 900;
}

.shop-remove {
  margin-left: auto;
  color: #8e2f18;
}

.shop-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(45, 32, 24, .92);
  color: #fff8ef;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.shop-summary-row strong {
  font-size: 1.3rem;
}

.shop-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.shop-primary,
.shop-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}

.shop-primary {
  background: linear-gradient(135deg, var(--brand), #d3772b);
  color: #fff;
}

.shop-secondary {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(78, 44, 20, .1);
  color: var(--brand-dark);
}

.shop-form {
  display: grid;
  gap: 12px;
}

.shop-field {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.shop-field input,
.shop-field textarea,
.shop-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(78, 44, 20, .12);
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  outline: none;
}

.shop-field textarea {
  min-height: 86px;
  resize: vertical;
}

.shop-choice {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
}

.shop-choice label,
.shop-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 800;
}

.shop-consent {
  font-size: .86rem;
  color: rgba(112, 88, 71, .92);
}

.shop-success {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(78, 44, 20, .08);
}

.shop-success strong {
  font-size: 1.2rem;
}

.seller-page {
  background: linear-gradient(180deg, #fff8ef 0%, #f7ebd8 100%);
  color: #2d2018;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.seller-wrap {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.seller-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.seller-top h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

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

.seller-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.seller-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(78, 44, 20, .1);
  color: #2d2018;
  font-weight: 900;
}

.seller-tab.is-active {
  background: linear-gradient(135deg, #b7561c, #d3772b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(184, 85, 29, .18);
}

.seller-order {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 244, .94);
  border: 1px solid rgba(78, 44, 20, .1);
  box-shadow: 0 18px 38px rgba(69, 33, 17, .09);
}

.seller-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.seller-order h2 {
  font-size: 1.2rem;
}

.seller-status {
  min-width: 190px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(78, 44, 20, .12);
  background: #fff;
}

.seller-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.seller-details div,
.seller-items {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .75);
}

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

.seller-catalog-panel {
  display: grid;
  gap: 16px;
}

.seller-catalog-panel[hidden] {
  display: none;
}

.seller-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 244, .94);
  border: 1px solid rgba(78, 44, 20, .1);
  box-shadow: 0 18px 38px rgba(69, 33, 17, .09);
}

.seller-catalog-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
}

.seller-catalog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seller-catalog-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.seller-catalog-stats div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(78, 44, 20, .08);
}

.seller-catalog-stats strong,
.seller-catalog-stats span {
  display: block;
}

.seller-catalog-stats strong {
  font-size: 1.35rem;
  line-height: 1;
}

.seller-catalog-stats span {
  margin-top: 6px;
  color: rgba(112, 88, 71, .82);
  font-size: .86rem;
  font-weight: 800;
}

.seller-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seller-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(248, 238, 224, .94));
  border: 1px solid rgba(78, 44, 20, .1);
  box-shadow: 0 18px 38px rgba(69, 33, 17, .1);
}

.seller-product-image {
  position: relative;
  min-height: 210px;
  padding: 16px;
  background: linear-gradient(180deg, #fffaf3, #efd2a8);
  display: grid;
  place-items: center;
}

.seller-product-image img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(107, 60, 18, .16));
}

.seller-product-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.seller-product-badges span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #8e3d12;
  font-size: .7rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(45, 32, 24, .08);
}

.seller-product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.seller-product-category {
  color: #8e3d12;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seller-product-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.seller-product-card p {
  margin: 0;
  color: rgba(112, 88, 71, .84);
  font-size: .9rem;
  line-height: 1.58;
}

.seller-product-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seller-product-specs div {
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(78, 44, 20, .08);
}

.seller-product-specs span,
.seller-product-specs b {
  display: block;
}

.seller-product-specs span {
  color: rgba(112, 88, 71, .82);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.seller-product-specs b {
  margin-top: 4px;
  font-size: .78rem;
  line-height: 1.25;
}

.seller-product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: #8e3d12;
}

.seller-product-price strong {
  font-size: 1.16rem;
}

.seller-product-price span {
  color: rgba(112, 88, 71, .84);
  font-size: .84rem;
  font-weight: 800;
}

.seller-product-quick {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(45, 32, 24, .06);
  border: 1px solid rgba(78, 44, 20, .08);
}

.seller-quick-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.seller-quick-row > span {
  color: rgba(112, 88, 71, .9);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.seller-stepper button,
.seller-save-price {
  min-height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(78, 44, 20, .1);
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.seller-stepper input,
.seller-price-edit input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(78, 44, 20, .12);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.seller-price-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
}

.seller-save-price {
  background: linear-gradient(135deg, var(--brand), #d3772b);
  color: #fff;
  font-size: .86rem;
}

.seller-stock-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(69, 132, 69, .12);
  color: #2f6f2f;
  font-size: .76rem;
  font-weight: 900;
}

.seller-stock-chip.is-empty {
  background: rgba(142, 47, 24, .12);
  color: #8e2f18;
}

.seller-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seller-product-actions a,
.seller-product-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(78, 44, 20, .1);
  color: #8e3d12;
  font-size: .84rem;
  font-weight: 900;
  text-align: center;
}

.seller-command-center {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.seller-command-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 241, 221, .96), rgba(255, 250, 244, .96));
  border: 1px solid rgba(183, 86, 28, .18);
  box-shadow: 0 18px 38px rgba(69, 33, 17, .08);
}

.seller-command-card strong,
.seller-command-card span {
  display: block;
}

.seller-command-card strong {
  font-size: 1.12rem;
}

.seller-command-card > div > span {
  margin-top: 4px;
  color: rgba(112, 88, 71, .86);
  font-size: .92rem;
}

.seller-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.seller-status-pills span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(78, 44, 20, .08);
  color: #8e3d12;
  font-size: .78rem;
  font-weight: 900;
}

.seller-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.seller-note {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: rgba(112, 88, 71, .92);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.seller-note textarea {
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(78, 44, 20, .12);
  background: rgba(255, 255, 255, .86);
  color: var(--text);
  font: inherit;
  resize: vertical;
  text-transform: none;
  letter-spacing: 0;
}

.seller-print-root {
  display: none;
}

body.seller-print-preview .seller-auth,
body.seller-print-preview .seller-wrap {
  display: none !important;
}

body.seller-print-preview .seller-print-root {
  display: block;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.seller-print-page {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(78, 44, 20, .1);
  box-shadow: 0 18px 38px rgba(69, 33, 17, .09);
  color: #24120b;
  background: #fff;
  font: 12px/1.45 Arial, sans-serif;
}

.seller-print-page h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.seller-print-page p {
  margin: 0 0 10px;
}

.seller-print-page table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.seller-print-page th,
.seller-print-page td {
  padding: 5px 6px;
  border: 1px solid #d8c5b7;
  text-align: left;
  vertical-align: top;
}

.seller-print-page th {
  background: #f3eee8;
  font-size: 10px;
  text-transform: uppercase;
}

.seller-print-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.seller-print-grid div {
  padding: 10px;
  border: 1px solid #d8c5b7;
  border-radius: 12px;
}

.seller-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.seller-print-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cfa98b;
  background: #fff;
  color: #6f2d16;
  font-weight: 800;
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body.seller-print-preview > :not(.seller-print-root) {
    display: none !important;
  }

  body.seller-print-preview .seller-print-root {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
  }

  body.seller-print-preview .seller-print-page {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .seller-print-actions {
    display: none;
  }
}

@media (max-width: 780px) {
  .header-tools {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex: none !important;
  }

  .header-tools .mobile-menu-toggle {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    flex: none !important;
    z-index: 4 !important;
  }

  .shop-cart-button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    margin: 0 !important;
  }

  .shop-panel {
    width: 100%;
  }

  .seller-top,
  .seller-order-head,
  .seller-command-card {
    display: grid;
  }

  .seller-details,
  .seller-print-grid {
    grid-template-columns: 1fr;
  }

  .seller-catalog-head {
    display: grid;
    align-items: start;
  }

  .seller-catalog-actions {
    justify-content: stretch;
  }

  .seller-catalog-actions > * {
    width: 100%;
  }

  .seller-catalog-stats,
  .seller-catalog-grid,
  .seller-product-specs {
    grid-template-columns: 1fr;
  }

  .seller-quick-row {
    grid-template-columns: 1fr;
  }
}
