.productsWelcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.productsWelcome .loginBtn,
.compactBtn {
  width: auto;
  min-width: 140px;
  padding: 13px 22px;
}

.productsStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.productsStats article {
  min-height: 104px;
  padding: 20px 22px;
  background: var(--card, #ffffff);
  border: 1px solid rgba(201, 163, 74, 0.35);
  border-top: 4px solid var(--gold, #c9a34a);
  box-shadow: 0 8px 22px rgba(7, 23, 40, 0.08);
}

.productsStats span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted, #667386);
  font-size: 14px;
  font-weight: 800;
}

.productsStats strong {
  display: block;
  color: var(--navy, #071728);
  font-size: 34px;
  line-height: 1;
}

.productsToolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(155px, 190px));
  gap: 12px;
  padding: 18px;
  background: var(--card, #ffffff);
  border: 1px solid rgba(201, 163, 74, 0.35);
  border-top: 4px solid var(--gold, #c9a34a);
  box-shadow: var(--shadow, 0 14px 35px rgba(7, 23, 40, 0.12));
}

.productsToolbar input,
.productsToolbar select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d8d4ca;
  border-radius: 0;
  outline: 0;
  background: #ffffff;
  color: var(--navy, #071728);
  font: inherit;
}

.productsToolbar input:focus,
.productsToolbar select:focus {
  border-color: var(--gold, #c9a34a);
  box-shadow: 0 0 0 3px rgba(201, 163, 74, 0.14);
}

.productSearchWrap {
  position: relative;
}

.productSearchWrap span {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--gold, #c9a34a);
  font-size: 23px;
  pointer-events: none;
}

.productSearchWrap input {
  padding-right: 48px;
}

.productsResultsInfo {
  margin: 14px 3px;
  color: var(--muted, #667386);
  font-size: 14px;
  font-weight: 700;
}

.productsManagerModern {
  display: block;
  margin-top: 0;
}

.productEditorPanel {
  display: none;
  margin-bottom: 22px;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(201, 163, 74, 0.35);
  border-top: 4px solid var(--gold, #c9a34a);
  box-shadow: var(--shadow, 0 14px 35px rgba(7, 23, 40, 0.12));
}

.productEditorPanel.show {
  display: block;
  animation: productEditorShow 0.2s ease;
}

@keyframes productEditorShow {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.editorHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: var(--navy, #071728);
  border-bottom: 1px solid rgba(227, 197, 110, 0.28);
}

.editorHeading h2 {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 25px;
}

.editorEyebrow {
  color: var(--gold2, #e3c56e);
  font-size: 12px;
  font-weight: 900;
}

#closeEditorBtn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(227, 197, 110, 0.5);
  background: #ffffff;
  color: var(--navy, #071728);
  font-size: 26px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modernProductForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.formSection {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  background: #f8f6f0;
  border: 1px solid var(--line, #e7e2d8);
  border-top: 3px solid var(--gold, #c9a34a);
}

.formSection h3 {
  margin: 0 0 4px;
  color: var(--navy, #071728);
  font-size: 22px;
}

.formSection label {
  display: grid;
  gap: 7px;
}

.formSection label > span {
  color: var(--navy, #071728);
  font-size: 13px;
  font-weight: 900;
}

.formSection input,
.formSection textarea,
.formSection select {
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid #d8d4ca;
  border-radius: 0;
  outline: 0;
  background: #ffffff;
  color: var(--navy, #071728);
  font: inherit;
}

.formSection input:focus,
.formSection textarea:focus,
.formSection select:focus {
  border-color: var(--gold, #c9a34a);
  box-shadow: 0 0 0 3px rgba(201, 163, 74, 0.14);
}

.formSection textarea {
  min-height: 115px;
  resize: vertical;
}

.formGridTwo,
.productToggleGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.productToggleGrid .optionCheckCard,
.modernOptionCard .optionCheckCard {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #d8d4ca;
  color: var(--navy, #071728);
  font-weight: 900;
}

.productToggleGrid input,
.modernOptionCard .optionCheckCard input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold, #c9a34a);
}

.optionsManagerBox {
  grid-column: 1 / -1;
  margin: 0;
  box-shadow: none;
}

.sectionHeadingRow,
.optionCardHeading,
.productCardHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sectionHeadingRow .dashClearBtn {
  width: auto;
  margin: 0;
  padding: 11px 18px;
}

.editorActions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.editorActions button {
  width: 100%;
  margin: 0;
}

.modernProductsList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.modernProductCard {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 29, 47, 0.1);
  border-right: 4px solid var(--gold, #c9a34a);
  box-shadow: 0 8px 22px rgba(7, 23, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modernProductCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(7, 23, 40, 0.13);
}

.productImageWrap {
  position: relative;
  min-height: 225px;
  background: #eee7d8;
}

.productImageWrap img,
.dashProductCard .productImageWrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productSourceBadge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  background: var(--navy, #071728);
  color: var(--gold2, #e3c56e);
  font-size: 11px;
  font-weight: 900;
}

.productCardContent {
  min-width: 0;
  padding: 18px;
}

.productCardHeading {
  align-items: flex-start;
}

.productCardHeading h3 {
  margin: 0 0 6px;
  color: var(--navy, #071728);
  font-size: 20px;
  line-height: 1.35;
}

.productCardHeading small {
  color: var(--muted, #667386);
  font-weight: 700;
}

.productCardHeading b {
  display: block;
  white-space: nowrap;
  color: var(--gold, #c9a34a);
  font-size: 21px;
}

.productCardContent p {
  overflow: hidden;
  max-height: 4.95em;
  margin: 15px 0;
  color: var(--muted, #667386);
  line-height: 1.65;
}
.productStatusRow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.statusBadge {
  padding: 6px 10px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
}

.visibleBadge {
  border-color: #b7dfc9;
  background: #effaf3;
  color: #18794e;
}

.hiddenBadge,
.inactiveBadge {
  border-color: #d9dde3;
  background: #f4f5f7;
  color: #667386;
}

.approvalBadge {
  border-color: rgba(201, 163, 74, 0.45);
  background: #fff9e8;
  color: #8a6515;
}

.productIdText {
  display: block;
  overflow: hidden;
  margin-top: 13px;
  color: #8c96a4;
  direction: ltr;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modernProductActions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 13px;
  background: #f8f6f0;
  border-top: 1px solid var(--line, #e7e2d8);
}

.modernProductActions button {
  min-height: 43px;
  padding: 10px;
  border: 0;
  background: var(--navy, #071728);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.modernProductActions .primaryActionBtn {
  background: linear-gradient(180deg, var(--gold2, #e3c56e), var(--gold, #c9a34a));
  color: #111111;
}

.modernProductActions .deleteBtn {
  background: #b42318;
  color: #ffffff;
}

.modernOptionCard {
  display: grid;
  gap: 13px;
  margin-top: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line, #e7e2d8);
  border-right: 4px solid var(--gold, #c9a34a);
}

.optionCardHeading strong {
  color: var(--navy, #071728);
  font-size: 16px;
}

.optionCardHeading .deleteOptionBtn {
  width: auto;
  padding: 8px 13px;
  border: 0;
  background: #b42318;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.compactEmpty {
  padding: 18px;
  box-shadow: none;
}

.productsEmptyState {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 50px 20px;
  border-top: 4px solid var(--gold, #c9a34a);
}

.productsEmptyState strong {
  color: var(--navy, #071728);
  font-size: 20px;
}

.productsEmptyState span {
  color: var(--muted, #667386);
}

@media (max-width: 1050px) {
  .productsStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .productsToolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .productSearchWrap {
    grid-column: 1 / -1;
  }

  .modernProductsList {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .productsWelcome {
    align-items: stretch;
    flex-direction: column;
  }

  .productsWelcome .loginBtn,
  .compactBtn {
    width: 100%;
  }

  .modernProductForm,
  .formGridTwo,
  .productToggleGrid,
  .editorActions {
    grid-template-columns: 1fr;
  }

  .formSection,
  .optionsManagerBox {
    grid-column: 1;
  }

  .modernProductCard {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .productImageWrap {
    min-height: 215px;
  }
}

@media (max-width: 560px) {
  .productsStats,
  .productsToolbar {
    grid-template-columns: 1fr;
  }

  .productSearchWrap {
    grid-column: 1;
  }

  .productsStats article {
    min-height: 88px;
  }

  .editorHeading,
  .modernProductForm {
    padding: 18px;
  }

  .modernProductCard {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .productImageWrap {
    min-height: 205px;
  }

  .productCardContent {
    padding: 14px;
  }

  .productCardHeading {
    display: block;
  }

  .productCardHeading b {
    margin-top: 8px;
  }

  .modernProductActions {
    grid-template-columns: 1fr;
  }
}

.modernProductsList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.modernProductCard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 290px;
  background: #ffffff;
  border: 1px solid #e7e2d8;
  border-right: 5px solid #c9a34a;
  box-shadow: 0 12px 30px rgba(7, 23, 40, 0.1);
}

.productImageWrap {
  min-height: 290px;
}

.productImageWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productCardContent {
  padding: 26px;
}

.productCardHeading h3 {
  margin: 0 0 8px;
  color: #071728;
  font-size: 24px;
  line-height: 1.4;
}

.productCardHeading small {
  color: #667386;
  font-size: 14px;
  font-weight: 700;
}

.productCardHeading b {
  color: #c9a34a;
  font-size: 23px;
  white-space: nowrap;
}

.productCardContent p {
  overflow: hidden;
  max-height: 5.4em;
  margin: 20px 0;
  color: #667386;
  font-size: 16px;
  line-height: 1.8;
}

.modernProductActions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f8f6f1;
  border-top: 1px solid #e7e2d8;
}

.modernProductActions button {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  background: #071728;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.modernProductActions .primaryActionBtn {
  background: linear-gradient(135deg, #e3c56e, #c9a34a);
  color: #071728;
}

.modernProductActions .deleteBtn {
  background: #c92418;
  color: #ffffff;
}

.modernProductActions button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .modernProductCard {
    grid-template-columns: 1fr;
  }

  .productImageWrap {
    min-height: 240px;
    max-height: 300px;
  }

  .productCardContent {
    padding: 20px;
  }

  .productCardHeading {
    gap: 12px;
  }

  .productCardHeading h3 {
    font-size: 20px;
  }

  .modernProductActions {
    grid-template-columns: 1fr;
  }
}
.publicationFilterActions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.publicationFilterActions button { border-radius: 0; cursor: pointer; font: inherit; }
.publicationFilterActions button[aria-pressed="true"] { background: #c9a34a; color: #071728; }
.publicationFilterActions [hidden] { display: none; }
