/* Server-rendered grid: visible for SEO, hidden once Alpine takes over */
.hk-sr-grid.alpine-ready {
  display: none !important;
}

/* ── Related Products Heading ──────────────────────── */

.hk-products__related-heading {
  font-size: var(--font-size-2xl, 2.4rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-gray-900, #101828);
  margin: 0 0 var(--space-6, 1.5rem);
}

/* ==========================================================================
   HK Products List – Etsy-Inspired Product Cards
   ========================================================================== */

.hk-products-list {
  --primary-color: #222222;
  --hover-color: #000000;
  --secondary-text: #595959;
  --muted-text: #767676;
  --bg-color: #ffffff;
  --border-color: #e5e5e5;
  --green-badge-bg: #d8f5d1;
  --green-badge-text: #2d6a4f;
  --radius-lg: 1.5rem;
  --radius-md: 1.3rem;
  --radius-sm: 0.5rem;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
  --transition: all 0.2s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.12);

  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    system-ui,
    sans-serif;
  width: 100%;
}

/* ── Top controls bar ───────────────────────────────────────────────── */
.hk-products__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-bottom: 2rem;
}

/* Search Box */
.hk-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0 1.25rem;
  height: 48px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.hk-search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}
.hk-search-icon {
  color: var(--muted-text);
  margin-right: 0.75rem;
}
.hk-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.6rem;
  color: var(--primary-color);
}
.hk-search-input::placeholder {
  color: #b0b0b0;
}
.hk-search-clear {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hk-search-clear:hover {
  color: var(--primary-color);
}

/* Right buttons */
.hk-controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Airbnb Filter Button */
.hk-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.hk-filter-btn:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}
.hk-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--bg-color);
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 0.25rem;
}

/* Layout Grid/List Switcher */
.hk-layout-toggle {
  display: flex;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 4px;
}
.hk-layout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
}
.hk-layout-btn.is-active {
  background: var(--bg-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* ── Active filter badges ───────────────────────────────────────────── */
.hk-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: -1.3rem;
  margin-bottom: 2rem;
}
.hk-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.375rem 1.6rem;
  font-size: 1.2rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.hk-active-pill button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted-text);
  display: flex;
  align-items: center;
}
.hk-active-pill button:hover {
  color: var(--hover-color);
}
.hk-clear-all-link {
  background: transparent;
  border: none;
  text-decoration: underline;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.375rem 0.5rem;
}
.hk-clear-all-link:hover {
  color: var(--hover-color);
}

/* ── Products Display (Grid & List) ─────────────────────────────────── */

.hk-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 2rem 1.4rem;
  width: 100%;
}
@media (max-width: 1199px) {
  .hk-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .hk-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

/* List layout */
.hk-products-list-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
.hk-products-list-layout .hk-product-card {
  flex-direction: row;
  max-width: none;
}
.hk-products-list-layout .hk-product-card__img-wrap {
  width: 150px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.hk-products-list-layout .hk-product-card__details {
  flex: 1;
  justify-content: center;
}
@media (max-width: 575px) {
  .hk-products-list-layout .hk-product-card {
    /* flex-direction: column; */
  }
  .hk-products-list-layout .hk-product-card__img-wrap {
    /* width: 100%; */
    aspect-ratio: 1;
  }
}

/* ── Products Layout (Sidebar + Main) ───────────────────────────────── */
.hk-products-layout {
  display: flex;
  gap: 2.4rem;
  width: 100%;
  align-items: flex-start;
}

.hk-products-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hk-products-main {
  flex: 1;
  min-width: 0;
}

/* Sidebar Header */
.hk-products-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.hk-products-sidebar__header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
}
.hk-products-sidebar__reset {
  background: transparent;
  border: none;
  text-decoration: underline;
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
}
.hk-products-sidebar__reset:hover {
  color: var(--hover-color);
}

/* Sidebar Category List */
.hk-sidebar__cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hk-sidebar__cat-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.4rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.4;
}
.hk-sidebar__cat-item:hover {
  background: #f5f5f5;
}
.hk-sidebar__cat-item.is-active {
  background: #f0f0f0;
  font-weight: var(--font-weight-bold);
}

/* Sidebar: last filter section removes border */
.hk-products-sidebar .hk-filter-sec--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Sidebar Variation Attribute Buttons */
.hk-sidebar__attr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hk-sidebar__attr-btn {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 1.3rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}
.hk-sidebar__attr-btn:hover {
  border-color: var(--primary-color);
}
.hk-sidebar__attr-btn.is-active {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

/* Sidebar Footer + Apply Button */
.hk-products-sidebar__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.hk-products-sidebar__apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: var(--transition);
}
.hk-products-sidebar__apply:hover {
  background: var(--hover-color);
}

/* Responsive: hide sidebar on mobile, show modal instead */
@media (max-width: 991px) {
  .hk-products-sidebar {
    display: none;
  }
}

/* Responsive: hide filter button on desktop (sidebar replaces it) */
@media (min-width: 992px) {
  .hk-filter-btn {
    display: none;
  }
}

/* Adjust grid columns when sidebar is visible */
@media (min-width: 992px) {
  .hk-products-layout .hk-products-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

/* ── Product Card ───────────────────────────────────────────────────── */
.hk-product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  border-radius: 16px;
  color: var(--primary-color);
  min-width: 0;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  padding: 0.3rem;
  border: 1px solid #ddd;
}

/* ── Image Wrapper ──────────────────────────────────────────────────── */
.hk-product-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f7f7f7;
  overflow: hidden;
  border-radius: 14px;
  isolation: isolate;
}

.hk-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    opacity 280ms ease,
    transform 220ms ease;
  will-change: opacity, transform;
}
.hk-product-card:hover .hk-product-card__img {
  transform: scale(1.02);
}

.hk-product-card__img--hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Image Counter */
.hk-product-card__counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  line-height: 1;
  pointer-events: none;
}

/* ── Card Details ───────────────────────────────────────────────────── */
.hk-product-card__details {
  padding: 8px 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hk-product-card__details-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

/* Shop Name */
.hk-product-card__store {
  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  margin-bottom: 4px;
}

/* Product Title */
.hk-product-card__title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  color: var(--primary-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rating Row */
.hk-product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  color: var(--primary-color);
}
.hk-rating-val {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.hk-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.hk-rating-stars svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hk-rating-count {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted-text);
  margin-left: 1px;
}

/* Price Section */
.hk-product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 8px;
  line-height: 1;
}
.hk-price-current {
  color: var(--primary-color);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.hk-price-sale-container {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.hk-price-original {
  color: var(--muted-text);
  font-size: 16px;
  text-decoration: line-through;
  font-weight: 400;
}
.hk-price-discount {
  color: var(--green-badge-text);
  font-size: 16px;
  font-weight: 500;
}

/* Shipping Badge */
.hk-product-card__badge-row {
  margin-top: 8px;
  position: absolute;
  top: 0;
}
.hk-badge {
  display: inline-block;
  width: fit-content;
}
.hk-badge--free-delivery {
  background-color: rgb(255 255 255 / 80%);
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 10px;
  line-height: 1.2;
  border: 1px solid #eee;
}

/* Add to Cart Button */
.hk-product-card__add-btn {
  width: 36px;
  height: 36px;
  padding: 10px 0;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hk-product-card__add-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.hk-add-btn__default {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hk-add-btn__loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Empty State */
.hk-products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1.3rem;
  color: var(--muted-text);
}
.hk-products-empty svg {
  color: #ccc;
  margin-bottom: 1.5rem;
}
.hk-products-empty h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 0 0.5rem;
}
.hk-products-empty p {
  margin: 0 auto 1.5rem;
  font-size: 1.6rem;
  max-width: 320px;
}
.hk-products-empty__btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 500;
  font-size: 1.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.hk-products-empty__btn:hover {
  background: var(--hover-color);
}

/* ── Airbnb/Google Filter Modal ──────────────────────────────────────── */
.hk-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hk-filter-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.hk-filter-modal__container {
  position: relative;
  background: var(--bg-color);
  width: 100%;
  max-width: 620px;
  height: 80vh;
  max-height: 720px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Header */
.hk-filter-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.hk-filter-modal__header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: var(--primary-color);
}
.hk-filter-modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}
.hk-filter-modal__close:hover {
  background: #f7f7f7;
}

/* Body & Sections */
.hk-filter-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

.hk-filter-sec {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.hk-filter-sec:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.hk-filter-sec h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1.3rem;
}

/* Category Pills */
.hk-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hk-cat-pill {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 1.6rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}
.hk-cat-pill:hover {
  border-color: var(--primary-color);
}
.hk-cat-pill.is-active {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

/* Price range inputs and slider */
.hk-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hk-price-val {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1.6rem;
}
.hk-price-val label {
  display: block;
  font-size: 1rem;
  color: var(--muted-text);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hk-price-val input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 600;
}
.hk-price-divider {
  color: var(--muted-text);
}

/* Dual Range Slider styling */
.hk-slider-track-wrap {
  position: relative;
  height: 24px;
  margin: 0 10px;
}
.hk-range-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 9px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  margin: 0;
  z-index: 3;
}
/* For Webkit browsers (Chrome, Safari) */
.hk-range-slider::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
/* For Firefox */
.hk-range-slider::-moz-range-thumb {
  pointer-events: auto;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.hk-slider-visual-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 4px;
  background: #dddddd;
  border-radius: 2px;
  z-index: 1;
}
.hk-slider-visual-bar {
  position: absolute;
  top: 9px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  z-index: 2;
}

/* Sort sorting select input dropdown */
.hk-sort-select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 1.3rem;
  font-size: 1.6rem;
  outline: none;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat right 12px center;
  background-size: 16px;
  -webkit-appearance: none;
}
.hk-sort-select:focus {
  border-color: var(--primary-color);
}

/* Footer style */
.hk-filter-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  box-sizing: border-box;
  margin-top: 2rem;
}
.hk-filter-modal__reset {
  background: transparent;
  border: none;
  text-decoration: underline;
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}
.hk-filter-modal__reset:hover {
  color: var(--hover-color);
}
.hk-filter-modal__apply {
  background: var(--primary-color);
  color: #fff;
  border: none;
  height: 48px;
  padding: 0 2rem;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition);
}
.hk-filter-modal__apply:hover {
  background: var(--hover-color);
}

/* Mobile responsive adjustments for bottom sheet modal */
@media (max-width: 767px) {
  .hk-filter-modal {
    padding: 0;
    align-items: flex-end;
  }
  .hk-filter-modal__container {
    height: fit-content;
    max-height: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* Animations */
.hk-fade-in {
  animation: hkFadeInMs 0.28s forwards;
}
.hk-fade-out {
  animation: hkFadeOutMs 0.28s forwards;
}
.hk-slide-up {
  animation: hkSlideUpMs 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hk-slide-down {
  animation: hkSlideDownMs 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes hkFadeInMs {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hkFadeOutMs {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes hkSlideUpMs {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes hkSlideDownMs {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* ── Toast Notification ──────────────────────────────────────────────── */
.hk-toast {
  position: fixed;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transition:
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms ease,
    visibility 300ms ease;
  overflow: hidden;
}
.hk-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hk-toast__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8f5d1;
  color: #2d6a4f;
  border-radius: 50%;
}
.hk-toast__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hk-toast__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.2;
}
.hk-toast__name {
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hk-toast__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted-text);
  transition:
    background 150ms ease,
    color 150ms ease;
}
.hk-toast__close:hover {
  background: #f3f4f6;
  color: var(--primary-color);
}
.hk-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #2d6a4f;
  border-radius: 0 0 12px 12px;
  animation: hkToastProgress 3s linear forwards;
}

@keyframes hkToastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@media (max-width: 478px) {
  .hk-toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(20px);
    min-width: 0;
    max-width: none;
  }
  .hk-toast.is-visible {
    transform: translateX(0) translateY(0);
  }
}

/* ==========================================================================
   Variation Modal
   ========================================================================== */

.hk-vm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hk-vm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.hk-vm {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity;
}

.hk-vm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: background 150ms ease;
}
.hk-vm__close:hover {
  background: #f3f4f6;
}

.hk-vm__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
}

.hk-vm__img-wrap {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.hk-vm__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hk-vm__details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hk-vm__store {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
  margin: 0;
}

.hk-vm__title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.35;
  font-family: "Bree Serif";
}

.hk-vm__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hk-vm__price-current {
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.hk-vm__price-old {
  font-size: var(--font-size-sm);
  color: var(--muted-text);
  text-decoration: line-through;
}

.hk-vm__attrs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
  /* border-bottom: 1px solid #aaa; */
}
.hk-vm__attr {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f0f3f3;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
}
.hk-vm__attr-label {
  font-size: 1.6rem;
  font-weight: var(--font-weight-medium);
  color: #000;
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;
}

.hk-vm__attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hk-vm__attr-btn {
  padding: 0.5rem 1rem;
  border-radius: 2.5rem;
  border: 1.5px solid var(--border-color);
  background: #fff;
  font-size: 1.6rem;
  color: var(--secondary-text);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background 150ms ease;
}

.hk-vm__attr-btn:hover {
  border-color: var(--primary-color);
}

.hk-vm__attr-btn--active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.hk-vm__oos {
  font-size: 0.85rem;
  color: #dc2626;
  font-weight: var(--font-weight-medium);
  margin: 0;
}
.hk-vm__add-btn-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.hk-vm__add-btn {
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 2.5rem;
  border: none;
  background: #a95435;
  color: #fff;
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition:
    background 150ms ease,
    opacity 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  flex: 1 1 50%;

  &.cancel {
    background: #fff;
    color: #000;
    font-weight: 400;

    &:hover:not(:disabled) {
      background: #fff;
      text-decoration: underline;
    }
  }
}

.hk-vm__add-btn:hover:not(:disabled) {
  background: var(--hover-color);
}

.hk-vm__add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Mobile: bottom sheet ──────────────────────────────────────── */
@media (max-width: 767px) {
  .hk-vm-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .hk-vm {
    height: fit-content;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .hk-vm__body {
    grid-template-columns: 1fr;
  }
  .hk-vm__img-wrap {
    max-height: 40vh;
  }
  .hk-vm__details {
    padding: 1.25rem;
  }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hk-vm {
    animation-duration: 0.01ms !important;
  }
  .hk-vm-backdrop {
    animation-duration: 0.01ms !important;
  }
}
