body.products-page .site-main {
  padding-top: 80px;
  background:
    radial-gradient(
      circle at top left,
      rgba(233, 121, 34, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, #efe4d5 0%, #f7efe5 42%, #ead8c4 100%);
}

.products-hero {
  min-height: clamp(430px, 52vh, 620px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(98, 63, 38, 0.92), rgba(52, 39, 29, 0.94)),
    #5f3f29;
}

.products-hero.has-image > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 29, 21, 0.78), rgba(42, 29, 21, 0.2)),
    linear-gradient(180deg, rgba(42, 29, 21, 0.16), rgba(42, 29, 21, 0.42));
}

.products-hero:not(.has-image) .products-hero-overlay {
  background:
    radial-gradient(
      circle at 18% 35%,
      rgba(233, 121, 34, 0.26),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(95, 63, 41, 0.95), rgba(42, 31, 25, 0.96));
}

.products-hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.products-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.products-hero-description {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
}

.products-page-section {
  padding: 74px 0 96px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 241, 0.78),
      rgba(239, 225, 209, 0.92)
    ),
    #ead8c4;
}

.products-page-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.product-card {
  min-height: 100%;
  border: 1px solid rgba(92, 62, 41, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: #fffaf3;
  box-shadow: 0 14px 34px rgba(76, 48, 30, 0.12);
  display: flex;
  flex-direction: column;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(233, 121, 34, 0.28);
  box-shadow: 0 22px 52px rgba(76, 48, 30, 0.2);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e9d9c6, #f9efe5);
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-card-body {
  flex: 1;
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.product-card-sku {
  height: 18px;
  margin-bottom: 9px;
  color: #c65f1c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  overflow: hidden;
}

.product-card h2 {
  min-height: 58px;
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card h2 a {
  color: #2f251f;
  text-decoration: none;
  transition: color 220ms ease;
}

.product-card h2 a:hover {
  color: #e97922;
}

.product-card p {
  min-height: 68px;
  margin: 0 0 18px;
  color: rgba(51, 40, 32, 0.74);
  font-size: 14px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(92, 62, 41, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card-footer strong {
  color: #4f3424;
  font-size: 16px;
  font-weight: 900;
}

.product-card-footer a {
  color: #e97922;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.products-pagination {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.products-pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4f3424;
  background: #fffaf3;
  box-shadow: 0 10px 28px rgba(76, 48, 30, 0.11);
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.products-pagination a:hover,
.products-pagination a.active {
  color: #fff;
  background: #e97922;
  transform: translateY(-2px);
}

.products-empty {
  min-height: 220px;
  padding: 52px 24px;
  border-radius: 22px;
  background: #fffaf3;
  text-align: center;
  box-shadow: 0 14px 34px rgba(76, 48, 30, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.products-empty h2 {
  margin: 0 0 8px;
  color: #2f251f;
  font-size: 28px;
}

.products-empty p {
  margin: 0;
  color: rgba(51, 40, 32, 0.68);
}

.product-not-found {
  min-height: 420px;
  padding: 130px 20px 80px;
  text-align: center;
  background: #ead8c4;
}

.product-not-found h1 {
  margin: 0 0 18px;
  color: #2f251f;
  font-size: 40px;
}

.product-not-found a {
  color: #e97922;
  font-weight: 900;
}

.product-detail-hero,
.product-detail-content-section,
.related-products-section {
  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 241, 0.82),
      rgba(239, 225, 209, 0.96)
    ),
    #ead8c4;
}

.product-detail-hero {
  padding: 80px 0 70px;
}

.product-detail-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.product-detail-main-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fffaf3;
  box-shadow: 0 18px 45px rgba(76, 48, 30, 0.16);
}

.product-detail-main-image img,
.product-detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.product-detail-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fffaf3;
  cursor: pointer;
}

.product-detail-thumbs button.active {
  border-color: #e97922;
}

.product-detail-info,
.product-detail-content {
  border-radius: 24px;
  background: #fffaf3;
  box-shadow: 0 18px 45px rgba(76, 48, 30, 0.14);
}

.product-detail-info {
  padding: 36px;
}

.product-detail-category {
  margin-bottom: 14px;
  color: #e97922;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
}

.product-detail-info h1,
.product-detail-content h2,
.related-products-heading h2 {
  color: #2f251f;
}

.product-detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.product-detail-sku {
  margin-bottom: 16px;
  color: rgba(51, 40, 32, 0.58);
  font-weight: 700;
}

.product-detail-price {
  margin-bottom: 22px;
  color: #e97922;
  font-size: 30px;
  font-weight: 900;
}

.product-detail-short {
  margin: 0 0 26px;
  color: rgba(51, 40, 32, 0.74);
  font-size: 16px;
  line-height: 1.7;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-contact-btn,
.product-back-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-contact-btn {
  color: #fff;
  background: #e97922;
}

.product-back-btn {
  color: #4f3424;
  background: #ead8c4;
}

.product-detail-content-section {
  padding: 0 0 70px;
}

.product-detail-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px;
}

.product-detail-content h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.product-content-html {
  color: #332820;
  font-size: 16px;
  line-height: 1.75;
}

.product-content-html img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.related-products-section {
  padding: 0 0 80px;
}

.related-products-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

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

.related-products-heading h2 {
  margin: 0;
  font-size: 30px;
}

.related-products-heading a {
  color: #e97922;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 991px) {
  body.products-page .site-main {
    padding-top: 60px;
  }

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

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

  .product-card-body {
    min-height: 240px;
  }
}

@media (max-width: 575px) {
  .products-hero-content,
  .products-page-container,
  .product-detail-container,
  .product-detail-content,
  .related-products-container {
    width: min(100% - 28px, 1180px);
  }

  .products-hero {
    min-height: 340px;
  }

  .products-hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .products-page-section,
  .product-detail-hero {
    padding: 46px 0;
  }

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

  .product-card-body,
  .product-card h2,
  .product-card p {
    min-height: auto;
  }

  .product-detail-info,
  .product-detail-content {
    padding: 24px;
  }

  .product-detail-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
