:root {
  --hikmat-gold: #b4901d;
  --hikmat-dark: #111111;
  --hikmat-grey: #555555;
  --hikmat-light-grey: #8a8a8a;
  --hikmat-border: #e8e8e8;
}

/* =========================================================
 * GLOBAL / FONT INHERITANCE
 * ========================================================= */
.hikmat-loop-root,
.hikmat-loop-root *,
.hikmat-sort-wrap,
.hikmat-sort-wrap *,
.hikmat-filter-wrap,
.hikmat-filter-wrap *,
.hikmat-popup-overlay,
.hikmat-popup-overlay * {
  font-family: inherit !important;
}

/* =========================================================
 * PRODUCT LOOP
 * ========================================================= */
.hikmat-loop-root {
  width: 100%;
}

.hikmat-loop-count {
  margin-bottom: 18px;
  color: var(--hikmat-grey);
  font-size: 13px;
  text-align: center;
}

.hikmat-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 10px;
}

.hikmat-loop-root.is-loading .hikmat-loop-grid {
  opacity: 0.55;
  pointer-events: none;
}

.hikmat-loop-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--hikmat-grey);
  text-align: center;
}

/* =========================================================
 * PRODUCT CARD / IMAGE
 * ========================================================= */
.hikmat-product-card {
  min-width: 0;
  text-align: center;
}

.hikmat-product-media-wrap {
  position: relative;
  overflow: hidden;
}

.hikmat-product-media {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  background: #f2f2f2 !important;
}

.hikmat-product-image {
  display: block !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1;
  transition: opacity 0.4s ease;
  image-rendering: auto !important;
  -ms-interpolation-mode: bicubic;
  backface-visibility: hidden;
}

.hikmat-product-media img {
  max-width: none !important;
}

.hikmat-product-image-second {
  position: absolute;
  opacity: 0;
}

/* Second image transition: desktop + real hover devices only. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .hikmat-product-media.has-second-image:hover .hikmat-product-image-main {
    opacity: 0;
  }

  .hikmat-product-media.has-second-image:hover .hikmat-product-image-second {
    opacity: 1;
  }
}

/* =========================================================
 * WISHLIST POSITIONING
 * Dimensions remain controlled by HIKMAT Wishlist.
 * ========================================================= */
.hikmat-indexed-wishlist-position {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  line-height: 1;
}

/* =========================================================
 * PRODUCT BADGES
 * ========================================================= */
.hikmat-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.hikmat-badge-new {
  top: 14px;
  left: 12px;
  color: #000000;
  background: transparent;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 400;
}

.hikmat-badge-save {
  top: 12px;
  right: 12px;
  padding: 5px 7px;
  color: var(--hikmat-gold);
  background: rgba(180, 144, 29, 0.12);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* =========================================================
 * SAVE PERCENT SHORTCODE
 * [hikmat_save_percent]
 * Owned by HIKMAT Indexed Product Loop so it stays identical on ID/EN pages.
 * ========================================================= */
.hikmat-save-text {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 5px 7px;
  color: var(--hikmat-gold, #b4901d);
  background: rgba(180, 144, 29, 0.12);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================================================
 * PRODUCT INFORMATION
 * ========================================================= */
.hikmat-product-info {
  padding-top: 10px;
}

.hikmat-product-taxonomies {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0 !important;
  margin-bottom: 3px;
  font-size: 12px;
}

.hikmat-product-taxonomies a {
  text-decoration: none;
}

.hikmat-product-collection,
.hikmat-product-exclusive {
  font-size: 10px;
  text-transform: uppercase;
}

.hikmat-product-collection {
  color: #444444;
}

.hikmat-product-exclusive {
  color: var(--hikmat-gold);
}

.hikmat-product-title {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.hikmat-product-title a {
  color: var(--hikmat-dark);
  text-decoration: none;
}

.hikmat-product-code {
  margin-bottom: 7px;
  color: #777777;
  font-size: 12px;
  font-weight: 300;
}

.hikmat-product-swatches {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 14px;
  margin-bottom: 7px;
}

.hikmat-product-swatches a.hikmat-swatch {
  text-decoration: none;
}

.hikmat-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--hikmat-swatch-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.hikmat-swatch[aria-label^="White"] {
  border: 1px solid #cfcfcf !important;
}

.hikmat-product-price {
  color: #000000;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hikmat-product-price del {
  margin-right: 5px;
  color: #9a9a9a;
  font-size: 12px;
}

.hikmat-product-price ins {
  color: var(--hikmat-gold);
  font-size: 14px;
  text-decoration: none;
}

/* =========================================================
 * LOOP ACTIONS / BUTTONS
 * ========================================================= */
.hikmat-loop-actions {
  margin-top: 30px;
  text-align: center;
}

.hikmat-load-more,
.hikmat-sort-button,
.hikmat-filter-button,
.hikmat-clear-inline,
.hikmat-filter-clear,
.hikmat-filter-apply {
  cursor: pointer;
  padding: 11px 16px;
  border: 1px solid var(--hikmat-border);
  background: #ffffff;
  font-size: 13px;
}

.hikmat-sort-button,
.hikmat-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 !important;
  border-width: 0 !important;
  color: #000000 !important;
  font-size: 12px !important;
  font-weight: 300 !important;
}

.hikmat-sort-button:hover,
.hikmat-sort-button:focus,
.hikmat-filter-button:hover,
.hikmat-filter-button:focus {
  padding: 0 !important;
  border-bottom: 1px solid #000000 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #000000 !important;
}

.hikmat-control-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 0;
  object-fit: contain;
  font-size: 14px;
  line-height: 1;
}

.hikmat-load-more {
  border-radius: 0 !important;
  color: #000000 !important;
}

.hikmat-load-more:hover {
  border-radius: 0 !important;
  background: #000000 !important;
  color: #ffffff !important;
}

.hikmat-load-more:focus {
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #000000 !important;
}

[data-hikmat-clear-inline] {
  display: none;
}

/* Hide Load More when there are no more products. */
.hikmat-loop-empty + .hikmat-load-more,
.hikmat-loop-grid:has(.hikmat-loop-empty) ~ .hikmat-loop-actions .hikmat-load-more,
.hikmat-load-more[hidden],
.hikmat-loop-actions:has(.hikmat-load-more[hidden]) {
  display: none !important;
}

/* =========================================================
 * POPUP / SORT / FILTER
 * ========================================================= */
.hikmat-popup-open {
  overflow: hidden;
}

.hikmat-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.42s ease;
}

.hikmat-popup-overlay.is-open {
  opacity: 1;
}

.hikmat-popup-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(520px, 94vw);
  height: 100%;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hikmat-popup-overlay.is-open .hikmat-popup-panel {
  transform: translateX(0);
}

.hikmat-popup-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hikmat-border);
  background: #ffffff;
}

.hikmat-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
}

.hikmat-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 0 !important;
  padding-left: 0 !important;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: grey;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hikmat-popup-close:hover {
  background: transparent;
  color: #000000;
}

.hikmat-popup-body {
  flex: 1;
  padding: 18px 20px;
  overflow: auto;
}

.hikmat-sort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #000000;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}

.hikmat-sort-option:hover {
  background: transparent;
  color: #000000;
}

.hikmat-radio-dot {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #000000;
  border-radius: 50%;
}

.hikmat-sort-option.is-active .hikmat-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #000000;
}

/* =========================================================
 * FILTER ACCORDION
 * ========================================================= */
.hikmat-accordion {
  border-bottom: 1px solid var(--hikmat-border);
}

.hikmat-accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 14px;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}

.hikmat-accordion-title:hover,
.hikmat-accordion-title:focus {
  background: transparent;
  color: #000000;
}

.hikmat-accordion-content {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.35s ease;
}

.hikmat-accordion.is-open .hikmat-accordion-content {
  max-height: 1000px;
  padding: 4px 0 18px;
  opacity: 1;
}

.hikmat-accordion-chevron::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("https://www.hikmat.co.id/wp-content/uploads/2026/05/chevron-down.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hikmat-accordion.is-open .hikmat-accordion-chevron::before {
  background-image: url("https://www.hikmat.co.id/wp-content/uploads/2026/05/chevron-up.png");
}

/* =========================================================
 * FILTER CONTROLS
 * ========================================================= */
.hikmat-filter-list-4col {
  column-count: 4;
  column-gap: 18px;
}

.hikmat-filter-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  break-inside: avoid;
  margin-bottom: 10px;
  font-size: 12px;
  cursor: pointer;
}

.hikmat-filter-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hikmat-checkbox-ui {
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1px solid #000000;
}

.hikmat-filter-choice input:checked + .hikmat-checkbox-ui {
  background: #000000;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.hikmat-filter-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--hikmat-border);
  background: #ffffff;
}

.hikmat-filter-footer .hikmat-filter-apply:only-child {
  grid-column: 1 / -1;
}

.hikmat-filter-footer .hikmat-filter-clear {
  display: block !important;
}

.hikmat-filter-clear {
  border: 0 !important;
  border-radius: 0 !important;
  color: #000000 !important;
  font-weight: 300 !important;
}

.hikmat-filter-clear:hover {
  border-radius: 0 !important;
  background: transparent !important;
  color: #000000 !important;
  text-decoration: underline !important;
}

.hikmat-filter-apply {
  border-radius: 0 !important;
  background: transparent !important;
  color: #000000 !important;
  font-weight: 300 !important;
}

.hikmat-filter-apply:hover {
  background: #000000 !important;
  color: #ffffff !important;
}

/* =========================================================
 * TABLET / MOBILE <= 1024px
 * ========================================================= */
@media (max-width: 1024px) {
  .hikmat-loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 5px;
  }

  .hikmat-product-media {
    aspect-ratio: 3 / 5 !important;
  }

  .hikmat-badge {
    top: 5px;
    font-size: 10px;
  }

  .hikmat-badge-new {
    left: 5px;
  }

  .hikmat-badge-save {
    right: 5px;
    padding: 5px 7px;
  }

  .hikmat-product-title {
    font-size: 13px;
  }

  .hikmat-product-taxonomies,
  .hikmat-product-collection,
  .hikmat-product-exclusive {
    font-size: 9px;
  }

  .hikmat-product-price del,
  .hikmat-product-price ins {
    display: block;
    margin-right: 0;
    text-align: center;
  }

  .hikmat-load-more,
  .hikmat-load-more:hover,
  .hikmat-load-more:focus {
    border-radius: 0 !important;
    background: #000000 !important;
    color: #ffffff !important;
  }

  .hikmat-popup-header {
    padding: 5px 20px;
  }

  .hikmat-popup-panel {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: none;
    border-radius: 0;
    transform: translateY(100%);
  }

  .hikmat-popup-overlay.is-open .hikmat-popup-panel {
    transform: translateY(0);
  }

  .hikmat-filter-list-4col {
    column-count: 3 !important;
    column-gap: 14px;
  }

  .hikmat-filter-apply,
  .hikmat-filter-apply:hover {
    background: #000000 !important;
    color: #ffffff !important;
  }
}

/* =========================================================
 * MOBILE <= 767px
 * ========================================================= */
@media (max-width: 767px) {
  .hikmat-indexed-wishlist-position {
    left: 10px;
    bottom: 10px;
  }
}
