/* =========================================================
   CATALOG PAGE STYLES
   Tách từ coto-theme.css để dễ bảo trì.
   ========================================================= */

/* Modern catalog page */
.catalog-hero {
  background:
    radial-gradient(circle at 86% 16%, rgba(216, 182, 91, .28), transparent 24%),
    linear-gradient(108deg, #063829 0%, #07533b 54%, #f3f8f1 54.2%, #fffdf8 100%);
  border-bottom: 1px solid rgba(7,68,47,.12);
  padding: 38px 0 46px;
}

.catalog-hero .container,
.catalog-page .container {
  max-width: min(1540px, calc(100% - 96px));
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 22px;
}

.catalog-breadcrumb a {
  color: rgba(255,255,255,.86);
}

.catalog-breadcrumb a:hover,
.catalog-breadcrumb span {
  color: #f1cf68;
}

.catalog-breadcrumb i {
  font-size: 10px;
  color: rgba(255,255,255,.52);
}

.catalog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 32px;
  align-items: end;
}

.catalog-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #f1cf68;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em !important;
  margin-bottom: 10px;
}

.catalog-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
}

.catalog-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.8;
}

.catalog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.catalog-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.catalog-hero-stats strong {
  color: #f1cf68;
}

.catalog-search-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(7,68,47,.09);
  box-shadow: 0 24px 54px rgba(7,68,47,.16);
  backdrop-filter: blur(14px);
}

.catalog-search-card label {
  display: block;
  margin-bottom: 10px;
  color: #34443e;
  font-size: 13px;
  font-weight: 800;
}

.catalog-search-control {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #f7fbf8;
  border: 1px solid rgba(7,68,47,.09);
}

.catalog-search-control i {
  color: #064c37;
  justify-self: center;
}

.catalog-search-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d2d27;
  font-size: 14px;
}

.catalog-search-control button,
.catalog-apply-btn,
.catalog-filter-toggle,
.catalog-clear-mobile,
.catalog-clear-btn {
  border: 0;
  border-radius: 10px;
  background: #064c37;
  color: #fff;
  font-weight: 850;
  font-size: 13px;
}

.catalog-search-control button {
  padding: 10px 16px;
}

.catalog-page {
  padding: 42px 0 72px;
  background:
    linear-gradient(180deg, #eaf4ef 0%, #f7fbf8 42%, #eef6f1 100%);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.catalog-sidebar {
  position: static;
  align-self: start;
}

.catalog-filter-panel,
.catalog-toolbar,
.catalog-empty {
  border: 1px solid rgba(7,68,47,.16);
  background: #fffefb;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(7,68,47,.12);
}

.catalog-filter-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,251,241,.96)),
    radial-gradient(circle at 14% 0%, rgba(13,107,77,.18), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(216,182,91,.22), transparent 30%);
  box-shadow: 0 22px 54px rgba(7,68,47,.14), 0 2px 0 rgba(216,182,91,.42);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.catalog-filter-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #064c37, #13a36f, #d8b65b);
}

.catalog-filter-panel:hover {
  border-color: rgba(7,68,47,.24);
  box-shadow: 0 22px 54px rgba(7,68,47,.14), 0 2px 0 rgba(216,182,91,.5);
}

.catalog-filter-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 6px 0 17px;
  border-bottom: 1px solid rgba(7,68,47,.08);
  margin-bottom: 18px;
}

.catalog-filter-head span,
.catalog-result-copy span {
  display: block;
  color: #71827a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.catalog-filter-head strong {
  display: block;
  margin-top: 3px;
  color: #07110e;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.catalog-filter-head i {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, #e8f8f1, #fff9e8);
  color: #064c37;
  font-size: 18px;
  box-shadow: 0 12px 26px rgba(7,68,47,.1);
  transition: box-shadow .18s ease;
}

.catalog-filter-panel:hover .catalog-filter-head i {
  box-shadow: 0 12px 26px rgba(7,68,47,.12);
}

.catalog-filter-group + .catalog-filter-group {
  border-top: 1px solid rgba(7,68,47,.08);
  margin-top: 20px;
  padding-top: 20px;
}

.catalog-filter-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: #101a17;
  font-size: 15px;
  font-weight: 900;
}

.catalog-filter-group h3::before {
  content: "";
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d6b4d, #d8b65b);
  box-shadow: 0 6px 14px rgba(7,68,47,.14);
}

.catalog-category-list {
  display: grid;
  gap: 9px;
}

.catalog-category-list a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 12px 10px 11px;
  border-radius: 14px;
  color: #20312b;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid rgba(7,68,47,.06);
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.catalog-category-list a i {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff7df;
  color: #b88720;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(184,135,32,.12);
  transition: background .18s ease, color .18s ease;
}

.catalog-category-list a span {
  position: relative;
  z-index: 1;
}

.catalog-category-list a:hover,
.catalog-category-list a.active {
  background: linear-gradient(135deg, #e4f8ee, #fff7df);
  border-color: rgba(7,68,47,.18);
  color: #064c37;
  box-shadow: 0 8px 18px rgba(7,68,47,.08);
}

.catalog-category-list a:hover i,
.catalog-category-list a.active i {
  background: #064c37;
  color: #fff;
}

.catalog-price-form {
  display: grid;
  gap: 12px;
}

.catalog-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.catalog-price-inputs input,
.catalog-sort select {
  width: 100%;
  border: 1px solid rgba(7,68,47,.16);
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  color: #1d2d27;
  font-size: 13px;
  font-weight: 750;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.catalog-price-inputs input:focus,
.catalog-sort select:focus {
  border-color: rgba(7,68,47,.4);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19,163,111,.12), inset 0 1px 0 rgba(255,255,255,.95);
}

.catalog-price-inputs input {
  min-height: 50px;
  padding: 12px;
}

.catalog-apply-btn {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #064c37, #0d7b58);
  box-shadow: 0 14px 26px rgba(7,68,47,.18);
  transition: box-shadow .18s ease, filter .18s ease;
}

.catalog-price-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.catalog-price-shortcuts a,
.catalog-active-filters span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(7,68,47,.12);
  color: #1d342b;
  font-size: 12px;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-price-shortcuts a:hover {
  background: #fff3d2;
  color: #064c37;
  border-color: rgba(216,182,91,.55);
  box-shadow: 0 6px 14px rgba(184,135,32,.1);
}

.catalog-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  background: #fff2d1;
  color: #064c37;
  border: 1px solid rgba(216,182,91,.34);
  transition: background .18s ease, box-shadow .18s ease;
}

.catalog-clear-btn:hover {
  background: #ffe8ad;
  box-shadow: 0 6px 14px rgba(184,135,32,.12);
}

.catalog-mobile-actions {
  display: none;
}

.catalog-toolbar {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-top: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,249,232,.96) 58%, rgba(229,248,239,.95));
  box-shadow: 0 20px 48px rgba(7,68,47,.12), 0 2px 0 rgba(216,182,91,.5);
  transition: box-shadow .18s ease, border-color .18s ease;
}

.catalog-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #d8b65b, #13a36f, #064c37);
}

.catalog-toolbar::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 18%;
  top: -118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19,163,111,.16), transparent 68%);
  pointer-events: none;
}

.catalog-toolbar:hover {
  border-color: rgba(7,68,47,.24);
  box-shadow: 0 20px 48px rgba(7,68,47,.12), 0 2px 0 rgba(216,182,91,.58);
}

.catalog-result-copy,
.catalog-sort {
  position: relative;
  z-index: 1;
}

.catalog-result-copy h2 {
  margin: 4px 0 0;
  color: #101a17;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.catalog-result-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 2px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #064c37, #0d7b58);
  color: #fff;
  box-shadow: 0 12px 22px rgba(7,68,47,.18);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(7,68,47,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.catalog-sort label {
  color: #5d7067;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.15;
}

.catalog-sort select {
  min-width: 210px;
  min-height: 44px;
  padding: 10px 38px 10px 14px;
  cursor: pointer;
  background:
    linear-gradient(180deg, #fff, #f7fbf8);
}

.catalog-sort:hover select {
  border-color: rgba(7,68,47,.28);
  box-shadow: 0 0 0 3px rgba(7,68,47,.06);
}

.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

#catalogContent {
  position: relative;
  transition: opacity .18s ease, transform .18s ease;
}

#catalogContent.is-loading {
  opacity: .58;
  transform: translateY(4px);
  pointer-events: none;
}

.catalog-category-list a.is-busy {
  pointer-events: none;
}

.catalog-ajax-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, .18);
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

.catalog-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(7,68,47,.26);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7,68,47,.13), 0 2px 0 rgba(217,185,111,.36);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.catalog-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7,68,47,.36);
  box-shadow: 0 18px 42px rgba(7,68,47,.15), 0 2px 0 rgba(217,185,111,.5);
}

.catalog-product-view {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(255,255,255,.9);
  color: #064c37;
  box-shadow: 0 10px 22px rgba(7,68,47,.18);
  backdrop-filter: blur(8px);
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.catalog-product-view:hover {
  transform: translateY(-1px) scale(1.04);
  background: #064c37;
  color: #fff;
  box-shadow: 0 14px 28px rgba(7,68,47,.24);
}

.catalog-product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / .82;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(145deg, #e6eadf, #f8f5ed);
  overflow: hidden;
}

.catalog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  padding: 0;
  transition: transform .35s ease, filter .35s ease;
}

.catalog-product-card:hover .catalog-product-media img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.catalog-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: #d8b65b;
  color: #064c37;
  font-size: 11px;
  font-weight: 900;
}

.catalog-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px 11px 10px;
  background:
    linear-gradient(180deg, #fffefa 0%, #fff9ed 100%);
  border-top: 1px solid rgba(7,68,47,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.catalog-product-code {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e0f2e7;
  border: 1px solid rgba(7,68,47,.16);
  color: #42675a;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-product-body h3 {
  margin: 6px 0 6px;
  min-height: 32px;
  color: #07110e;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-product-body h3 a {
  color: inherit;
}

.catalog-product-body h3 a:hover {
  color: #064c37;
}

.catalog-product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 0;
}

.catalog-product-price strong {
  display: inline-flex;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(6,76,55,.08);
  color: #003f2d;
  font-size: 14px;
  font-weight: 900;
}

.catalog-product-price del {
  color: #95a29d;
  font-size: 12px;
}

.catalog-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: auto;
  padding-top: 8px;
}

.catalog-product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(7,68,47,.14);
  font-size: 11px;
  font-weight: 850;
}

.catalog-product-actions a {
  background: linear-gradient(180deg, #8a7a69, #5e4f43);
  color: #fff;
  border-color: rgba(94,79,67,.28);
  box-shadow: 0 8px 16px rgba(94,79,67,.18);
}

.catalog-product-actions a:hover {
  filter: saturate(1.08);
  box-shadow: 0 14px 28px rgba(94,79,67,.24);
}

.catalog-search-control button:hover,
.catalog-apply-btn:hover {
  filter: saturate(1.08);
  box-shadow: 0 14px 28px rgba(7,68,47,.2);
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.catalog-load-more {
  min-width: 230px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #064c37;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(7,68,47,.18);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.catalog-load-more:hover {
  background: #086044;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(7,68,47,.22);
}

.catalog-load-more:disabled {
  cursor: wait;
  opacity: .82;
}

.catalog-load-more.is-loading i {
  animation: catalogSpin .8s linear infinite;
}

@keyframes catalogSpin {
  to { transform: rotate(360deg); }
}

.catalog-pagination a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(7,68,47,.1);
  background: #fff;
  color: #1d2d27;
  font-size: 13px;
  font-weight: 850;
}

.catalog-pagination a:hover,
.catalog-pagination a.active {
  background: #064c37;
  border-color: #064c37;
  color: #fff;
}

.catalog-empty {
  text-align: center;
  padding: 70px 24px;
}

.catalog-empty > i {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #eef8f2;
  color: #064c37;
  font-size: 30px;
  margin-bottom: 18px;
}

.catalog-empty h3 {
  color: #101a17;
  font-size: 22px;
  font-weight: 900;
}

.catalog-empty p {
  max-width: 440px;
  margin: 10px auto 22px;
  color: #607069;
  line-height: 1.7;
}

.catalog-empty a {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 10px;
  background: #064c37;
  color: #fff;
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .japano-header .navbar {
    min-height: 74px;
  }

  .japano-brand {
    min-width: 0;
    margin-right: 0;
  }

  .japano-brand .brand-logo-box {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }

  .japano-brand .brand-logo-img {
    width: 42px;
    height: 42px;
  }

  .japano-header .navbar-toggler {
    border-radius: 16px;
  }

  .japano-header .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(7,68,47,.08);
    box-shadow: 0 16px 36px rgba(7,68,47,.08);
  }

  .japano-header .navbar-nav {
    gap: 0;
  }

  .japano-header .nav-link {
    padding: 14px 0 !important;
    text-align: left;
  }

  .japano-header .product-dropdown-menu {
    margin-top: 4px;
    width: 100%;
    border-radius: 14px;
    box-shadow: none;
    background: #f7fbf8;
    transform: none !important;
  }

  .japano-header .header-actions {
    margin-left: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(7,68,47,.08);
  }

  .catalog-hero {
    padding: 28px 0 34px;
    background:
      radial-gradient(circle at 92% 8%, rgba(216, 182, 91, .18), transparent 34%),
      linear-gradient(135deg, #053324 0%, #07533b 100%);
  }

  .catalog-hero .container,
  .catalog-page .container {
    max-width: none;
  }

  .catalog-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-hero h1,
  .catalog-hero p {
    max-width: 720px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-mobile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
  }

  .catalog-filter-toggle,
  .catalog-clear-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
  }

  .catalog-clear-mobile {
    background: #eef8f2;
    color: #064c37;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-sort {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-sort select {
    flex: 1;
    min-width: 0;
  }

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

@media (max-width: 767.98px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .catalog-page {
    padding: 22px 0 40px;
  }

  .catalog-hero h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .catalog-hero {
    padding: 26px 0 34px;
  }

  .catalog-hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .catalog-search-control {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .catalog-search-control button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .catalog-mobile-actions {
    margin-bottom: 10px;
  }

  .catalog-filter-toggle,
  .catalog-clear-mobile {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  .catalog-toolbar {
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #fffdf4;
    box-shadow: 0 8px 18px rgba(7,68,47,.09), 0 1px 0 rgba(216,182,91,.4);
  }

  .catalog-toolbar::after {
    display: none;
  }

  .catalog-result-copy span {
    font-size: 10px;
  }

  .catalog-result-copy h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .catalog-result-copy strong {
    min-width: 32px;
    min-height: 28px;
    padding: 1px 8px;
    border-radius: 10px;
  }

  .catalog-sort {
    padding: 6px;
    gap: 8px;
    border-radius: 12px;
  }

  .catalog-sort label {
    font-size: 10px;
  }

  .catalog-sort select {
    min-height: 38px;
    font-size: 12px;
    padding: 8px 30px 8px 10px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-product-card {
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(7,68,47,.1);
  }

  .catalog-product-card:hover {
    transform: none;
  }

  .catalog-product-view {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .catalog-product-media {
    aspect-ratio: 1 / .72;
  }

  .catalog-product-body {
    padding: 8px 9px 9px;
  }

  .catalog-product-code {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .catalog-product-body h3 {
    min-height: auto;
    margin: 6px 0 4px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .catalog-product-actions {
    grid-template-columns: 1fr;
    padding-top: 6px;
  }

  .catalog-product-actions a {
    min-height: 28px;
    border-radius: 8px;
    font-size: 10.5px;
  }

  .catalog-price-inputs {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 360px) and (max-width: 575.98px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-product-card {
    border-radius: 9px;
  }

  .catalog-product-view {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .catalog-product-media {
    aspect-ratio: 1 / .9;
  }

  .catalog-product-body {
    padding: 7px;
  }

  .catalog-product-code {
    font-size: 8.5px;
    padding: 1px 5px;
  }

  .catalog-product-body h3 {
    font-size: 10px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
  }

  .catalog-product-actions {
    padding-top: 5px;
  }

  .catalog-product-actions a {
    min-height: 25px;
    font-size: 9.5px;
  }
}

/* Page-level override: catalog.css loads after the shared theme. */
@media (max-width: 991.98px) {
  .japano-header .navbar-collapse:not(.show) {
    display: none !important;
  }

  .japano-header .navbar-collapse.show {
    display: block !important;
    flex-basis: 100%;
    width: 100%;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    margin-top: 12px;
    padding: 10px;
  }

  .japano-header .navbar-nav {
    margin: 0 !important;
    gap: 4px;
  }

  .japano-header .nav-link {
    min-height: 44px;
    padding: 10px 12px !important;
    border-radius: 12px;
  }

  .japano-header .nav-link::after {
    left: 12px;
    right: auto;
    width: 42px;
  }

  .japano-header .header-actions {
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
  }

  .japano-header .hotline-btn {
    width: 100%;
    height: 46px;
    justify-content: center;
  }
}

