.pradaya-product-page,
.pradaya-product-page main {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.34), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(234, 36, 39, 0.09), transparent 24%),
    linear-gradient(145deg, #eaf7ff 0%, #f8fcff 42%, #ffffff 70%, #e8f5ff 100%) !important;
}

.pradaya-product-showcase,
.pradaya-product-showcase * {
  box-sizing: border-box;
}

.pradaya-product-showcase {
  width: min(1540px, calc(100% - 1rem));
  margin: clamp(0.55rem, 1.6vw, 1.1rem) auto 1.6rem;
  padding: clamp(0.56rem, 1.1vw, 0.9rem);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(240, 249, 255, 0.72) 100%);
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(3, 70, 148, 0.11);
  overflow-x: clip;
  backdrop-filter: blur(14px);
}

.product-catalog-shell {
  display: grid;
  gap: 0.82rem;
}

.product-feature-slider {
  position: relative;
  border: 1px solid rgba(3, 70, 148, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  padding: clamp(0.35rem, 0.8vw, 0.55rem);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(3, 70, 148, 0.1);
}

.feature-track {
  position: relative;
  aspect-ratio: 1600 / 533;
  min-height: 240px;
  max-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
}

.feature-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.feature-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.feature-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #f8fafc;
  display: block;
  overflow: hidden;
}

.feature-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.feature-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 70, 148, 0.02) 0%, rgba(15, 23, 42, 0.12) 100%);
}

.feature-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #034694;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.feature-prev { left: clamp(0.85rem, 2vw, 1.35rem); }
.feature-next { right: clamp(0.85rem, 2vw, 1.35rem); }

.feature-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.85rem, 2vw, 1.25rem);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transition: width 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.feature-dot.is-active {
  background: #ea2427;
  width: 28px;
}

.product-premium-ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(3, 70, 148, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(232, 245, 255, 0.92) 100%);
  box-shadow: 0 12px 30px rgba(3, 70, 148, 0.08);
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #034694;
}

.product-premium-ticker::before,
.product-premium-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(44px, 8vw, 92px);
  pointer-events: none;
}

.product-premium-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.98) 0%, rgba(240, 249, 255, 0) 100%);
}

.product-premium-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(240, 249, 255, 0.98) 0%, rgba(240, 249, 255, 0) 100%);
}

.product-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 0.48rem 0;
  white-space: nowrap;
  animation: pradayaTicker 30s linear infinite;
  will-change: transform;
}

.product-ticker-track span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.68rem, 1.3vw, 0.78rem);
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  padding-inline: 1.4rem;
}

@keyframes pradayaTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.product-toolbar {
  display: grid;
  gap: 0.72rem;
  padding: clamp(0.7rem, 1.45vw, 0.95rem);
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(3, 70, 148, 0.06);
  backdrop-filter: blur(12px);
}

.product-search-wrap { width: 100%; }

.product-search-input {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.74);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  padding: 0.64rem 0.9rem;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-search-input:focus {
  border-color: #034694;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14), 0 12px 24px rgba(15, 23, 42, 0.05);
}

.product-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.category-pill {
  min-height: 38px;
  border: 1px solid rgba(3, 70, 148, 0.15);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  color: #17324d;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  padding: 0.48rem 0.82rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(3, 70, 148, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-pill:hover,
.category-pill:focus-visible {
  border-color: #034694;
  color: #034694;
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(3, 70, 148, 0.13);
  outline: none;
}

.category-pill.is-active {
  background: linear-gradient(135deg, #034694 0%, #0ea5e9 100%);
  border-color: rgba(3, 70, 148, 0.92);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(3, 70, 148, 0.22);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 255, 0.92) 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 0.5rem;
  display: grid;
  gap: 0.42rem;
  box-shadow: 0 12px 28px rgba(3, 70, 148, 0.078);
  cursor: zoom-in;
  opacity: 0;
  filter: saturate(0.96) blur(2px);
  animation: productCardIn 0.34s ease forwards;
  animation-delay: min(calc(var(--card-index, 0) * 34ms), 260ms);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, filter 0.24s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 16% 0%, rgba(14, 165, 233, 0.13), transparent 34%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(3, 70, 148, 0.2);
  box-shadow: 0 18px 38px rgba(3, 70, 148, 0.13);
  outline: none;
}

.product-card:hover::before,
.product-card:focus-visible::before { opacity: 1; }

@keyframes productCardIn {
  to { opacity: 1; filter: saturate(1) blur(0); }
}

.product-image-wrap {
  height: clamp(235px, 16vw, 315px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(224, 242, 254, 0.9), transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.product-image-wrap::after {
  content: 'Preview';
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(3, 70, 148, 0.76);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.product-card:hover .product-image-wrap::after,
.product-card:focus-visible .product-image-wrap::after {
  opacity: 1;
  transform: translateY(0);
}

.product-image-wrap img {
  max-width: calc(100% - 4px);
  max-height: calc(100% - 4px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.32s ease;
  will-change: transform;
  cursor: zoom-in;
}

.product-image-wrap img[data-prd-image-clickable] {
  cursor: zoom-in;
}

.product-card:hover .product-image-wrap img,
.product-card:focus-visible .product-image-wrap img { transform: scale(1.05); }

.product-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  background: #f8fafc;
}

.product-image-fallback[hidden] { display: none !important; }

.product-card-body {
  display: grid;
  gap: 0.4rem;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.product-category-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #034694;
  background: rgba(224, 242, 254, 0.95);
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  white-space: nowrap;
}

.product-new-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.22rem 0.46rem;
  background: #ea2427;
  color: #ffffff;
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(234, 36, 39, 0.16);
}

.product-name {
  margin: 0;
  color: #0f172a;
  font-size: 0.93rem;
  line-height: 1.22;
  font-weight: 850;
  min-height: 2.24em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-micro-text {
  margin: -0.08rem 0 0;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0.08rem;
}

.btn-wa {
  min-height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid #ea2427;
  color: #ffffff;
  background: #ea2427;
  box-shadow: 0 8px 18px rgba(234, 36, 39, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa:hover,
.btn-wa:focus-visible {
  background: #c2410c;
  border-color: #c2410c;
  box-shadow: 0 10px 20px rgba(234, 36, 39, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.prd-preview-overlay[hidden] { display: none !important; }

.prd-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 35, 52, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.prd-preview-box {
  width: min(1200px, 98vw);
  max-height: 96vh;
  background: #f8fcff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prd-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.prd-preview-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f2742;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prd-preview-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  background: #ffffff;
  color: #0f2742;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 35, 52, 0.12);
}

.prd-preview-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.prd-preview-stage:active {
  cursor: grabbing;
}

.prd-preview-image {
  max-width: min(1200px, 98vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.prd-preview-image[hidden],
.prd-preview-stage [data-prd-preview-fallback][hidden] {
  display: none !important;
}

.prd-preview-stage [data-prd-preview-fallback] {
  padding: 24px 12px;
  color: #345;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.prd-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.96);
  cursor: pointer;
  color: #0f2742;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 35, 52, 0.22);
}

.prd-preview-nav:disabled {
  opacity: 0.46;
  cursor: default;
}

.prd-preview-prev {
  left: 8px;
}

.prd-preview-next {
  right: 8px;
}

.prd-preview-meta {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
}

.prd-preview-counter {
  justify-self: start;
  font-size: 11px;
  font-weight: 800;
  color: #0f2742;
  background: rgba(3, 70, 148, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.prd-preview-label {
  justify-self: center;
  font-size: 12px;
  font-weight: 800;
  color: #0f2742;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prd-preview-hint {
  justify-self: end;
  font-size: 11px;
  color: #345;
  opacity: .82;
}

.prd-preview-close:focus-visible,
.prd-preview-nav:focus-visible {
  outline: 2px solid rgba(3, 70, 148, 0.42);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .prd-preview-box {
    width: 92vw;
    max-height: 92vh;
  }

  .prd-preview-image {
    max-width: 92vw;
    max-height: 70vh;
  }

  .prd-preview-close {
    width: 44px;
    height: 44px;
  }

  .prd-preview-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .prd-preview-counter,
  .prd-preview-label,
  .prd-preview-hint { justify-self: center; }
}

.product-empty-state {
  border: 1px dashed rgba(14, 165, 233, 0.38);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  color: #64748b;
  background: rgba(255, 255, 255, 0.82);
}

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

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-image-wrap { height: 230px; }
  .feature-track { min-height: 220px; max-height: 430px; }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image-wrap { height: 215px; }
  .feature-track { min-height: 190px; max-height: none; aspect-ratio: 1600 / 533; }
}

@media (max-width: 640px) {
  .pradaya-product-showcase {
    width: min(100% - 0.75rem, 1380px);
    margin-top: 0.45rem;
    padding: 0.58rem;
    border-radius: 18px;
  }

  .product-category-pills { gap: 0.6rem; }

  .product-premium-ticker {
    border-radius: 14px;
    min-height: 34px;
  }

  .product-ticker-track { animation-duration: 25s; }

  .category-pill {
    flex: 1 1 auto;
    min-height: 38px;
    justify-content: center;
    padding: 0.48rem 0.62rem;
    font-size: 0.76rem;
  }

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

  .product-card {
    border-radius: 16px;
    padding: 0.42rem;
    gap: 0.36rem;
  }

  .product-image-wrap { height: 178px; }

  .product-image-wrap img {
    max-width: calc(100% - 2px);
    max-height: calc(100% - 2px);
  }

  .product-name { font-size: 0.82rem; }
  .product-micro-text { font-size: 0.64rem; }

  .product-category-badge,
  .product-new-badge { font-size: 0.56rem; }

  .feature-nav {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  .feature-prev { left: 0.65rem; }
  .feature-next { right: 0.65rem; }
  .feature-dots { bottom: 0.65rem; }
  .feature-dot { width: 8px; height: 8px; }
  .feature-dot.is-active { width: 22px; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-image-wrap { height: 210px; }
  .product-image-wrap img { max-height: calc(100% - 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .product-ticker-track,
  .product-card {
    animation: none;
  }

  .product-card {
    opacity: 1;
    filter: none;
  }

  .product-image-wrap img,
  .category-pill,
  .btn-wa,
  .feature-dot {
    transition: none;
  }
}

/* Final active product preview override: large image viewer with multi-slide gallery. */
.prd-preview-overlay,
.prd-preview-overlay * {
  box-sizing: border-box;
}

.prd-preview-stage {
  min-height: 60vh;
}

/* Design viewer: dedicated large poster viewer opened from compact product preview. */
.prd-preview-design-link[hidden],
.prd-design-overlay[hidden],
.prd-design-image[hidden],
.prd-design-fallback[hidden] {
  display: none !important;
}

.prd-preview-design-link {
  margin-top: 4px;
  min-height: 30px;
  border: 1px solid rgba(3, 70, 148, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #034694;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0.45rem 0.72rem;
  box-shadow: 0 8px 18px rgba(15, 35, 52, 0.08);
}

.prd-preview-design-link:hover,
.prd-preview-design-link:focus-visible {
  border-color: rgba(3, 70, 148, 0.5);
  outline: none;
}

.prd-design-overlay,
.prd-design-overlay * {
  box-sizing: border-box;
}

.prd-design-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 35, 52, 0.82);
  backdrop-filter: blur(9px);
}

.prd-design-box {
  position: relative;
  max-width: min(860px, 94vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  overflow: auto;
}

.prd-design-image {
  width: auto;
  height: auto;
  max-width: min(860px, calc(94vw - 24px));
  max-height: 88vh;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
}

.prd-design-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f2742;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 35, 52, 0.18);
}

.prd-design-close:focus-visible {
  outline: 2px solid rgba(3, 70, 148, 0.42);
  outline-offset: 2px;
}

.prd-design-fallback {
  padding: 42px 28px;
  color: #345;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 768px) {
  .prd-design-overlay {
    padding: 12px;
    align-items: center;
  }

  .prd-design-box {
    max-width: 94vw;
    max-height: 88vh;
    padding: 8px;
  }

  .prd-design-image {
    max-width: calc(94vw - 16px);
    max-height: 84vh;
  }

  .prd-design-close {
    width: 44px;
    height: 44px;
  }
}

