/* Product detail — Armo-like layout, Kaderoti palette
   Scoped to .page-product / .kd-* to avoid main.css conflicts. */

.page-product .main-content { padding-bottom: 2rem; }

.kd-bc {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
  padding: 1rem 0 .25rem;
  font-size: .8rem;
  color: var(--muted);
}
.kd-bc a { color: var(--muted); }
.kd-bc a:hover { color: var(--sand); }
.kd-bc [aria-current="page"] { color: var(--ink); }

/* ===== Two-column grid like Armo/Woodmart ===== */
.kd-pdp { padding: .75rem 0 1.5rem; }
.kd-pdp-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr) !important;
  gap: 1.75rem 2.5rem;
  align-items: start;
  margin: 0;
}

.page-product .payment-type-offer {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: .4rem;
  border: 1px solid rgba(225, 6, 0, .42);
  border-radius: 12px;
  background: rgba(255, 255, 255, .24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .17);
}
.page-product .payment-type-offer__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-product .payment-type-offer__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .5rem;
  padding: .35rem .5rem;
  border: 1px solid rgba(225, 6, 0, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
  color: #211a19;
  font-size: .72rem;
  line-height: 1.25;
}
.page-product .payment-type-offer__option strong { color: #d20a06; font-size: .78rem; white-space: nowrap; }
.page-product .payment-type-offer__option small { display: none; }

/* Gallery */
.kd-gallery {
  position: sticky;
  top: calc(var(--header-h, 76px) + .75rem);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}
.kd-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.kd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.kd-gallery-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-soft), var(--bg-elev));
}
.kd-zoom {
  position: absolute;
  left: .65rem;
  top: .65rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, .55);
  color: var(--sand);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.kd-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: .15rem;
}
.kd-thumbs .gallery-item {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elev);
  cursor: pointer;
}
.kd-thumbs .gallery-item.is-active {
  border-color: var(--bronze);
}
.kd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kd-gallery-meta { display: none; }

/* Summary */
.kd-summary { min-width: 0; }

.kd-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
  margin: .75rem 0 0;
  position: relative;
}
.kd-share--under-media {
  margin-top: .85rem;
  justify-content: flex-start;
}
.kd-share-payload {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: pre !important;
  border: 0 !important;
  opacity: 0 !important;
}
.kd-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  width: 100%;
}
.kd-share-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev, #1e222a);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  transition: border-color .2s, background .2s, transform .15s;
}
.kd-share-pill:hover {
  border-color: color-mix(in srgb, var(--bronze) 55%, var(--line));
  color: var(--bronze);
}
.kd-share-pill.is-copied {
  border-color: var(--bronze);
  color: var(--bronze);
  background: color-mix(in srgb, var(--bronze) 12%, transparent);
}
html[data-theme="light"] .kd-share-pill {
  background: #fff;
  border-color: #e5d9c5;
  color: #2c2419;
}
.kd-share-story {
  border-color: color-mix(in srgb, var(--bronze) 45%, var(--line));
  color: var(--bronze);
}
.kd-share-toast {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + .35rem);
  font-size: .75rem;
  font-weight: 700;
  color: var(--bronze);
  background: #2a2418;
  border: 1px solid #4a3d28;
  border-radius: 8px;
  padding: .3rem .55rem;
  z-index: 2;
  pointer-events: none;
  animation: kdShareToast .25s ease;
}
html[data-theme="light"] .kd-share-toast {
  background: #f7f1e6;
  border-color: #e0d2b8;
}
@keyframes kdShareToast {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.kd-action-btn.is-pop {
  animation: kdComboPop .45s ease;
}
@keyframes kdComboPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
/* legacy icon btn keep for safety */
.kd-share-btn {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1e222a;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

/* Story share sheet */
.kd-story-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: end center;
}
.kd-story-sheet[hidden] { display: none !important; }
.kd-story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(2px);
}
.kd-story-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 820px);
  overflow: auto;
  margin: 0;
  padding: 1.15rem 1.15rem 1.35rem;
  border-radius: 22px 22px 0 0;
  background: #161a22;
  border: 1px solid #2a3140;
  border-bottom: 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
  color: #eef2f7;
}
html[data-theme="light"] .kd-story-panel {
  background: #faf8f4;
  border-color: #e2d8c6;
  color: #1a1d24;
}
.kd-story-x {
  position: absolute;
  top: .65rem;
  inset-inline-end: .75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.kd-story-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 800;
  padding-inline-end: 2rem;
}
.kd-story-lead {
  margin: 0 0 1rem;
  font-size: .82rem;
  opacity: .72;
  line-height: 1.55;
}
.kd-story-preview-wrap {
  display: grid;
  place-items: center;
  margin: 0 0 1rem;
  padding: .65rem;
  border-radius: 16px;
  background: #0e1117;
  border: 1px solid #2a3140;
}
html[data-theme="light"] .kd-story-preview-wrap {
  background: #efeae1;
  border-color: #ddd2bf;
}
.kd-story-preview {
  width: min(100%, 220px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.kd-story-actions {
  display: grid;
  gap: .55rem;
}
.kd-story-act {
  width: 100%;
  border: 1px solid #3a4254;
  border-radius: 12px;
  padding: .78rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: .92rem;
  cursor: pointer;
  color: #f3f1ec;
  background: #222833;
  transition: transform .15s, background .2s, border-color .2s;
}
html[data-theme="light"] .kd-story-act {
  background: #fff;
  color: #1a1d24;
  border-color: #d8cfbc;
}
.kd-story-act:hover { transform: translateY(-1px); }
.kd-story-act--ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
  border-color: transparent;
  color: #fff;
}
.kd-story-act--wa {
  background: #1faa4c;
  border-color: transparent;
  color: #fff;
}
.kd-story-act--dl {
  background: transparent;
  border-color: color-mix(in srgb, var(--bronze) 50%, #3a4254);
  color: var(--bronze);
}
.kd-story-hint {
  margin: .85rem 0 0;
  font-size: .75rem;
  opacity: .65;
  text-align: center;
  line-height: 1.5;
}
.kd-story-linkbox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem .55rem;
  align-items: center;
  margin: 0 0 .9rem;
  padding: .7rem .8rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--bronze) 40%, #3a4254);
  background: color-mix(in srgb, var(--bronze) 10%, #12151c);
}
html[data-theme="light"] .kd-story-linkbox {
  background: color-mix(in srgb, var(--bronze) 8%, #fff);
  border-color: #e0d2b8;
}
.kd-story-link-label {
  grid-column: 1 / -1;
  font-size: .72rem;
  font-weight: 700;
  color: var(--bronze);
}
.kd-story-link {
  font-size: .78rem;
  font-weight: 700;
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  opacity: .9;
}
.kd-story-link-copy {
  border: 1px solid color-mix(in srgb, var(--bronze) 55%, transparent);
  background: transparent;
  color: var(--bronze);
  border-radius: 9px;
  padding: .35rem .55rem;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.kd-story-steps {
  margin: .85rem 0 0;
  padding: 0 1.1rem 0 0;
  font-size: .75rem;
  line-height: 1.65;
  opacity: .72;
}
.kd-story-steps b { color: var(--bronze); font-weight: 800; }
body.kd-story-open { overflow: hidden; }
@media (min-width: 720px) {
  .kd-story-sheet { place-items: center; }
  .kd-story-panel {
    border-radius: 18px;
    border-bottom: 1px solid #2a3140;
    max-height: min(88vh, 760px);
  }
}

.kd-title {
  margin: 0 0 .55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}
.kd-note {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
  white-space: pre-line;
}

.kd-row { margin: 0 0 1rem; }
.kd-row-label {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  color: var(--ink);
}
.kd-row-picked {
  color: var(--bronze);
  font-weight: 600;
  font-size: .88rem;
}

/* Reset global attr-options inside PDP */
.page-product .kd-summary .attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 !important;
}
.page-product .kd-summary .attr-options button {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.page-product .kd-summary .attr-options button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.page-product .kd-summary .attr-options button.active {
  border-color: var(--bronze);
  box-shadow: 0 0 0 1px var(--bronze);
  color: var(--sand);
}

/* Color = circles only */
.page-product .kd-swatches button.is-color,
.page-product .kd-swatches button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
}
.page-product .kd-swatches .color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  display: block;
}
.page-product .kd-swatches button.active {
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--bronze);
}

/* Size pills */
.page-product .kd-sizes button {
  min-width: 2.75rem;
  min-height: 2.55rem;
  padding: .4rem .65rem;
  border-radius: 4px;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.kd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.kd-variant-msg {
  min-height: 0;
  margin: 0 0 .35rem;
  font-size: .85rem;
  color: var(--muted);
}
.kd-hint {
  margin: 0 0 .85rem;
  font-size: .84rem;
  color: #d4a574;
}
.kd-hint.is-hidden { display: none; }

/* Price */
.kd-price {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin: .25rem 0 1rem;
}
.kd-price strong {
  font-size: 1.55rem;
  color: var(--sand);
  font-weight: 700;
}
.kd-price s {
  color: var(--muted);
  font-size: .95rem;
}
.kd-price s[hidden] { display: none !important; }
.kd-price small {
  color: var(--muted);
  font-size: .85rem;
}

/* Social proof rotator */
.kd-proof {
  position: relative;
  height: 2.55rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(196, 165, 116, .06);
  overflow: hidden;
}
.kd-proof-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 0 .85rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.kd-proof-item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.kd-proof-item p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.4;
}
.kd-proof-item[data-tone="sales"] { color: var(--ok); }
.kd-proof-item[data-tone="views"] { color: #7eb8c9; }
.kd-proof-item[data-tone="wish"] { color: #e08a96; }
.kd-proof-item[data-tone="cart"] { color: var(--bronze); }
.kd-proof-item svg { flex: 0 0 auto; }

/* Buy row */
.kd-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem .65rem;
  align-items: stretch;
  margin: 0 0 .85rem;
}
.kd-picked {
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, #e10600 6%, transparent);
  font-size: .84rem;
  line-height: 1.45;
}
.kd-picked-label { font-weight: 700; color: var(--ink); }
.kd-picked-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  color: var(--ink);
  font-weight: 600;
}
.kd-picked-count {
  margin-inline-start: auto;
  font-weight: 800;
  font-size: .78rem;
  color: #e10600;
}
.kd-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .45rem .18rem .55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #e10600 30%, var(--line));
  background: color-mix(in srgb, #e10600 10%, transparent);
  color: #e10600;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.kd-pick-chip:hover { background: color-mix(in srgb, #e10600 18%, transparent); }
.kd-pick-x {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, #e10600 16%, transparent);
  font-size: .75rem;
  line-height: 1;
}
.kd-pick-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: .1rem .2rem;
}
.kd-pick-clear:hover { color: #e10600; }

.kd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elev);
}
.kd-qty .pd-qty-btn {
  width: 40px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
}
.kd-qty .form-input {
  width: 48px;
  height: 48px;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  background: transparent;
  padding: 0;
}
.kd-add {
  min-height: 48px;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}
.kd-stock-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .5rem;
}
.kd-stock,
.kd-ready {
  display: inline-flex;
  align-items: center;
  font-size: .84rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.kd-stock.is-in {
  color: var(--ok);
  background: rgba(111, 173, 134, .12);
  border-color: rgba(111, 173, 134, .28);
}
.kd-stock.is-out {
  color: var(--danger);
  background: rgba(212, 106, 106, .12);
  border-color: rgba(212, 106, 106, .28);
}
.kd-ready {
  color: var(--bronze);
  background: rgba(196, 165, 116, .1);
  border-color: rgba(196, 165, 116, .28);
}

.kd-more-tools {
  margin-top: .75rem;
  border-top: 1px dashed var(--line);
  padding-top: .65rem;
  font-size: .86rem;
  color: var(--muted);
}
.kd-more-tools summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: .5rem;
}
.kd-more-tools summary:hover { color: var(--bronze); }
.kd-more-tools .btn { margin-top: .25rem; }

/* Tabs */
.kd-tabs {
  margin: .5rem auto 2rem;
  padding: 0;
}
.kd-tablist {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.kd-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .85rem 1.15rem;
  cursor: pointer;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.kd-tab.is-active {
  color: var(--sand);
  border-bottom-color: var(--bronze);
  font-weight: 600;
}
.kd-panel {
  padding: 1.15rem 0 0;
}
.kd-panel[hidden] { display: none !important; }
.kd-desc {
  max-width: 52rem;
  line-height: 1.95;
  color: var(--ink);
  font-size: .95rem;
}
.kd-desc p { margin: 0 0 .9rem; }
.kd-desc h1, .kd-desc h2, .kd-desc h3 {
  color: var(--sand);
  margin: 1.4rem 0 .55rem;
  font-size: 1.1rem;
}
.kd-specs {
  width: 100%;
  max-width: 52rem;
  border-collapse: collapse;
  font-size: .92rem;
}
.kd-specs th,
.kd-specs td {
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}
.kd-specs th {
  width: 28%;
  background: var(--bg-elev);
  color: var(--muted);
  font-weight: 600;
}

.kd-related {
  padding: 0 0 2.5rem;
}
.kd-related-track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: .25rem .1rem .8rem;
}
.kd-related-track > * {
  flex: 0 0 min(250px, 78vw);
  scroll-snap-align: start;
}

/* Staff / manager edit shortcuts on PDP */
.kd-admin-bar {
  margin: 0 auto .85rem;
}
.kd-admin-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem .9rem;
  padding: .65rem .9rem;
  border: 1px dashed rgba(154, 122, 77, .45);
  border-radius: 12px;
  background: rgba(154, 122, 77, .08);
}
html[data-theme="light"] .kd-admin-bar-inner {
  background: rgba(154, 122, 77, .1);
}
.kd-admin-bar-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--bronze-deep, #8a6a3d);
}
.kd-admin-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.kd-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .35rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface, rgba(255,255,255,.04));
  color: inherit;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.kd-admin-btn:hover {
  border-color: var(--bronze-deep, #8a6a3d);
}
.kd-admin-btn--primary {
  background: var(--bronze-deep, #8a6a3d);
  border-color: var(--bronze-deep, #8a6a3d);
  color: #fff;
}
.kd-admin-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: -.15rem 0 .85rem;
}
.kd-admin-fab {
  position: fixed;
  z-index: 240;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 48px;
  padding: .7rem 1.05rem;
  border-radius: 999px;
  background: #1a5cff;
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(26, 92, 255, .4);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.kd-admin-fab:hover { filter: brightness(1.06); color: #fff !important; }
.kd-admin-fab[hidden] { display: none !important; }
@media (max-width: 900px) {
  .kd-admin-fab { bottom: calc(5.5rem + env(safe-area-inset-bottom)); left: .75rem; }
}

body.kd-is-editing .kd-admin-bar { outline: 2px solid #1a5cff; }
.kd-inline-field {
  margin: 0 0 .85rem;
  padding: .75rem;
  border: 1px solid rgba(26, 92, 255, .35);
  border-radius: 10px;
  background: rgba(26, 92, 255, .06);
}
.kd-inline-field[hidden],
.kd-inline-variants[hidden] { display: none !important; }
.kd-inline-field label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 .35rem;
}
.kd-inline-price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
}
.kd-inline-flags {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.2rem;
}
.kd-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  margin: 0 !important;
  font-size: .92rem !important;
  color: inherit !important;
  cursor: pointer;
}
.kd-inline-variants {
  margin: 0 0 .85rem;
  padding: .75rem;
  border: 1px solid rgba(26, 92, 255, .35);
  border-radius: 10px;
  background: rgba(26, 92, 255, .06);
}
.kd-inline-variants-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .65rem;
  margin-bottom: .35rem;
}
.kd-inline-variants-title {
  margin: 0;
  font-size: .92rem;
}
.kd-inline-variants-hint {
  margin: 0 0 .55rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}
.kd-inline-apply-prices {
  font-size: .82rem;
  padding: .35rem .65rem;
  white-space: nowrap;
}
.kd-inline-var-row {
  display: grid;
  grid-template-columns: minmax(5rem, 1.4fr) 1fr 1fr .8fr;
  gap: .4rem;
  margin-bottom: .4rem;
  align-items: center;
}
.kd-inline-var-label {
  font-size: .82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kd-inline-dock {
  position: fixed;
  z-index: 250;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(12, 14, 18, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .kd-inline-dock {
  background: rgba(255, 255, 255, .96);
}
.kd-inline-dock[hidden] { display: none !important; }
.kd-inline-dock-msg {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: .9rem;
  color: #2f8f5b;
}
.kd-inline-dock-msg.is-err { color: #c45c5c; }
body.kd-is-editing { padding-bottom: 4.5rem; }
body.kd-is-editing .kd-sticky { display: none !important; }

/* Inline gallery manager */
.kd-inline-gallery {
  margin-top: .85rem;
  padding: .75rem;
  border: 1px dashed rgba(26, 92, 255, .45);
  border-radius: 8px;
  background: rgba(26, 92, 255, .04);
}
.kd-inline-gallery[hidden] { display: none !important; }
.kd-inline-gallery-title {
  display: block;
  font-size: .82rem;
  margin-bottom: .55rem;
  color: var(--ink, #1a1a1a);
}
.kd-inline-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .55rem;
}
.kd-inline-gal-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1;
  border: 2px solid transparent;
  cursor: grab;
  touch-action: none;
}
.kd-inline-gal-item.is-dragging {
  opacity: .45;
  cursor: grabbing;
}
.kd-inline-gal-drag {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: grab;
  user-select: none;
}
.kd-inline-gal-item.is-main {
  border-color: #1a5cff;
}
.kd-inline-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kd-inline-gal-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: #1a5cff;
  color: #fff;
  font-weight: 600;
}
.kd-inline-gal-actions {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.kd-inline-gal-btn {
  flex: 1;
  border: 0;
  border-radius: 3px;
  font-size: .65rem;
  padding: .2rem 0;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  color: #111;
}
.kd-inline-gal-btn--del {
  background: #c45c5c;
  color: #fff;
}
.kd-inline-gal-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .8rem;
  color: var(--muted, #777);
}
.kd-inline-gal-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .65rem;
  min-height: 40px;
  padding: 0 .9rem;
  border-radius: 6px;
  border: 1px solid #1a5cff;
  color: #1a5cff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
}
.kd-inline-gal-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
html[data-theme="dark"] .kd-inline-gal-add {
  background: #1d2327;
  color: #9ec1ff;
  border-color: #4d7fff;
}
.kd-inline-gal-hint {
  margin: .45rem 0 0;
  font-size: .72rem;
  color: var(--muted, #888);
}

/* Stock notify CTA */
.kd-notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 0 .85rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--bronze-deep, #8a6a3d);
  border: 1.5px solid var(--bronze-deep, #8a6a3d);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.kd-notify-btn:hover {
  background: rgba(154, 122, 77, .1);
}
.kd-notify-btn[hidden] { display: none !important; }
.kd-sticky-notify {
  margin: 0;
  min-height: 44px;
  padding: .55rem 1rem;
  white-space: nowrap;
}

.kd-notify-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.kd-notify-modal[hidden] { display: none !important; }
.kd-notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.kd-notify-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--surface, #15171a);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
html[data-theme="light"] .kd-notify-dialog {
  background: #fff;
}
.kd-notify-dialog h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.kd-notify-close {
  position: absolute;
  top: .55rem;
  left: .55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
}
.kd-notify-err {
  color: #c45c5c;
  margin: 0 0 .75rem;
  font-size: .9rem;
}
.kd-notify-ok {
  color: #2f8f5b;
  margin: 0 0 .75rem;
  font-size: .9rem;
}
body.kd-notify-open { overflow: hidden; }

/* Sticky mobile bar */
.kd-sticky {
  display: none;
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 110;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 12, 14, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
}
html[data-theme="light"] .kd-sticky {
  background: rgba(255, 255, 255, .96);
}
.kd-sticky-price {
  font-weight: 700;
  color: var(--sand);
}

@media (max-width: 900px) {
  .kd-pdp-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .kd-gallery { position: static; }
  .kd-gallery-main { border-radius: 2px; }
  .kd-thumbs .gallery-item {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
  .kd-buy {
    grid-template-columns: 1fr;
  }
  .kd-qty { justify-self: start; }
  .kd-add { display: none; } /* sticky bar handles CTA */
  .kd-notify-btn:not(.kd-sticky-notify) { display: none; }
  .kd-sticky { display: grid; }
  .page-product .main-content { padding-bottom: 5.75rem; }
  .kd-title { font-size: 1.2rem; }
  .kd-tablist { overflow-x: auto; }
}

@media (min-width: 901px) {
  .kd-sticky { display: none !important; }
}

/* Summary boxes: intro (title + short description), sizes, price */
.kd-summary .kd-box {
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border: 1px solid rgba(133, 190, 232, .24);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(35, 91, 137, .24), rgba(9, 35, 62, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 36px rgba(2, 15, 30, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.kd-summary .kd-box > :first-child { margin-top: 0; }
.kd-summary .kd-box > :last-child { margin-bottom: 0; }
.kd-summary .kd-box--price { padding-block: 1rem; }
html[data-theme="light"] .kd-summary .kd-box {
  border-color: rgba(23, 61, 94, .14);
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 26px rgba(23, 61, 94, .08);
}
@media (max-width: 560px) {
  .kd-summary .kd-box { border-radius: 18px; }
}

html[data-theme="light"] .kd-thumbs .gallery-item,
html[data-theme="light"] .page-product .kd-summary .attr-options button,
html[data-theme="light"] .kd-qty {
  background: #fff;
}
html[data-theme="light"] .kd-proof {
  background: rgba(154, 122, 77, .06);
}
html[data-theme="light"] .kd-price strong { color: var(--bronze-deep); }
html[data-theme="light"] .kd-tab.is-active { color: var(--bronze-deep); }

@media (max-width: 900px) {
  .page-product .kd-pdp-grid { gap: 1.25rem; }
  .page-product .kd-gallery { gap: .7rem; }
  .page-product .kd-gallery-main {
    aspect-ratio: 4 / 4.8;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, #202126, #101114);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
    touch-action: pan-y;
  }
  .page-product .kd-gallery-main img {
    object-fit: contain;
    padding: .35rem;
  }
  .page-product .kd-gallery-meta {
    position: absolute;
    z-index: 5;
    right: .8rem;
    bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .6rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 16, 19, .62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .7rem;
    line-height: 1;
    pointer-events: none;
  }
  .page-product .kd-gallery-count { min-width: 2.4rem; text-align: center; }
  .page-product .kd-gallery-dots { display: flex; align-items: center; gap: .2rem; }
  .page-product .kd-gallery-dots i {
    width: .25rem;
    height: .25rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, .5);
    transition: width .2s ease, background .2s ease;
  }
  .page-product .kd-gallery-dots i.is-active { width: .75rem; background: #fff; }
  .page-product .kd-zoom {
    top: auto;
    left: .8rem;
    bottom: .8rem;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(15, 16, 19, .62);
  }
  .page-product .pd-fs {
    padding: calc(3.5rem + env(safe-area-inset-top)) 0 calc(5.8rem + env(safe-area-inset-bottom));
  }
  .page-product .pd-fs-stage { align-self: stretch; }
  .page-product .pd-fs img#pdFsImage,
  .page-product .pd-fs .pd-fs-stage img {
    max-width: 100vw;
    max-height: 100%;
    object-fit: contain;
  }
  .page-product .pd-fs-close { top: calc(.75rem + env(safe-area-inset-top)); }
  .page-product .pd-fs-footer {
    bottom: env(safe-area-inset-bottom);
    padding-bottom: .65rem;
  }
}

html[data-theme="light"] .page-product .kd-gallery-main {
  background: linear-gradient(145deg, #fff, #f3f1ed);
}

.kd-sticky-size-find { display: none; }
.page-product .size-guide-modal { z-index: 20000; isolation: isolate; }
.page-product .size-guide-card {
  display: block;
  width: min(620px, 100%);
  max-height: min(88vh, 820px);
  padding: 1.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--bronze) 16%, transparent), transparent 52%),
    var(--surface-solid, #14161a);
  animation: kdSizeModalIn .3s cubic-bezier(.2,.8,.2,1) both;
}
.kd-size-modal-heading { padding: .25rem 2.6rem .8rem 0; }
.kd-size-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  color: var(--bronze);
  font-size: .76rem;
  font-weight: 800;
}
.kd-size-modal-kicker::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: kdSizePulse 1.8s ease-in-out infinite;
}
.kd-size-modal-heading h2 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.55rem); }
.kd-size-modal-heading > p { margin: .45rem 0 0; color: var(--muted); font-size: .88rem; }
.kd-size-finder { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg-soft) 78%, transparent); }
.kd-size-progress { margin-bottom: 1.15rem; }
.kd-size-progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--muted) 20%, transparent); }
.kd-size-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bronze), #f2d39a); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.kd-size-progress.is-complete .kd-size-progress-track span { background: linear-gradient(90deg, #26a878, #83dbb1); }
.kd-size-progress-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; color: var(--muted); font-size: .75rem; }
.kd-size-progress-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-size-step[hidden], .kd-size-result[hidden] { display: none !important; }
.kd-size-step { position: relative; min-height: 205px; padding: .3rem .15rem .7rem; animation: kdSizeStepIn .28s ease both; }
.kd-size-step-number { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: .65rem; border-radius: 11px; color: var(--bronze); background: color-mix(in srgb, var(--bronze) 14%, transparent); font-size: .8rem; font-weight: 800; }
.kd-size-step h3 { margin: 0 0 .4rem; font-size: clamp(1.15rem, 4vw, 1.4rem); }
.kd-size-step > p { max-width: 46ch; margin: 0 0 1.2rem; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.kd-size-measure-input { display: flex; align-items: center; gap: .7rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); transition: border-color .2s, box-shadow .2s, transform .2s; }
.kd-size-measure-input:focus-within { transform: translateY(-2px); border-color: var(--bronze); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bronze) 14%, transparent); }
.kd-size-measure-input input { width: 100%; min-width: 0; height: 52px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1.3rem; font-weight: 750; }
.kd-size-measure-input input::placeholder { color: color-mix(in srgb, var(--muted) 62%, transparent); font-size: 1rem; font-weight: 500; }
.kd-size-measure-input > span:last-child { flex: 0 0 auto; color: var(--muted); font-size: .8rem; }
.kd-size-measure-input:has(input[aria-invalid="true"]) { border-color: #e34b4b; }
.kd-size-step-error { margin: .45rem 0 0 !important; color: #e34b4b !important; font-size: .76rem !important; }
.kd-size-step-error[hidden] { display: none !important; }
.kd-size-finder-actions { display: flex; justify-content: space-between; gap: .7rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.kd-size-finder-actions[hidden] { display: none !important; }
.kd-size-back, .kd-size-next, .kd-size-edit {
  min-height: 46px;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: .87rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.kd-size-back { color: var(--ink); background: transparent; }
.kd-size-back[hidden] { display: none !important; }
.kd-size-next { min-width: 48%; margin-inline-start: auto; border-color: transparent; color: #20180d; background: linear-gradient(110deg, var(--bronze), #f1d39a); box-shadow: 0 8px 22px color-mix(in srgb, var(--bronze) 25%, transparent); }
.kd-size-back:hover, .kd-size-next:hover, .kd-size-edit:hover { transform: translateY(-2px); }
.kd-size-result-hero { position: relative; overflow: hidden; margin-bottom: 1rem; padding: 1rem; border: 1px solid color-mix(in srgb, #36bd87 38%, transparent); border-radius: 15px; background: linear-gradient(120deg, color-mix(in srgb, #36bd87 15%, transparent), color-mix(in srgb, var(--bronze) 10%, transparent)); }
.kd-size-result-hero::after { content: "✓"; position: absolute; inset-inline-end: 1rem; top: 50%; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #36bd87; background: color-mix(in srgb, #36bd87 15%, transparent); font-size: 1.2rem; font-weight: 900; transform: translateY(-50%); }
.kd-size-result-hero > span { display: block; color: var(--muted); font-size: .78rem; }
.kd-size-result-hero > strong { display: block; margin-top: .2rem; color: #36bd87; font-size: 2.1rem; line-height: 1.2; }
.kd-size-result-hero > p { max-width: calc(100% - 48px); margin: .4rem 0 0; color: var(--ink); font-size: .82rem; line-height: 1.7; }
.kd-size-result > h3 { margin: 0 0 .65rem; font-size: .95rem; }
.kd-size-carousel { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: .35rem; }
.kd-size-carousel-arrow { display: grid; width: 34px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: color-mix(in srgb, var(--bg-elev) 92%, transparent); font-size: 1.5rem; cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.kd-size-carousel-arrow:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--bronze); color: var(--bronze); background: color-mix(in srgb, var(--bronze) 9%, transparent); }
.kd-size-carousel-arrow:disabled { opacity: .35; cursor: default; }
.kd-size-carousel-arrow[hidden] { display: none !important; }
.kd-size-carousel:has(.kd-size-carousel-arrow[hidden]) { grid-template-columns: minmax(0, 1fr); }
.kd-size-result-options { display: flex; min-width: 0; gap: .65rem; overflow-x: auto; overflow-y: hidden; padding: .25rem .1rem .55rem; direction: rtl; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; }
.kd-size-result-options::-webkit-scrollbar { display: none; }
.kd-size-option { flex: 0 0 min(100%, 320px); min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--bg-elev) 85%, transparent); animation: kdSizeStepIn .3s ease both; scroll-snap-align: center; }
.kd-size-option.is-recommended { border-color: color-mix(in srgb, #36bd87 65%, transparent); background: color-mix(in srgb, #36bd87 8%, var(--bg-elev)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #36bd87 18%, transparent); }
.kd-size-option-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.kd-size-option-heading strong { color: var(--ink); font-size: 1.1rem; }
.kd-size-option.is-recommended .kd-size-option-heading strong { color: #36bd87; }
.kd-size-option-heading span { color: var(--muted); font-size: .65rem; text-align: end; }
.kd-size-option ul { display: grid; gap: .35rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.kd-size-option li { color: var(--muted); font-size: .72rem; line-height: 1.55; }
.kd-size-option-select { width: 100%; min-height: 38px; margin-top: .7rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; transition: transform .18s, background .18s, border-color .18s; }
.kd-size-option-select:hover { transform: translateY(-1px); border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.kd-size-option.is-recommended .kd-size-option-select { border-color: transparent; color: #21190e; background: linear-gradient(110deg, var(--bronze), #f1d39a); }
.kd-size-option-message { margin: .5rem 0 0; color: #d95858; font-size: .72rem; line-height: 1.6; }
.kd-size-option-message[hidden] { display: none !important; }
.kd-size-carousel-count { margin: .1rem 0 .45rem; color: var(--muted); font-size: .72rem; text-align: center; font-variant-numeric: tabular-nums; }
.kd-size-carousel-count[hidden] { display: none !important; }
.kd-size-edit { width: 100%; margin-top: .75rem; color: var(--ink); background: transparent; }
.kd-size-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; margin-top: .8rem; padding: .8rem; border: 1px solid color-mix(in srgb, var(--bronze) 28%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--bronze) 7%, transparent); }
.kd-size-help-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--bronze); background: color-mix(in srgb, var(--bronze) 15%, transparent); font-size: 1rem; font-weight: 900; }
.kd-size-help strong { display: block; margin-bottom: .15rem; font-size: .78rem; }
.kd-size-help p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.kd-size-help a { display: inline-block; margin-top: .25rem; color: var(--bronze); font-size: .8rem; font-weight: 800; letter-spacing: .03em; }
.kd-size-help button { min-height: 36px; padding: .4rem .65rem; border: 1px solid color-mix(in srgb, var(--bronze) 50%, transparent); border-radius: 10px; color: var(--ink); background: transparent; font: inherit; font-size: .73rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.kd-size-help button:hover { background: color-mix(in srgb, var(--bronze) 12%, transparent); }
.kd-size-chart-details {
  margin-top: 1rem;
  padding: .2rem .85rem .85rem;
  border: 1px solid color-mix(in srgb, var(--bronze) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
}
.kd-size-chart-details summary {
  padding: .75rem 0;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}
.kd-size-chart-details[open] summary { color: var(--bronze); }
.kd-size-chart-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-color: var(--bronze) color-mix(in srgb, var(--line) 60%, transparent);
  -webkit-overflow-scrolling: touch;
}
.kd-size-chart-scroll .size-chart-table {
  display: table;
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .84rem;
  line-height: 1.5;
}
.kd-size-chart-scroll .size-chart-table th,
.kd-size-chart-scroll .size-chart-table td {
  min-width: 76px;
  padding: .7rem .8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.kd-size-chart-scroll .size-chart-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--bronze);
  background: color-mix(in srgb, var(--bronze) 12%, var(--bg-elev));
  font-weight: 800;
}
.kd-size-chart-scroll .size-chart-table th:first-child,
.kd-size-chart-scroll .size-chart-table td:first-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 68px;
  font-weight: 800;
  background: var(--bg-elev);
}
.kd-size-chart-scroll .size-chart-table th:first-child { z-index: 3; }
.kd-size-chart-scroll .size-chart-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-elev) 58%, transparent);
}
.kd-size-chart-scroll .size-chart-table tbody tr:nth-child(even) td:first-child {
  background: var(--bg-elev);
}
.kd-size-chart-scroll .size-chart-table tbody tr:last-child td { border-bottom: 0; }
.kd-size-chart-link { display: inline-block; margin-top: .7rem; color: var(--bronze); font-size: .8rem; font-weight: 700; }

@keyframes kdSizeModalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes kdSizeStepIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes kdSizePulse { 50% { opacity: .45; box-shadow: 0 0 3px currentColor; } }

@media (max-width: 900px) {
  .kd-sticky-size-find {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .1rem .15rem;
    border: 0;
    color: var(--bronze);
    background: transparent;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
}
@media (max-width: 640px) {
  .page-product .size-guide-modal { place-items: end center; padding: 0; }
  .page-product .size-guide-card {
    width: 100%;
    max-height: min(91dvh, 820px);
    padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    animation-name: kdSizeSheetIn;
  }
  .kd-size-modal-heading { padding-top: .25rem; }
  .kd-size-finder { padding: .85rem; border-radius: 16px; }
  .kd-size-chart-details { margin-top: .8rem; padding-inline: .65rem; }
  .kd-size-chart-scroll .size-chart-table { font-size: .78rem; }
  .kd-size-chart-scroll .size-chart-table th,
  .kd-size-chart-scroll .size-chart-table td { min-width: 68px; padding: .65rem .6rem; }
  .kd-size-step { min-height: 195px; }
  .kd-size-carousel { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: .25rem; }
  .kd-size-carousel-arrow { width: 30px; height: 40px; }
  .kd-size-option { flex-basis: 100%; }
  .kd-size-option { padding: .65rem .75rem; }
  .kd-size-help { grid-template-columns: auto minmax(0, 1fr); }
  .kd-size-help button { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-size-modal-kicker::before, .kd-size-step, .kd-size-option, .size-guide-card { animation: none !important; }
  .kd-size-progress-track span, .kd-size-measure-input, .kd-size-back, .kd-size-next, .kd-size-edit { transition: none !important; }
}
@keyframes kdSizeSheetIn { from { opacity: .6; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Kill legacy conflicting layout on this page */
.page-product .product-detail,
.page-product .pd-layout,
.page-product .pd-layout-armo {
  display: contents;
}
.page-product .pd-color-rail,
.page-product .pd-thumbs-in,
.page-product .pd-sticky-bar {
  display: none !important;
}

/* Hover zoom lens */
.kd-zoom-lens{
  position:absolute;z-index:6;pointer-events:none;
  border:2px solid rgba(201,162,39,.9);border-radius:50%;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  background-repeat:no-repeat;opacity:0;display:none;
}
.kd-zoom-lens.is-on{display:block;opacity:1}
#pdMainWrap.has-zoom,.kd-gallery-main.has-zoom{overflow:hidden;cursor:crosshair;position:relative}

/* —— Action grid: combo + size guide (equal, modern, theme-aware) —— */
.kd-action-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.55rem;
  margin:.85rem 0 .65rem;
}
.kd-action-grid:has(> :only-child){ grid-template-columns:1fr; }
.kd-action-btn{
  display:flex;
  align-items:center;
  gap:.55rem;
  min-height:48px;
  padding:.55rem .7rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg-elev, #16181e);
  color:var(--ink);
  cursor:pointer;
  text-align:right;
  transition:border-color .2s, background .2s, transform .15s;
  font:inherit;
  width:100%;
}
.kd-action-btn:hover:not(:disabled){
  border-color:color-mix(in srgb, var(--bronze) 55%, var(--line));
  background:color-mix(in srgb, var(--bronze) 10%, var(--bg-elev, #16181e));
}
.kd-action-btn:active:not(:disabled){ transform:scale(.985); }
.kd-action-btn:disabled{ opacity:.45; cursor:not-allowed; }
.kd-action-ico{
  flex:0 0 auto;
  width:32px;height:32px;
  border-radius:8px;
  display:grid;place-items:center;
  background:color-mix(in srgb, var(--bronze) 14%, transparent);
  color:var(--bronze);
}
.kd-action-txt{ display:flex; flex-direction:column; gap:.1rem; min-width:0; }
.kd-action-txt strong{ font-size:.88rem; font-weight:700; line-height:1.2; }
.kd-action-txt small{ font-size:.72rem; color:var(--muted); line-height:1.2; }
.kd-action-btn--combo .kd-action-ico{
  background:color-mix(in srgb, var(--bronze) 22%, transparent);
}
html[data-theme="light"] .kd-action-btn{
  background:#fff;
  border-color:#e4d8c4;
  color:#2c2419;
}
html[data-theme="light"] .kd-action-btn:hover:not(:disabled){
  background:#faf6ef;
  border-color:#c4a574;
}
html[data-theme="light"] .kd-action-ico{
  background:rgba(154,122,77,.12);
  color:#8a6a3d;
}
.kd-trust-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.6rem 1rem;
  margin-top:.6rem;
}
.kd-trust-row .trust-open-btn{ margin:0; }
.kd-trust-link{
  display:inline-block;
  margin:0;
  font-size:.8rem;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
}
.kd-trust-link:hover{ color:var(--bronze); }
.kd-combo-list{
  margin:0 0 .75rem;
  padding:.7rem .8rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg-soft, #12141a);
}
html[data-theme="light"] .kd-combo-list{ background:#faf7f1; }

/* —— Sticky bar: compact, no glass —— */
.kd-sticky{
  display:none;
  position:fixed;
  inset-inline:.55rem;
  bottom:0;
  z-index:140;
  box-sizing:border-box;
  width:auto;
  max-width:720px;
  margin-inline:auto;
  padding:.72rem .85rem calc(.7rem + env(safe-area-inset-bottom));
  border:1px solid color-mix(in srgb, var(--bronze) 24%, var(--line));
  border-bottom:0;
  border-radius:22px 22px 0 0;
  background:
    radial-gradient(ellipse at 12% 0, color-mix(in srgb, var(--bronze) 11%, transparent), transparent 42%),
    color-mix(in srgb, var(--bg-elev, #12141a) 94%, transparent);
  box-shadow:0 -14px 48px rgba(3,7,14,.28), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter:blur(20px) saturate(1.25);
  -webkit-backdrop-filter:blur(20px) saturate(1.25);
  gap:.48rem;
  grid-template-columns:minmax(0,1fr);
  justify-items:stretch;
}
html[data-theme="light"] .kd-sticky{
  background:
    radial-gradient(ellipse at 12% 0, rgba(196,165,116,.14), transparent 42%),
    rgba(255,255,255,.96);
  border-color:rgba(154,122,77,.24);
  box-shadow:0 -14px 42px rgba(22,34,52,.13), inset 0 1px 0 rgba(255,255,255,.88);
}
.kd-sticky > * { min-width:0; box-sizing:border-box; }
.kd-sticky-picked{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.25rem .4rem;
  font-size:.72rem;
  line-height:1.35;
  color:var(--muted);
}
.kd-sticky-picked[hidden] { display:none !important; }
.kd-sticky-picked-label{ font-weight:700; color:var(--ink); flex:0 0 auto; }
.kd-sticky-picked-list{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.25rem;
  font-weight:650;
  color:var(--ink);
}
.kd-sticky-picked .kd-pick-chip{
  font-size:.68rem;
  padding:.12rem .38rem .12rem .45rem;
}
.kd-sticky-picked .kd-pick-clear{ font-size:.68rem; }
.kd-sticky-picked-chip{ display:none; }
.kd-sticky-sizes{
  display:flex;
  gap:.35rem;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-bottom:.15rem;
  touch-action:pan-x;
}
.kd-sticky-sizes::-webkit-scrollbar{ display:none; }
.kd-sticky-size-sep{
  flex:0 0 1px;
  align-self:stretch;
  width:1px;
  margin:0 .15rem;
  background:var(--line);
}
.kd-sticky-size{
  flex:0 0 auto;
  min-width:40px;
  height:34px;
  padding:0 .7rem;
  border:1px solid var(--line);
  border-radius:11px;
  background:color-mix(in srgb, var(--bg-elev) 70%, transparent);
  color:var(--ink);
  font-size:.82rem;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
}
.kd-sticky-size.is-active{
  border-color:var(--bronze);
  color:var(--ink);
  background:linear-gradient(145deg,color-mix(in srgb, var(--bronze) 27%, transparent),color-mix(in srgb, var(--bronze) 10%, transparent));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--bronze) 12%,transparent);
}
.kd-sticky-size.is-oos{ opacity:.4; text-decoration:line-through; }
.kd-sticky-size-item { display:inline-flex; flex:0 0 auto; align-items:center; gap:.18rem; }
.kd-sticky-size-add {
  width:24px;height:30px;padding:0;
  border:1px solid rgba(225,6,0,.35);border-radius:7px;
  background:rgba(225,6,0,.08);color:#e10600;
  font:700 1rem inherit;cursor:pointer;
}
.kd-sticky-row{
  display:grid;
  min-width:0;
  grid-template-columns:auto minmax(0,1fr) minmax(132px,1.35fr);
  gap:.5rem;
  align-items:center;
}
.kd-sticky.has-notify .kd-sticky-row { grid-template-columns:minmax(0,1fr) minmax(145px,1.35fr); }
.kd-sticky.has-notify .kd-sticky-qty { display:none; }
.kd-sticky-row > * { min-width:0; }
.kd-sticky-qty{
  display:inline-flex;
  align-items:center;
  border:1px solid color-mix(in srgb,var(--bronze) 22%,var(--line));
  border-radius:12px;
  overflow:hidden;
  height:40px;
}
.kd-sticky-qbtn{
  width:32px;height:40px;
  border:0;background:transparent;color:var(--ink);
  font-size:1.05rem;cursor:pointer;font-family:inherit;
}
.kd-sticky-qval{
  min-width:28px;text-align:center;font-size:.88rem;font-weight:700;
  font-variant-numeric:tabular-nums;
}
.kd-sticky-price{
  min-width:0;
  font-weight:800;font-size:.91rem;color:var(--sand);
  white-space:nowrap;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.kd-sticky-price small{ font-weight:500; font-size:.72rem; color:var(--muted); margin-inline-start:.15rem; }
.kd-sticky-add{
  min-width:0;
  height:44px;
  padding:0 .8rem;
  border:0;
  border-radius:13px;
  background:linear-gradient(110deg,#c8a367,#ead19e);
  color:#21190f;
  font-weight:700;
  font-size:.84rem;
  cursor:pointer;
  font-family:inherit;
  white-space:nowrap;
  box-shadow:0 7px 18px rgba(191,151,85,.2),inset 0 1px 0 rgba(255,255,255,.32);
  transition:transform .2s,box-shadow .2s,filter .2s;
}
.kd-sticky-add:hover:not(.is-disabled){ transform:translateY(-1px); box-shadow:0 10px 24px rgba(191,151,85,.28); filter:brightness(1.04); }
.kd-sticky-add.is-disabled { opacity:.58; color:rgba(33,25,15,.78); }
.kd-add.is-disabled,
.kd-sticky-add.is-disabled,
.kd-action-btn.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:auto;
}
.kd-sticky-add:disabled,
.kd-add:disabled{
  opacity:.45;
  cursor:not-allowed;
}

html[data-theme="light"] .kd-sticky-add{ color:#21190f; background:linear-gradient(110deg,#c8a367,#ead19e); }
html[data-theme="light"] .kd-sticky-add:hover:not(:disabled){ background:linear-gradient(110deg,#d4b477,#f0dcae); }
html[data-theme="light"] .kd-sticky-add:disabled{ background:linear-gradient(110deg,#c8a367,#ead19e); color:rgba(33,25,15,.78); }
html[data-theme="light"] .kd-sticky-price{ color:#e10600; }
html[data-theme="light"] .kd-sticky-price small{ color:#e10600; }

@media (max-width:900px){
  .kd-sticky{ display:grid; }
  .kd-sticky {
    will-change: transform, opacity;
    transition: transform .62s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
    width:auto;
    max-width:720px;
    grid-template-columns:minmax(0,1fr);
  }
  .kd-sticky.is-scroll-hidden {
    transform: translate3d(0, calc(100% + 1rem), 0);
    opacity: 0;
    pointer-events: none;
  }
  .kd-sticky-product {
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:.78rem;
    line-height:1.2;
    font-weight:700;
    color:var(--ink);
  }
  .kd-sticky-row { grid-template-columns:auto minmax(0,1fr) minmax(126px,1.2fr); gap:.38rem; }
  .kd-sticky.has-notify .kd-sticky-row { grid-template-columns:minmax(0,1fr) minmax(142px,1.35fr); }
  .kd-sticky-price { font-size:.82rem; }
  .kd-sticky-price small { font-size:.65rem; }
  .kd-sticky-add { height:44px; padding-inline:.55rem; font-size:.78rem; }
  .kd-sticky-size-find { padding:.1rem .25rem; border-radius:8px; text-decoration:none; }
  .kd-sticky-size-find::before { content:"✦"; margin-inline-end:.35rem; color:var(--bronze); }
  .page-product #chatWidget:not(.is-dragged):not(.is-open-chat) {
    bottom:var(--pd-sticky-chat-bottom,calc(5.8rem + env(safe-area-inset-bottom,0px) + 50px)) !important;
    z-index:120 !important;
    transition:bottom .35s cubic-bezier(.22,1,.36,1);
  }
  body.kd-chat-open-mobile .page-product #chatWidget,
  .page-product #chatWidget.is-open-chat { z-index:150 !important; }
  .kd-gallery { position:static; }
  .kd-gallery-main { touch-action:pan-y; }
  .kd-thumbs { display:none; }
  .page-product .payment-type-offer { padding:.35rem; }
  .page-product .payment-type-offer__options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .payment-type-offer__option { padding:.55rem .35rem; font-size:.76rem; }
  .payment-type-offer__option strong { font-size:.82rem; }
  .payment-type-offer__option small { font-size:.68rem; }
  .page-product .main-content{ padding-bottom:6.5rem; }
  .kd-add{ display:none; }
  .kd-qty{ display:none; } /* qty lives in sticky on mobile */
}
@media (prefers-reduced-motion: reduce) {
  .kd-sticky { transition: none !important; }
}
@media (max-width:380px) {
  .kd-sticky { inset-inline:.35rem; padding-inline:.6rem; }
  .kd-sticky-row { grid-template-columns:auto minmax(0,1fr) minmax(112px,1.15fr); gap:.25rem; }
  .kd-sticky.has-notify .kd-sticky-row { grid-template-columns:minmax(0,1fr) minmax(126px,1.2fr); }
  .kd-sticky-qbtn { width:27px; }
  .kd-sticky-qval { min-width:23px; }
  .kd-sticky-add { font-size:.73rem; }
}
@media (min-width:901px){
  .kd-sticky-product { display:none; }
}
@media (min-width:901px){
  .kd-sticky{ display:none !important; }
}
