:root {
  --bg: #f3f9fb;
  --surface: #ffffff;
  --surface-2: #eef9fb;
  --surface-3: #f8fcfd;
  --text: #132536;
  --muted: #62748a;
  --line: #d5e6ed;
  --blue: #2563eb;
  --cyan: #14b8c6;
  --green: #059669;
  --red: #dc4a58;
  --amber: #b7791f;
  --ink: #0f2338;
  --shadow: 0 18px 44px rgba(31, 65, 88, 0.1);
  --soft-shadow: 0 8px 22px rgba(31, 65, 88, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(219, 247, 251, 0.72) 0, rgba(243, 249, 251, 0) 360px),
    repeating-linear-gradient(90deg, rgba(20, 184, 198, 0.055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0 1px, transparent 1px 96px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 252, 253, 0.88);
  box-shadow: 0 10px 32px rgba(31, 65, 88, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2338, #0e7490);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.24);
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7f3d0;
  content: "";
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(213, 230, 237, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  overflow-x: auto;
  white-space: nowrap;
}

.nav a,
.chip,
.period-button,
.view-button,
.action-button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav a {
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a.is-active,
.period-button.is-active,
.view-button.is-active {
  border-color: rgba(20, 184, 198, 0.24);
  background: #e7fbfd;
  color: var(--ink);
}

.app {
  min-height: calc(100vh - 68px);
}

.section {
  padding: 38px clamp(16px, 4vw, 48px);
}

.section.band {
  margin: 28px calc(clamp(16px, 4vw, 48px) * -1) 0;
  padding-inline: clamp(16px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 251, 0.88));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 850;
  line-height: 1.05;
}

h1.hero-title {
  max-width: 1180px;
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.08;
}

h1.hero-title em {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #f97316, #14b8c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

h1.hero-title .hot-word {
  color: #e5484d;
}

h1.hero-title .cool-word {
  color: #2563eb;
}

h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.lead {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(34px, 7vw, 82px);
  margin: 36px auto 0;
  padding: 0;
}

.hero-stats div {
  min-width: 150px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  position: relative;
}

.home-controls {
  margin-top: 28px;
}

.home-controls .toolbar {
  margin-bottom: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 8px 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(213, 230, 237, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 250, 252, 0.72)),
    repeating-linear-gradient(135deg, rgba(20, 184, 198, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.featured-product {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.48fr);
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.featured-product .product-photo-wrap {
  min-height: 238px;
}

.featured-meta {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.featured-meta span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
}

.featured-meta strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.05;
}

.featured-meta small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.metric-tile {
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.metric-tile span {
  display: block;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

.metric-tile strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.05;
}

.metric-tile small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.segmented,
.periods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(213, 230, 237, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.chip,
.period-button,
.view-button,
.action-button {
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
}

.chip.is-active,
.action-button.primary {
  border-color: #0e7490;
  background: linear-gradient(135deg, #0e7490, #14b8c6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.22);
}

.action-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.action-button:hover {
  border-color: #9fb2ca;
}

.select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.select-row select,
.select-row input,
.admin-form input,
.admin-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ranking-grid,
.card-grid,
.detail-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ranking-showcase {
  display: grid;
  gap: 36px;
  margin-top: 34px;
  min-width: 0;
}

.ranking-shelf {
  position: relative;
  min-width: 0;
}

.shelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.shelf-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: 25px;
}

.shelf-head h2::before {
  position: absolute;
  top: 4px;
  bottom: 3px;
  left: 0;
  width: 6px;
  border-radius: 99px;
  background: #14b8c6;
  content: "";
}

.ranking-shelf.green .shelf-head h2::before {
  background: #10b981;
}

.ranking-shelf.pink .shelf-head h2::before {
  background: #f43f7f;
}

.ranking-shelf.blue .shelf-head h2::before {
  background: #2563eb;
}

.shelf-head span {
  display: block;
  margin-top: 5px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.shelf-head a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.shelf-scroll {
  display: grid;
  grid-auto-columns: minmax(190px, 220px);
  grid-auto-flow: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-color: #14b8c6 #e8f1f5;
}

.shelf-scroll::-webkit-scrollbar {
  height: 10px;
}

.shelf-scroll::-webkit-scrollbar-track {
  border-radius: 99px;
  background: #e8f1f5;
}

.shelf-scroll::-webkit-scrollbar-thumb {
  border: 3px solid #e8f1f5;
  border-radius: 99px;
  background: #14b8c6;
}

.ranking-product-card {
  display: grid;
  grid-template-rows: 292px 1fr;
  overflow: hidden;
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ranking-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 198, 0.38);
  box-shadow: 0 22px 44px rgba(31, 65, 88, 0.14);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 16%, #fff), color-mix(in srgb, var(--art-b) 10%, #fff));
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portrait-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8c6, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 35, 56, 0.2);
}

.ranking-shelf.green .portrait-rank {
  background: linear-gradient(135deg, #10b981, #14b8c6);
}

.ranking-shelf.pink .portrait-rank {
  background: linear-gradient(135deg, #f43f7f, #fb7185);
}

.ranking-shelf.blue .portrait-rank {
  background: linear-gradient(135deg, #2563eb, #14b8c6);
}

.portrait-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.portrait-body h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portrait-body p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portrait-metrics {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.portrait-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.portrait-metrics strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.detail-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.ranking-card,
.box-card,
.detail-card,
.article-card,
.admin-panel,
.notice {
  border: 1px solid rgba(213, 230, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-card,
.detail-card,
.article-card,
.admin-panel,
.notice {
  padding: 20px;
}

.ranking-card,
.detail-card,
.article-card,
.admin-panel,
.box-card,
.notice,
.table-wrap {
  backdrop-filter: blur(8px);
}

.ranking-card {
  position: relative;
  overflow: hidden;
}

.ranking-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #14b8c6, #2563eb, #34d399);
  content: "";
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a,
.latest-row,
.related-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface-3);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ranking-list a:hover,
.latest-row:hover,
.related-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 198, 0.28);
  background: #effbfd;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dff7fa;
  color: #0e7490;
  font-weight: 800;
}

.item-title {
  min-width: 0;
}

.item-title strong,
.item-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.delta.up {
  color: var(--green);
  font-weight: 850;
}

.delta.down {
  color: var(--red);
  font-weight: 850;
}

.price {
  font-weight: 800;
}

.box-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.box-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 198, 0.36);
  box-shadow: 0 24px 52px rgba(31, 65, 88, 0.14);
}

.box-card-link {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 424px;
}

.box-visual {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 22%, #fff), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 16px);
}

.box-visual::after,
.detail-visual::after {
  position: absolute;
  inset: auto 16px 14px;
  height: 1px;
  background: rgba(15, 35, 56, 0.12);
  content: "";
}

.product-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  overflow: hidden;
  background: #e7fbfd;
}

.product-photo-wrap.detail {
  min-height: 330px;
}

.product-photo-wrap.feature {
  min-height: 238px;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.02);
}

.product-photo-wrap.detail .product-photo {
  object-position: center 48%;
}

.photo-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 35, 56, 0.03), rgba(15, 35, 56, 0.58)),
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 20%, transparent), color-mix(in srgb, var(--art-b) 18%, transparent));
}

.photo-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(15, 35, 56, 0.52);
}

.photo-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
}

.photo-title strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-photo-wrap.detail .photo-title {
  right: 22px;
  bottom: 22px;
  left: 22px;
}

.product-photo-wrap.detail .photo-title strong {
  max-width: 680px;
  font-size: clamp(28px, 5vw, 44px);
  -webkit-line-clamp: 3;
}

.product-photo-wrap.feature .photo-title strong {
  font-size: 22px;
}

.box-art {
  position: relative;
  z-index: 1;
  width: min(86%, 220px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(15, 35, 56, 0.2));
}

.art-shadow {
  fill: rgba(17, 24, 39, 0.16);
}

.art-side {
  fill: color-mix(in srgb, var(--art-b) 74%, #111827);
}

.art-front {
  fill: url(#box-front);
}

.art-top {
  fill: color-mix(in srgb, var(--art-a) 70%, #ffffff);
}

.art-band {
  fill: rgba(255, 255, 255, 0.64);
}

.art-seal {
  fill: rgba(255, 255, 255, 0.82);
}

.box-body {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e7fbfd;
  color: #0e7490;
  font-size: 12px;
  font-weight: 700;
}

.box-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.box-stats,
.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f7fbfd;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #f2fbfd;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

tbody tr:hover {
  background: #f8fcfd;
}

td a {
  color: #0e7490;
  font-weight: 800;
}

.detail-visual {
  position: relative;
  min-height: 330px;
  display: block;
  margin: -18px -18px 18px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--art-a) 22%, #fff), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 18px);
}

.chart-wrap {
  height: 330px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcfd);
}

canvas {
  width: 100%;
  height: 100%;
}

.latest-list,
.related-list {
  display: grid;
  gap: 10px;
}

.article-card p,
.notice p {
  color: var(--muted);
  line-height: 1.7;
}

.article-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
}

.card-grid.compact .box-card-link {
  grid-template-rows: 170px 1fr;
  min-height: 352px;
}

.card-grid.compact .product-photo-wrap {
  min-height: 170px;
}

.card-grid.compact .box-title {
  font-size: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fcfd;
  color: var(--muted);
  text-align: center;
}

.warning {
  color: var(--amber);
}

@media (max-width: 980px) {
  .dashboard-hero,
  .detail-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .ranking-grid,
  .card-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel,
  .featured-product,
  .ranking-grid,
  .card-grid,
  .article-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .shelf-head {
    align-items: start;
    flex-direction: column;
  }

  .shelf-scroll {
    grid-auto-columns: minmax(164px, 178px);
    gap: 14px;
    margin-right: calc(clamp(16px, 4vw, 48px) * -1);
    padding-right: clamp(16px, 4vw, 48px);
  }

  .ranking-product-card {
    grid-template-rows: 238px 1fr;
  }

  .box-stats,
  .summary-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }
}
