/* jenisProduk.css — Exspostar Category Page */

/* ===== HERO ===== */
.jp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--wood-deepest);
}

.jp-hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 45%, rgba(58, 34, 18, 0.75) 0%, var(--wood-deepest) 70%);
  z-index: 0;
}

.jp-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5) saturate(0.75);
}

/* Dark gradient on top of video */
.jp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 4, 0.42);
  z-index: 2;
}

/* ===== CORNER BRACKETS ===== */
.jp-corner {
  position: absolute;
  z-index: 4;
  width: 55px;
  height: 55px;
}
.jp-corner.tl {
  top: 40px;
  left: 40px;
  border-top: 1px solid rgba(200, 146, 42, 0.4);
  border-left: 1px solid rgba(200, 146, 42, 0.4);
}
.jp-corner.tr {
  top: 40px;
  right: 40px;
  border-top: 1px solid rgba(200, 146, 42, 0.4);
  border-right: 1px solid rgba(200, 146, 42, 0.4);
}
.jp-corner.bl {
  bottom: 40px;
  left: 40px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.4);
  border-left: 1px solid rgba(200, 146, 42, 0.4);
}
.jp-corner.br {
  bottom: 40px;
  right: 40px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.4);
  border-right: 1px solid rgba(200, 146, 42, 0.4);
}

/* ===== HERO TEXT ===== */
.jp-hero-text {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.jp-tag {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--amber);
  text-transform: uppercase;
  opacity: 0.8;
  animation: jpFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  font-weight: 300;
  color: #e8d5b0;
  letter-spacing: 4px;
  margin: 0;
  line-height: 1;
  text-shadow:
    0 4px 40px rgba(200, 146, 42, 0.2),
    0 0 80px rgba(0, 0, 0, 0.6);
  animation: jpFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jp-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: jpFadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.jp-divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 146, 42, 0.55), transparent);
}
.jp-divider-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(200, 146, 42, 0.6);
}

.jp-desc {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  color: rgba(200, 146, 42, 0.55);
  letter-spacing: 3px;
  max-width: 400px;
  line-height: 1.7;
  animation: jpFadeUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes jpFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BREADCRUMB ===== */
.jp-breadcrumb {
  position: absolute;
  bottom: 50px;
  left: 50px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(200, 146, 42, 0.4);
}
.jp-breadcrumb a {
  color: rgba(200, 146, 42, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.jp-breadcrumb a:hover {
  color: var(--amber);
}
.jp-breadcrumb span:last-child {
  color: rgba(200, 146, 42, 0.7);
}

/* ===== SCROLL HINT ===== */
.jp-scroll {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.jp-scroll-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(200, 146, 42, 0.35);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.jp-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(200, 146, 42, 0.5), transparent);
  position: relative;
  overflow: hidden;
}
.jp-scroll-line::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #e8c97a, transparent);
  animation: jpScroll 2.2s ease-in-out infinite;
}
@keyframes jpScroll {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

/* ===== GRID SECTION ===== */
.jp-grid-section {
  background: linear-gradient(180deg, var(--wood-deepest) 0%, var(--wood-deep) 25%, var(--wood-deepest) 100%);
  padding: 100px 60px 120px;
  min-height: 60vh;
}

/* Section header */
.jp-section-header {
  text-align: center;
  margin-bottom: 70px;
}
.jp-section-tag {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--amber);
  text-transform: uppercase;
  opacity: 0.65;
  display: block;
  margin-bottom: 12px;
}
.jp-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: #e8d5b0;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.jp-section-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 146, 42, 0.5), transparent);
  margin: 0 auto;
}

/* ===== PRODUCT GRID ===== */
.jp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: center;
}

/* ===== PRODUCT CARD ===== */
.jp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(26, 16, 8, 0.6);
  border: 1px solid rgba(200, 146, 42, 0.07);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 320px;
  flex-shrink: 0;
}

.jp-card:hover {
  border-color: rgba(200, 146, 42, 0.2);
  transform: translateY(-4px);
}

/* Image */
.jp-card-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}

.jp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.8);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease;
}

.jp-card:hover .jp-card-img {
  transform: scale(1.07);
  filter: brightness(0.88) saturate(0.95);
}

.jp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 4, 0.85) 0%, transparent 50%);
  pointer-events: none;
}

/* Stock badges */
.jp-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  font-family: 'Shippori Mincho', serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 1px;
}
.jp-badge.low {
  background: rgba(200, 146, 42, 0.12);
  border: 1px solid rgba(200, 146, 42, 0.3);
  color: #d4af37;
}
.jp-badge.out {
  background: rgba(180, 50, 50, 0.12);
  border: 1px solid rgba(180, 50, 50, 0.3);
  color: rgba(220, 100, 100, 0.8);
}

/* Card body */
.jp-card-body {
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jp-card-tag {
  font-family: 'Shippori Mincho', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--amber);
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
  display: block;
}

.jp-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: #e8d5b0;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.jp-card-desc {
  font-size: 12px;
  color: rgba(200, 180, 150, 0.5);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}

/* Footer */
.jp-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(200, 146, 42, 0.07);
  padding-top: 16px;
  gap: 12px;
}

.jp-card-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.price-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(200, 146, 42, 0.4);
  text-transform: uppercase;
}
.price-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: #d4af37;
  letter-spacing: 0.5px;
  line-height: 1;
}
.price-unit {
  font-size: 11px;
  color: rgba(200, 146, 42, 0.35);
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 1px;
}

/* Explore button */
.jp-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(200, 146, 42, 0.55);
  white-space: nowrap;
  transition:
    color 0.3s ease,
    gap 0.3s ease;
  flex-shrink: 0;
}
.jp-explore-btn i {
  font-size: 11px;
  transition: transform 0.3s ease;
}
.jp-card:hover .jp-explore-btn {
  color: var(--amber-light);
  gap: 12px;
}
.jp-card:hover .jp-explore-btn i {
  transform: translateX(4px);
}

/* ===== EMPTY STATE ===== */
.jp-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(200, 146, 42, 0.3);
}
.jp-empty i {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}
.jp-empty p {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.jp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(200, 146, 42, 0.3);
  color: var(--amber);
  padding: 11px 28px;
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 1px;
}
.jp-back-btn:hover {
  background: rgba(200, 146, 42, 0.08);
  color: var(--amber-light);
}

/* ===== FOOTER ===== */
footer {
  background: var(--wood-deepest);
  border-top: 1px solid rgba(200, 146, 42, 0.1);
  padding: 60px 40px 40px;
  text-align: center;
}
.footer-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  color: rgba(200, 146, 42, 0.5);
  margin-bottom: 14px;
}
.footer-tagline {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 6px;
  color: rgba(200, 146, 42, 0.3);
  text-transform: uppercase;
  margin-bottom: 35px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-bottom: 35px;
}
.footer-links a {
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(200, 146, 42, 0.4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--amber-light);
}
.footer-copy {
  font-size: 11px;
  color: rgba(232, 220, 200, 0.2);
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .jp-title {
    font-size: 60px;
    letter-spacing: 2px;
  }
  .jp-breadcrumb {
    bottom: 60px;
    left: 20px;
  }
  .jp-scroll {
    display: none;
  }
  .jp-corner {
    display: none;
  }
  .jp-grid-section {
    padding: 70px 20px 80px;
  }
  .jp-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .jp-card-img-wrap {
    height: 220px;
  }
  .jp-section-title {
    font-size: 30px;
  }
}
/* ===== CARD META INFO ===== */
.jp-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.jp-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(200, 146, 42, 0.4);
}

.jp-meta-row i {
  font-size: 10px;
  color: rgba(200, 146, 42, 0.35);
  width: 12px;
  flex-shrink: 0;
}

.jp-meta-row span {
  color: rgba(232, 220, 200, 0.5);
}

.jp-stock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55c580;
  flex-shrink: 0;
}

.jp-stock-dot.out {
  background: #e05555;
}
