/* ══════════════════════════════════════════════
   CATEGORY.CSS — COVANA
   Card structure: Exspostar jenisProduk
   Colors: Covana light theme
══════════════════════════════════════════════ */

:root {
  --shell: #3d2b1f;
  --shell-light: #5c4033;
  --beige: #f5efe6;
  --sand: #e8ddd0;
  --sand-dark: #d4c5b2;
  --white: #fdfcfa;
  --charcoal: #1c1712;
  --charcoal-soft: #2e2620;
  --gold: #c9a96e;
  --gold-light: #e0c898;
  --text-muted: #7a6a5c;
  --green: #4a6741;
  --red: #b55252;
  --border: rgba(61, 43, 31, 0.1);
  --border2: rgba(61, 43, 31, 0.06);
}

/* ─── CUSTOM SCROLLBAR ─────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--sand);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border: 2px solid var(--sand);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--shell);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--sand);
}

/* ─── RESET ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: #f5f4f2;
  color: #1a1a1a;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── HERO SPOTLIGHT ────────────────────── */
.spotlight {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.spotlight-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600&q=80');
  background-size: cover;
  background-position: center center;
  filter: brightness(0.36);
  transition: transform 8s ease;
}
.spotlight:hover .spotlight-bg {
  transform: scale(1.04);
}
.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.62) 50%, rgba(10, 10, 10, 0.1) 100%);
}
.spotlight-content {
  position: relative;
  z-index: 2;
  padding: 0 7%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.spotlight-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.spotlight-desc {
  font-size: 14px;
  color: rgba(245, 239, 230, 0.55);
  line-height: 1.85;
  max-width: 460px;
  font-weight: 300;
}

/* Corner brackets */
.sp-corner {
  position: absolute;
  z-index: 4;
  width: 50px;
  height: 50px;
}
.sp-corner.tl {
  top: 40px;
  left: 40px;
  border-top: 1px solid rgba(201, 169, 110, 0.4);
  border-left: 1px solid rgba(201, 169, 110, 0.4);
}
.sp-corner.tr {
  top: 40px;
  right: 40px;
  border-top: 1px solid rgba(201, 169, 110, 0.4);
  border-right: 1px solid rgba(201, 169, 110, 0.4);
}
.sp-corner.bl {
  bottom: 40px;
  left: 40px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  border-left: 1px solid rgba(201, 169, 110, 0.4);
}
.sp-corner.br {
  bottom: 40px;
  right: 40px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  border-right: 1px solid rgba(201, 169, 110, 0.4);
}

/* Breadcrumb */
.sp-breadcrumb {
  position: absolute;
  bottom: 50px;
  left: 50px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.4);
}
.sp-breadcrumb a {
  color: rgba(201, 169, 110, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.sp-breadcrumb a:hover {
  color: var(--gold);
}
.sp-breadcrumb .current {
  color: rgba(201, 169, 110, 0.7);
}

/* Scroll hint */
.sp-scroll {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sp-scroll-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.35);
  writing-mode: vertical-rl;
}
.sp-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(201, 169, 110, 0.5), transparent);
  position: relative;
  overflow: hidden;
}
.sp-scroll-line::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

/* ─── SECTION HEADER ──────────────────── */
.jp-grid-section {
  background: #f5f4f2;
  padding: 80px 7% 100px;
  min-height: 50vh;
}
.jp-section-header {
  text-align: center;
  margin-bottom: 60px;
}
.jp-section-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.jp-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.jp-section-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), 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: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  cursor: pointer;
  width: 320px;
  flex-shrink: 0;
}
.jp-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(61, 43, 31, 0.1);
}

/* Image */
.jp-card-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.9);
  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(1) saturate(1);
}
.jp-card-icon-wrap {
  font-size: 80px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.jp-card:hover .jp-card-icon-wrap {
  transform: scale(1.08) translateY(-4px);
}

.jp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 23, 18, 0.65) 0%, transparent 55%);
  pointer-events: none;
}

/* Stock badges */
.jp-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 600;
}
.jp-badge.low {
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
}
.jp-badge.out {
  background: rgba(181, 82, 82, 0.12);
  border: 1px solid rgba(181, 82, 82, 0.35);
  color: var(--red);
}

/* Card body */
.jp-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border2);
}
.jp-card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.jp-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.jp-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-bottom: 18px;
}

/* Card meta */
.jp-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.jp-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.jp-meta-row span {
  color: var(--charcoal);
  opacity: 0.7;
}

.jp-stock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.jp-stock-dot.out {
  background: var(--red);
}

/* Card footer */
.jp-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--border2);
  padding-top: 14px;
  gap: 12px;
}
.jp-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.price-unit {
  font-size: 11px;
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  opacity: 0.6;
}

/* Explore button */
.jp-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    gap 0.3s ease;
  flex-shrink: 0;
}
.jp-explore-btn .arrow {
  font-size: 11px;
  transition: transform 0.3s ease;
}
.jp-card:hover .jp-explore-btn {
  color: var(--shell);
  gap: 10px;
}
.jp-card:hover .jp-explore-btn .arrow {
  transform: translateX(4px);
}

/* ─── EMPTY STATE ────────────────────── */
.jp-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  width: 100%;
}
.jp-empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}
.jp-empty p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.jp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.jp-back-btn:hover {
  background: var(--sand);
  border-color: var(--gold);
  color: var(--shell);
}

/* ─── FOOTER ─────────────────────────── */
footer {
  background: var(--charcoal);
  padding: 60px 5% 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 36px;
}
.footer-brand .logo-name {
  color: var(--beige);
}
.footer-brand .logo-sub {
  color: var(--gold);
}
.footer-tagline {
  color: rgba(245, 239, 230, 0.35);
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 240px;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-links-list {
  list-style: none;
}
.footer-links-list li {
  margin-bottom: 10px;
}
.footer-links-list a,
.footer-links-list span {
  color: rgba(245, 239, 230, 0.35);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links-list a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(245, 239, 230, 0.25);
}
.footer-compliance {
  font-size: 11px;
  color: rgba(245, 239, 230, 0.25);
  text-align: right;
  max-width: 440px;
  line-height: 1.6;
}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
  .spotlight {
    min-height: 70vh;
  }
  .spotlight-content {
    padding: 0 24px;
  }
  .jp-grid-section {
    padding: 60px 24px 80px;
  }
  .sp-corner {
    display: none;
  }
  .sp-scroll {
    display: none;
  }
  .sp-breadcrumb {
    left: 24px;
    bottom: 32px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .jp-card {
    width: 100%;
  }
  .jp-grid {
    gap: 8px;
  }
  .jp-grid-section {
    padding: 40px 16px 60px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
