.product-page {
  background: #ffffff;
}

.products-hero {
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 80% 10%, rgba(77, 216, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #f7fdff, #ffffff 86%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a {
  color: #057da3;
}

.breadcrumb .lucide {
  width: 15px;
  height: 15px;
  color: #9fb7c6;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
}

.page-kicker {
  display: inline-flex;
  color: #067ca0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-hero-grid h1 {
  max-width: 760px;
  margin: 12px 0 14px;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.product-hero-grid p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.product-hero-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #cdeff8;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 250, 255, 0.95)),
    radial-gradient(circle at 82% 12%, rgba(0, 184, 230, 0.26), transparent 30%);
  box-shadow: var(--shadow-soft);
}

.product-hero-card span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 12px 24px rgba(0, 184, 230, 0.18);
}

.product-hero-card span:nth-child(1) {
  right: 34px;
  top: 28px;
}

.product-hero-card span:nth-child(2) {
  right: 82px;
  top: 70px;
  width: 42px;
  height: 42px;
}

.product-hero-card span:nth-child(3) {
  right: 24px;
  bottom: 42px;
  width: 54px;
  height: 54px;
}

.product-hero-card span:nth-child(4) {
  left: 28px;
  bottom: 32px;
  width: 22px;
  height: 22px;
}

.product-hero-card strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 180px;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.14;
}

.product-market {
  padding-bottom: 88px;
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box,
.sort-box {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid #cdeff8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-box {
  gap: 10px;
  padding: 0 16px;
}

.search-box i {
  color: var(--cyan);
}

.search-box input,
.sort-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.sort-box {
  gap: 10px;
  padding: 0 14px;
}

.sort-box span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}

.category-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #bfeefa;
  border-radius: 999px;
  color: #23506a;
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.category-chip.is-active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), #067ca0);
}

.market-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.market-meta p {
  margin: 0;
}

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

.market-card {
  overflow: hidden;
  border: 1px solid rgba(217, 237, 245, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.market-card[hidden] {
  display: none;
}

.market-cover {
  position: relative;
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(135deg, #071b33, #0b6285);
}

.market-cover::after {
  position: absolute;
  inset: auto -28px -54px auto;
  width: 160px;
  height: 160px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.cover-1 {
  background: linear-gradient(135deg, #07294b, #00a3cf);
}

.cover-2 {
  background: linear-gradient(135deg, #071b33, #2a8ca5);
}

.cover-3 {
  background: linear-gradient(135deg, #0b3156, #19bddb);
}

.cover-4 {
  background: linear-gradient(135deg, #082039, #4dd8ff);
}

.cover-5 {
  background: linear-gradient(135deg, #0d2849, #43b7c4);
}

.cover-6 {
  background: linear-gradient(135deg, #071b33, #1e8fb5);
}

.cover-top {
  display: flex;
  gap: 7px;
}

.cover-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.market-cover strong {
  position: relative;
  z-index: 2;
  max-width: 220px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.cover-lines {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  max-width: 76%;
}

.cover-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.cover-lines span:nth-child(2) {
  width: 72%;
}

.cover-lines span:nth-child(3) {
  width: 48%;
}

.market-card-body {
  padding: 18px;
}

.card-row,
.market-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-label {
  color: #587084;
  font-size: 0.76rem;
  font-weight: 800;
}

.market-card h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 1.03rem;
  line-height: 1.28;
}

.market-card p {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.market-card-footer strong {
  color: var(--navy);
  font-size: 1rem;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #057da3;
  font-size: 0.88rem;
  font-weight: 800;
}

.detail-link i {
  width: 15px;
  height: 15px;
}

.empty-state {
  padding: 46px 24px;
  border: 1px dashed #bfeefa;
  border-radius: var(--radius);
  text-align: center;
  background: #f7fdff;
}

.empty-state i {
  width: 36px;
  height: 36px;
  color: var(--cyan);
}

.empty-state h2 {
  margin: 10px 0 6px;
  color: var(--navy);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.custom-product-cta {
  padding-top: 0;
}

.product-detail {
  background:
    radial-gradient(circle at 80% 10%, rgba(77, 216, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #f7fdff, #ffffff 78%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: start;
  gap: 28px;
}

.gallery-panel,
.checkout-card,
.info-card {
  border: 1px solid #cdeff8;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.gallery-panel {
  overflow: hidden;
}

.gallery-main {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, #071b33, #087a9d);
}

.gallery-main[data-active="1"] {
  background: linear-gradient(135deg, #0b3156, #00a3cf);
}

.gallery-main[data-active="2"] {
  background: linear-gradient(135deg, #071b33, #4dd8ff);
}

.gallery-category {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-main h1 {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 20px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.gallery-dashboard {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: grid;
  width: 280px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-dashboard span {
  min-height: 92px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.gallery-dashboard span:nth-child(1) {
  grid-column: 1 / -1;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #ffffff;
}

.gallery-thumbs button {
  min-height: 78px;
  padding: 10px;
  border: 1px solid #cdeff8;
  border-radius: var(--radius);
  color: var(--navy);
  background: #f7fdff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  color: #057da3;
  border-color: var(--cyan);
  background: #e9fbff;
}

.checkout-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.checkout-card h1 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.checkout-card p {
  margin: 0;
  color: var(--muted);
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  color: #057da3;
  font-weight: 800;
}

.checkout-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: #f4fbff;
}

.checkout-price span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-price strong {
  color: var(--navy);
  font-size: 1.45rem;
}

.checkout-card .button {
  width: 100%;
  margin-top: 10px;
}

.checkout-note {
  margin-top: 16px !important;
  font-size: 0.84rem;
}

.product-info {
  background: var(--soft);
}

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

.info-card {
  padding: 24px;
}

.info-card.wide {
  grid-column: span 1;
}

.info-card span {
  color: #067ca0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card h2 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1.2;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card ul,
.info-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #34465c;
}

.info-card ul {
  list-style: none;
}

.info-card ol {
  padding-left: 20px;
}

.info-card li {
  font-weight: 650;
}

.info-card ul li {
  display: flex;
  gap: 9px;
}

.info-card li i {
  color: var(--cyan);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 14px;
  border: 1px solid #d9edf5;
  border-radius: var(--radius);
  background: #ffffff;
}

.faq-list summary {
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin-top: 8px;
}

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

.market-card.compact .market-cover {
  min-height: 150px;
}

.market-card.compact p {
  min-height: 0;
}

@media (max-width: 1100px) {
  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .checkout-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .product-hero-grid,
  .market-toolbar,
  .info-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .product-hero-card {
    display: none;
  }

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

@media (max-width: 640px) {
  .products-hero,
  .product-detail {
    padding-top: 54px;
  }

  .product-hero-grid h1 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .market-meta {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .gallery-dashboard {
    right: 18px;
    bottom: 18px;
    width: 210px;
    opacity: 0.86;
  }

  .gallery-main h1 {
    font-size: 2.25rem;
  }

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