/* Hajir Market product detail: tabs, ordering channel, compact title.
   Scoped under .store-css; uses cream/gold tokens defined in store.css. */

.store-css .hm-product-tabs {
  margin-top: 58px;
}

.store-css .hm-product-tabs__heading {
  margin: 0 0 18px;
  color: var(--hm-ink);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
}

.store-css .hm-product-tabs__tablist-wrap {
  border-bottom: 1px solid var(--hm-line);
}

.store-css .hm-product-tabs__tablist {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-css .hm-product-tabs__tablist::-webkit-scrollbar {
  display: none;
}

.store-css .hm-product-tabs__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--hm-ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s var(--hm-ease);
}

.store-css .hm-product-tabs__tab:hover {
  color: var(--hm-bronze);
}

.store-css .hm-product-tabs__tab::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.18s var(--hm-ease);
}

.store-css .hm-product-tabs__tab[aria-selected="true"] {
  color: var(--hm-bronze);
}

.store-css .hm-product-tabs__tab[aria-selected="true"]::after {
  background: linear-gradient(90deg, var(--hm-gold), var(--hm-gold-bright));
}

.store-css .hm-product-tabs__tab:focus-visible {
  outline: 2px solid var(--hm-gold);
  outline-offset: 2px;
  border-radius: var(--hm-radius-sm);
}

.store-css .hm-product-tabs__panel {
  margin-top: 26px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-md);
  background: var(--hm-surface);
}

.store-css .hm-product-tabs__panel:focus-visible {
  outline: 2px solid var(--hm-gold);
  outline-offset: 2px;
}

.store-css .hm-product-tabs__panel .store-rich-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.store-css .store-product-facts--panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hm-line);
}

.store-css .hm-product-tabs__qa {
  display: grid;
  gap: 10px;
  gap: 10px;
}

.store-css .hm-product-tabs__qa-item {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
  background: var(--hm-canvas);
  overflow: hidden;
}

.store-css .hm-product-tabs__qa-item summary {
  padding: 14px 18px;
  color: var(--hm-ink);
  font-size: clamp(14px, 1.6vw, 15px);
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

.store-css .hm-product-tabs__qa-item summary::-webkit-details-marker {
  display: none;
}

.store-css .hm-product-tabs__qa-item summary::after {
  content: "+";
  float: left;
  margin-left: 8px;
  color: var(--hm-gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.18s var(--hm-ease);
}

.store-css .hm-product-tabs__qa-item[open] summary::after {
  content: "-";
}

.store-css .hm-product-tabs__qa-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--hm-ink-soft);
  color: var(--hm-ink-soft);
  font-size: 13px;
  line-height: 2;
}

.store-css .hm-order-channel {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-md);
  background: linear-gradient(135deg, var(--hm-gold-wash), transparent 60%);
}

.store-css .hm-order-channel__body {
  margin-bottom: 16px;
}

.store-css .hm-order-channel__title {
  margin: 0 0 6px;
  color: var(--hm-bronze-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.store-css .hm-order-channel__hint {
  margin: 0;
  color: var(--hm-ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.store-css .hm-order-channel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-css .hm-order-channel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--hm-radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s var(--hm-ease), box-shadow 0.18s var(--hm-ease);
}

.store-css .hm-order-channel__btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.store-css .hm-order-channel__btn--primary {
  border: 1px solid var(--hm-gold);
  background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-bright));
  color: #2a2008;
  box-shadow: 0 2px 10px rgba(200, 162, 83, 0.28);
  box-shadow: 0 2px 10px rgba(200, 162, 83, 0.28);
}

.store-css .hm-order-channel__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 162, 83, 0.38);
  box-shadow: 0 4px 14px rgba(200, 162, 83, 0.38);
}

.store-css .hm-order-channel__btn--ghost {
  border: 1px solid var(--hm-gold-hairline);
  background: var(--hm-surface);
  color: var(--hm-bronze);
}

.store-css .hm-order-channel__btn--ghost:hover {
  border-color: var(--hm-gold);
  background: var(--hm-gold-wash);
}

.store-css .hm-order-channel__btn:focus-visible {
  outline: 2px solid var(--hm-gold);
  outline-offset: 2px;
}

.store-css .store-product-info__title {
  margin: 4px 0 9px;
  color: var(--hm-ink);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.5;
}

/* ============================================================
   HAJIR MARKET — PRODUCT DETAIL REDESIGN (text/specs only)
   Cream/gold theme, fully responsive. Image gallery untouched.
   ============================================================ */

/* ---------- Category eyebrow (pill) ---------- */
.store-css .hm-product-eyebrow {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0 0 10px;
  padding: 5px 14px;
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-pill);
  background: var(--hm-gold-wash);
  color: var(--hm-bronze-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Title + accent rule ---------- */
.store-css .hm-product-title {
  margin: 0 0 12px;
  color: var(--hm-ink);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.store-css .hm-product-title__rule {
  width: 64px;
  height: 3px;
  margin: 0 0 16px;
  border-radius: var(--hm-radius-pill);
  background: linear-gradient(90deg, var(--hm-gold), var(--hm-gold-bright));
}

/* ---------- Meta row (vendor + rating) ---------- */
.store-css .hm-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0 0 6px;
}

.store-css .hm-product-meta__item {
  margin: 0;
  font-size: 13px;
}

.store-css .hm-product-meta__icon {
  margin-left: 6px;
  font-size: 13px;
  filter: grayscale(0.2);
}

.store-css .hm-product-meta__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Price card ---------- */
.store-css .hm-price-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 22px 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-md);
  background:
    linear-gradient(135deg, var(--hm-gold-wash), transparent 65%),
    var(--hm-surface);
  box-shadow: 0 2px 12px rgba(200, 162, 83, 0.10);
}

.store-css .hm-price-card__label {
  align-self: flex-start;
  margin: 0 0 2px;
  padding: 3px 10px;
  border-radius: var(--hm-radius-pill);
  background: rgba(167, 107, 129, 0.12);
  color: #8e5369;
  font-size: 11px;
  font-weight: 700;
}

.store-css .hm-price-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.store-css .hm-price-card__old {
  color: #94888c;
  font-size: 14px;
}

.store-css .hm-price-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--hm-radius-pill);
  background: linear-gradient(135deg, var(--hm-gold), var(--hm-gold-bright));
  color: #2a2008;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.store-css .hm-price-card__current {
  color: var(--hm-bronze-deep);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.store-css .hm-price-card__current small {
  margin-right: 4px;
  color: var(--hm-bronze);
  font-size: 14px;
  font-weight: 600;
}

/* Override old pink price color from store.css */
.store-css .store-product-info__price.hm-price-card strong.hm-price-card__current,
.store-css .hm-price-card .hm-price-card__current {
  color: var(--hm-bronze-deep) !important;
}

/* Override old title color from store.css */
.store-css .store-product-info__title.hm-product-title,
.store-css h1.hm-product-title {
  color: var(--hm-ink) !important;
}

/* ---------- Availability ---------- */
.store-css .hm-availability {
  margin: 0 0 4px;
  padding: 8px 0;
  font-weight: 600;
}

/* ---------- Sample note ---------- */
.store-css .hm-sample-note {
  margin: 14px 0;
  padding: 12px 16px;
  border-right: 3px solid #a76b81;
  border-radius: 0 var(--hm-radius-sm) var(--hm-radius-sm) 0;
  background: #fbf4f5;
  color: #67575e;
  font-size: 13px;
  line-height: 1.9;
}

/* ---------- Description ---------- */
.store-css .hm-product-description {
  position: relative;
  margin: 16px 0;
  padding: 14px 18px 14px 16px;
  border-right: 3px solid var(--hm-gold);
  border-radius: 0 var(--hm-radius-sm) var(--hm-radius-sm) 0;
  background: var(--hm-gold-wash);
  color: var(--hm-ink-soft);
  font-size: 14px;
  line-height: 2;
}

/* ---------- Facts (specs table) ---------- */
.store-css .hm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.store-css .hm-facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon value";
  gap: 2px 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-sm);
  background: var(--hm-surface);
  transition: border-color 0.18s var(--hm-ease), box-shadow 0.18s var(--hm-ease);
}

.store-css .hm-facts li:hover {
  border-color: var(--hm-gold);
  box-shadow: 0 2px 10px rgba(200, 162, 83, 0.14);
}

.store-css .hm-facts li:nth-child(even) {
  background: linear-gradient(135deg, var(--hm-gold-wash), var(--hm-surface));
}

.store-css .hm-facts__icon {
  grid-area: icon;
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hm-gold-wash);
  font-size: 15px;
}

.store-css .hm-facts__label {
  grid-area: label;
  color: var(--hm-ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.store-css .hm-facts__value {
  grid-area: value;
  color: var(--hm-ink);
  font-size: 13px;
  font-weight: 700;
}

.store-css .hm-facts--panel {
  margin-top: 22px;
}

/* ---------- Tabs (refined) ---------- */
.store-css .hm-product-tabs__tab {
  border-radius: var(--hm-radius-sm) var(--hm-radius-sm) 0 0;
  transition: color 0.18s var(--hm-ease), background 0.18s var(--hm-ease);
}

.store-css .hm-product-tabs__tab:hover {
  background: var(--hm-gold-wash);
}

.store-css .hm-product-tabs__tab[aria-selected="true"] {
  background: var(--hm-gold-wash);
}

/* ---------- Warranty selector (Feature 7) ---------- */
.store-css .hm-warranty {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-md);
  background: var(--hm-surface);
}

.store-css .hm-warranty__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--hm-bronze-deep);
  font-size: 13px;
  font-weight: 800;
}

.store-css .hm-warranty__icon {
  font-size: 15px;
}

.store-css .hm-warranty__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.store-css .hm-warranty__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s var(--hm-ease), background 0.18s var(--hm-ease);
}

.store-css .hm-warranty__option:hover {
  border-color: var(--hm-gold);
}

.store-css .hm-warranty__option.is-active {
  border-color: var(--hm-gold);
  background: var(--hm-gold-wash);
  box-shadow: 0 2px 8px rgba(200, 162, 83, 0.16);
}

.store-css .hm-warranty__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.store-css .hm-warranty__name {
  color: var(--hm-ink);
  font-size: 12.5px;
  font-weight: 700;
}

.store-css .hm-warranty__price {
  color: var(--hm-bronze);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.store-css .hm-warranty__hint {
  margin: 10px 0 0;
  color: var(--hm-ink-soft);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- Product authenticity badges (Feature 9) ---------- */
.store-css .hm-authenticity {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--hm-gold-hairline);
  border-radius: var(--hm-radius-md);
  background: var(--hm-surface);
}

.store-css .hm-authenticity__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--hm-bronze-deep);
  font-size: 13px;
  font-weight: 800;
}

.store-css .hm-authenticity__icon {
  font-size: 14px;
}

.store-css .hm-authenticity__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-css .hm-authenticity__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--hm-radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
}

.store-css .hm-authenticity__mark {
  font-size: 12px;
}

.store-css .hm-authenticity__badge--original {
  border-color: rgba(74, 124, 89, 0.35);
  background: rgba(74, 124, 89, 0.10);
  color: #2f5c3d;
}

.store-css .hm-authenticity__badge--high_copy,
.store-css .hm-authenticity__badge--copy {
  border-color: rgba(160, 124, 60, 0.35);
  background: rgba(200, 162, 83, 0.12);
  color: var(--hm-bronze-deep);
}

/* ---------- Responsive (mobile) ---------- */
@media (max-width: 768px) {
  .store-css .hm-product-title {
    font-size: 19px;
    line-height: 1.5;
  }

  .store-css .hm-product-meta {
    gap: 4px 12px;
  }

  .store-css .hm-price-card {
    margin: 16px 0 12px;
    padding: 14px 16px;
  }

  .store-css .hm-price-card__current {
    font-size: 23px;
  }

  .store-css .hm-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-css .hm-facts li {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon label value";
    gap: 4px 10px;
    padding: 10px 12px;
  }

  .store-css .hm-facts__label {
    font-size: 11px;
  }

  .store-css .hm-facts__value {
    justify-self: start;
    font-size: 12.5px;
  }

  .store-css .hm-product-description {
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.9;
  }

  .store-css .hm-sample-note {
    font-size: 12.5px;
  }

  .store-css .hm-warranty {
    margin: 14px 0;
    padding: 12px 14px;
  }

  .store-css .hm-warranty__options {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .store-css .hm-warranty__option {
    padding: 8px 10px;
  }

  .store-css .hm-authenticity {
    margin: 12px 0;
    padding: 10px 14px;
  }

  .store-css .hm-authenticity__badges {
    gap: 6px;
  }

  .store-css .hm-authenticity__badge {
    padding: 5px 11px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .store-css .hm-price-card {
    padding: 12px 14px;
  }

  .store-css .hm-price-card__current {
    font-size: 21px;
  }

  .store-css .hm-facts__icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}
