* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #e7e9ec;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: #007185;
  text-decoration: none;
}

a:hover {
  color: #c45500;
  text-decoration: underline;
}

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

button,
select,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-nav {
  display: grid;
  grid-template-columns: auto minmax(145px, auto) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: #131921;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 7px 8px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand:hover,
.delivery:hover,
.account-nav a:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.brand-accent {
  color: #f3a847;
}

.delivery,
.account-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid transparent;
  color: #fff;
}

.nav-small {
  color: #d5d9d9;
  font-size: 0.76rem;
  line-height: 1.1;
}

.nav-strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}

.search {
  display: grid;
  grid-template-columns: 92px minmax(140px, 1fr) 92px;
  min-height: 42px;
  border: 3px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.search:focus-within {
  border-color: #f3a847;
}

.search select {
  min-width: 0;
  border: 0;
  border-right: 1px solid #c7c7c7;
  background: #e6e6e6;
  color: #111827;
  padding: 0 8px;
}

.search input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: none;
}

.search button {
  border: 0;
  background: #febd69;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
}

.search button:hover {
  background: #f3a847;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-link {
  flex-direction: row !important;
  align-items: end;
  gap: 5px;
}

.cart-icon {
  font-size: 0.95rem;
  font-weight: 800;
}

.secondary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  padding: 0 18px;
  background: #232f3e;
  color: #fff;
  white-space: nowrap;
}

.secondary-nav a {
  padding: 9px 11px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.92rem;
}

.secondary-nav a:hover {
  border-color: #fff;
  text-decoration: none;
}

.menu-link {
  font-weight: 700;
}

main {
  max-width: 1500px;
  margin: 0 auto;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(300px, 1fr) 280px;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid #d5d9d9;
}

.gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 118px;
}

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

.thumb {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.thumb:hover,
.thumb.is-active {
  border-color: #f3a847;
  box-shadow: 0 0 0 2px rgba(243, 168, 71, 0.35);
}

.main-image {
  margin: 0;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border-radius: 4px;
  overflow: hidden;
}

.main-image img {
  width: min(100%, 620px);
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.main-image:hover img {
  transform: scale(1.025);
}

.main-image figcaption {
  color: #565959;
  font-size: 0.85rem;
  padding: 12px;
}

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

.brand-link {
  margin: 0 0 6px;
  color: #007185;
  font-size: 0.9rem;
}

h1 {
  margin: 0;
  color: #0f1111;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.92rem;
}

.stars,
.mini-stars {
  color: #ffa41c;
  letter-spacing: 0;
}

.divider {
  width: 1px;
  height: 16px;
  background: #d5d9d9;
}

.badge {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 9px;
  color: #fff;
  background: #232f3e;
  border-radius: 3px;
  font-size: 0.82rem;
}

hr {
  border: 0;
  border-top: 1px solid #e3e6e6;
  margin: 18px 0;
}

.deal-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  color: #fff;
  background: #cc0c39;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
}

.price {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.currency,
.cents {
  font-size: 1.05rem;
  vertical-align: super;
}

.list-price,
.tax-note {
  margin: 8px 0 0;
  color: #565959;
  font-size: 0.9rem;
}

.list-price span {
  color: #cc0c39;
}

.option-group {
  margin-top: 22px;
}

.option-group h2 {
  margin: 0 0 10px;
  color: #0f1111;
  font-size: 1rem;
}

.option-group h2 span {
  font-weight: 400;
}

.swatches,
.style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch,
.style-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.swatch:hover,
.style-card:hover,
.swatch.is-selected,
.style-card.is-selected {
  border-color: #007185;
  box-shadow: 0 0 0 2px rgba(0, 113, 133, 0.12);
}

.swatch input,
.style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border: 1px solid #8b949e;
  border-radius: 50%;
}

.graphite {
  background: #29313a;
}

.mist {
  background: #dbe7ef;
}

.coral {
  background: #d76f62;
}

.style-card {
  align-items: flex-start;
  flex-direction: column;
  min-width: 145px;
  gap: 2px;
}

.style-card span {
  font-size: 0.9rem;
}

.style-card strong {
  font-size: 0.92rem;
}

.quick-specs {
  margin-top: 24px;
}

.quick-specs dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e3e6e6;
  border-radius: 8px;
  background: #e3e6e6;
}

.quick-specs div {
  padding: 12px;
  background: #fff;
}

.quick-specs dt {
  font-weight: 700;
}

.quick-specs dd {
  margin: 4px 0 0;
  color: #565959;
}

.purchase-box {
  align-self: start;
  padding: 18px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 17, 17, 0.08);
}

.side-price {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
}

.side-price span {
  font-size: 1rem;
  vertical-align: super;
}

.shipping,
.location-note {
  margin: 14px 0 0;
  color: #0f1111;
  font-size: 0.92rem;
}

.location-note {
  color: #007185;
}

.stock {
  margin: 16px 0;
  color: #007600;
  font-size: 1.1rem;
}

.purchase-box label {
  display: block;
  margin-bottom: 6px;
  color: #0f1111;
  font-size: 0.9rem;
}

.purchase-box select {
  width: 100%;
  min-height: 36px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid #adb1b8;
  border-radius: 8px;
  background: #f0f2f2;
}

.btn {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 22px;
  color: #111827;
  cursor: pointer;
  font-weight: 500;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 7px rgba(15, 17, 17, 0.18);
}

.add-cart {
  background: #ffd814;
}

.add-cart:hover {
  background: #f7ca00;
}

.buy-now {
  background: #ffa41c;
}

.buy-now:hover {
  background: #fa8900;
}

.seller-info {
  display: grid;
  gap: 8px;
  margin: 18px 0 12px;
  font-size: 0.84rem;
}

.seller-info div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
}

.seller-info dt {
  color: #565959;
}

.seller-info dd {
  margin: 0;
}

.secure {
  margin: 12px 0;
  color: #007185;
  font-size: 0.9rem;
}

.gift-option {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: #111827 !important;
}

.gift-option input {
  margin-top: 4px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  padding: 24px;
}

.card,
.related-products {
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, 0.06);
}

.card {
  padding: 22px;
}

.card h2,
.related-products h2,
.footer-links h2 {
  margin: 0;
  color: #0f1111;
  font-size: 1.28rem;
}

table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e3e6e6;
  text-align: left;
  vertical-align: top;
}

th {
  width: 38%;
  background: #f7fafa;
  color: #0f1111;
  font-weight: 700;
}

.about-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.about-card li + li {
  margin-top: 10px;
}

.description {
  margin: 0 24px 24px;
}

.description p {
  max-width: 980px;
  margin: 14px 0 0;
}

.related-products {
  margin: 0 24px 28px;
  padding: 20px;
}

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

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

.related-card {
  padding: 14px;
  border: 1px solid #e3e6e6;
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(15, 17, 17, 0.12);
}

.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #f7fafa;
}

.related-card h3 {
  margin: 12px 0 8px;
  min-height: 48px;
  color: #0f1111;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
}

.mini-stars,
.related-price {
  margin: 6px 0 0;
}

.related-price {
  color: #b12704;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-footer {
  background: #131921;
  color: #fff;
}

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

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px;
}

.footer-links section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h2 {
  color: #fff;
  font-size: 1rem;
}

.footer-links a {
  color: #ddd;
  font-size: 0.9rem;
}

.footer-brand {
  margin: 0;
  padding: 18px;
  border-top: 1px solid #2f3b4b;
  color: #d5d9d9;
  text-align: center;
  font-size: 0.88rem;
}

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

  .delivery {
    display: none;
  }

  .product-shell {
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr);
  }

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

  .gallery {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .top-nav {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  .brand {
    justify-self: start;
  }

  .search {
    grid-template-columns: 74px minmax(0, 1fr) 76px;
    order: 3;
  }

  .account-nav {
    width: 100%;
    justify-content: space-between;
  }

  .account-nav a {
    min-height: 40px;
  }

  .secondary-nav {
    padding: 0 10px;
  }

  .product-shell,
  .details-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

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

  .thumbnail-column {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-image {
    min-height: auto;
  }

  .main-image img {
    width: min(100%, 480px);
  }

  .quick-specs dl {
    grid-template-columns: 1fr;
  }

  .description,
  .related-products {
    margin-inline: 16px;
  }

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

@media (max-width: 560px) {
  .search {
    grid-template-columns: 1fr;
    overflow: visible;
    border: 0;
    gap: 6px;
    background: transparent;
  }

  .search select,
  .search input,
  .search button {
    min-height: 40px;
    border: 0;
    border-radius: 5px;
  }

  .search input {
    padding: 0 10px;
  }

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

  .nav-strong {
    font-size: 0.82rem;
  }

  .product-shell {
    gap: 18px;
  }

  .swatches,
  .style-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .details-layout,
  .description,
  .related-products {
    margin: 0;
    border-radius: 0;
  }

  .details-layout {
    padding: 0;
    gap: 0;
  }

  .card,
  .related-products {
    border-left: 0;
    border-right: 0;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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