:root {
  --ink: #0f1111;
  --muted: #565959;
  --line: #d5d9d9;
  --surface: #ffffff;
  --canvas: #eaeded;
  --navy: #131921;
  --navy-2: #232f3e;
  --orange: #ff9900;
  --orange-dark: #c45500;
  --yellow: #ffd814;
  --yellow-hover: #f7ca00;
  --blue: #007185;
  --green: #007600;
  --danger: #b12704;
  --focus: #008296;
  --shadow: 0 2px 8px rgba(15, 17, 17, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  top: 12px;
}

.demo-strip {
  padding: 7px 16px;
  color: #fff;
  background: #37475a;
  text-align: center;
  font-size: 12px;
}

.demo-strip strong {
  color: #ffca66;
}

.top-nav {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 9px 20px;
  color: #fff;
  background: var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  background: var(--orange);
  transform: rotate(45deg);
}

.brand small {
  align-self: flex-end;
  margin-bottom: 2px;
  color: #c9d2dc;
  font-size: 10px;
  font-weight: 400;
}

.search-bar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 48px;
  min-height: 42px;
  border-radius: 5px;
  overflow: hidden;
}

.search-bar:focus-within {
  outline: 3px solid var(--orange);
}

.search-bar select,
.search-bar input,
.search-bar button {
  border: 0;
  border-radius: 0;
}

.search-bar select {
  padding: 0 10px;
  color: #3f4545;
  background: #f3f3f3;
  border-right: 1px solid #cdcdcd;
}

.search-bar input {
  min-width: 0;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-bar button {
  display: grid;
  place-items: center;
  color: #111;
  background: #febd69;
  font-size: 20px;
}

.nav-account,
.cart-link {
  color: #fff;
  white-space: nowrap;
}

.nav-account:hover,
.cart-link:hover {
  color: #fff;
  text-decoration: none;
  outline: 1px solid #fff;
}

.nav-account {
  padding: 6px;
  line-height: 1.2;
}

.nav-account small {
  display: block;
  font-size: 11px;
}

.nav-account strong {
  font-size: 13px;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: end;
  gap: 4px;
  min-width: 72px;
  padding: 7px 4px;
  font-weight: 700;
}

.cart-icon {
  font-size: 26px;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: 0;
  left: 23px;
  min-width: 20px;
  color: var(--orange);
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--navy-2);
  overflow-x: auto;
}

.sub-nav a {
  padding: 9px 10px;
  color: #fff;
  white-space: nowrap;
}

.sub-nav a:hover {
  color: #fff;
  text-decoration: none;
  outline: 1px solid #fff;
}

.page-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.content-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(560px, calc(100vh - 132px), 690px);
  color: #fff;
  background: #111 url("assets/catalog/image4.webp") center 46% / cover no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 8, 11, 0.48);
}

.hero-content {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 88px;
}

.hero-copy {
  max-width: 560px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.eyebrow {
  color: #ffbd59;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 500px;
  margin: 0 0 24px;
  color: #edf2f7;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #a88734;
  border-radius: 22px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  text-decoration: none;
}

.button:hover {
  color: var(--ink);
  background: var(--yellow-hover);
  text-decoration: none;
}

.button.secondary {
  border-color: #adb1b8;
  background: #fff;
}

.button.secondary:hover {
  background: #f7fafa;
}

.button.orange {
  border-color: #ff8f00;
  background: #ffa41c;
}

.button.wide {
  width: 100%;
}

.button.compact {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
}

.home-overlap {
  position: relative;
  z-index: 2;
  margin-top: -106px;
  padding-bottom: 36px;
}

.section-band {
  padding: 30px 0;
  background: #fff;
  border-top: 1px solid #e7e7e7;
}

.section-band.alt {
  background: #f7f8f8;
}

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

.section-title-row h2,
.category-card h2,
.product-page h1,
.cart-page h1,
.checkout-page h1 {
  margin: 0;
  letter-spacing: 0;
}

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

.category-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-card h2 {
  min-height: 54px;
  font-size: 21px;
  line-height: 1.25;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  margin: 14px 0;
  object-fit: cover;
  object-position: center;
}

.category-card a {
  font-size: 13px;
}

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

.home-categories .category-card {
  padding: 0 0 20px;
  overflow: hidden;
}

.category-image {
  display: block;
  overflow: hidden;
}

.home-categories .category-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  object-fit: cover;
  transition: transform 220ms ease;
}

.home-categories .category-card:hover .category-image img {
  transform: scale(1.025);
}

.category-card-copy {
  padding: 18px 20px 0;
}

.category-card-copy .category-kicker {
  display: block;
  margin-bottom: 5px;
  color: #c45500;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-card-copy h2 {
  min-height: 0;
  margin-bottom: 8px;
}

.category-card-copy p {
  min-height: 42px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e6e6;
}

.product-card-media {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 12px;
  background: #f7f8f8;
}

.product-card-media img {
  width: 100%;
  height: 245px;
  object-fit: contain;
}

.photo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border-radius: 3px;
  color: #fff;
  background: #cc0c39;
  font-size: 11px;
  font-weight: 700;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.product-card-title {
  display: -webkit-box;
  min-height: 62px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card-title:hover {
  color: var(--orange-dark);
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.stars {
  color: #de7921;
  letter-spacing: 0;
}

.review-count {
  color: var(--blue);
  font-size: 12px;
}

.price {
  margin: 2px 0;
  color: var(--ink);
  font-size: 28px;
}

.price sup {
  position: relative;
  top: -0.45em;
  font-size: 13px;
}

.delivery-copy {
  min-height: 42px;
  margin: 7px 0 12px;
  color: #3f4545;
  font-size: 12px;
}

.fast {
  color: var(--green);
  font-weight: 700;
}

.product-card .button {
  margin-top: auto;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.benefit {
  min-width: 0;
  padding: 24px;
  background: #fff;
  text-align: center;
}

.benefit strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

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

.browse-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 42px;
}

.filter-panel {
  align-self: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.filter-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.filter-panel button {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  color: var(--ink);
  background: none;
  text-align: left;
}

.filter-panel button:hover,
.filter-panel button.active {
  color: var(--orange-dark);
  text-decoration: underline;
}

.browse-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.browse-header h1 {
  margin: 0 0 4px;
  font-size: 26px;
}

.browse-header p {
  margin: 0;
  color: var(--muted);
}

.browse-header select {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #adb1b8;
  border-radius: 8px;
  background: #f0f2f2;
}

.breadcrumb {
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.product-page {
  padding-bottom: 44px;
}

.product-main {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 1fr) 290px;
  gap: 28px;
  padding: 18px 0 36px;
}

.gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.thumb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb-button {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid #a2a6ac;
  border-radius: 4px;
  background: #fff;
}

.thumb-button.active,
.thumb-button:hover {
  border: 2px solid var(--focus);
  box-shadow: 0 0 0 2px rgba(0, 130, 150, 0.18);
}

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

.main-image-wrap {
  display: grid;
  min-height: 520px;
  place-items: center;
  background: #fff;
}

.main-image-wrap img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.product-info h1 {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

.product-info .brand-line {
  display: block;
  margin-top: 5px;
}

.product-info hr {
  height: 1px;
  margin: 12px 0;
  border: 0;
  background: #e7e7e7;
}

.choice-label {
  margin: 14px 0 8px;
  font-weight: 700;
}

.style-choice {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 10px;
  border: 2px solid var(--orange-dark);
  border-radius: 4px;
  background: #fff;
}

.style-choice small {
  color: var(--muted);
}

.bullets {
  padding-left: 20px;
}

.bullets li {
  margin: 8px 0;
}

.buy-box {
  align-self: start;
  padding: 18px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
}

.buy-box .price {
  margin-top: 0;
}

.buy-box .stock {
  margin: 16px 0 10px;
  color: var(--green);
  font-size: 18px;
}

.buy-box label {
  display: block;
  margin: 10px 0 6px;
}

.buy-box select {
  min-width: 80px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #f0f2f2;
}

.buy-box .button + .button {
  margin-top: 10px;
}

.secure-line {
  margin: 15px 0 6px;
  color: var(--blue);
  font-size: 12px;
}

.detail-section {
  padding: 28px 0;
  border-top: 1px solid #bbbfbf;
  background: #fff;
}

.detail-section h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 9px;
  border-bottom: 1px solid #e7e7e7;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 35%;
  background: #f3f3f3;
}

.cart-page,
.checkout-page {
  min-height: 600px;
  padding: 28px 0 48px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.cart-list,
.cart-summary,
.checkout-panel,
.checkout-summary,
.empty-state,
.confirmation {
  background: #fff;
  border: 1px solid #e3e6e6;
}

.cart-list {
  padding: 22px;
}

.cart-list h1 {
  padding-bottom: 14px;
  border-bottom: 1px solid #e7e7e7;
  font-size: 28px;
  font-weight: 400;
}

.cart-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e7e7e7;
}

.cart-item img {
  width: 180px;
  height: 150px;
  object-fit: contain;
  background: #f7f8f8;
}

.cart-item h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 400;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.cart-actions select {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #f0f2f2;
}

.link-button {
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #ddd;
  color: var(--blue);
  background: none;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-summary,
.checkout-summary {
  align-self: start;
  padding: 20px;
}

.subtotal {
  margin: 0 0 16px;
  font-size: 18px;
}

.subtotal strong {
  font-size: 20px;
}

.empty-state {
  padding: 50px 30px;
  text-align: center;
}

.empty-state h1 {
  font-size: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.checkout-panel {
  padding: 24px;
}

.checkout-panel h1 {
  margin-bottom: 24px;
  font-size: 30px;
}

.checkout-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid #e7e7e7;
}

.step-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-2);
  font-weight: 700;
}

.checkout-step h2 {
  margin: 2px 0 14px;
  color: var(--orange-dark);
  font-size: 20px;
}

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

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #888c8c;
  border-radius: 4px;
}

.field input:focus,
.field select:focus {
  outline: 3px solid rgba(0, 130, 150, 0.25);
  border-color: var(--focus);
}

.checkout-summary h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 9px 0;
}

.summary-total {
  padding-top: 14px;
  border-top: 1px solid #e7e7e7;
  color: var(--danger);
  font-size: 20px;
  font-weight: 700;
}

.fine-print {
  color: var(--muted);
  font-size: 11px;
}

.confirmation {
  max-width: 760px;
  margin: 45px auto;
  padding: 36px;
}

.confirmation h1 {
  margin: 0 0 10px;
  color: var(--green);
}

.confirmation .order-number {
  display: inline-block;
  margin: 16px 0;
  padding: 8px 12px;
  background: #f0f2f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.site-footer {
  color: #fff;
  background: var(--navy-2);
}

.back-top {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  color: #fff;
  background: #37475a;
  text-align: center;
}

.back-top:hover {
  color: #fff;
  text-decoration: none;
  background: #485769;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 34px 0;
}

.footer-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 6px 0;
  color: #ddd;
  font-size: 12px;
}

.footer-note {
  padding: 18px;
  border-top: 1px solid #3a4553;
  color: #ddd;
  text-align: center;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 13px 18px;
  color: #fff;
  background: #1f2937;
  border-left: 5px solid var(--orange);
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .top-nav {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  .nav-account {
    display: none;
  }

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

  .product-main {
    grid-template-columns: minmax(340px, 1fr) minmax(360px, 1fr);
  }

  .buy-box {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .top-nav {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search-bar select {
    display: none;
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .hero {
    min-height: 470px;
    background-position: 58% center;
  }

  .hero::after {
    background: rgba(5, 8, 11, 0.58);
  }

  .hero-content {
    padding-top: 60px;
  }

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

  .home-categories {
    grid-template-columns: 1fr;
  }

  .benefit-strip {
    grid-template-columns: 1fr 1fr;
  }

  .browse-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .filter-panel h3 {
    display: none;
  }

  .filter-panel button {
    width: auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    white-space: nowrap;
  }

  .product-main {
    grid-template-columns: 1fr;
  }

  .buy-box {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .thumb-list {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
  }

  .main-image-wrap {
    min-height: 420px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 13px;
  }

  .demo-strip {
    text-align: left;
  }

  .top-nav {
    padding: 8px 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand small {
    display: none;
  }

  .cart-link {
    min-width: 58px;
  }

  .sub-nav {
    padding-left: 6px;
  }

  .hero {
    min-height: 440px;
  }

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

  .hero-copy {
    max-width: 95%;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 15px;
  }

  .home-overlap {
    margin-top: -66px;
  }

  .content-shell {
    width: calc(100% - 20px);
  }

  .category-grid,
  .product-grid,
  .benefit-strip,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card h2 {
    min-height: 0;
  }

  .product-card-media,
  .product-card-media img {
    min-height: 220px;
    height: 220px;
  }

  .browse-header {
    align-items: start;
    flex-direction: column;
  }

  .main-image-wrap {
    min-height: 330px;
  }

  .product-info h1 {
    font-size: 21px;
  }

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

  .cart-item img {
    width: 100px;
    height: 100px;
  }

  .cart-item-price {
    grid-column: 2;
  }

  .form-grid,
  .checkout-step {
    grid-template-columns: 1fr;
  }

  .step-number {
    margin-bottom: -4px;
  }
}
