:root {
  --ink: #1d1f21;
  --muted: #6b6f76;
  --line: #e8e5df;
  --soft: #f7f5f0;
  --paper: #ffffff;
  --accent: #0f8d7b;
  --accent-dark: #0b685b;
  --danger: #ba3b35;
  --nav: #202a3d;
  --nav-2: #121a2a;
  --shadow: 0 18px 45px rgba(23, 27, 35, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Frank Ruhl Libre", Georgia, serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 18px;
  background: #f3efe8;
  color: #1e1b1b;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav a,
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.tools {
  justify-content: flex-end;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 18px;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #eee;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 15, 19, 0.56), rgba(12, 15, 19, 0.08)),
    url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=2200&q=80") center 24% / cover;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 76px;
  color: white;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 520px;
  margin: 18px 0 30px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn.secondary {
  background: white;
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 58px auto;
}

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

.section h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
  font-family: Inter, sans-serif;
}

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

.product-card {
  position: relative;
  min-width: 0;
}

.product-card .image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--soft);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 9px;
  background: white;
  color: var(--danger);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.quick {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.product-card:hover .quick {
  opacity: 1;
  transform: translateY(0);
}

.product-title {
  min-height: 45px;
  margin: 12px 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-family: Inter, sans-serif;
}

.price {
  font-weight: 800;
}

.compare {
  color: #9a9a9a;
  text-decoration: line-through;
}

.save {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
}

.feature-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 46px;
  align-items: center;
  padding: 42px;
  background: #f6f3ee;
}

.feature-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.chip {
  min-width: 42px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-family: Inter, sans-serif;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.quantity {
  display: inline-grid;
  grid-template-columns: 38px 48px 38px;
  height: 40px;
  border: 1px solid var(--line);
  background: white;
}

.quantity button {
  border: 0;
  background: white;
  cursor: pointer;
}

.quantity span {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  font-family: Inter, sans-serif;
}

.promise-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.promise p {
  margin: 0;
  color: var(--muted);
  font-family: Inter, sans-serif;
  line-height: 1.6;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  padding: 36px;
  background: var(--ink);
  color: white;
}

.newsletter input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
}

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

.footer {
  margin-top: 60px;
  padding: 44px 40px 28px;
  background: #f6f4ef;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer h4 {
  margin: 0 0 14px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.footer a,
.footer p {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.page-title {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 28px;
}

.page-title h1 {
  margin: 0;
  font-size: 42px;
}

.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.field {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  color: var(--ink);
}

.product-detail {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 54px;
  align-items: start;
}

.product-media {
  min-width: 0;
}

.gallery-main {
  aspect-ratio: 4 / 5;
  background: var(--soft);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  overflow: hidden;
}

.thumb.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery {
  margin-top: 36px;
}

.detail-gallery .section-head {
  margin-bottom: 14px;
}

.detail-copy {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  line-height: 1.7;
}

.detail-gallery img {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.detail-info {
  position: sticky;
  top: 104px;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.05;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
  font-family: Inter, sans-serif;
}

.product-meta-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-meta-row span:first-child {
  background: #fff4f2;
  color: var(--danger);
  border-color: #f0cbc6;
}

.detail-block {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-block p,
.detail-block li {
  color: var(--muted);
  font-family: Inter, sans-serif;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.service-grid div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.service-grid svg {
  grid-row: 1 / span 2;
}

.service-grid strong {
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.service-grid span {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 13px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, sans-serif;
}

.size-table th,
.size-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.size-table th {
  background: var(--soft);
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-list div {
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
}

.review-list strong,
.review-list span {
  display: inline-block;
  margin-right: 10px;
  font-family: Inter, sans-serif;
}

.review-list span {
  color: #b38321;
}

.review-list p {
  margin: 8px 0 0;
}

/* Shoplinks-style storefront replica */
body {
  color: #545454;
  font-family: "Frank Ruhl Libre", Georgia, serif;
}

.topbar {
  min-height: 40px;
  background: #cf541b;
  color: #111;
  font-size: 14px;
  line-height: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  grid-template-columns: 46px 1fr 86px;
  min-height: 78px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
  backdrop-filter: none;
}

.brand {
  justify-self: center;
  color: #0b0b0b;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 0;
}

.mobile-menu {
  display: inline-flex;
}

.nav.primary {
  position: fixed;
  z-index: 60;
  top: 118px;
  bottom: 0;
  left: 0;
  display: none;
  width: min(320px, 82vw);
  padding: 28px 22px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-right: 1px solid #eee;
  background: #fff;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
}

.nav.primary.open {
  display: flex;
}

.tools {
  gap: 4px;
  justify-content: flex-end;
}

.currency,
.desktop-tool {
  display: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
}

.badge {
  top: 1px;
  right: -2px;
  background: #45877d;
}

.sale-banner {
  width: 100%;
  background: #f6edc8;
}

.sale-banner img {
  width: 100%;
  max-height: 224px;
  object-fit: cover;
}

.hero {
  display: none;
}

.section {
  width: 100%;
  margin: 54px auto;
  padding: 0 15px;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 42px;
  text-align: center;
}

.section-head h2 {
  width: 100%;
  text-align: center;
}

.section h2,
.page-title h1 {
  color: #111;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.view-more {
  color: #111;
  font-size: 16px;
  text-decoration: underline;
}

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

.product-card .image-wrap {
  aspect-ratio: 0.75;
  background: #f2f2f2;
}

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

.discount {
  top: 10px;
  right: 10px;
  left: auto;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0 7px;
  border-radius: 50%;
  background: #9e2840;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.quick-view {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #202020;
  color: white;
}

.quick-view svg {
  width: 18px;
  height: 18px;
}

.product-title {
  min-height: 52px;
  margin: 12px 0 8px;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.price-row {
  gap: 5px;
  color: #222;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 15px;
}

.price {
  font-weight: 400;
}

.compare {
  color: #777;
}

.save {
  flex-basis: 100%;
  color: #777;
  font-size: 14px;
}

.shoplinks-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 15px;
  background: #fff;
}

.shoplinks-feature img {
  aspect-ratio: 1;
}

.shoplinks-feature h2 {
  font-size: 28px;
  font-weight: 400;
}

.promise-band {
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 0;
  border: 0;
  text-align: center;
}

.newsletter {
  display: none;
}

.breadcrumb-bar {
  min-height: 54px;
  padding: 18px 0;
  background: #f4f4f4;
  color: #666;
}

.shoplinks-title {
  width: 100%;
  margin: 62px auto 42px;
  text-align: center;
}

.collection-toolbar {
  margin-bottom: 20px;
  color: #111;
  font-size: 16px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #111;
  border-radius: 3px;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 38px 0 0;
  color: #111;
  font-size: 16px;
}

.product-detail.shoplinks-product {
  width: 100%;
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.shoplinks-product .product-media {
  width: 100%;
}

.shoplinks-product .gallery-main {
  border: 0;
  aspect-ratio: auto;
}

.shoplinks-product .gallery-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.shoplinks-product .thumb-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 10px 15px 0;
}

.shoplinks-product .detail-info {
  position: static;
  padding: 26px 15px 0;
}

.shoplinks-product .detail-info h1 {
  margin-bottom: 16px;
  color: #222;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
}

.shoplinks-product .price-row {
  margin: 8px 0 18px;
  font-size: 20px;
}

.shoplinks-product .detail-block,
.shoplinks-product .detail-tabs {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

.option-label {
  margin: 18px 0 8px;
  color: #222 !important;
  font-size: 15px;
  line-height: 1.4 !important;
}

.chip {
  min-height: 38px;
  border-color: #d8d8d8;
  border-radius: 0;
  color: #333;
  font-family: "Frank Ruhl Libre", Georgia, serif;
}

.chip.active {
  border-color: #111;
  background: #111;
}

.quantity {
  grid-template-columns: 44px 54px 44px;
  height: 40px;
}

.shoplinks-product .btn {
  min-height: 48px;
  border-radius: 0;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0;
}

.shoplinks-product .btn.secondary {
  background: #fff;
}

.detail-tabs h2 {
  margin: 32px 0 18px;
  color: #222;
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.spec-table,
.size-table {
  width: 100%;
  border-collapse: collapse;
  color: #333;
}

.spec-table th,
.spec-table td,
.size-table th,
.size-table td {
  padding: 8px 7px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  text-align: left;
  font-weight: 400;
}

.spec-table th {
  width: 120px;
}

.size-table caption {
  margin: 20px 0 8px;
  text-align: left;
}

.size-table th {
  background: #fafafa;
}

.detail-gallery img {
  border: 0;
}

.footer {
  margin-top: 42px;
  padding: 34px 24px 24px;
  background: #f7f7f7;
}

.footer-inner {
  grid-template-columns: 1fr;
  gap: 22px;
}

.footer h4 {
  color: #222;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

.footer a,
.footer p {
  color: #555;
  font-family: "Frank Ruhl Libre", Georgia, serif;
}

.cart-layout,
.checkout-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.panel {
  border: 1px solid var(--line);
  background: white;
}

.panel-head,
.panel-body {
  padding: 18px;
}

.panel-head {
  border-bottom: 1px solid var(--line);
  font-family: Inter, sans-serif;
  font-weight: 800;
}

.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  font-family: Inter, sans-serif;
}

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

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 13px;
}

.checkout-form .full {
  grid-column: 1 / -1;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  background: #f1f4f7;
  color: #263142;
  font-family: Inter, sans-serif;
}

.admin-side {
  background: var(--nav);
  color: #dfe7ef;
  padding: 18px 16px;
}

.admin-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 22px;
  color: white;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: white;
  color: var(--danger);
  font-family: "Frank Ruhl Libre", serif;
  font-size: 11px;
  line-height: 1;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-nav button.active {
  background: var(--accent);
  color: white;
}

.admin-main {
  min-width: 0;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  background: white;
  border-bottom: 1px solid #dde4eb;
}

.admin-content {
  padding: 28px;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-title h1 {
  margin: 0;
  font-size: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.admin-card {
  background: white;
  border: 1px solid #e1e7ed;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(35, 46, 60, 0.04);
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  color: #6c7886;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e1e7ed;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.admin-table th {
  color: #627184;
  background: #f6f8fb;
  font-weight: 700;
}

.admin-table img {
  width: 48px;
  height: 58px;
  object-fit: cover;
}

.warehouse-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
}

.warehouse-summary div {
  padding: 18px;
  border-right: 1px solid #e1e7ed;
}

.warehouse-summary div:last-child {
  border-right: 0;
}

.warehouse-summary strong {
  display: block;
  font-size: 24px;
}

.warehouse-summary span {
  color: #6c7886;
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf1f5;
  color: #617085;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.live {
  background: #e7f7f3;
  color: var(--accent-dark);
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d8e0e8;
  border-radius: 3px;
  background: white;
  color: #273444;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.small-btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.small-btn.danger {
  border-color: #f1d3d0;
  color: var(--danger);
}

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

.admin-form label {
  display: grid;
  gap: 7px;
  color: #627184;
  font-size: 13px;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d8e0e8;
  border-radius: 3px;
  background: white;
}

.admin-form textarea {
  min-height: 92px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 19, 0.45);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  background: white;
  box-shadow: var(--shadow);
}

.profile-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-head img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.profile-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

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

.profile-grid .stat-card {
  padding: 14px;
}

.profile-grid .stat-card strong {
  font-size: 22px;
}

.profile-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.profile-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.media-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.import-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8f5f0;
}

.import-panel code {
  display: block;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.drawer-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: none;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-family: Inter, sans-serif;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.empty {
  padding: 44px;
  color: var(--muted);
  text-align: center;
  font-family: Inter, sans-serif;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .nav.primary {
    position: fixed;
    top: 112px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .nav.primary.open {
    display: flex;
  }

  .brand {
    justify-self: center;
    font-size: 24px;
  }

  .hero {
    min-height: 520px;
  }

  .product-grid,
  .promise-band,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-product,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .newsletter,
  .footer-inner,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: sticky;
    top: 0;
    z-index: 30;
  }

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

@media (max-width: 620px) {
  .section,
  .page-title,
  .product-detail,
  .cart-layout,
  .checkout-layout {
    width: min(100% - 28px, 1180px);
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-bottom: 44px;
  }

  .product-grid,
  .promise-band,
  .stats-grid,
  .checkout-form,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .feature-product,
  .newsletter {
    padding: 24px;
  }

  .cart-line {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .cart-line .line-total {
    grid-column: 2;
  }

  .admin-content {
    padding: 18px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final storefront overrides must stay after legacy responsive rules. */
main .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

main .section,
main .page-title,
main .product-detail {
  width: 100%;
}

main .product-detail.shoplinks-product {
  margin-top: 0;
}

main .feature-product.shoplinks-feature,
main .newsletter {
  grid-template-columns: 1fr;
}

main .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

main .section-head h2 {
  width: auto;
  margin-inline: auto;
  text-align: center;
}

main .product-card .price-row {
  display: block;
  line-height: 1.55;
}

main .product-card .price,
main .product-card .compare {
  display: inline;
  margin-right: 4px;
}

main .product-card .save {
  display: block;
}

@media (min-width: 760px) {
  .sale-banner img {
    max-height: 360px;
    object-fit: cover;
  }

  main .section {
    width: min(1198px, 100%);
    padding: 0 30px;
  }

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

  .product-detail.shoplinks-product {
    width: min(1198px, 100%);
  }

  .shoplinks-product .gallery-main,
  .shoplinks-product .detail-info {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .desktop-tool,
  .currency {
    display: inline-flex;
  }
}
