/* Glamora – product page */
.glpd { padding: 16px 0 56px; background: var(--paper, #fff); }
.glpd__crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.glpd__crumbs a { color: var(--ink-3); text-decoration: none; }
.glpd__crumbs a:hover { color: var(--ink); text-decoration: underline; }
.glpd__crumbs [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.glpd__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* gallery */
.glpd__gallery { position: sticky; top: calc(var(--header-height, 72px) + 16px); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.glpd__stage { grid-column: 2; grid-row: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; background: #f7f4f5; aspect-ratio: 1 / 1; }
.glpd__stage::-webkit-scrollbar { display: none; }
.glpd__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.glpd__img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; display: block; }
.glpd__slide video.glpd__img, .glpd__slide iframe.glpd__img { padding: 0; mix-blend-mode: normal; object-fit: cover; }
.glpd__gallery:has(.glpd__thumbs) .glpd__stage { grid-column: 2; }
.glpd__gallery:not(:has(.glpd__thumbs)) { grid-template-columns: minmax(0, 1fr); }
.glpd__gallery:not(:has(.glpd__thumbs)) .glpd__stage { grid-column: 1; }
.glpd__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.glpd__thumb { appearance: none; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #f7f4f5; aspect-ratio: 1; overflow: hidden; cursor: pointer; flex: 0 0 auto; width: 72px; transition: border-color .15s ease; }
.glpd__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; display: block; }
.glpd__thumb[aria-current] { border-color: var(--ink); }
.glpd__dots { display: none; }
.glpd__flags { position: absolute; top: 14px; left: 100px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; pointer-events: none; }
.glpd__gallery:not(:has(.glpd__thumbs)) .glpd__flags { left: 14px; }
.glpd__flags [hidden] { display: none; }

/* info */
.glpd__info { padding-top: 4px; }
.glpd__vendor { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; margin-bottom: 8px; }
.glpd__vendor:hover { color: var(--rose); }
.glpd__title { font-family: var(--font-body--family); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 10px; color: var(--ink); }
.glpd__rating { display: inline-block; margin-bottom: 14px; text-decoration: none; color: inherit; }
.glpd__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.glpd__now { font-size: 26px; font-weight: 700; color: var(--ink); }
.glpd__now.is-sale { color: var(--rose); }
.glpd__was { font-size: 16px; color: var(--ink-3); }
.glpd__save { font-size: 12px; font-weight: 700; color: var(--rose-2); background: var(--blush-2); padding: 4px 8px; border-radius: 3px; }
.glpd__price [hidden] { display: none; }
.glpd__tax { font-size: 12px; color: var(--ink-3); margin: 4px 0 22px; }

.glpd__form { display: grid; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.glpd__opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.glpd__opt-label { font-size: 13px; color: var(--ink-2); padding: 0; margin-bottom: 10px; }
.glpd__opt-label b { color: var(--ink); font-weight: 600; }
.glpd__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.glpd__val { position: relative; cursor: pointer; }
.glpd__val input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.glpd__pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; background: #fff; transition: border-color .15s ease; }
.glpd__val:hover .glpd__pill { border-color: var(--ink-3); }
.glpd__val input:checked + .glpd__pill { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.glpd__val input:focus-visible + * { outline: 2px solid var(--rose); outline-offset: 2px; }
.glpd__sw { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); background: #f7f4f5; box-shadow: 0 0 0 2px #fff; transition: box-shadow .15s ease; }
.glpd__sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glpd__val input:checked + .glpd__sw { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.glpd__val.is-out { opacity: .45; }
.glpd__val.is-out .glpd__pill { text-decoration: line-through; }
.glpd__val.is-out .glpd__sw { position: relative; }
.glpd__val.is-out .glpd__sw::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: var(--ink-2); transform: rotate(45deg); }

.glpd__stock { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; min-height: 18px; }
.glpd__led { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.glpd__stock.is-in { color: #2f7d5b; }
.glpd__stock.is-low { color: var(--rose-2); }
.glpd__stock.is-low .glpd__led { animation: gl-pulse 1.8s infinite; }
.glpd__stock.is-out { color: var(--ink-3); }

.glpd__buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.glpd__qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; height: 52px; }
.glpd__qty button { appearance: none; border: 0; background: none; width: 40px; height: 100%; font-size: 18px; cursor: pointer; color: var(--ink); }
.glpd__qty input { width: 36px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.glpd__qty input::-webkit-outer-spin-button, .glpd__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.glpd__add { appearance: none; height: 52px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .15s ease; }
.glpd__add:hover:not(:disabled) { background: var(--rose-2); }
.glpd__add:disabled { background: #d9d1d4; color: var(--ink-2); cursor: not-allowed; }
.glpd__dynamic .shopify-payment-button__button { border-radius: 4px !important; min-height: 50px; }
.glpd__dynamic .shopify-payment-button__more-options { font-size: 13px; color: var(--ink-2); }

.glpd__ship { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; padding: 12px 14px; background: var(--blush); border-radius: 6px; font-size: 13px; color: var(--ink); }
.glpd__ship svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--rose); }
.glpd__ship b { font-weight: 700; }

.glpd__trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.glpd__trust li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.glpd__trust svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--rose); margin-top: 1px; }

.glpd__acc { margin-top: 26px; border-top: 1px solid var(--line); }
.glpd__det { border-bottom: 1px solid var(--line); }
.glpd__det summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-size: 15px; font-weight: 600; position: relative; }
.glpd__det summary::-webkit-details-marker { display: none; }
.glpd__det summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.glpd__det[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.glpd__rte { padding: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.glpd__rte p { margin: 0 0 10px; }
.glpd__rte ul, .glpd__rte ol { margin: 0 0 10px; padding-left: 20px; }
.glpd__rte li { margin-bottom: 4px; }
.glpd__rte h4 { font-size: 14px; color: var(--ink); margin: 14px 0 6px; }
.glpd__rte strong { color: var(--ink); }
.glpd__rte hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

.glpd__store { display: flex; gap: 10px; align-items: center; margin-top: 20px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.glpd__store svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--rose); }
.glpd__store:hover span { text-decoration: underline; }

.glpd__reviews { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.glpd__reviews .gl-title { margin-bottom: 18px; }

/* sticky bar */
.glpd__sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(105%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
.glpd__sticky.is-on { transform: translateY(0); }
.glpd__sticky-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.glpd__sticky-img { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; background: #f7f4f5; mix-blend-mode: multiply; }
.glpd__sticky-txt { display: grid; min-width: 0; flex: 1; }
.glpd__sticky-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glpd__sticky-price { font-size: 14px; font-weight: 700; }
.glpd__add--sm { height: 46px; padding: 0 28px; flex: 0 0 auto; }

@media (max-width: 989px) {
  .glpd { padding-top: 8px; }
  .glpd__grid { grid-template-columns: 1fr; gap: 20px; }
  .glpd__gallery { position: relative; top: 0; grid-template-columns: 1fr; margin: 0 -16px; }
  .glpd__stage { grid-column: 1; border-radius: 0; }
  .glpd__thumbs { display: none; }
  .glpd__dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
  .glpd__dots span { width: 6px; height: 6px; border-radius: 50%; background: #ddd2d6; transition: all .2s ease; }
  .glpd__dots span.is-on { background: var(--ink); width: 18px; border-radius: 3px; }
  .glpd__flags { left: 16px !important; top: 12px; }
  .glpd__crumbs { margin-bottom: 10px; }
  .glpd__crumbs [aria-current] { max-width: 24ch; }
}
@media (max-width: 560px) {
  .glpd__trust { grid-template-columns: 1fr; }
  .glpd__sticky-img { display: none; }
  .glpd__add--sm { padding: 0 20px; }
  .glpd__now { font-size: 24px; }
}

/* recommendations */
.glrec { padding: 8px 0 56px; }
.glrec__block + .glrec__block { margin-top: 48px; }
.glrec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.glrec__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; }
@media (max-width: 989px) { .glrec__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 749px) {
  .glrec__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .glrec__row > .glc { flex: 0 0 44%; scroll-snap-align: start; }
}
