/* ==========================================================================
   UMKM Sarjana - Pure CSS Stylesheet
   Clean, Responsive, Semantically Structured HTML & CSS
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-primary: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Playfair Display", Georgia, serif;
  
  /* Brand Colors - Matching Lihat Produk (Orange & White Theme) */
  --color-primary-gold: #ea580c;
  --color-gold-hover: #c2410c;
  --color-gold-dark: #9a3412;
  --color-gold-light: #fff7ed;
  --color-gold-badge: #ea580c;
  --color-active-pill: #ea580c;
  
  /* Neutral Colors */
  --color-bg-page: #f8fafc;
  --color-surface: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  
  /* Footer Dark Palette */
  --color-footer-bg: #0d1525;
  --color-footer-card: #151f33;
  --color-footer-border: #1e293b;
  --color-footer-text: #94a3b8;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.09);
  
  /* Transitions */
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Global Defaults --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* --- Utility Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   1. Site Header
   ========================================================================== */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #ea580c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.12);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.logo-badge svg {
  width: 20px;
  height: 20px;
  stroke: #ea580c;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111827;
}

.brand-name .brand-accent {
  color: var(--color-primary-gold);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

/* ==========================================================================
   2. Main Catalog Section
   ========================================================================== */
.catalog-main {
  flex: 1 0 auto;
  padding: 44px 0 68px;
}

/* Title & Intro - Educational Renovation Hero */
.catalog-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge like reference: pill with orange check circle and orange uppercase text */
.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #fed7aa;
  padding: 6px 18px 6px 12px;
  border-radius: 9999px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.edu-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.edu-badge-text {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ea580c;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   Hero Official Brand Logo (Centered above description)
   ========================================================================== */
.hero-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 18px;
  text-align: center;
}

.hero-logo-svg,
.hero-logo-img {
  width: 100%;
  max-width: 410px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.04));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-svg:hover,
.hero-logo-img:hover {
  transform: translateY(-2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Display title for catalog */
.catalog-title {
  font-family: var(--font-primary);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  max-width: 720px;
}

/* Accent word in brand orange */
.catalog-title .title-highlight {
  color: #ea580c;
  display: inline-block;
}

.catalog-desc {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  max-width: 650px;
  margin: 0 auto;
}

/* Search & Category Filter Section - Mode Full (Desktop & Laptop) */
.search-category-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Search Bar (Mode Full) */
.search-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 20px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  font-size: 0.95rem;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

/* Category Filter Pills (Mode Full: Tersebar Merata Sejajar & Sentral) */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.category-subinfo-wrap {
  display: none !important;
}

.category-subinfo {
  display: none !important;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  outline: none;
  font-family: inherit;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-pill .pill-icon {
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
  border-color: #fdba74;
  color: #ea580c;
  background-color: #fffaf5;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.12);
  text-decoration: none;
}

.category-pill:hover .pill-icon {
  transform: scale(1.1);
}

.category-pill:active {
  transform: scale(0.97);
}

.category-pill:visited {
  color: #334155;
  text-decoration: none;
}

/* Active Category Pill ("Semua" or active category) */
.category-pill.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #ea580c;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.32);
  transform: translateY(-1px);
  text-decoration: none;
}

.category-pill.active:visited {
  color: #ffffff;
  text-decoration: none;
}

.category-pill.active .pill-icon {
  color: #ffffff;
}

/* ==========================================================================
   3. Products Grid Layout
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Individual Product Card */
.product-card {
  background-color: var(--color-surface);
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* Card Visual Header - Shopee Style 1:1 Uniform Grid (Clean & Aligned Across All Devices) */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--color-border-light);
  display: block;
  padding: 0;
  margin: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  transition: transform 0.35s ease;
}

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

/* Tag Badges - Hidden per user request */
.badge-category,
.badge-cat-label,
.card-meta {
  display: none !important;
}

/* Card Media Badge Code (Hidden per user request: no badge on top-left of image) */
.card-media .badge-code {
  display: none !important;
}

.badge-code {
  display: none !important;
}

/* Card Body Content */
.card-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 2.9em;
  height: 2.9em;
}

.product-name a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-name a:hover {
  color: #ea580c;
}

/* Card Action Wrap - Desktop: SKU Badge on Left, Cek Produk Button on Right */
.card-action-wrap {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

/* SKU Code Badge in Card Footer (e.g., PRS-001) */
.badge-sku {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.725rem;
  font-weight: 700;
  color: #ea580c;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Card Action Button - Shopee Style Primary CTA (Rounded Pill) */
.btn-view-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff5722 0%, #ee4d2d 100%);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(238, 77, 45, 0.28);
  transition: all 0.22s ease;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.btn-view-product svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.btn-view-product:hover {
  background: linear-gradient(135deg, #f4511e 0%, #e64a19 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(238, 77, 45, 0.4);
  transform: translateY(-1.5px);
  text-decoration: none;
}

/* ==========================================================================
   Minimalist Pagination - Ultra Responsive (Laptop, iPad, Tablet, HP)
   ========================================================================== */
.pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.pagination-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding: 5px 10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.pagination-list::-webkit-scrollbar {
  display: none;
}

.pagination-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.pagination-link,
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.pagination-btn {
  color: #475569;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  display: block;
}

.pagination-link:hover:not(.active),
.pagination-btn:hover:not(.disabled) {
  background-color: #f1f5f9;
  color: #0f172a;
}

.pagination-link.active {
  background-color: #ea580c;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.38);
}

.pagination-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  color: #cbd5e1;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  color: #94a3b8;
  font-size: 0.9rem;
  user-select: none;
  flex-shrink: 0;
}

/* ==========================================================================
   4. Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 56px 0 28px;
  border-top: 1px solid var(--color-footer-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-col-brand {
  max-width: 420px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-about {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-subtle);
  margin-bottom: 22px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #182236;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background-color: var(--color-primary-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Footer Navigation Column */
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 3px;
}

/* Footer Contact Column */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

.contact-icon {
  color: var(--color-primary-gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-text-subtle);
}

.contact-item a:hover {
  color: #ffffff;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-link {
  color: #94a3b8;
  transition: var(--transition-smooth);
}

.lang-link.active, .lang-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   5. Responsive Media Queries (Mobile First & Adaptive Breakpoints)
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 1100px) */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }

  /* Pagination on Small Laptops & Large Tablets */
  .pagination-wrapper {
    margin-top: 36px;
  }

  .pagination-list {
    gap: 7px;
    padding: 4px 8px;
  }

  .pagination-link,
  .pagination-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 0.9rem;
  }
}

/* Medium Tablets & iPads (max-width: 880px) */
@media (max-width: 880px) {
  .catalog-main {
    padding: 28px 0 48px;
  }

  .catalog-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Pagination on iPads & Tablets */
  .pagination-wrapper {
    margin-top: 30px;
    padding: 0 10px;
  }

  .pagination-list {
    gap: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .pagination-link,
  .pagination-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.875rem;
  }

  .pagination-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* Tablet & Mobile Screens (max-width: 768px) - Layout Sesuai Gambar Referensi Mobile */
@media (max-width: 768px) {
  .search-category-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
  }

  .search-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 14px;
  }

  .search-input {
    width: 100%;
    padding: 11px 18px 11px 44px;
    font-size: 0.925rem;
    border-radius: 9999px;
  }

  .search-icon {
    left: 16px;
  }

  .search-icon svg {
    width: 17px;
    height: 17px;
  }

  /* Category Menu on Tablet: Organik, Fleksibel & Bebas Kaku */
  .category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .category-pill .pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .category-pill .pill-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Card Action Wrap on Responsive Tablet: Kode SKU di atas, Tombol di bawah agar leluasa */
  .card-action-wrap {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .badge-sku {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
  }

  .btn-view-product {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
    gap: 6px;
    box-shadow: 0 2px 7px rgba(238, 77, 45, 0.22);
    text-align: center;
    box-sizing: border-box;
  }
}

/* Mobile Screens (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header {
    padding: 10px 0;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-badge svg {
    width: 18px;
    height: 18px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .catalog-main {
    padding: 16px 0 36px;
  }

  .catalog-intro {
    margin-bottom: 16px;
  }
  .hero-logo-wrapper {
    max-width: 310px;
    margin-bottom: 12px;
  }
  .hero-logo-svg,
  .hero-logo-img {
    max-width: 300px;
  }


  .edu-badge {
    padding: 4px 12px;
    margin-bottom: 10px;
    gap: 6px;
  }

  .edu-badge-text {
    font-size: 0.675rem;
  }

  .catalog-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .catalog-desc {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .search-category-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .search-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 12px;
  }

  .search-input {
    padding: 10px 16px 10px 42px;
    font-size: 0.875rem;
  }

  .search-icon {
    left: 14px;
  }

  .search-icon svg {
    width: 16px;
    height: 16px;
  }

  /* Organic Fluid Capsule Pills on Mobile - Bebas Kaku, Alami & Fleksibel */
  .category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
  }

  .category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 7px 13px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 5px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .category-pill .pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .category-pill .pill-icon svg {
    width: 13.5px;
    height: 13.5px;
  }

  /* 2-Column Professional Mobile Grid (Shopee / Tokopedia standard) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    overflow: hidden;
  }

  .card-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
  }

  .product-name {
    font-size: 0.775rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    min-height: 2.7em;
    height: 2.7em;
    margin-bottom: 8px;
  }

  .card-media .badge-code {
    display: none !important;
  }

  .card-meta {
    display: none !important;
  }

  .badge-cat-label {
    display: none !important;
  }

  /* Kode SKU Diletakkan Rapi Di Atas Cek Produk saat mode responsive (Tidak Mepet) */
  .card-action-wrap {
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
  }

  .badge-sku {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    padding: 2.5px 7px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ea580c;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    line-height: 1.2;
    flex-shrink: 0;
  }

  .btn-view-product {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7.5px 12px;
    font-size: 0.775rem;
    font-weight: 700;
    border-radius: 9999px;
    gap: 5px;
    box-shadow: 0 2px 7px rgba(238, 77, 45, 0.22);
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .btn-view-product svg {
    width: 13.5px;
    height: 13.5px;
    stroke-width: 2.2;
  }

  /* Pagination on Mobile (HP) */
  .pagination-wrapper {
    margin-top: 24px;
    padding: 0 6px;
  }

  .pagination-list {
    gap: 4px;
    padding: 3px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .pagination-link,
  .pagination-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 0.825rem;
  }

  .pagination-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Extra-small Mobile Screens (max-width: 380px) */
@media (max-width: 380px) {
  .products-grid {
    gap: 9px;
  }

  .card-body {
    padding: 8px 8px 10px;
  }

  .category-nav {
    gap: 5px 6px;
    padding: 0 2px;
  }

  .category-pill {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 4px;
    border-radius: 9999px;
  }

  .category-pill .pill-icon svg {
    width: 12px;
    height: 12px;
  }

  /* Kode tetap di atas tombol Cek Produk secara rapi & proporsional */
  .card-action-wrap {
    gap: 6px;
    padding-top: 8px;
  }

  .badge-sku {
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .btn-view-product {
    padding: 6.5px 8px;
    font-size: 0.725rem;
    gap: 4px;
  }

  .btn-view-product svg {
    width: 12px;
    height: 12px;
  }

  /* Pagination on Extra-small HP (max-width: 380px) */
  .pagination-wrapper {
    margin-top: 20px;
    padding: 0 4px;
  }

  .pagination-list {
    gap: 2.5px;
    padding: 2.5px 4px;
  }

  .pagination-link,
  .pagination-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 0.775rem;
  }

  .pagination-btn svg {
    width: 13px;
    height: 13px;
  }
}

/* Interactive Modal Popup Styles */
.product-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

.product-modal:target,
.product-modal.active,
.product-modal.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: default;
}

.modal-content {
  position: relative;
  background-color: var(--color-surface);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  z-index: 10;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    transform: scale(0.95) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 20;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: #0f172a;
  color: #ffffff;
}

.modal-media {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--color-border-light);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.modal-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-badges .badge-category {
  position: static;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
  padding: 3px 10px;
}

.modal-badges .badge-code {
  position: static;
  box-shadow: none;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.modal-specs {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 0.8125rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-key {
  color: var(--color-text-subtle);
  font-size: 0.725rem;
  text-transform: uppercase;
  font-weight: 600;
}

.spec-val {
  color: #1e293b;
  font-weight: 600;
}

.modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.modal-btn-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background-color: #ea580c;
  color: #ffffff;
  font-size: 0.975rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: var(--transition-smooth);
}

.modal-btn-contact:hover {
  background-color: #c2410c;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.modal-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.975rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition-smooth);
}

.modal-btn-back:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}
