.magazine-page,
.magazine-detail {
  --mag-panel: #ffffff;
  --mag-border: #dddddd;
  --mag-border-strong: #cccccc;
  --mag-text: #111827;
  --mag-muted: #595959;
  --mag-soft: #f5f5f5;
  --mag-accent: #111827;
  --mag-accent-soft: #f2f2f2;
  -webkit-tap-highlight-color: rgba(17, 17, 17, 0.08);
}

.page-section.magazine-page,
.page-section.magazine-detail {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: var(--so-page-gutter, 12px);
  padding-right: var(--so-page-gutter, 12px);
}

.magazine-page {
  display: grid;
  gap: 18px;
}

.magazine-hero-copy {
  text-align: center;
}

.magazine-hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--mag-border-strong);
  background:
    radial-gradient(130% 95% at 100% 0%, #ececec 0%, transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.magazine-page-header {
  margin: 0;
  text-align: center;
}

.magazine-page-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  color: var(--mag-text);
}

.magazine-page-header .page-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  color: var(--mag-text);
}

.magazine-page-description {
  margin: 10px 0 0;
  color: var(--mag-muted);
  line-height: 1.55;
  max-width: 66ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.magazine-page-header .page-description {
  margin: 10px auto 0;
  color: var(--mag-muted);
  line-height: 1.55;
  max-width: 66ch;
  text-align: center;
}

.magazine-toolbar {
  padding: 0;
  border: 1px solid var(--mag-border);
  background: var(--mag-panel);
  overflow: visible;
}

.magazine-toolbar-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.magazine-toolbar-left,
.magazine-toolbar-center,
.magazine-toolbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--mag-border);
}

.magazine-toolbar-right {
  border-right: 0;
  justify-content: flex-end;
  gap: 12px;
}

.magazine-toolbar-center {
  justify-content: center;
}

.magazine-toolbar-count {
  font-size: 13px;
  color: var(--mag-muted);
}

.magazine-filter-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  color: var(--mag-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
}

.magazine-filter-icon {
  display: inline-flex;
}

.magazine-filter-icon--open {
  display: none;
}

.magazine-filter-trigger[aria-expanded="true"] .magazine-filter-icon--closed {
  display: none;
}

.magazine-filter-trigger[aria-expanded="true"] .magazine-filter-icon--open {
  display: inline-flex;
}

.magazine-filter-label {
  display: inline-flex;
}

.magazine-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.magazine-inline-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4b5563;
  white-space: nowrap;
}

.magazine-inline-field .magazine-select {
  min-height: 34px;
  min-width: 124px;
  padding: 6px 8px;
  font-size: 13px;
}

.magazine-inline-field--sort .magazine-select {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.magazine-inline-field--sort .magazine-select:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.magazine-toolbar-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 92vw);
  max-width: 440px;
  height: 100%;
  border-left: 1px solid #eee;
  background: #fff;
  box-shadow: none;
  z-index: 2200;
  transform: translateX(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.magazine-toolbar-panel.open,
body.filters-open .magazine-toolbar-panel,
.magazine-toolbar-panel[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2100;
  border: 0;
  margin: 0;
  padding: 0;
}

body.filters-open .filter-overlay {
  opacity: 1;
  pointer-events: auto;
}

.magazine-toolbar-panel .filter-header,
.magazine-filter-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.magazine-toolbar-panel .filter-close-button,
.magazine-filter-close-button {
  background: transparent;
  border: none;
  font-size: 24px;
  padding: 8px;
  color: #2b221d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.magazine-toolbar-panel .filter-title,
.magazine-filter-title {
  margin: 0;
  font-size: 18px;
  color: #111;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: inherit;
}

.magazine-toolbar-panel .filter-content,
.magazine-filter-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.magazine-toolbar-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: start;
}

.magazine-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #f1f2f4;
}

.magazine-toolbar-grid > .magazine-field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.magazine-field-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.magazine-field--full {
  grid-column: 1 / -1;
}

.magazine-field-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #364152;
}

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

.magazine-date-field {
  display: grid;
  gap: 5px;
}

.magazine-date-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.magazine-input,
.magazine-select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--mag-border);
  border-radius: 0;
  background: #fff;
  color: var(--mag-text);
  font-size: 14px;
}

.magazine-input--filter {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fafafa;
}

.magazine-input--filter::placeholder {
  color: #757575;
}

.magazine-date-input {
  min-height: 40px;
  padding-right: 34px;
  border-color: #d4d4d4;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.magazine-date-input::-webkit-datetime-edit {
  color: #1f2937;
}

.magazine-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.68;
  filter: grayscale(1) contrast(1.1);
}

.magazine-input:focus,
.magazine-select:focus {
  border-color: #525252;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
}

.magazine-page :where(a, button, input, select, textarea):focus-visible,
.magazine-detail :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  box-shadow: none;
}

.magazine-checkbox-list-wrap {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--mag-border);
  background: #fff;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.magazine-checkbox-list-wrap::-webkit-scrollbar {
  width: 8px;
}

.magazine-checkbox-list-wrap::-webkit-scrollbar-thumb {
  background: #d1d1d1;
}

.magazine-checkbox-list-wrap::-webkit-scrollbar-thumb:hover {
  background: #bdbdbd;
}

.magazine-checkbox-group {
  display: grid;
  gap: 6px;
}

.magazine-checkbox-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--mag-border);
  background: #fff;
  color: #253246;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.magazine-checkbox-option:hover {
  background: #f7f7f7;
  border-color: #cfcfcf;
}

.magazine-checkbox-option.is-hidden {
  display: none;
}

.magazine-checkbox-input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #111;
  flex: 0 0 auto;
}

.magazine-checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.magazine-checkbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #f5f5f5;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.magazine-checkbox-label > span:first-child {
  display: inline-block;
  line-height: 1.25;
}

.magazine-checkbox-input:checked + .magazine-checkbox-label,
.magazine-checkbox-option.is-active .magazine-checkbox-label {
  font-weight: 700;
}

.magazine-checkbox-option.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.magazine-checkbox-option.is-active .magazine-checkbox-count {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.magazine-field-empty {
  margin: 0;
  font-size: 13px;
  color: var(--mag-muted);
}

.magazine-toolbar-panel .filter-footer,
.magazine-filter-footer,
.magazine-toolbar-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 16px 20px 20px;
  border-top: 1px solid #eee;
  background: #fff;
}

.magazine-toolbar-panel .filter-footer .magazine-btn,
.magazine-filter-footer .magazine-btn,
.magazine-toolbar-actions .magazine-btn {
  flex: 1;
}

.magazine-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.magazine-btn--primary {
  background: #111;
  color: #fff;
}

.magazine-btn--ghost {
  background: #fff;
  color: #111;
  border-color: var(--mag-border-strong);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  align-items: center;
  justify-content: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 12px;
  color: #111;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
}

.filter-chip__label {
  text-transform: none;
  letter-spacing: 0;
  color: #444;
}

.filter-chip__value {
  color: #111;
}

.filter-chip__close {
  margin-left: 2px;
  color: #666;
}

.filter-chip--clear {
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
}

.magazine-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 2px 0;
}

.magazine-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #253246;
  background: #fff;
  border: 1px solid var(--mag-border);
  padding: 7px 10px;
  font-size: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.magazine-tag-chip:hover {
  background: var(--mag-accent-soft);
  border-color: #c7d0dd;
}

.magazine-tag-chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.magazine-tag-chip-count {
  font-size: 11px;
  opacity: 0.9;
}

.magazine-grid {
  --mag-card-h: 430px;
  --mag-card-media-h: 190px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.magazine-grid > * {
  min-width: 0;
}

.magazine-card {
  width: 100%;
  min-width: 0;
  min-height: var(--mag-card-h);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mag-border);
  background: #fff;
  overflow: hidden;
}

.magazine-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #efefef;
  height: var(--mag-card-media-h);
  flex: 0 0 var(--mag-card-media-h);
}

.magazine-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #efefef;
}

.magazine-card-image--placeholder,
.magazine-related-media-placeholder {
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 12px;
}

.magazine-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1;
  min-height: 0;
  text-align: center;
}

.magazine-card-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.magazine-card-category {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.magazine-card-date {
  display: inline-flex;
}

.magazine-card-sponsored {
  display: inline-flex;
}

.magazine-inline-badge {
  position: static;
  pointer-events: auto;
  box-shadow: none;
  border: 1px solid var(--mag-border);
  border-radius: 999px;
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
  line-height: 1;
}

.magazine-inline-badge--category {
  background: var(--mag-soft);
  color: #2f2f2f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.magazine-inline-badge--date {
  border-color: #d7d7d7;
  background: #f6f6f6;
  color: #4a4a4a;
}

.magazine-inline-badge--tag {
  background: #fff;
  color: #333;
}

.magazine-inline-badge--sponsored {
  background: #fff4e6;
  border-color: #ffd8a8;
  color: #7a3900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.magazine-inline-badge--author {
  background: #fff;
  color: #404040;
}

.magazine-card-category:hover .magazine-inline-badge,
.magazine-mini-tag:hover .magazine-inline-badge {
  border-color: #cbcbcb;
  background: #f7f7f7;
}

.magazine-card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.magazine-card-title a {
  color: var(--mag-text);
  text-decoration: none;
}

.magazine-card-excerpt {
  margin: 0;
  color: var(--mag-muted);
  line-height: 1.55;
  font-size: 14px;
}

.magazine-card-meta {
  min-height: 18px;
}

.magazine-card-author {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
}

.magazine-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.magazine-mini-tag {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.magazine-card-footer {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: center;
}

.magazine-card-cta {
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.magazine-empty {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--mag-border);
  background: #fff;
  color: var(--mag-muted);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.magazine-empty-alert {
  width: 100%;
  margin: 0;
}

.magazine-empty-reset-btn {
  min-height: 36px;
  text-decoration: none;
}

.magazine-empty a {
  color: #111;
  font-weight: 700;
}

.magazine-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.magazine-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--mag-border);
  background: #fff;
  color: var(--mag-text);
  text-decoration: none;
  font-size: 14px;
}

.magazine-pagination .page-link:hover:not(.is-disabled) {
  background: var(--mag-soft);
}

.magazine-pagination .page-link.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.magazine-pagination .page-link.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  background: #f3f4f6;
}

.magazine-pagination .page-gap {
  color: var(--mag-muted);
  padding: 0 2px;
}

/* Detail */
.magazine-detail {
  display: grid;
  gap: 18px;
}

.page-section.magazine-detail {
  overflow-x: clip;
}

.magazine-detail-article {
  border: 1px solid var(--mag-border);
  background: #fff;
  padding: clamp(14px, 2.2vw, 22px);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: clip;
}

.magazine-detail-article > * {
  min-width: 0;
}

.magazine-detail-header {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  text-align: center;
  justify-items: center;
}

.magazine-detail-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.magazine-detail-category-badge {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.magazine-detail-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.07;
  color: var(--mag-text);
}

.magazine-detail-excerpt {
  margin: 0;
  color: var(--mag-muted);
  line-height: 1.65;
  max-width: 78ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.magazine-hero {
  width: min(100%, 760px);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 1px solid var(--mag-border);
  background: #f3f4f6;
}

.magazine-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  object-fit: cover;
}

.magazine-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-wrap: wrap;
}

.magazine-author {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.magazine-author-img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--mag-border);
}

.magazine-author-info {
  min-width: 0;
  text-align: center;
}

.magazine-author-name {
  font-weight: 700;
  color: var(--mag-text);
}

.magazine-author-bio {
  font-size: 13px;
  color: var(--mag-muted);
  max-width: 620px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.magazine-date {
  display: inline-flex;
  align-items: center;
}

.magazine-date-badge {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.magazine-content {
  line-height: 1.72;
  color: #1b2430;
  overflow-wrap: anywhere;
  width: 100%;
  max-width: 84ch;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  overflow-x: clip;
  text-align: left;
}

.magazine-content > * {
  max-width: 100%;
  min-width: 0;
}

.magazine-content img {
  width: auto !important;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.magazine-content :where(img, video, iframe, canvas, svg) {
  max-width: 100% !important;
  box-sizing: border-box;
}

.magazine-content :where(img, figure img) {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

.magazine-content :where(img, figure, [style*="float"]) {
  float: none !important;
}

.magazine-content :where(video, iframe, table, pre, figure, blockquote) {
  max-width: 100%;
  box-sizing: border-box;
}

.magazine-content iframe {
  width: 100% !important;
}

.magazine-content figure {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}

.magazine-content :where(table, pre) {
  display: block;
  overflow-x: auto;
}

.magazine-content :where(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, em) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.magazine-tags {
  margin-top: 22px;
}

.magazine-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.magazine-tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.magazine-tag-badge {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.magazine-section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.magazine-products {
  margin-top: 26px;
}

.magazine-products .magazine-section-title {
  margin: 0 0 10px;
  text-align: center;
}

.magazine-products .carousel {
  --carousel-items: 4;
  --carousel-gap: 10px;
}

.magazine-products .carousel-track {
  padding: 10px 0 16px;
}

.magazine-products .carousel-control {
  color: rgba(17, 17, 17, 0.4);
}

.magazine-products .carousel-control.prev {
  left: 0;
}

.magazine-products .carousel-control.next {
  right: 0;
}

.magazine-products .product-item {
  --so-card-h: 360px;
  --so-card-media-h: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.magazine-products .product-item:hover {
  transform: translateY(-1px);
}

.magazine-products .product-item-body {
  min-height: 146px;
  gap: 6px;
  text-align: center;
}

.magazine-products .product-title {
  min-height: 38px;
  font-size: 14px;
}

.magazine-products .brand-label {
  justify-content: center;
}

.magazine-products .shipping-label {
  justify-content: center;
}

.magazine-products .product-item-share-button,
.magazine-products .product-item-wishlist-button,
.magazine-products .product-item-details-link {
  display: none;
}

.magazine-related {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border: 1px solid var(--mag-border);
  background: #fff;
  padding: 14px;
  box-sizing: border-box;
}

.magazine-related-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
  flex-wrap: wrap;
}

.magazine-related-head .magazine-section-title {
  margin: 0;
}

.magazine-related-all-btn {
  min-height: 34px;
  text-decoration: none;
}

.magazine-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  justify-content: center;
}

.magazine-related-carousel {
  --carousel-gap: 12px;
}

.magazine-related-carousel .carousel-track {
  padding: 8px 2px 16px;
}

.magazine-related-carousel .carousel-slide {
  min-width: 0;
  display: flex;
}

.magazine-related-carousel .magazine-related-card {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.magazine-related-carousel .magazine-related-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.magazine-related-carousel .magazine-related-footer {
  margin-top: auto;
}

.magazine-related-carousel .pagination-dots {
  justify-content: center;
  gap: 7px;
  padding: 12px 0 8px;
  overflow: visible;
}

.magazine-related-carousel .carousel-page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--mag-border);
  border-radius: 0;
  background: #fff;
  color: var(--mag-text);
  font-size: 14px;
}

.magazine-related-carousel .carousel-page-btn:hover {
  background: var(--mag-soft);
  transform: none;
}

.magazine-related-carousel .carousel-page-btn.is-active,
.magazine-related-carousel .carousel-page-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.magazine-related-card {
  border: 1px solid var(--mag-border);
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
}

.magazine-related-media {
  display: block;
  overflow: hidden;
  background: #eef2f6;
}

.magazine-related-image,
.magazine-related-media-placeholder {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
  background: #eef2f6;
}

.magazine-related-body {
  display: grid;
  gap: 8px;
  padding: 10px;
  text-align: center;
  align-content: start;
}

.magazine-related-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.magazine-related-title a {
  text-decoration: none;
  color: var(--mag-text);
}

.magazine-related-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mag-muted);
}

.magazine-related-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.magazine-related-meta-badge {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.magazine-related-footer {
  margin-top: 2px;
}

.magazine-related-cta {
  width: 100%;
  min-height: 34px;
  text-decoration: none;
}

.magazine-back {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.magazine-back-btn {
  text-decoration: none;
}

@media (max-width: 1180px) {
  .magazine-toolbar-head {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .magazine-toolbar-right {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .magazine-hero-panel {
    grid-template-columns: 1fr;
  }

  .magazine-toolbar-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .magazine-toolbar-center {
    display: none;
  }

  .magazine-toolbar-left {
    border-right: 1px solid var(--mag-border);
  }

  .magazine-toolbar-right {
    border-right: 0;
    justify-content: flex-end;
  }

  .magazine-toolbar-panel {
    width: 100vw;
    border-left: 0;
  }

  .magazine-inline-field--sort {
    width: 100%;
    justify-content: flex-end;
  }

  .magazine-inline-field--sort .magazine-inline-label {
    display: none;
  }

  .magazine-inline-field--sort .magazine-select {
    min-width: 140px;
    width: auto;
  }

  .magazine-products .carousel {
    --carousel-items: 3;
  }
}

@media (max-width: 768px) {
  .page-section.magazine-page,
  .page-section.magazine-detail {
    padding-left: var(--so-page-gutter, 12px);
    padding-right: var(--so-page-gutter, 12px);
  }

  .magazine-page {
    gap: 14px;
  }

  .magazine-hero-panel {
    padding: 14px;
    gap: 10px;
  }

  .magazine-page-title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .magazine-page-header .page-title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .magazine-page-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .magazine-page-header .page-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .magazine-toolbar-left,
  .magazine-toolbar-right {
    padding: 8px 10px;
  }

  .magazine-inline-field--sort {
    width: 100%;
    justify-content: flex-end;
  }

  .magazine-inline-field--sort .magazine-inline-label {
    display: none;
  }

  .magazine-inline-field--sort .magazine-select {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    font-size: 16px;
    line-height: 1.2;
  }

  .magazine-toolbar-panel .filter-content,
  .magazine-filter-content {
    padding: 16px;
    gap: 10px;
  }

  .magazine-input,
  .magazine-select,
  .magazine-input--filter,
  .magazine-date-input {
    font-size: 16px;
  }

  .magazine-toolbar-panel .filter-footer,
  .magazine-filter-footer,
  .magazine-toolbar-actions {
    padding: 12px 16px 16px;
    gap: 10px;
  }

  .magazine-btn {
    min-height: 40px;
    font-size: 12px;
  }

  .magazine-date-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .active-filters {
    justify-content: flex-start;
  }

  .filter-chip {
    max-width: 100%;
  }

  .magazine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    --mag-card-h: 390px;
    --mag-card-media-h: 164px;
  }

  .magazine-card-image {
    height: 100%;
  }

  .magazine-card-body {
    padding: 10px;
    gap: 7px;
  }

  .magazine-card-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .magazine-card-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .magazine-card-excerpt {
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .magazine-card-cta {
    width: 100%;
    min-height: 34px;
  }

  .magazine-detail {
    gap: 14px;
  }

  .magazine-detail-article {
    padding: 14px;
  }

  .magazine-detail-title {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.14;
  }

  .magazine-detail-excerpt {
    font-size: 14px;
    line-height: 1.55;
  }

  .magazine-meta {
    gap: 10px;
  }

  .magazine-author {
    width: 100%;
    justify-content: center;
  }

  .magazine-author-bio {
    max-width: 100%;
    white-space: normal;
  }

  .magazine-content {
    font-size: 15px;
    line-height: 1.65;
  }

  .magazine-related {
    padding: 12px;
  }

  .magazine-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .magazine-related-title {
    font-size: 15px;
  }

  .magazine-related-excerpt {
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .magazine-inline-field--sort .magazine-select {
    min-width: 0;
    width: 100%;
  }

  .magazine-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .magazine-toolbar-panel .filter-title,
  .magazine-filter-title {
    font-size: 16px;
  }

  .magazine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --mag-card-h: 360px;
    --mag-card-media-h: 144px;
  }

  .magazine-card-image {
    height: 100%;
  }

  .magazine-author-bio {
    max-width: 100%;
    white-space: normal;
  }

  .magazine-content {
    max-width: 100%;
    text-align: left;
  }

  .magazine-products .carousel {
    --carousel-items: 2;
  }

  .magazine-products .product-item {
    --so-card-h: 338px;
    --so-card-media-h: 176px;
  }

  .magazine-products .product-item-body {
    min-height: 138px;
  }
}
