body.hf-product-modal-open {
  overflow: hidden;
}

body.page-id-664 {
  background: #0c1225;
}

body.page-id-664 .page-header {
  display: none;
}

body.page-id-664 .site-main,
body.page-id-664 .page-content {
  background: #0c1225;
  margin: 0;
  padding: 0;
}

.hf-product-catalogue-page {
  color: #ebebe9;
}

.hf-product-catalogue-page .elementor-heading-title {
  color: #ebebe9;
}

.elementor-loop-container .elementor-widget-image {
  margin: -24px -24px 24px -24px !important;
  width: calc(100% + 48px) !important;
  max-width: none !important;
  border-radius: 16px 16px 0 0 !important;
  overflow: hidden !important;
  background: none !important;
}

.elementor-loop-container .elementor-widget-image img {
  width: 100% !important;
  height: 340px !important; /* Taller to allow more room for pipes */
  object-fit: cover !important;
  object-position: center bottom !important; /* Prioritize the stove feet/firebox */
  padding: 0 !important;
}

.hf-product-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #0c1225;
  padding: 8px 0;
  margin-bottom: 4px;
}

.hf-product-filters__field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 130px;
}

.hf-product-filters__field--search {
  flex: 1.5;
  max-width: 240px;
}

.hf-product-filters__field--status {
  max-width: 140px;
}

.hf-screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.hf-product-filters__intro {
  width: 100%;
  margin-bottom: 24px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hf-product-filters__intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d4deec;
  font-weight: 400;
}

.hf-product-filters__field {
  display: flex;
  flex-direction: column;
}

.hf-product-filters__select,
.hf-product-filters__input {
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(184, 201, 224, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
}

.hf-product-filters__select:hover,
.hf-product-filters__input:hover,
.hf-product-filters__select:focus,
.hf-product-filters__input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(184, 201, 224, 0.5);
  outline: none;
}

.hf-product-filters__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hf-product-filters__select option {
  color: #0c1225;
}

.hf-product-filters__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.hf-product-filters__submit,
.hf-product-filters__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.hf-product-filters__submit {
  border: 0;
  background: #5980b8;
  color: #ffffff;
}

.hf-product-filters__reset {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.hf-product-filters__reset:hover,
.hf-product-filters__reset:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

.page-id-664 .elementor-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 72px;
  padding-bottom: 12px;
}

.page-id-664 .elementor-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4deec;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-id-664 .elementor-pagination a.page-numbers:hover,
.page-id-664 .elementor-pagination a.page-numbers:focus {
  background: rgba(89, 128, 184, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.page-id-664 .elementor-pagination .page-numbers.current {
  background: #d23c73;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(210, 60, 115, 0.32);
}

.single-product .page-header {
  display: none;
}

.single-product .page-content {
  margin: 0;
  padding: 0;
}

.hf-product-single {
  align-items: start;
}

.hf-product-single__details {
  display: flex;
  flex-direction: column;
}

.hf-product-single__terms {
  color: #4b5468;
  font-size: 1rem;
  line-height: 1.6;
}

.hf-product-single__price {
  font-family: "Jost", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: #5980b8;
  line-height: 1.1;
}

.hf-product-single__features ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hf-product-single__features li,
.hf-product-single__description p {
  color: #353d40;
  line-height: 1.75;
}

.elementor-element-hfdesc01 .elementor-shortcode,
.hf-product-teaser {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.65;
}

.hf-product-modal[hidden] {
  display: none;
}

.hf-product-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.hf-product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 37, 0.72);
  backdrop-filter: blur(3px);
}

.hf-product-modal__dialog {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 48px));
  height: min(860px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(12, 18, 37, 0.28);
  overflow: hidden;
  max-width: 100%;
}

.hf-product-modal__body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 48px);
  box-sizing: border-box;
}

.hf-product-modal__content {
  height: auto;
  min-height: 100%;
  box-sizing: border-box;
}

.hf-product-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
  height: auto;
  align-items: start;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hf-product-modal__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  align-self: start;
}

.hf-product-modal__image {
  width: 100%;
  max-height: min(560px, calc(100vh - 220px));
  object-fit: contain;
  background: #f6f7fb;
  border-radius: 16px;
}

.hf-product-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.hf-product-modal__thumb {
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
}

.hf-product-modal__thumb.is-active {
  border-color: #5980b8;
  box-shadow: 0 0 0 2px rgba(89, 128, 184, 0.18);
}

.hf-product-modal__thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.hf-product-modal__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: visible;
  padding-right: 12px;
  min-width: 0;
}

.hf-product-modal__toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 8px;
  padding: 4px 0 12px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 76%, rgba(255, 255, 255, 0) 100%);
}

.hf-product-modal__toolbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hf-product-modal__title {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: #0c1225;
}

.hf-product-modal__meta,
.hf-product-modal__short {
  margin: 0;
  color: #4b5468;
  line-height: 1.7;
}

.hf-product-modal__price {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #5980b8;
}

.hf-product-modal__facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hf-product-modal__facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.hf-product-modal__facts dt {
  font-weight: 600;
  color: #0c1225;
}

.hf-product-modal__facts dd {
  margin: 0;
  color: #353d40;
}

.hf-product-modal__section h3 {
  margin: 0 0 8px;
  font-family: "Jost", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0c1225;
}

.hf-product-modal__section p,
.hf-product-modal__section li {
  color: #353d40;
  line-height: 1.75;
}

.hf-product-modal__section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hf-product-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.hf-product-modal__page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #0c1225;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 200ms ease;
}

.hf-enquiry-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: transparent;
  color: #0c1225;
  border: 1px solid #d23c73;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
  line-height: 1;
}

.hf-enquiry-pill:hover {
  background: #d23c73 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(210, 60, 115, 0.2);
}

.hf-product-gallery {
  display: grid;
  gap: 14px;
}

.hf-product-gallery__item {
  margin: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f7fb;
}

.hf-product-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.hf-product-meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}

.hf-product-meta-row__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0c1225;
  font-size: 0.9rem;
}

.hf-product-meta-row__value {
  color: #353d40;
  line-height: 1.6;
}

.hf-product-modal__close,
.hf-product-modal__nav {
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.hf-product-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e3e7ee;
  color: #0c1225;
  box-shadow: 0 8px 20px rgba(12, 18, 37, 0.08);
  font-size: 26px;
  line-height: 1;
}

.hf-product-modal__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0c1225;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.hf-product-modal__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.hf-product-modal__status {
  padding: 40px;
  margin: 0;
}

/* Filter toggle — hidden on desktop/tablet */
@media (min-width: 768px) {
  .hf-filters-toggle,
  .hf-filters-apply__btn {
    display: none !important;
  }
}

/* Desktop: body wrapper is transparent to the form's CSS grid so filter fields
   remain direct grid children and render in the 4-column horizontal layout */
.hf-filters-body {
  display: contents;
}

/* 1px sentinel above the sticky filter bar (zero-height is unreliable in IntersectionObserver) */
.hf-filters-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}

@media (max-width: 767px) {
  .hf-product-filters {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 0 20px !important;
    margin-bottom: 0 !important;
  }

  /* Spacing improvements for mobile body */
  .hf-filters-body {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 350ms ease;
    padding: 0 20px;
  }
  
  .hf-filters--expanded .hf-filters-body {
    max-height: 1000px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hf-product-filters__field {
    display: flex;
    flex-direction: column;
    gap: 10px;          /* Space between label and select */
    margin-bottom: 28px; /* Space between different fields */
  }

  .hf-product-filters__field:last-child {
    margin-bottom: 0;
  }

  .hf-product-filters__actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
    order: 10;
  }

  .hf-filters-apply__btn {
    flex: 1 1 auto;
    height: 52px;
    background: #d23c73;
    color: #ffffff;
    border: none;
    padding: 0 16px;
    border-radius: 4px;
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .hf-product-filters__reset {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    padding: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hf-reset-text {
    display: none;
  }
  
  .hf-reset-icon {
    margin-right: 0 !important;
  }

  /* Show toggle button on mobile only */
  .hf-filters-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center; /* Center labels for a cleaner look */
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: none;
    border-radius: 4px; /* Matches the rectangular pink button in screenshot */
    background: #d23c73; /* Pink background from screenshot */
    color: #ffffff;
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(210, 60, 115, 0.2);
  }

  .hf-filters-toggle__icon {
    transition: transform 200ms ease;
    font-size: 1.2rem;
  }

  .hf-filters--expanded .hf-filters-toggle__icon {
    transform: rotate(180deg);
  }

  /* Shadow when stuck to top */
  .hf-filters--scrolled {
    box-shadow: 0 4px 20px rgba(12, 18, 37, 0.4);
  }

  /* Pagination mobile adjustments */
  .page-id-664 .elementor-pagination {
    gap: 8px;
    margin: 22px 0 56px;
    padding-bottom: 8px;
  }

  .page-numbers {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
  }

  /* Modal mobile adjustments */
  .hf-product-modal {
    padding: 16px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hf-product-modal__dialog {
    width: 100%;
    margin: 0 auto;
    height: auto !important;
    max-height: none !important;
    display: block;
    overflow: visible !important;
  }

  /* Toolbar styling because outer overflow:hidden is removed */
  .hf-product-modal__toolbar {
    border-radius: 20px 20px 0 0;
  }

  .hf-product-modal__body {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .hf-product-modal__page-link {
    display: none !important;
  }

  .hf-product-modal__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 24px 16px;
    overflow-y: visible; /* Prevent nested scrolling */
    gap: 12px;
  }

  .hf-product-modal__media {
    position: static;
    max-height: none;
    gap: 6px;
  }

  .hf-product-modal__image {
    max-height: 48vh;
    border-radius: 10px;
  }

  .hf-product-modal__thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    grid-template-columns: none;
    scrollbar-width: thin;
  }

  .hf-product-modal__thumb {
    flex: 0 0 72px;
    min-width: 72px;
    border-radius: 8px;
    padding: 3px;
  }

  .hf-product-modal__thumb img {
    height: 52px;
  }

  .hf-product-modal__details {
    max-height: none;
    overflow-x: hidden;
    padding-right: 0;
    max-width: 100%;
    word-wrap: break-word;
  }

  /* Force all injected HTML (like tables, images, or pre tags) to respect the screen size */
  .hf-product-modal__details * {
    max-width: 100% !important;
  }

  .hf-product-modal__toolbar {
    padding: 2px 0 6px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .hf-product-modal__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .hf-product-modal__actions a {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   FRONTEND PRODUCT EDITOR (ADMIN ONLY)
   ========================================================================== */

.hf-admin-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  background: rgba(12, 18, 37, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 201, 224, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  color: #fff;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hf-admin-bar:hover {
  background: rgba(12, 18, 37, 0.95);
  border-color: rgba(210, 60, 115, 0.4);
}

.hf-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #d23c73;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.hf-admin-btn:hover {
  background: #e14d84;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .hf-admin-bar {
    bottom: 16px;
    right: 16px;
    padding: 6px;
    gap: 8px;
  }
  .hf-admin-bar span,
  .hf-admin-bar div[style*="width:1px"] {
    display: none !important;
  }
  .hf-admin-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}


.hf-admin-card-controls {
  display: flex !important;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
  justify-content: center; /* Center buttons horizontally */
}

.hf-admin-card-btn {
  padding: 8px 16px;
  border-radius: 50px; /* Pill shape to match View Product */
  font-family: inherit;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 200ms ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hf-admin-card-btn--edit {
  background: transparent;
  color: #d23c73;
  border: 1px solid #d23c73;
}

.hf-admin-card-btn--edit:hover {
  background: #d23c73;
  color: #fff;
  transform: translateY(-1px);
}

.hf-admin-card-btn--delete {
  background: #0c1225; /* Dark background to match View Product style */
  color: #fff;
  border: 1px solid #0c1225;
}

.hf-admin-card-btn--delete:hover {
  background: #ff4d4d;
  border-color: #ff4d4d;
  transform: translateY(-1px);
}

.hf-card-btn--enquire,
.hf-enquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 42px;
  height: 42px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 2px solid #d23c73;
  color: #d23c73 !important;
  background: transparent;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 5px;
}

.hf-card-btn--enquire:hover,
.hf-enquiry-btn:hover {
  background: #d23c73;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(210, 60, 115, 0.3);
}

.hf-card-btn--enquire {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-width: 1px;
}

/* Editor Drawer */
.hf-editor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  z-index: 9000;
  background: #0c1225;
  color: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.hf-editor-drawer.is-open {
  transform: translateX(0);
}

.hf-editor-drawer__header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-editor-drawer__title {
  margin: 0;
  font-size: 1.5rem;
  font-family: "Jost", sans-serif;
}

.hf-editor-drawer__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.hf-editor-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.hf-editor-drawer__footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.hf-delete-btn {
  background: transparent;
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 200ms ease;
}

.hf-delete-btn:hover {
  background: #ff4d4d;
  color: #fff;
}

/* Form Styling */
.hf-form-group {
  margin-bottom: 24px;
}

.hf-form-label {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4deec;
  margin-bottom: 8px;
}

.hf-form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: all 200ms ease;
}

.hf-form-control:focus {
  outline: none;
  border-color: #5980b8;
  background: rgba(255, 255, 255, 0.08);
}

.hf-form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

textarea.hf-form-control {
  resize: vertical;
  min-height: 100px;
}

.hf-save-btn {
  background: #5980b8;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.hf-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hf-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 37, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}


.hf-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* Utility: Truncate long descriptions in catalogue cards */
.hf-truncate-description {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limits to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Ensure consistent height even if text is shorter */
  min-height: 5.6em; 
  line-height: 1.4;
}

/* Price Highlight */
.hf-product-price {
  color: #5980b8;
  font-weight: 700;
}

/* Product Media Shortcode Styles */
.hf-product-media {
  width: 100% !important;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.hf-product-media__main {
  width: 100% !important;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid rgba(12, 18, 37, 0.08);
  box-sizing: border-box;
}

.hf-product-media__display {
  width: 100% !important;
  height: auto !important;
  max-height: 700px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
}

.hf-product-media__thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 8px 0 16px !important;
  width: 100% !important;
  box-sizing: border-box;
}



.hf-product-media__thumb {
  flex: 0 0 100px !important;
  width: 100px !important;
  min-width: 100px !important;
  height: 100px !important;
  padding: 4px !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  box-sizing: border-box !important;
}

.hf-product-media__thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hf-product-media__thumb.is-active {
  border-color: #d23c73 !important;
  box-shadow: 0 2px 10px rgba(210, 60, 115, 0.2);
}

.hf-product-media__thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hf-product-media__thumbs {
    gap: 8px !important;
  }
  .hf-product-media__thumb {
    flex: 0 0 calc(25% - 6px) !important;
    width: calc(25% - 6px) !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    padding: 3px !important;
  }
}

/* Single Product Template Layout Utilities */
.hf-product-wrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
  box-sizing: border-box;
}

.hf-product-single-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px !important;
  align-items: flex-start !important;
}

.hf-product-single-grid > div {
  flex: 1 1 500px !important;
  min-width: 0 !important;
}

/* No Results State */
.hf-product-no-results {
  width: 100%;
  padding: 80px 40px;
  background: rgba(12, 18, 37, 0.4);
  border: 1px dashed rgba(210, 60, 115, 0.3);
  border-radius: 20px;
  text-align: center;
  margin: 40px 0;
  box-sizing: border-box;
}

.hf-no-results__content {
  max-width: 500px;
  margin: 0 auto;
}

.hf-no-results__icon {
  color: #d23c73;
  margin-bottom: 24px;
}

.hf-no-results__content h2 {
  font-family: "Jost", sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.hf-no-results__content p {
  color: #d4deec;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hf-no-results__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  background: #d23c73;
  color: #ffffff;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.hf-no-results__reset:hover {
  background: #b52b5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(210, 60, 115, 0.3);
}

@media (max-width: 767px) {
  .hf-product-no-results {
    padding: 60px 20px;
  }
}

/* Admin Card Overlay (Auto-injected) */
.hf-admin-card-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 5; /* Lowered so it goes behind header/filters when scrolling */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}


.hf-admin-card-overlay > * {
  pointer-events: auto;
}

.hf-admin-card-actions {
  display: flex;
  gap: 6px;
  background: #ffffff; /* pure white for absolute contrast */
  padding: 5px;
  border-radius: 999px;
  border: 2px solid #d23c73; /* bold brand border */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.hf-admin-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  color: #0c1225;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hf-admin-icon-btn svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  visibility: visible !important;
  stroke: #0c1225 !important; /* Midnight blue for icons */
  overflow: visible !important;
}


.hf-edit-card-btn:hover {
  background: #5980b8;
  transform: scale(1.1);
}

.hf-delete-card-btn:hover {
  background: #ff4d4d;
  transform: scale(1.1);
}

.hf-status-pill {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hf-status-pill--draft {
  background: #ffcc00;
  color: #000;
  border: 2px solid #000; /* Extra contrast for the yellow pill */
}

@media (max-width: 767px) {
  .hf-admin-card-overlay {
    top: 8px;
    left: 8px;
    right: 8px;
  }
}





