/* ==========================================================================
   PRODUK (PRODUCT CATALOG & DETAIL) STYLES
   ========================================================================== */

.produk-page {
  width: 100%;
  background: #FAFAFA;
  color: #333333;
  min-height: 100vh;
}

/* SECTION 1: HEADER BANNER & FILTERS */
.produk-header-sec {
  width: 100%;
  padding: 150px 0 40px 0;
  background: #F2F4F7;
  position: relative;
  z-index: 200;
}

.produk-header-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.produk-header-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 596px;
}

.produk-main-heading {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 36px;
  line-height: 44px;
  color: #333333;
  margin: 0;
}

.produk-gold-bar {
  width: 80px;
  height: 2px;
  background: #B98227;
}

.produk-sub-heading {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #8E8E8E;
  margin: 0;
}

/* Filter Controls Bar */
.produk-filter-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 300;
}

.filter-dropdowns-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.filter-item {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3C64B1;
  padding: 8px 12px;
  background: transparent;
}

.search-filter-item {
  width: 250px;
  gap: 10px;
}

.search-filter-item input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-inter);
  font-size: 15px;
  color: #333333;
  width: 100%;
}

.search-filter-item input::placeholder {
  color: #BBBBBB;
}

/* Custom Select Dropdown Styling */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  z-index: 300;
}

.custom-select-wrapper:hover,
.custom-select-wrapper.open {
  z-index: 9999;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1.5px solid #3C64B1;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  min-width: 180px;
  user-select: none;
  transition: border-color 0.2s ease;
}

.custom-select-trigger:hover {
  border-color: #B98227;
}

.custom-select-trigger .arrow-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.custom-select-wrapper:hover .custom-select-trigger .arrow-icon,
.custom-select-wrapper.open .custom-select-trigger .arrow-icon {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(6, 30, 74, 0.18);
  z-index: 99999;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible bridge so mouse hover doesn't break over gap */
.custom-select-options::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}


/* Custom Scrollbar for Dropdown */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: #F8FAFC;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-wrapper:hover .custom-select-options,
.custom-select-wrapper.open .custom-select-options {
  display: block;
}

.custom-option {
  padding: 10px 16px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-option:hover {
  background: #F1F5F9;
  color: #B98227;
}

.custom-option.selected {
  background: #061E4A;
  color: #FFFFFF;
  font-weight: 600;
}

/* SECTION 2: PRODUCT CATALOG GRID */
.produk-catalog-sec {
  width: 100%;
  padding: 20px 0 100px 0;
  background: #F2F4F7;
  position: relative;
  z-index: 1;
}

.produk-catalog-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card Spec */
.produk-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.produk-card:hover {
  border-color: #3C64B1;
  box-shadow: 0px 6px 24px rgba(60, 100, 177, 0.2);
  transform: translateY(-4px);
}

.produk-card-img-wrapper {
  width: 100%;
  height: 240px;
  background: #FFFFFF !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.produk-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #FFFFFF !important;
  transition: transform var(--transition-normal);
}

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

.produk-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.produk-card-category {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.produk-card-line {
  width: 45px;
  height: 1px;
  background: #B98227;
}

.produk-card-title {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  color: #1D3A72;
  margin: 0;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produk-card-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.btn-produk-detail {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  height: 40px;
  border: 1px solid rgba(6, 30, 74, 0.5);
  border-radius: 4px;
  color: #061E4A;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-produk-detail:hover {
  background: #061E4A;
  color: #FFFFFF;
}

.btn-produk-wa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  gap: 6px;
  height: 40px;
  background: #03225D;
  border-radius: 4px;
  color: #FFFFFF;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-produk-wa:hover {
  background: #B98227;
  color: #FFFFFF;
}

/* PAGINATION STYLES (FIGMA REVAMP) */
.produk-pagination-wrapper {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item {
  display: inline-block;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 42px;
  color: #061E4A;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pagination-link:hover {
  background: #F1F5F9;
  color: #B98227;
}

.pagination-item.active .pagination-link {
  background: #061E4A;
  border-color: #061E4A;
  color: #FFFFFF;
  border-radius: 4px;
}

.pagination-link.nav-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid #03225D;
  background: #FFFFFF;
  color: #03225D;
  border-radius: 4px;
  font-size: 22px;
  line-height: 1;
}

.pagination-link.nav-btn:hover {
  background: #03225D;
  color: #FFFFFF;
}

.pagination-item.disabled .pagination-link.nav-btn {
  opacity: 0.4;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.5);
  border-color: #03225D;
}


/* DETAIL PRODUK PAGE STYLES */
/* SECTION 3: DETAIL PRODUK (FIGMA REVAMP) */
.detail-produk-sec {
  width: 100%;
  padding: 130px 0 80px;
  background: #FFFFFF;
}

.detail-produk-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', var(--font-inter, sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-back-link:hover {
  color: #B98227;
}

.detail-produk-content-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 56px;
  width: 100%;
  max-width: 1280px;
}

.detail-produk-img-col {
  width: 489.6px;
  height: 500px;
  background: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-produk-img-col img {
  width: 100%;
  max-width: 490px;
  max-height: 439px;
  object-fit: contain;
  background-color: #FFFFFF !important;
}

.detail-produk-info-col {
  flex: 1;
  max-width: 734.4px;
  height: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.detail-category-tag {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
  color: #777777;
}

.detail-code-above,
.detail-product-title {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.detail-code-above {
  margin-top: 6px;
}

.detail-gold-bar {
  width: 100px;
  height: 1px;
  background: #B98227;
  margin: 14px 0 24px 0;
}

.detail-description {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: #777777;
  margin-bottom: 32px;
  width: 100%;
}

.detail-description p {
  margin: 0 0 14px 0;
}

.detail-description p:last-child {
  margin-bottom: 0;
}

.detail-description ul,
.detail-description ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.detail-description li {
  margin-bottom: 6px;
}

.detail-description strong,
.detail-description b {
  color: #333333;
  font-weight: 600;
}

/* Action Controls (Qty & Checkout WA) */
.detail-action-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  height: 50px;
}

.qty-control-box {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: 170px;
  background: #FFFFFF;
  border: 1px solid #03225D;
  box-sizing: border-box;
}

.btn-qty {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: none;
  font-size: 20px;
  font-weight: 600;
  color: #03225D;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-qty:first-child {
  border-right: 1px solid #03225D;
}

.btn-qty:last-child {
  border-left: 1px solid #03225D;
}

.qty-input-field {
  width: 70px;
  height: 100%;
  border: none;
  text-align: center;
  font-family: 'Montserrat', var(--font-inter, sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  outline: none;
  background: transparent;
}

.btn-checkout-wa {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  gap: 14px;
  width: 255px;
  height: 50px;
  background: #03225D;
  border-radius: 0px;
  color: #FFFFFF;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color var(--transition-fast);
}

.btn-checkout-wa:hover {
  background: #092D61;
  color: #FFFFFF;
}

/* RESPONSIVE MEDIA QUERIES */

/* Laptop (1025px - 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
  .produk-header-container,
  .produk-catalog-container,
  .detail-produk-container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .produk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (641px - 1024px) */
@media (max-width: 1024px) {
  .produk-header-container,
  .produk-catalog-container,
  .detail-produk-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .produk-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .detail-produk-content-grid {
    flex-direction: column;
    gap: 36px;
  }
  .detail-produk-img-col {
    width: 100%;
    max-width: 100%;
    height: 360px;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .produk-header-container,
  .produk-catalog-container,
  .detail-produk-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .produk-header-sec {
    padding-top: 110px;
  }
  .produk-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .produk-filter-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .filter-item {
    width: 100%;
    box-sizing: border-box;
  }
  .search-filter-item {
    width: 100%;
    box-sizing: border-box;
  }
  .filter-dropdowns-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .custom-select-wrapper {
    flex: 1;
    min-width: 0;
    width: 50%;
  }
  .custom-select-trigger {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 6px;
    font-size: 14px;
  }
  .trigger-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #sortDropdown .custom-select-options {
    left: auto;
    right: 0;
  }
  .detail-produk-sec {
    padding-top: 110px;
  }
  .detail-product-title {
    font-size: 26px;
    line-height: 34px;
  }
  .detail-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .qty-control-box {
    width: 100%;
    justify-content: center;
  }
  .btn-checkout-wa {
    width: 100%;
  }
}
