/* Skārdnieks — single product page (Figma "Produkta lapa (PDP)" 425:337). Uses home.css + projects.css tokens/components. */

/* ---------- Intro: breadcrumbs, gallery, buy box ---------- */
.sk-pdp-intro { padding: 40px 0 96px; }
.sk-pdp-intro .sk-container { display: grid; gap: 32px; }
.sk-pdp-notices .woocommerce-message, .sk-pdp-notices .woocommerce-error, .sk-pdp-notices .woocommerce-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 18px; list-style: none; border-left: 4px solid var(--sk-yellow, #ffc700); background: var(--sk-beige); font-size: 14px; line-height: 20px; }
.sk-pdp-notices .woocommerce-error { border-left-color: var(--sk-red); }
.sk-pdp-notices .button { order: 2; font-weight: 700; text-transform: uppercase; text-decoration: underline; }
.sk-pdp-intro__grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 64px; align-items: start; }

.sk-pgal { display: grid; gap: 16px; min-width: 0; }
.sk-pgal__main { display: flex; align-items: center; justify-content: center; aspect-ratio: 620 / 520; padding: 0; border: 0; background: #f5f5f5; cursor: zoom-in; overflow: hidden; }
.sk-pgal__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; } /* white photo backgrounds blend into the grey box */
.sk-pgal__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sk-pgal__thumb { aspect-ratio: 1; padding: 0; border: 2px solid transparent; background: #f5f5f5; cursor: pointer; overflow: hidden; }
.sk-pgal__thumb[aria-current="true"] { border-color: var(--sk-ink); }
.sk-pgal__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.sk-pbuy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.sk-pbuy__kicker { font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--sk-red); }
.sk-pbuy__title { font-size: 48px; font-weight: 700; line-height: 56px; text-transform: uppercase; color: var(--sk-ink); overflow-wrap: anywhere; }
.sk-pbuy__sku { font-size: 14px; line-height: 20px; color: #616161; }
.sk-pbuy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.sk-pbuy__price-incl { font-size: 40px; font-weight: 700; line-height: 48px; color: var(--sk-ink); }
.sk-pbuy__price-incl [data-sk-from]:not(:empty) { font-size: 20px; font-weight: 400; }
.sk-pbuy__price-excl { font-size: 14px; line-height: 20px; color: #616161; }
.sk-pbuy__stock { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #f5f5f5; font-size: 12px; font-weight: 700; line-height: 16px; color: var(--sk-ink); }

/* Buy box / sheet calculator */
.sk-pbox { display: flex; flex-direction: column; gap: 24px; width: 100%; padding: 32px; border: 1px solid var(--sk-line); background: #fff; }
.sk-pbox__title { font-size: 18px; font-weight: 700; line-height: 18px; text-transform: uppercase; color: var(--sk-ink); }
.sk-pbox__hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--sk-line); }
.sk-pbox__hint { margin-top: -12px; font-size: 12px; line-height: 16px; color: #616161; }
.sk-pbox__add { align-self: flex-start; gap: 8px; min-height: 48px; padding: 0 24px; border-width: 1.5px; }
.sk-pbox__ask { font-size: 14px; line-height: 20px; color: #616161; }
.sk-calc { display: grid; gap: 12px; }
.sk-calc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; gap: 12px; align-items: center; }
.sk-calc__rm { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer; }
.sk-calc__rm:disabled { opacity: .3; cursor: default; }

/* Field — same as the homepage form: 54px, label inside, yellow focus frame */
.sk-fld { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; height: 54px; padding: 8px 12px; border: 1px solid var(--sk-line); background: #fff; }
.sk-fld:focus-within { border-color: var(--sk-yellow, #ffc700); box-shadow: inset 0 0 0 1px var(--sk-yellow, #ffc700); }
.sk-fld__label { font-size: 12px; line-height: 16px; color: var(--sk-muted); pointer-events: none; }
.sk-fld input, .sk-fld select, .sk-fld output { width: 100%; min-width: 0; height: 20px; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; font-size: 14px; line-height: 20px; color: var(--sk-ink); outline: none; box-shadow: none; -moz-appearance: textfield; }
.sk-fld input::-webkit-outer-spin-button, .sk-fld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sk-fld--out { background: #f5f5f5; }
.sk-fld--out output { font-weight: 700; }
.sk-fld--select { padding-right: 36px; cursor: pointer; }
.sk-fld--select select { -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.sk-fld__chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.sk-pbox__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sk-pbox__opts .sk-fld:nth-child(odd):last-child { grid-column: 1 / -1; }
.sk-pbox__opts .sk-fld:only-child { grid-column: 1 / -1; }

.sk-pbox__sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sk-pbox__sum > div { display: grid; gap: 4px; }
.sk-pbox__sum span { font-size: 12px; line-height: 16px; color: #616161; }
.sk-pbox__sum strong { font-size: 20px; line-height: 28px; color: var(--sk-ink); }
.sk-pbox__qty { grid-column: 1 / -1; max-width: 240px; }
.sk-pbox__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sk-pbox__total span { font-size: 14px; line-height: 20px; color: #616161; }
.sk-pbox__total strong { font-size: 28px; line-height: 36px; color: var(--sk-ink); }
.sk-pbox .single_add_to_cart_button { gap: 8px; min-height: 48px; }
.sk-pbox .single_add_to_cart_button.disabled { opacity: 1; cursor: pointer; }
.sk-pbox .single_variation_wrap, .sk-pbox .woocommerce-variation-add-to-cart { display: block; }
.sk-pbox__msg { margin-top: -12px; font-size: 13px; line-height: 18px; color: var(--sk-red); }

/* ---------- Body: description + specs, video | documents, links, help card ---------- */
.sk-pdp-body { padding-bottom: 112px; }
.sk-pdp-body__grid { display: grid; grid-template-columns: minmax(0, 740px) minmax(0, 1fr); gap: 64px; align-items: start; }
.sk-pdp-body__main { display: grid; gap: 56px; min-width: 0; }
.sk-pdp-block { display: grid; gap: 24px; }
.sk-pdp-h { font-size: 32px; font-weight: 700; line-height: 40px; text-transform: uppercase; color: var(--sk-ink); }
.sk-pdp-h--s { font-size: 20px; line-height: 28px; }
.sk-pdp-desc { font-size: 16px; line-height: 24px; color: #616161; }
.sk-pdp-desc > * + * { margin-top: 12px; }
.sk-pdp-desc ul { padding-left: 20px; list-style: disc; }
.sk-specs { border-top: 1px solid var(--sk-line); }
.sk-specs__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--sk-line); font-size: 14px; line-height: 20px; }
.sk-specs__row[hidden] { display: none; }
.sk-specs dt { font-weight: 700; color: var(--sk-ink); }
.sk-specs dd { margin: 0; color: #616161; overflow-wrap: anywhere; }

.sk-video { display: grid; gap: 24px; margin: 0; }
.sk-video + .sk-video { margin-top: 16px; }
.sk-video__frame, .sk-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 740 / 416; padding: 0; border: 0; background: #222; cursor: pointer; overflow: hidden; }
.sk-video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk-video__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sk-red); transform: translate(-50%, -50%); transition: transform .2s; }
.sk-video__frame:hover .sk-video__play { transform: translate(-50%, -50%) scale(1.08); }
.sk-video figcaption { font-size: 14px; font-weight: 700; line-height: 20px; color: var(--sk-ink); }

.sk-pdp-body__side { position: sticky; top: calc(var(--sk-header-h) + 24px); display: grid; gap: 48px; min-width: 0; }
.sk-pdp-side-block { display: grid; gap: 16px; }
.sk-pdp-side-block--links { gap: 12px; }
.sk-doc { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 16px; border: 1px solid var(--sk-line); background: #fff; color: var(--sk-ink); transition: border-color .15s; }
.sk-doc:hover, .sk-plink:hover { border-color: var(--sk-ink); }
.sk-doc__icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; background: #f5f5f5; }
.sk-doc__text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.sk-doc__text strong { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.sk-doc__text small { font-size: 12px; line-height: 16px; color: #616161; }
.sk-doc__dl { flex-shrink: 0; }
.sk-plink { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 16px; border: 1px solid var(--sk-line); background: #fff; color: var(--sk-ink); font-size: 14px; font-weight: 700; line-height: 20px; transition: border-color .15s; }
.sk-plink span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sk-plink img { flex-shrink: 0; }

.sk-help { display: grid; gap: 20px; padding: 40px; background: var(--sk-ink); color: #fff; }
.sk-help__kicker { font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--sk-yellow, #ffc700); }
.sk-help__title { font-size: 32px; font-weight: 700; line-height: 40px; text-transform: uppercase; }
.sk-help__text { font-size: 14px; line-height: 20px; color: #ccc; }
.sk-help .sk-btn { gap: 8px; min-height: 48px; }
.sk-help .sk-btn--outline-light { border-width: 1.5px; }

/* ---------- Similar products ---------- */
.sk-prodcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sk-prodcard { display: flex; flex-direction: column; background: #fff; color: var(--sk-ink); transition: box-shadow .2s; }
.sk-prodcard:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.sk-prodcard__img { display: flex; align-items: center; justify-content: center; height: 200px; padding: 16px; overflow: hidden; }
.sk-prodcard__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sk-prodcard__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 20px 24px; }
.sk-prodcard__name { font-size: 16px; line-height: 24px; }
.sk-prodcard__price { font-size: 20px; font-weight: 700; line-height: 28px; }
.sk-prodcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; line-height: 20px; text-transform: uppercase; }
.sk-psimilar__more { margin-top: 24px; }

/* ---------- Mobile sticky buy bar ---------- */
.sk-pbar { display: none; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1199px) {
    .sk-pdp-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
    .sk-pdp-body__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
    .sk-pbuy__title { font-size: 40px; line-height: 48px; }
    .sk-prodcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .sk-pdp-intro__grid, .sk-pdp-body__grid { grid-template-columns: minmax(0, 1fr); }
    .sk-pdp-body__side { position: static; }
}
@media (max-width: 767px) {
    .sk-pdp-intro { padding: 20px 0 64px; }
    .sk-pdp-intro .sk-container { gap: 20px; }
    .sk-pdp-intro__grid { gap: 24px; }
    .sk-pgal { gap: 12px; }
    .sk-pgal__main { aspect-ratio: 358 / 300; }
    .sk-pgal__thumbs { gap: 12px; }
    .sk-pbuy__title { font-size: 28px; line-height: 36px; }
    .sk-pbuy__price-incl { font-size: 32px; line-height: 40px; }
    .sk-pbox { gap: 16px; padding: 24px 16px; }
    .sk-pbox__title { font-size: 18px; line-height: 26px; }
    .sk-calc__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px; grid-template-areas: "c l l" "o o r"; }
    .sk-calc__row > :nth-child(1) { grid-area: c; }
    .sk-calc__row > :nth-child(2) { grid-area: l; }
    .sk-calc__row > :nth-child(3) { grid-area: o; }
    .sk-calc__row > :nth-child(4) { grid-area: r; }
    .sk-calc__rm { width: 54px; border: 1px solid var(--sk-line); }
    .sk-calc__row + .sk-calc__row { padding-top: 12px; border-top: 1px dashed var(--sk-line); }
    .sk-pbox__add { align-self: stretch; }
    .sk-pbox__hint { margin-top: -4px; }
    .sk-pbox__opts { grid-template-columns: minmax(0, 1fr); }
    .sk-pbox__total strong { font-size: 24px; line-height: 32px; }
    .sk-pbox__msg { margin-top: -4px; }
    .sk-pdp-body { padding-bottom: 64px; }
    .sk-pdp-body__grid, .sk-pdp-body__main { gap: 48px; }
    .sk-pdp-body__side { gap: 40px; }
    .sk-pdp-h { font-size: 24px; line-height: 32px; }
    .sk-pdp-h--s { font-size: 18px; line-height: 26px; }
    .sk-specs__row { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
    .sk-help { padding: 24px; }
    .sk-help__title { font-size: 24px; line-height: 32px; }
    .sk-prodcards { grid-auto-flow: column; grid-auto-columns: 75%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--sk-gutter) * -1); padding-inline: var(--sk-gutter); }
    .sk-prodcard { scroll-snap-align: start; }

    .sk-pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000003; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sk-line); background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
    .sk-pbar[hidden] { display: none; }
    .sk-pbar__price { display: grid; }
    .sk-pbar__price strong { font-size: 20px; line-height: 28px; color: var(--sk-ink); }
    .sk-pbar__price small { font-size: 12px; line-height: 16px; color: #616161; }
    .sk-pbar .sk-btn { flex: 0 1 220px; gap: 8px; min-height: 48px; padding-inline: 16px; }
    /* the bar replaces the site's mobile "Zvanīt / Piedāvājums" bar while it is shown */
    body:has(.sk-pbar:not([hidden])) .sk-mobilebar { visibility: hidden; }
}
