.product-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 16px 70px;
}

.crumbs {
  margin: 12px 0 28px;
  color: #6b7280;
  font-size: 14px;
}

.crumbs a {
  color: #111827;
  text-decoration: none;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 42px;
  align-items: start;
}

.gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  background: #f7f8f9;
  border: 1px solid #e6ebef;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 24, 39, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111827;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  z-index: 2;
}

.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.gallery-arrow:hover {
  background: #f2b705;
}

.zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(17, 24, 39, .35);
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}

.zoom-lens.active { opacity: 1; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumbs button {
  aspect-ratio: 1;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

.thumbs button.active {
  border-color: #f2b705;
  box-shadow: 0 0 0 2px rgba(242,183,5,.22);
}

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

.meta {
  padding-top: 8px;
}

.title {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #f2b705;
}

.stars svg {
  width: 19px;
  height: 19px;
}

.muted {
  color: #6b7280;
}

.price {
  margin: 12px 0 4px;
}

.now {
  font-size: 28px;
  font-weight: 900;
}

.product-short {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  background: #0f172a;
  color: #fff;
}

.trust {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.trust .i {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: #fff;
}

.trust .i > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f2b705;
  flex: 0 0 auto;
}

.trust .i > span img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0);
}

.tabs {
  margin-top: 18px;
  border-top: 1px solid #e1e6eb;
  padding-top: 18px;
}

.kicker {
  color: #111827;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tab-panel {
  color: #2c3642;
  line-height: 1.72;
}

.product-help {
  margin-top: 38px;
}

.product-help .card {
  padding: 18px;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: #fff;
}

.help-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-wide-slideshow {
  position: relative;
  margin: 36px calc(50% - 50vw) 0;
  height: clamp(420px, 72vw, 900px);
  overflow: hidden;
  background: #f4f6f8;
}

.wide-track,
.wide-slide {
  position: absolute;
  inset: 0;
}

.wide-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .75s ease, transform 1.1s ease;
}

.wide-slide.active {
  opacity: 1;
  transform: scale(1);
}

.wide-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: clamp(18px, 3vw, 42px);
}

.wide-slide:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.14) 58%, rgba(0,0,0,.04));
  z-index: 1;
}

.wide-caption {
  position: absolute;
  left: clamp(22px, 7vw, 110px);
  bottom: clamp(28px, 8vw, 110px);
  z-index: 2;
  width: min(560px, calc(100% - 44px));
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background: rgba(12,16,22,.55);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.wide-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2b705;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.wide-caption h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.wide-caption p {
  margin: 0;
  max-width: 46rem;
  color: rgba(255,255,255,.86);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.65;
}

.wide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  padding: 0 0 3px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.wide-arrow.prev { left: 22px; }
.wide-arrow.next { right: 22px; }

.wide-arrow:hover {
  background: #0f172a;
}

.style-tiles {
  height: clamp(560px, 72vw, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  padding: clamp(18px, 3vw, 36px);
  background: #eef2f6;
}

.style-tiles .wide-track {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.12);
}

.style-tiles .wide-slide img {
  padding: clamp(18px, 4vw, 54px);
}

.style-tiles .wide-slide:before {
  display: none;
}

.style-tiles .wide-caption {
  left: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  width: min(430px, calc(100% - 36px));
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.88);
  color: #0f172a;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
}

.style-tiles .wide-caption p {
  color: #475569;
}

.wide-tile-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wide-tile-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 112px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.wide-tile-nav button.active,
.wide-tile-nav button:hover {
  border-color: #0f172a;
  box-shadow: 0 18px 42px rgba(15,23,42,.14);
}

.wide-tile-nav img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
}

.wide-tile-nav span {
  justify-self: end;
  align-self: start;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .style-tiles {
    grid-template-columns: 1fr;
    height: auto;
  }

  .style-tiles .wide-track {
    min-height: 440px;
  }

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

  .wide-tile-nav button {
    grid-template-columns: 1fr auto;
  }
}

.product-search {
  display: flex;
  align-items: center;
  margin-left: 20px;
  gap: 5px;
}

.product-search input {
  width: auto;
  min-width: 180px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.product-search button {
  padding: 9px 12px;
  border-radius: 4px;
  border: 0;
  background: #ffc107;
  color: #111;
  cursor: pointer;
  font-weight: 800;
}

.mobile-search {
  width: 100%;
  margin: 18px 0 0;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.search-card {
  display: block;
  min-height: 100%;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.search-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15,23,42,.10);
}

.search-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f7f8f9;
  border-radius: 16px;
  padding: 28px;
}

.search-card div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 8px 4px;
  text-align: center;
}

.search-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #111827;
}

.search-card .view-more {
  margin: 14px auto 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.search-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.search-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.search-pagination a.active,
.search-pagination a:hover {
  border-color: #f2b705;
  background: #f2b705;
  color: #111;
}

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-main {
    min-height: 360px;
  }

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

@media (max-width: 560px) {
  .search-results {
    grid-template-columns: 1fr;
  }
}
