@charset "UTF-8";
:root {
  --blue: #073a79;
  --navy: #071b3a;
  --red: #e40a29;
  --line: #e1e6ee;
  --muted: #687488;
  --light: #f2f7fd;
  --radius: 7px;
  --shadow: 0 8px 28px #09285518;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--navy);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  background: white;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #288bff;
  outline-offset: 3px;
}
svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.container {
  width: min(1380px, 91%);
  margin-inline: auto;
}
.topline {
  background: #f5f8fd;
  font-size: 12px;
  height: 30px;
  font-weight: bold;
}
.topline > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topline nav {
  display: flex;
  gap: 20px;
}
.header {
  background: linear-gradient(110deg, #034584, #043578);
  color: white;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 42px;
  min-height: 87px;
}
.brand {
  flex-shrink: 0;
}
.brand strong {
  display: block;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -1.6px;
}
.brand em {
  color: #f20b2c;
  font-style: normal;
}
.brand small {
  font-size: 11px;
  display: block;
  margin-top: 1px;
}
.mobile-logo {
  display: none;
}
.search {
  display: flex;
  background: #fff;
  border-radius: 6px;
  align-items: center;
  color: var(--blue);
  height: 46px;
  flex: 1;
  padding-inline: 14px;
  min-width: 170px;
}
.search > svg {
  color: #98a3b6;
  width: 20px;
}
.search input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  color: var(--navy);
}
.search button {
  padding: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.header-actions svg {
  width: 29px;
  height: 29px;
  margin-bottom: 4px;
}
.header-actions small {
  font-size: 11px;
  white-space: nowrap;
}
.cart-count {
  position: absolute;
  background: var(--red);
  border-radius: 20px;
  font-size: 10px;
  min-width: 17px;
  min-height: 17px;
  display: grid;
  place-items: center;
  color: white;
  right: -8px;
  top: -6px;
}
.category-bar {
  border-bottom: 1px solid var(--line);
  background: white;
}
.category-bar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 45px;
  overflow: auto;
  scrollbar-width: none;
}
.category-bar button {
  white-space: nowrap;
  font-size: 12px;
  font-weight: bold;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-bar button.active {
  color: var(--red);
}
.category-picture {
  display: none;
}
.hero {
  position: relative;
  background: #d6eafb url("/assets/hero.png") center/cover no-repeat;
  height: 330px;
  overflow: hidden;
}
.hero-content {
  padding-top: 32px;
  position: relative;
  height: 100%;
}
.hero-tag {
  display: inline-block;
  background: #0056a7;
  border-radius: 24px;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
}
.hero h1 {
  font-size: 59px;
  letter-spacing: -3px;
  font-weight: 950;
  margin: 14px 0 0;
  line-height: 1.15;
  color: #043477;
}
.hero em {
  font-style: normal;
  color: var(--red);
}
.hero h2 {
  font-size: 27px;
  margin: 8px 0 27px;
  letter-spacing: -1px;
}
.hero-benefits {
  display: flex;
  background: #fffffff0;
  border-radius: 10px;
  padding: 18px 20px;
  width: max-content;
  max-width: 64%;
  gap: 26px;
}
.hero-benefits > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.hero-benefits svg {
  width: 37px;
  height: 37px;
  color: #005aaa;
  flex-shrink: 0;
}
.hero-benefits small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.8;
  color: #526079;
}
.hero-seal {
  position: absolute;
  right: 0;
  top: 22px;
  background: var(--red);
  color: white;
  width: 110px;
  height: 110px;
  border-radius: 60px;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: bold;
  line-height: 1.6;
}
.banner-dots {
  position: absolute;
  bottom: 13px;
  left: 50%;
  display: flex;
  gap: 10px;
}
.banner-dots i {
  border: 1px solid white;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  background: #95a0ad;
}
.banner-dots i:first-child {
  background: var(--blue);
}
.mobile-hero-kicker,
.mobile-headline,
.mobile-hero-copy {
  display: none;
}
.steps {
  display: flex;
  gap: 28px;
  border-radius: 8px;
  background: #f5f8fd;
  margin-top: 15px;
  margin-bottom: 24px;
  padding: 16px 22px;
  justify-content: space-between;
  align-items: center;
}
.steps-heading h3 {
  font-size: 20px;
  margin: 0 0 4px;
}
.steps p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 5px 0 0;
}
.step {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}
.step:not(:last-child):after {
  content: "›";
  position: absolute;
  right: -25px;
  color: #758297;
  font-size: 24px;
}
.step-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 67px;
  height: 67px;
  background: #e2efff;
  color: #0766bd;
  flex-shrink: 0;
}
.step-icon svg {
  width: 33px;
  height: 33px;
}
.step-icon.money {
  font-size: 32px;
}
.step b {
  color: var(--blue);
}
.section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 0;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.section-heading > .text-button {
  margin-left: auto;
  color: var(--blue);
  font-size: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 11px 9px;
  position: relative;
  background: white;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.product-card:hover {
  box-shadow: var(--shadow);
}
.product-photo {
  width: 100%;
  height: 145px;
  object-fit: contain;
  background: white;
  border-radius: 3px;
  cursor: pointer;
}
.product-heart {
  position: absolute;
  right: 9px;
  top: 10px;
  color: #808a98;
  z-index: 1;
  background: #fff9;
  border-radius: 30px;
  padding: 2px;
}
.product-heart svg {
  width: 18px;
  height: 18px;
}
.product-heart.selected {
  color: var(--red);
}
.product-heart.selected svg {
  fill: #ed14333a;
}
.product-name {
  font-size: 12px;
  margin: 10px 0 3px;
  line-height: 1.5;
  min-height: 36px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}
.product-size {
  font-size: 11px;
  margin: 0 0 4px;
  color: #333;
  min-height: 16px;
}
.product-rating {
  font-size: 10px;
  color: #8390a5;
  margin: 0 0 4px;
}
.product-rating span {
  color: #dd9300;
  letter-spacing: 1px;
}
.product-price {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}
.product-fee {
  background: #eff4fc;
  padding: 6px;
  border-radius: 4px;
  color: var(--navy);
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
}
.product-fee svg {
  width: 17px;
  height: 17px;
}
.product-buttons {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.primary,
.secondary,
.danger,
.kakao {
  border-radius: 5px;
  padding: 10px 16px;
  font-weight: bold;
  text-align: center;
}
.primary {
  background: var(--red);
  color: white;
  border: 1px solid var(--red);
}
.secondary {
  background: white;
  color: var(--blue);
  border: 1px solid #b7c7de;
}
.danger {
  background: white;
  border: 1px solid var(--red);
  color: var(--red);
}
.kakao {
  background: #fee500;
  color: #191919;
  width: 100%;
  border: 0;
}
.product-buttons button {
  width: 50%;
  padding: 7px 3px;
  font-size: 11px;
  white-space: nowrap;
}
.promotions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.promotions button {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 18px;
  gap: 18px;
  background: #fff0f2;
  text-align: left;
}
.promotions button:nth-child(2) {
  background: #e9f8f3;
}
.promotions button:nth-child(3) {
  background: #e9f3ff;
}
.promotions b {
  font-size: 16px;
}
.promotions small {
  display: block;
  font-size: 11px;
  color: #657083;
  margin-top: 5px;
}
.promotions i {
  margin-left: auto;
  font-size: 23px;
  font-style: normal;
}
.promo-icon {
  font-size: 30px;
  background: #ed536a;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 53px;
  height: 53px;
  border-radius: 50%;
}
.promotions button:nth-child(2) .promo-icon {
  background: #9edecd;
  color: #095367;
}
.promotions button:nth-child(3) .promo-icon {
  background: #cbe3ff;
  color: #0069bb;
}
.catalog {
  padding-top: 35px;
  scroll-margin-top: 15px;
}
.catalog .section-heading select {
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.sample-note {
  font-size: 12px;
  color: var(--muted);
  background: #f6f8fb;
  padding: 12px;
  border-radius: 5px;
}
.load-more {
  display: flex;
  justify-content: center;
  padding: 24px;
}
.load-more button {
  width: 220px;
}
.footer {
  padding: 30px 0 35px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footer small {
  display: block;
  margin-top: 14px;
}
.footer a {
  margin-right: 25px;
}
.bottom-nav {
  display: none;
}
#connection-status {
  position: fixed;
  bottom: 12px;
  left: 12px;
  padding: 8px 14px;
  background: #fff1bf;
  border: 1px solid #dcc674;
  z-index: 10;
}
.page {
  min-height: 450px;
  padding-block: 30px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.page h1 {
  font-size: 27px;
  margin: 0 0 20px;
}
.panel {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}
.panel h2 {
  margin: 0 0 16px;
  font-size: 19px;
}
.notice {
  background: #f0f6ff;
  padding: 14px;
  border-radius: 6px;
  line-height: 1.7;
  color: var(--blue);
}
.empty {
  text-align: center;
  padding: 55px 10px;
  color: var(--muted);
}
.empty svg {
  width: 55px;
  height: 55px;
  color: var(--blue);
  margin-bottom: 10px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}
.cart-row {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.cart-row img {
  width: 90px;
  height: 85px;
  object-fit: contain;
}
.cart-row h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.cart-row small {
  color: var(--muted);
}
.cart-row > .cart-row-content {
  flex: 1;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: max-content;
  margin-top: 8px;
}
.quantity button {
  padding: 4px 12px;
}
.quantity input {
  width: 38px;
  border: 0;
  text-align: center;
  padding: 5px;
  -moz-appearance: textfield;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: bold;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  border: 1px solid #ccd5e0;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  color: var(--navy);
  background: white;
}
.form-grid textarea {
  min-height: 80px;
  resize: vertical;
}
.form-grid .form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.total {
  display: flex;
  justify-content: space-between;
  padding-block: 15px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}
.money-red {
  color: var(--red);
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #e7f1ff;
  color: var(--blue);
  font-size: 11px;
  white-space: nowrap;
}
.badge.complete {
  background: #e2f7ee;
  color: #157454;
}
.badge.pending {
  background: #fff2d2;
  color: #886000;
}
.badge.cancel {
  background: #f0f0f0;
  color: #778;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #f2f6fc;
  color: #50617a;
  font-weight: bold;
}
td button {
  color: var(--blue);
  text-decoration: underline;
}
tr:last-child td {
  border-bottom: 0;
}
.table-thumb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.tabs button {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 5px;
  background: #f4f6f9;
}
.tabs button.active {
  background: var(--blue);
  color: white;
}
.status-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.status-line b {
  font-size: 18px;
}
dialog {
  width: min(640px, 94vw);
  max-height: 90dvh;
  border: 0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 18px 70px #00163566;
  color: var(--navy);
  overflow: auto;
}
dialog::backdrop {
  background: #061a3a80;
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  padding: 5px;
  z-index: 1;
}
.dialog-close:hover {
  background: #edf3fa;
}
#dialog-body h2 {
  margin: 0 25px 16px 0;
  font-size: 23px;
}
.detail-photo {
  width: 100%;
  height: 250px;
  object-fit: contain;
}
.detail-price {
  font-size: 29px;
  font-weight: 900;
  margin: 10px 0;
  color: var(--red);
}
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.order-line span:first-child {
  color: var(--muted);
}
.order-history {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.order-history li {
  padding: 8px 0 8px 18px;
  border-left: 2px solid #cbdcf2;
  position: relative;
  font-size: 13px;
}
.order-history li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: -5px;
  top: 12px;
}
.order-history small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.inline-error {
  color: #b1001b;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.auth-code {
  font-size: 25px !important;
  text-align: center;
  letter-spacing: 8px;
}
.auth-confirm {
  line-height: 1.8;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.guide-steps .panel {
  margin: 0;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  background: #072550;
  color: white;
  padding: 12px 20px;
  border-radius: 7px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  transition:
    opacity 0.15s,
    transform 0.15s;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
.loading {
  padding: 25px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 22px;
  }
  .brand strong {
    font-size: 25px;
  }
  .header-actions {
    gap: 22px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero-benefits {
    gap: 15px;
    max-width: 75%;
  }
  .steps {
    gap: 20px;
  }
  .steps-heading {
    display: none;
  }
  .step:not(:last-child):after {
    right: -15px;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .featured .product-grid .product-card:nth-child(n + 5) {
    display: none;
  }
  .product-photo {
    height: 175px;
  }
}
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .container {
    width: 94%;
  }
  .topline {
    display: none;
  }
  .header {
    background: linear-gradient(100deg, #173e73, #073677);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 1px 16px;
  }
  .brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .brand strong {
    font-size: 22px;
    letter-spacing: -0.8px;
  }
  .brand em {
    color: white;
  }
  .brand small {
    font-size: 12px;
    margin-top: 5px;
  }
  .mobile-logo {
    display: block;
    width: 39px;
    height: 39px;
    stroke-width: 2.2;
  }
  .header-actions {
    gap: 24px;
  }
  .header-actions svg {
    height: 28px;
    width: 28px;
    margin: 0;
  }
  .header-actions small,
  .desktop-favorite {
    display: none !important;
  }
  .header-actions .cart-count {
    min-width: 21px;
    min-height: 21px;
    font-size: 12px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    height: 47px;
    border-radius: 10px;
  }
  .search input {
    font-size: 16px;
    padding: 10px;
  }
  .search > svg {
    width: 23px;
    color: #071b3a;
  }
  .search button {
    border-left: 1px solid var(--line);
    padding-left: 12px;
  }
  .category-bar {
    border: 0;
  }
  .category-bar > .container {
    height: 108px;
    gap: 15px;
    padding-block: 13px;
    align-items: stretch;
  }
  .category-bar button {
    flex-direction: column;
    gap: 6px;
    min-width: 57px;
    font-size: 12px;
    padding: 0;
    font-weight: 600;
  }
  .category-bar button:first-child {
    display: none;
  }
  .category-picture {
    display: grid;
    place-items: center;
    border: 1px solid #dee4ed;
    border-radius: 50%;
    width: 53px;
    height: 53px;
    padding: 8px;
    background: #fff;
    font-size: 27px;
  }
  .category-picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero {
    width: 94%;
    margin: 0 auto;
    border-radius: 9px;
    height: 245px;
    background-image: url("/assets/hero-mobile.png");
    background-position: center;
    background-color: #eaf3fc;
  }
  .hero-content {
    width: 100%;
    padding: 22px 16px;
  }
  .hero-tag,
  .hero h1,
  .hero h2,
  .hero-seal,
  .banner-dots {
    display: none;
  }
  .mobile-hero-kicker {
    display: block;
    font-size: 15px;
    margin: 0 0 8px;
    font-weight: 600;
  }
  .mobile-headline {
    display: block;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -1.8px;
    line-height: 1.2;
  }
  .mobile-hero-copy {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    margin: 11px 0;
  }
  .hero-benefits {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 6px;
    background: none;
    margin-top: 20px;
  }
  .hero-benefits span {
    font-size: 9px;
    gap: 3px;
    background: #f7fbffcc;
    border-radius: 20px;
    padding: 5px 7px;
  }
  .hero-benefits small {
    display: none;
  }
  .hero-benefits svg {
    width: 18px;
    height: 18px;
  }
  .hero-benefits span:first-child b {
    font-size: 0;
  }
  .hero-benefits span:first-child b:before {
    content: "견적 확인";
    font-size: 9px;
  }
  .hero-benefits span:nth-child(2) b {
    font-size: 0;
  }
  .hero-benefits span:nth-child(2) b:before {
    content: "믿을 수 있는 대행";
    font-size: 9px;
  }
  .hero-benefits span:nth-child(3) b {
    font-size: 0;
  }
  .hero-benefits span:nth-child(3) b:before {
    content: "안전한 배송";
    font-size: 9px;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 9px;
    border: 1px solid var(--line);
    margin-block: 12px 22px;
  }
  .step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .step b {
    font-size: 12px;
    color: var(--navy);
  }
  .step p {
    font-size: 10px;
    line-height: 1.65;
    margin-top: 5px;
    word-break: keep-all;
  }
  .step-icon {
    width: 47px;
    height: 47px;
  }
  .step-icon svg {
    width: 25px;
    height: 25px;
  }
  .step:nth-child(2) .step-icon {
    color: var(--red);
    background: #ffe8ed;
  }
  .step:nth-child(4) .step-icon {
    color: #289d70;
    background: #e1f5ea;
  }
  .step:nth-child(5) .step-icon {
    color: #8839c4;
    background: #f2e6fc;
  }
  .step:not(:last-child):after {
    right: -9px;
    top: 48px;
    font-size: 22px;
  }
  .section-heading {
    gap: 7px;
    margin-bottom: 13px;
  }
  .section-heading h2 {
    font-size: 23px;
    letter-spacing: -1px;
  }
  .featured .section-heading p {
    display: none;
  }
  .section-heading > .text-button {
    font-size: 13px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    border-radius: 8px;
    padding: 9px;
  }
  .product-photo {
    height: 160px;
  }
  .product-name {
    font-size: 13px;
    min-height: 38px;
    font-weight: 600;
    margin-top: 8px;
  }
  .product-size {
    font-size: 11px;
  }
  .product-price {
    font-size: 22px;
    color: var(--red);
    margin-bottom: 7px;
  }
  .product-rating {
    font-size: 10px;
  }
  .product-fee {
    font-size: 9px;
    padding: 5px;
  }
  .product-buttons {
    gap: 4px;
  }
  .product-buttons button {
    padding: 8px 2px;
    font-size: 10px;
  }
  .product-buttons .secondary {
    display: none;
  }
  .product-buttons .primary {
    width: 100%;
  }
  .featured .product-card:nth-child(n + 5) {
    display: none;
  }
  .promotions {
    grid-template-columns: 1fr;
    margin-top: 15px;
    gap: 8px;
  }
  .promotions button {
    padding: 13px;
    gap: 14px;
  }
  .promo-icon {
    width: 40px;
    height: 40px;
    font-size: 23px;
  }
  .promotions b {
    font-size: 14px;
  }
  .promotions small {
    font-size: 11px;
  }
  .catalog {
    padding-top: 25px;
  }
  .catalog .section-heading {
    flex-wrap: wrap;
  }
  .catalog .section-heading select {
    font-size: 12px;
    padding: 6px;
  }
  .catalog .section-heading h2 {
    font-size: 21px;
  }
  #product-count {
    font-size: 11px;
  }
  .sample-note {
    font-size: 10px;
    line-height: 1.6;
  }
  .footer {
    padding-bottom: 95px;
    margin-top: 20px;
    font-size: 11px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    border-top: 1px solid var(--line);
    background: #fffffffa;
    justify-content: space-around;
    padding: 9px 4px max(10px, env(safe-area-inset-bottom));
    height: 70px;
    backdrop-filter: blur(8px);
  }
  .bottom-nav > a,
  .bottom-nav > button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    position: relative;
  }
  .bottom-nav svg {
    width: 25px;
    height: 25px;
  }
  .bottom-nav .cart-count {
    right: 7px;
    top: -3px;
  }
  .bottom-nav a.active {
    color: var(--blue);
    font-weight: bold;
  }
  .bottom-nav a.active svg {
    fill: #dceaff;
  }
  .page {
    padding-top: 22px;
    min-height: 55vh;
  }
  .page h1 {
    font-size: 24px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .panel {
    padding: 17px;
    border-radius: 8px;
  }
  .cart-row {
    gap: 10px;
  }
  .cart-row img {
    width: 65px;
    height: 70px;
  }
  .cart-row h3 {
    font-size: 12px;
  }
  .cart-row .product-price {
    font-size: 16px;
  }
  .form-grid input,
  .form-grid textarea,
  .form-grid select {
    font-size: 16px;
    padding: 10px;
  }
  dialog {
    padding: 23px 18px;
    width: 95vw;
    max-height: 85dvh;
  }
  #dialog-body h2 {
    font-size: 21px;
  }
  .detail-photo {
    height: 210px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
  }
  .table-scroll table {
    font-size: 12px;
  }
  th,
  td {
    padding: 10px;
  }
  .tabs {
    gap: 5px;
  }
  .tabs button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions button {
    flex: 1;
  }
  #toast {
    bottom: 83px;
    font-size: 12px;
  }
  #connection-status {
    bottom: 78px;
    font-size: 11px;
  }
  .order-line {
    font-size: 12px;
  }
  .steps-heading {
    display: none;
  }
  .cart-row .danger {
    font-size: 11px;
    padding: 6px;
  }
}
@media (max-width: 370px) {
  .brand strong {
    font-size: 19px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-actions {
    gap: 14px;
  }
  .mobile-headline {
    font-size: 29px;
  }
  .product-photo {
    height: 130px;
  }
  .product-name {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .hero-benefits span {
    font-size: 8px;
    padding: 4px;
  }
  .hero-benefits svg {
    width: 16px;
  }
}
@media (min-width: 1151px) {
  .product-photo {
    height: 105px;
  }
  .product-name {
    min-height: 28px;
    margin-top: 6px;
  }
  .product-size {
    min-height: 14px;
    margin-bottom: 3px;
  }
  .product-price {
    font-size: 19px;
    line-height: 24px;
    margin-bottom: 4px;
  }
  .product-fee {
    padding: 4px 6px;
    min-height: 23px;
  }
  .product-buttons {
    margin-top: 5px;
  }
  .hero-benefits {
    width: 740px;
    justify-content: space-between;
  }
  .product-buttons .secondary {
    color: var(--red);
    border-color: var(--red);
  }
}
@media (max-width: 767px) {
  .header-inner {
    padding-block: 12px;
    gap: 10px;
  }
  .brand strong {
    font-size: 20px;
  }
  .brand small {
    font-size: 10px;
  }
  .mobile-logo {
    width: 32px;
    height: 32px;
  }
  .search {
    height: 39px;
  }
  .search input {
    font-size: 14px;
  }
  .category-bar > .container {
    height: 80px;
    padding-block: 9px;
  }
  .category-picture {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }
  .category-bar button {
    font-size: 11px;
    min-width: 55px;
    gap: 4px;
  }
  .hero {
    height: 175px;
  }
  .hero-content {
    padding: 17px 14px;
  }
  .mobile-hero-kicker {
    font-size: 13px;
    margin-bottom: 5px;
  }
  .mobile-headline {
    font-size: 28px;
  }
  .mobile-hero-copy {
    font-size: 11px;
    margin-block: 8px;
    line-height: 1.5;
  }
  .hero-benefits {
    margin-top: 9px;
    gap: 3px;
  }
  .hero-benefits span {
    padding: 4px 5px;
  }
  .steps {
    padding-block: 12px;
  }
  .step p {
    font-size: 9px;
  }
  .step-icon {
    width: 42px;
    height: 42px;
  }
  .product-photo {
    height: 125px;
  }
  .product-name {
    min-height: 0;
    font-size: 12px;
    margin-top: 5px;
  }
  .product-size {
    font-size: 10px;
    min-height: 13px;
    margin-bottom: 3px;
  }
  .product-fee {
    display: none;
  }
  .product-price {
    font-size: 21px;
    margin-bottom: 3px;
  }
  .product-rating {
    font-size: 9px;
  }
  .product-buttons button {
    padding: 7px 2px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
}
@media (max-width: 767px) {
  .header-inner {
    padding-block: 8px;
    gap: 5px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    margin-top: 1px;
    font-size: 9px;
  }
  .search {
    height: 32px;
  }
  .search input {
    font-size: 13px;
  }
  .header-actions {
    gap: 17px;
  }
  .header-actions svg {
    width: 25px;
    height: 25px;
  }
  .category-bar > .container {
    height: 68px;
    padding-block: 6px;
    gap: 12px;
  }
  .category-bar button {
    flex-shrink: 0;
    min-width: 57px;
  }
  .category-picture {
    width: 39px;
    height: 39px;
    font-size: 24px;
  }
  .hero {
    height: 150px;
  }
  .hero-content {
    padding: 13px;
  }
  .mobile-headline {
    font-size: 27px;
  }
  .mobile-hero-kicker {
    font-size: 12px;
  }
  .mobile-hero-copy {
    font-size: 10px;
    margin-block: 6px;
  }
  .hero-benefits {
    margin-top: 7px;
  }
  .hero-benefits span {
    font-size: 8px;
  }
  .steps {
    padding: 10px 7px;
    margin-bottom: 18px;
  }
  .step-icon {
    width: 33px;
    height: 33px;
  }
  .step-icon svg {
    width: 22px;
    height: 22px;
  }
  .step-icon.money {
    font-size: 26px;
  }
  .step {
    gap: 5px;
  }
  .step b {
    font-size: 10px;
  }
  .step p {
    font-size: 9px;
    line-height: 1.45;
  }
  .step:not(:last-child):after {
    top: 38px;
    right: -8px;
  }
  .product-photo {
    height: 110px;
  }
  .bottom-nav {
    height: 58px;
    padding: 6px 4px max(7px, env(safe-area-inset-bottom));
  }
  .bottom-nav svg {
    width: 22px;
    height: 22px;
  }
  .bottom-nav > a,
  .bottom-nav > button {
    font-size: 11px;
    gap: 3px;
  }
  .product-name {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .header-inner {
    padding-block: 6px;
  }
  .category-bar > .container {
    height: 66px;
  }
  .hero {
    height: 140px;
  }
  .hero-content {
    padding: 11px 12px;
  }
  .mobile-headline {
    font-size: 26px;
  }
  .mobile-hero-kicker {
    font-size: 11px;
  }
  .hero-benefits span {
    padding: 3px 5px;
  }
  .steps {
    padding: 8px 7px;
    margin-top: 8px;
    margin-bottom: 16px;
    align-items: stretch;
  }
  .step {
    gap: 4px;
    justify-content: flex-start;
  }
  .step b {
    line-height: 13px;
  }
  .step p {
    line-height: 12px;
    margin-top: 3px;
  }
  .product-photo {
    height: 100px;
  }
  .product-size {
    display: none;
  }
  .product-rating {
    order: 5;
    margin-bottom: 0;
  }
  .product-price {
    order: 4;
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 24px;
  }
  .product-name {
    min-height: 30px;
  }
  .product-buttons {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 76px;
    margin: 0;
  }
  .product-buttons button {
    padding: 7px 2px;
    font-size: 10px;
  }
  .product-card {
    padding-bottom: 12px;
  }
  .product-card .product-rating {
    max-width: calc(100% - 75px);
    white-space: nowrap;
    font-size: 8px;
  }
  .product-card .product-rating span {
    letter-spacing: 0;
  }
}
@media (max-width: 767px) {
  .cart-row {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .cart-row img {
    grid-row: 1/3;
  }
  .cart-row .row-price {
    grid-column: 2;
    font-size: 13px;
  }
  .cart-row > .danger {
    grid-row: 1/3;
    grid-column: 3;
  }
  .cart-row-content {
    min-width: 0;
  }
}

.admin-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0;
}
.admin-sort[hidden] {
  display: none;
}
.admin-sort select {
  width: auto;
}
tr.row-selected td {
  background: #eaf3ff;
}
tr.row-selected td:first-child {
  box-shadow: inset 3px 0 #125ca3;
}
[role="button"]:focus-visible {
  outline: 3px solid #1261ad;
  outline-offset: 2px;
}
