:root {
  --page: #fffaf7;
  --surface: #ffffff;
  --media: #fff3ec;
  --line: #f0dfd8;
  --line-strong: #dcbfb5;
  --text: #2a2524;
  --muted: #756c68;
  --green: #4ead3f;
  --blue: #ef3b2d;
  --orange: #f15a24;
  --yellow: #f7c815;
  --shadow: 0 2px 8px rgba(64, 28, 20, 0.05);
  --shadow-strong: 0 18px 60px rgba(64, 28, 20, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Noto Sans", "Noto Sans JP", "Noto Sans CJK JP", "Noto Sans CJK", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  padding: 0 clamp(18px, 3.6vw, 72px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.catalog-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.catalog-logo img {
  display: block;
  width: 150px;
  max-width: 34vw;
  height: auto;
}

.language-switch {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(64, 28, 20, 0.04);
}

.language-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(250px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(64, 28, 20, 0.18);
}

.language-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  background: var(--surface);
  color: #394150;
  cursor: pointer;
  text-align: left;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  background: #fff3ec;
  color: #8d2e22;
  outline: none;
}

.language-option strong {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

.language-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}

.language-option em {
  visibility: hidden;
  color: var(--blue);
  font-style: normal;
  font-size: 19px;
  font-weight: 900;
}

.language-option.is-active em {
  visibility: visible;
}

.catalog-main {
  width: 100%;
  padding: 28px clamp(18px, 3.6vw, 72px) 34px;
}

.catalog-intro {
  margin-bottom: 16px;
}

.notice-panel {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 6px;
  background: #ececec;
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.notice-head::before {
  content: none;
}

.notice-list {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.notice-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.notice-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  font-weight: 700;
}

.notice-item:hover,
.notice-item:focus-visible {
  background: rgba(255, 255, 255, 0.52);
  outline: none;
}

.notice-date {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
  color: #2d3038;
  font-size: 16px;
  font-weight: 850;
}

.notice-tag {
  display: inline-grid;
  width: 84px;
  height: 24px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--green);
  color: #2f8e26;
  background: #ffffff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item.is-new .notice-tag {
  border-color: var(--orange);
  color: var(--orange);
}

.notice-tag.is-new {
  border-color: var(--orange);
  color: var(--orange);
}

.notice-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #252733;
  font-size: 17px;
  line-height: 1.35;
}

.catalog-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px auto;
  gap: 10px;
  align-items: start;
  margin: 0 0 22px;
  padding: 8px 0;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 238, 244, 0.74);
}

.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
}

.catalog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.quick-filter-strip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(320px, calc(100vw - 32px));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(46, 33, 26, 0.16);
}

.quick-filter-strip[hidden] {
  display: none;
}

.quick-filter-portal {
  display: none;
}

.search-control input {
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-control {
  position: relative;
  display: block;
  width: 100%;
}

.search-control input {
  width: 100%;
  padding: 0 52px 0 18px;
  font-size: 20px;
}

.search-control svg {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 23px;
  height: 23px;
  transform: translateY(-50%);
  fill: none;
  stroke: #8a6f66;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.search-control input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(239, 59, 45, 0.12);
}

.cart-button,
.quote-button,
.copy-button,
.icon-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  white-space: nowrap;
  grid-column: 3;
  grid-row: 1;
}

.cart-button .cart-label {
  color: var(--text);
  background: transparent;
  font-size: 20px;
}

.cart-button .cart-count {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 14px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  overflow: visible;
  padding: 6px 0 2px;
  scrollbar-width: none;
  grid-column: 1;
  grid-row: 1;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.category-pill.is-active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.category-more {
  position: relative;
  z-index: 36;
  flex: 0 0 auto;
}

.category-more-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.category-more-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff4f2;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.category-more-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.category-more-button:hover,
.category-more-button[aria-expanded="true"] {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(239, 59, 45, 0.1);
}

.category-more-button.has-active-filter {
  border-color: var(--blue);
  background: #fff4f2;
  color: var(--blue);
}

.quick-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 10px;
}

.quick-filter-title {
  display: block;
  padding: 2px 2px 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.quick-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.quick-filter-clear:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.quick-filter-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.quick-filter-group {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}

.quick-filter-group + .quick-filter-group {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.quick-filter-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quick-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.quick-filter-pill.is-active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.loading-state {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}

.loading-state[hidden] {
  display: none;
}

.loading-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #f1d7cf;
  border-radius: 10px;
  background: #fff6f2;
  color: var(--text);
}

.loading-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.loading-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.loading-spinner {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(239, 59, 45, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: loading-spin 820ms linear infinite;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
}

.loading-card {
  min-height: 292px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent) -160px 0 / 160px 100% no-repeat,
    linear-gradient(#f5ebe7 0 0) 16px 16px / calc(100% - 32px) 52% no-repeat,
    linear-gradient(#f1dfd8 0 0) 16px 70% / 78% 16px no-repeat,
    linear-gradient(#f1dfd8 0 0) 16px calc(70% + 28px) / 52% 14px no-repeat,
    linear-gradient(#f3cfc2 0 0) 16px calc(100% - 58px) / 46% 18px no-repeat,
    #ffffff;
  box-shadow: var(--shadow);
  animation: loading-shimmer 1.2s ease-in-out infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-shimmer {
  to {
    background-position:
      calc(100% + 160px) 0,
      16px 16px,
      16px 70%,
      16px calc(70% + 28px),
      16px calc(100% - 58px),
      0 0;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: #e7b7a8;
  box-shadow: 0 8px 22px rgba(64, 28, 20, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.product-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 5px 14px rgba(239, 59, 45, 0.18);
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--media);
}

.product-media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  background: #ffffff;
}

.image-placeholder {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: #e0e6ee;
}

.image-placeholder svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-name {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(14px, 0.92vw, 18px);
  font-weight: 850;
  line-height: 1.25;
  max-height: 3.75em;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.product-card.is-selected .product-name {
  color: var(--blue);
}

.product-label {
  position: absolute;
  top: calc(9px + (var(--label-index, 0) * 29px));
  left: 9px;
  z-index: 1;
  min-width: 46px;
  max-width: calc(100% - 18px);
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #6b7280;
}

.product-label-default {
  background: #6b7280;
}

.product-label-new {
  background: #2478e8;
}

.product-label-sale {
  background: #e0352b;
}

.product-label-best-seller {
  background: #ffe5a0;
  color: #5a3b00;
}

.modal-body > .product-label {
  position: static;
  display: inline-block;
  width: fit-content;
  margin: -4px 0 10px;
}

.product-price {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(15px, 0.96vw, 19px);
  font-weight: 850;
  line-height: 1.25;
}

.quote-button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border-radius: 21px;
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.quote-button.is-added {
  color: #2f7f25;
  border-color: rgba(78, 173, 63, 0.28);
  background: rgba(78, 173, 63, 0.13);
}

.quote-button:disabled {
  color: #818895;
  border-color: #d9e0e8;
  background: #eef2f6;
  cursor: not-allowed;
}

.quote-button:active {
  transform: translateY(1px);
}

.empty-state {
  margin-top: 40px;
  padding: 44px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.empty-state strong {
  font-size: 22px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.screen-backdrop,
.product-modal,
.notice-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 38, 0.42);
}

.product-modal,
.notice-modal {
  display: grid;
  z-index: 55;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.product-modal[hidden],
.notice-modal[hidden],
.screen-backdrop[hidden],
.cart-drawer[hidden] {
  display: none;
}

.modal-card,
.notice-modal-card {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.notice-modal-card {
  width: min(680px, calc(100vw - 32px));
  padding: 28px;
}

.catalog-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 3.6vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.catalog-footer strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 13px;
}

.catalog-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}

.notice-modal-card h2 {
  margin: 10px 42px 12px 0;
  font-size: clamp(24px, 3vw, 34px);
}

.notice-modal-body {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.notice-modal-body p {
  margin: 0;
}

.notice-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-right: 44px;
}

.notice-modal-meta .notice-date {
  font-size: 16px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(64, 28, 20, 0.12);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.modal-image {
  display: grid;
  align-self: start;
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.modal-image img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  padding: 12px;
}

.modal-image .image-placeholder {
  width: 92px;
  height: 92px;
}

.modal-image .image-placeholder svg {
  width: 86px;
  height: 86px;
}

.modal-body h2 {
  margin: 2px 50px 12px 0;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.35;
}

.modal-description {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf7;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.modal-description:empty {
  display: none;
}

.modal-description p {
  margin: 0;
  color: var(--muted);
}

.description-toggle {
  display: none;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 16px 0;
  border-top: 1px solid var(--line);
}

.modal-fact {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-fact strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.modal-fact span {
  flex: 0 0 auto;
}

.modal-fact small {
  display: block;
  margin-top: 2px;
  margin-left: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  width: min(440px, 100vw);
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.screen-backdrop {
  z-index: 50;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.clear-cart-button {
  min-height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid rgba(201, 37, 28, 0.28);
  border-radius: 17px;
  background: rgba(201, 37, 28, 0.06);
  color: #c9251c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.clear-cart-button[hidden] {
  display: none;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px 2px;
}

.empty-cart {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--page);
}

.cart-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.cart-item strong {
  font-size: 16px;
  line-height: 1.3;
}

.cart-item span {
  color: var(--muted);
  font-size: 14px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: minmax(0, 172px) 36px;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.quantity-button {
  display: grid;
  height: 38px;
  place-items: center;
  border: 0;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.quantity-button:active {
  background: #e5e7eb;
}

.cart-item input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}

.remove-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #c9251c;
  cursor: pointer;
  font-size: 20px;
}

.cart-note {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-note textarea {
  width: 100%;
  min-height: 48px;
  max-height: 150px;
  overflow-y: auto;
  resize: none;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
}

.copy-button {
  min-height: 48px;
  margin-top: 14px;
  border-radius: 24px;
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.copy-button.is-copied {
  color: #2f7f25;
  border-color: rgba(78, 173, 63, 0.28);
  background: rgba(78, 173, 63, 0.13);
}

.copy-status {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(239, 59, 45, 0.14);
  border-radius: 10px;
  background: #fff8f6;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.copy-status strong {
  color: var(--text);
  font-size: 13px;
}

.copy-status ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.copy-status li::marker {
  color: var(--blue);
  font-weight: 850;
}

.copy-success {
  padding: 8px 10px;
  border: 1px solid rgba(78, 173, 63, 0.22);
  border-radius: 8px;
  background: rgba(78, 173, 63, 0.1);
  color: #2f7f25;
  font-weight: 800;
}

.copy-status.is-success {
  border-color: rgba(78, 173, 63, 0.22);
  background: #fbfff8;
}

@media (max-width: 1180px) {
  .catalog-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

@media (max-width: 980px) {
  .catalog-topbar,
  .catalog-actions {
    justify-content: stretch;
  }
}

@media (max-width: 680px) {
  .catalog-header {
    align-items: center;
    height: 56px;
    min-height: 64px;
    padding: 0 12px;
    flex-direction: row;
    gap: 8px;
  }

  .catalog-logo img {
    width: 112px;
    max-width: 40vw;
  }

  .language-switch {
    align-self: center;
  }

  .language-trigger {
    height: 32px;
    gap: 5px;
    padding: 0 8px 0 6px;
    font-size: 11px;
  }

  .language-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .language-menu {
    right: -4px;
    width: min(236px, calc(100vw - 24px));
  }

  .language-option {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    min-height: 44px;
    padding: 0 12px;
  }

  .language-option strong {
    font-size: 19px;
  }

  .language-option span {
    font-size: 14px;
  }

  .catalog-main {
    padding: 14px 16px 28px;
  }

  .catalog-intro {
    gap: 10px;
    margin-bottom: 12px;
  }

  .notice-panel {
    padding: 10px;
    border-radius: 6px;
  }

  .notice-list {
    gap: 6px;
  }

  .notice-item {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "date tag ."
      "title title title";
    gap: 5px 8px;
    align-items: center;
    min-height: 0;
    padding: 4px 2px 6px;
  }

  .notice-date {
    grid-area: date;
    font-size: 12px;
    line-height: 1.2;
  }

  .notice-tag {
    grid-area: tag;
    width: 60px;
    height: 20px;
    border-width: 1px;
    font-size: 10px;
  }

  .notice-item-title {
    grid-area: title;
    font-size: 13px;
    line-height: 1.35;
  }

  .catalog-sticky {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 0 -16px 14px;
    padding: 6px 16px;
    gap: 8px;
  }

  .catalog-topbar {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .catalog-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-control {
    grid-column: 1;
  }

  .search-control,
  .search-control input {
    width: 100%;
    min-width: 0;
  }

  .search-control input,
  .cart-button {
    height: 40px;
    min-height: 40px;
    border-radius: 20px;
  }

  .cart-button {
    font-size: 14px;
  }

  .search-control input,
  .cart-item input,
  .cart-note textarea {
    font-size: 16px;
  }

  .search-control input {
    padding-left: 14px;
    padding-right: 40px;
  }

  .search-control svg {
    right: 14px;
    width: 19px;
    height: 19px;
  }

  .cart-button .cart-label {
    font-size: 13px;
  }

  .cart-button .cart-count {
    min-width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .catalog-sticky .cart-button {
    width: auto;
    min-width: 86px;
    padding: 0 9px;
    grid-column: 2;
    grid-row: 1;
  }

  .category-strip {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .category-strip {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  .category-more {
    position: sticky;
    right: 0;
    z-index: 38;
    margin-left: 0;
    padding-left: 6px;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.98) 34%);
  }

  .category-more-button {
    width: 36px;
    height: 32px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
  }

  .category-more-label {
    display: none;
  }

  .category-more-icon {
    width: 22px;
    height: 22px;
    background: #fff4f2;
  }

  .category-more-icon svg {
    width: 15px;
    height: 15px;
  }

  .quick-filter-strip {
    display: none;
  }

  .quick-filter-portal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 10px;
    pointer-events: none;
  }

  .quick-filter-portal .quick-filter-strip {
    position: static;
    display: grid;
    width: min(330px, calc(100vw - 32px));
    max-width: 330px;
    max-height: min(76dvh, 520px);
    overflow-y: auto;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    transform: none;
    box-shadow: 0 22px 60px rgba(46, 33, 26, 0.24);
    pointer-events: auto;
  }

  .quick-filter-title {
    padding: 0 2px 2px;
    font-size: 14px;
  }

  .quick-filter-clear {
    height: 30px;
    padding: 0 10px;
  }

  .quick-filter-pill {
    width: auto;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .category-pill {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

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

  .loading-state {
    gap: 16px;
  }

  .loading-copy {
    gap: 10px;
    padding: 14px;
  }

  .loading-copy strong {
    font-size: 15px;
  }

  .loading-copy p {
    font-size: 12px;
  }

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

  .loading-card {
    min-height: 238px;
  }

  .product-card {
    padding: 10px;
  }

  .product-media {
    margin-bottom: 14px;
  }

  .product-name {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-price {
    margin-bottom: 12px;
  }

  .quote-button {
    min-height: 36px;
    font-size: 13px;
  }

  .product-modal,
  .notice-modal {
    padding: 10px;
    place-items: center;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .notice-modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 22px 16px 18px;
    border-radius: 14px;
  }

  .modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    margin: 0;
  }

  .modal-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .modal-image {
    height: min(56vw, 220px);
    max-height: 220px;
    aspect-ratio: auto;
  }

  .modal-image img {
    max-height: 220px;
    padding: 10px;
  }

  .modal-body h2 {
    margin: 0 50px 10px 0;
    font-size: 17px;
    line-height: 1.35;
  }

  .modal-description {
    max-height: 68px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.6;
  }

  .modal-description.is-expanded {
    max-height: none;
    overflow: visible;
  }

  .modal-description:empty + .description-toggle {
    display: none;
  }

  .description-toggle {
    display: inline;
    width: fit-content;
    min-height: 0;
    margin: 2px 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
  }

  .modal-facts {
    grid-template-columns: 1fr;
    margin: 12px 0;
  }

  .modal-fact {
    padding: 7px 0;
    font-size: 11px;
  }

  .modal-fact strong {
    font-size: 12px;
  }

  .cart-item-row {
    grid-template-columns: minmax(0, 156px) 36px;
  }

  .catalog-footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    font-size: 11px;
  }

  .catalog-footer strong,
  .footer-links a {
    font-size: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
