.esh-product-page {
  --product-ink: #183445;
  --product-muted: #667985;
  --product-line: #e2e9ed;
  --product-accent: #e58b22;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--product-ink);
}

.esh-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
  color: var(--product-muted);
  font-size: .85rem;
}

.esh-product-breadcrumb a,
.esh-product-section-heading > a,
.esh-product-seller-card a {
  color: #a65f0c;
  text-decoration: none;
}

.esh-product-breadcrumb a:hover,
.esh-product-section-heading > a:hover,
.esh-product-seller-card a:hover {
  text-decoration: underline;
}

.esh-product-seller-profile {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: 1rem 0 .35rem;
  padding: .85rem 1rem;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  background: #f8fafb;
}

.esh-product-seller-profile > i {
  margin-top: .2rem;
  color: var(--product-accent);
}

.esh-product-seller-copy {
  display: grid;
  gap: .2rem;
  color: var(--product-muted);
  font-size: .86rem;
}

.esh-product-seller-copy > strong {
  color: var(--product-ink);
  font-size: 1rem;
}

.esh-product-seller-copy > a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .2rem;
  color: #a65f0c;
  font-weight: 700;
  text-decoration: none;
}

.esh-product-seller-copy small,
.esh-product-seller-card > small {
  color: var(--product-muted);
  font-size: .74rem;
}

.esh-product-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--product-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(24 52 69 / 6%);
}

.esh-product-gallery { min-width: 0; }

.esh-product-main-media {
  display: grid;
  min-height: 360px;
  aspect-ratio: 1.1 / 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--product-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f8f9, #edf3f5);
}

.esh-product-main-media > img,
.esh-product-main-media > video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.esh-product-main-media [hidden] { display: none !important; }

.esh-product-no-image {
  display: grid;
  width: 100%;
  min-height: 360px;
  place-items: center;
  color: #9babb4;
  font-size: 5rem;
}

.esh-product-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  gap: .65rem;
  margin-top: .85rem;
  overflow-x: auto;
  padding: .15rem .1rem .5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.esh-product-thumbnail {
  display: grid;
  width: 68px;
  height: 68px;
  overflow: hidden;
  place-items: center;
  padding: 3px;
  border: 1px solid var(--product-line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 68px;
  scroll-snap-align: start;
}

.esh-product-thumbnail.is-active,
.esh-product-thumbnail:focus-visible {
  border-color: var(--product-accent);
  outline: 2px solid rgb(229 139 34 / 20%);
}

.esh-product-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.esh-product-video-thumb {
  color: var(--product-accent);
  font-size: 1.25rem;
}

.esh-product-summary { padding: .35rem 0; }

.esh-product-eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
  color: #a96516;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.esh-product-summary h1 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.esh-product-description {
  margin: .9rem 0 1.3rem;
  color: var(--product-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.esh-product-price {
  margin: 1.35rem 0 .55rem;
  color: #a95c06;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
}

.esh-product-price span {
  font-size: .95rem;
  font-weight: 700;
}

.esh-product-stock {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.3rem;
  font-size: .9rem;
  font-weight: 700;
}

.esh-product-stock.is-available { color: #188353; }
.esh-product-stock.is-unavailable { color: #96620f; }

.esh-product-facts {
  margin: 0 0 1.4rem;
  border-top: 1px solid var(--product-line);
}

.esh-product-facts > div,
.esh-product-specifications > div {
  display: grid;
  grid-template-columns: minmax(110px, .4fr) minmax(0, 1fr);
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--product-line);
}

.esh-product-facts dt,
.esh-product-specifications dt {
  color: var(--product-muted);
  font-weight: 600;
}

.esh-product-facts dd,
.esh-product-specifications dd {
  margin: 0;
  color: var(--product-ink);
  font-weight: 700;
}

.esh-product-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .75rem 1.15rem;
  border-radius: 9px;
  background: var(--product-accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.esh-product-button:hover {
  transform: translateY(-1px);
  background: #bd6d14;
  color: #fff;
}

.esh-product-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.esh-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.esh-product-actions > .esh-product-button,
.esh-product-actions form {
  flex: 0 1 auto;
}

.esh-product-actions form { margin: 0; }
.esh-product-shop-link { margin-top: 1rem; }
.esh-product-actions .esh-product-button {
  min-height: 38px;
  padding: .55rem .8rem;
  font-size: .86rem;
  margin: 0;
}
.esh-product-actions .esh-wishlist-form { display: inline-flex; }
.esh-wishlist-button { border: 1px solid var(--product-line); background: #fff; color: var(--product-ink); }
.esh-wishlist-button:hover { background: #f4f7f8; color: var(--product-ink); }
.esh-login-button { border: 1px solid var(--product-line); background: #fff; color: var(--product-ink); }
.esh-login-button:hover { background: #f4f7f8; color: var(--product-ink); }

.esh-product-action-status {
  min-height: 1.4em;
  margin: .6rem 0 0;
  color: #188353;
  font-size: .88rem;
}

.esh-product-seller {
  margin: 1rem 0 0;
  color: var(--product-muted);
  font-size: .9rem;
}

.esh-product-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .34fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.esh-product-details > div,
.esh-product-seller-card,
.esh-similar-products {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--product-line);
  border-radius: 16px;
  background: #fff;
}

.esh-product-details h2,
.esh-product-section-heading h2 {
  margin: 0;
  color: var(--product-ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.esh-product-specifications {
  margin: 1.1rem 0 0;
}

.esh-product-empty {
  margin: 1.1rem 0 0;
  color: var(--product-muted);
}

.esh-product-seller-card {
  align-self: start;
  color: var(--product-muted);
}

.esh-product-seller-card > i {
  margin-bottom: .8rem;
  color: var(--product-accent);
  font-size: 1.6rem;
}

.esh-product-seller-card h2 {
  overflow-wrap: anywhere;
  font-size: 1.15rem;
}

.esh-product-seller-card p { margin: .55rem 0 1rem; }

.esh-similar-products { margin-top: 1.5rem; }

.esh-product-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.esh-similar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.esh-similar-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.esh-similar-card:hover,
.esh-similar-card:focus-visible {
  border-color: var(--product-accent);
  color: inherit;
  text-decoration: none;
}

.esh-similar-image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #f3f6f7;
}

.esh-similar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esh-similar-card__details { display: block; padding: .8rem; }

.esh-similar-card__name {
  color: var(--product-ink);
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  margin: 0 0 .55rem;
  font-size: .9rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.esh-similar-card strong {
  color: #a95c06;
  font-size: .85rem;
}

.esh-product-not-found {
  max-width: 620px;
  margin: 3rem auto;
  padding: 3rem 1.5rem;
  border: 1px solid var(--product-line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.esh-product-not-found h1 { margin: 0 0 .7rem; }
.esh-product-not-found p { margin: 0 0 1.3rem; color: var(--product-muted); }

@media (max-width: 850px) {
  .esh-product-overview { grid-template-columns: minmax(0, 1fr); }
  .esh-product-details { grid-template-columns: minmax(0, 1fr); }
  .esh-similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .esh-product-page { padding: 1rem .85rem 2rem; }
  .esh-product-main-media,
  .esh-product-no-image { min-height: 260px; }
  .esh-product-overview { padding: 1rem; }
  .esh-product-section-heading { align-items: flex-start; flex-direction: column; }
  .esh-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
