/* ProteinShop — stranica proizvoda (dizajn: Proizvod, M-Proizvod). */

.psb-product .psb-product__top { padding-top: 28px; }
.psb-product .psb-crumbs { margin-bottom: 0; }
.psb-notices:empty { display: none; }
.psb-notices .woocommerce-message, .psb-notices .woocommerce-info, .psb-notices .woocommerce-error {
	list-style: none; margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--psb-surface); border: 1px solid var(--psb-accent); color: var(--psb-text); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px;
}
.psb-notices .woocommerce-error { border-color: #FF8A80; }
.psb-notices .woocommerce-error li { margin: 0; }
.psb-notices .button.wc-forward { order: 2; margin-left: auto; text-decoration: none; background: var(--psb-accent); color: var(--psb-on-accent); font-weight: 700; padding: 10px 16px; border-radius: var(--psb-pill); font-size: 14px; }

.psb-product .psb-product__main { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }

/* Galerija */
.psb-gallery.psb-gallery { flex: 1.1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.psb-gallery .psb-gallery__main { position: relative; background: var(--psb-tile); border-radius: 28px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 48px; box-sizing: border-box; overflow: hidden; }
.psb-gallery .psb-gallery__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; display: block; }
.psb-gallery .psb-gallery__off { position: absolute; top: 20px; left: 20px; z-index: 1; background: var(--psb-bg); color: var(--psb-accent); font-family: var(--psb-display); font-weight: 900; font-stretch: 112%; font-size: 22px; padding: 8px 14px; border-radius: 20px; line-height: 1; }
.psb-gallery .psb-gallery__thumbs { display: flex; gap: 12px; overflow-x: auto; }
.psb-gallery .psb-gallery__thumb { width: 104px; height: 104px; flex: 0 0 auto; border-radius: 18px; border: 2px solid transparent; background: var(--psb-tile); padding: 10px; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.psb-gallery .psb-gallery__thumb[aria-pressed="true"] { border-color: var(--psb-accent); }
.psb-gallery .psb-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Kupovina */
.psb-buy.psb-buy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.psb-buy .psb-buy__head { display: flex; flex-direction: column; gap: 12px; }
.psb-buy .psb-buy__eyebrow { font-family: var(--psb-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-accent); }
.psb-buy .psb-buy__title { margin: 0; font-family: var(--psb-display); font-weight: 900; font-stretch: 112%; font-size: clamp(30px, 3.6vw, 52px); line-height: .95; text-transform: uppercase; overflow-wrap: break-word; }
.psb-buy .psb-buy__title span { color: var(--psb-muted-2); }
.psb-buy .psb-buy__rating { font-size: 14px; color: var(--psb-muted); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.psb-buy .psb-buy__rating span { color: var(--psb-accent); letter-spacing: 2px; }
.psb-buy .psb-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.psb-buy .psb-buy__price strong { font-family: var(--psb-display); font-weight: 900; font-stretch: 112%; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.psb-buy .psb-buy__price s { font-size: 20px; color: var(--psb-muted-2); }
.psb-buy .psb-buy__save { font-size: 14px; font-weight: 600; color: var(--psb-accent); }
.psb-buy [hidden] { display: none !important; }
.psb-buy .psb-buy__short { font-size: 15px; line-height: 1.5; color: #D5D5D5; }
.psb-buy .psb-buy__short p { margin: 0 0 8px; }
.psb-buy .psb-buy__short ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.psb-buy .psb-buy__short li { position: relative; padding-left: 30px; }
.psb-buy .psb-buy__short li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--psb-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.psb-buy .psb-buy__short strong { color: var(--psb-text); }
.psb-buy .psb-buy__form { display: flex; flex-direction: column; gap: 18px; margin: 0; }

.psb-choice.psb-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.psb-choice legend { padding: 0; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.psb-choice legend span { font-family: var(--psb-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-muted-2); }
.psb-choice legend strong { font-size: 15px; }
.psb-choice .psb-choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.psb-choice .psb-choice__opt { position: relative; cursor: pointer; }
.psb-choice .psb-choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.psb-choice .psb-choice__opt span { height: 44px; padding: 0 16px; border-radius: var(--psb-pill); border: 1px solid var(--psb-line-strong); color: var(--psb-text); font: 600 14px var(--psb-font); display: flex; align-items: center; box-sizing: border-box; }
.psb-choice .psb-choice__opt:hover span { border-color: var(--psb-text); }
.psb-choice .psb-choice__opt input:checked + span { background: var(--psb-accent); border-color: var(--psb-accent); color: var(--psb-on-accent); }
.psb-choice .psb-choice__opt input:focus-visible + span { outline: 2px solid var(--psb-accent); outline-offset: 2px; }
.psb-choice .psb-choice__opt.is-out span { color: var(--psb-muted-2); text-decoration: line-through; border-style: dashed; }
.psb-buy .psb-buy__msg { margin: 0; font-size: 14px; color: #FF8A80; }
.psb-buy .psb-buy__msg:empty { display: none; }
.psb-buy .psb-buy__out { margin: 0; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--psb-line-strong); color: var(--psb-muted); }

.psb-buy .psb-buy__row { display: flex; flex-wrap: wrap; gap: 10px; }
.psb-qty.psb-qty { display: flex; align-items: center; border: 1px solid var(--psb-line-strong); border-radius: var(--psb-pill); height: 58px; box-sizing: border-box; }
.psb-qty button { width: 52px; height: 56px; border: 0; background: transparent; color: var(--psb-text); font-size: 22px; cursor: pointer; padding: 0; }
.psb-qty button:hover { color: var(--psb-accent); background: transparent; }
.psb-qty input { width: 44px; height: 56px; border: 0; background: transparent; color: var(--psb-text); text-align: center; font: 700 17px var(--psb-font); -moz-appearance: textfield; padding: 0; }
.psb-qty input::-webkit-outer-spin-button, .psb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.psb-buy .psb-buy__btn { flex: 1 1 240px; height: 58px; border: 0; border-radius: var(--psb-pill); background: var(--psb-accent); color: var(--psb-on-accent); font: 700 16px var(--psb-font); cursor: pointer; padding: 0 20px; }
.psb-buy .psb-buy__btn:hover { filter: brightness(1.06); background: var(--psb-accent); color: var(--psb-on-accent); }
.psb-buy .psb-buy__btn .amount, .psb-buybar .amount { color: inherit; }

.psb-buy .psb-buy__goals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.psb-buy .psb-buy__goals .psb-mono { font-size: 11px; color: var(--psb-muted-2); }
.psb-buy .psb-buy__goals a { font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--psb-line-strong); border-radius: 20px; padding: 6px 12px; }

.psb-buy .psb-buy__stack { text-decoration: none; display: flex; align-items: center; gap: 16px; background: var(--psb-surface); border: 1px solid var(--psb-accent); border-radius: 20px; padding: 12px 18px 12px 12px; }
.psb-buy .psb-buy__stack img { width: 112px; height: 72px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.psb-buy .psb-buy__stack-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.psb-buy .psb-buy__stack-txt .psb-mono { font-size: 11px; color: var(--psb-accent); }
.psb-buy .psb-buy__stack-txt strong { font-size: 15px; }
.psb-buy .psb-buy__stack-txt > span:last-child { font-size: 14px; color: var(--psb-muted); }
.psb-buy .psb-buy__stack-arrow { font-size: 20px; color: var(--psb-accent); }

.psb-trust.psb-trust { list-style: none; margin: 0; padding: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 20px; }
.psb-trust li { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--psb-accent); }
.psb-trust strong { font-size: 14px; }
.psb-trust span { font-size: 13px; color: #A8A8A8; }

/* Detalji (tabovi na desktopu, harmonika na mobitelu) */
.psb-details.psb-details { padding-top: 88px; }
.psb-details .psb-details__tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--psb-line); }
.psb-details .psb-details__tabs [role="tab"] { height: 56px; padding: 0 22px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--psb-muted-2); font-family: var(--psb-display); font-weight: 900; font-stretch: 112%; font-size: 18px; text-transform: uppercase; cursor: pointer; margin-bottom: -1px; }
.psb-details .psb-details__tabs [aria-selected="true"] { color: var(--psb-text); border-bottom-color: var(--psb-accent); }
.psb-details .psb-acc { display: none; }
.psb-details .psb-details__body { padding-top: 36px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.psb-details .psb-details__body--narrow { display: block; max-width: 760px; font-size: 16px; line-height: 1.7; color: #D5D5D5; }
.psb-details .psb-details__text { flex: 1.4 1 480px; min-width: 0; font-size: 16px; line-height: 1.7; color: #D5D5D5; max-width: 720px; }
.psb-details .psb-details__text h2, .psb-details .psb-details__text h3 { color: var(--psb-text); font-family: var(--psb-display); font-weight: 900; font-stretch: 108%; text-transform: uppercase; line-height: 1.05; }
.psb-details .psb-details__text img { border-radius: 16px; }
.psb-details .psb-details__text table { width: 100%; border-collapse: collapse; font-size: 14px; }
.psb-details .psb-details__text td, .psb-details .psb-details__text th { border-bottom: 1px solid var(--psb-line); padding: 8px 6px; text-align: left; }
.psb-facts.psb-facts { flex: 1 1 320px; margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--psb-line); align-self: flex-start; }
.psb-facts dt { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--psb-line); font-family: var(--psb-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--psb-muted-2); }
.psb-facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--psb-line); font-size: 15px; }
.psb-note.psb-note { margin-top: 16px; background: var(--psb-surface); border: 1px solid var(--psb-line-strong); border-radius: 16px; padding: 18px 20px; font-size: 15px; }

.psb-section-title.psb-section-title { margin: 0 0 24px; font-family: var(--psb-display); font-weight: 900; font-stretch: 118%; font-size: clamp(28px, 3vw, 44px); line-height: 1; text-transform: uppercase; }
.psb-related.psb-related { padding-top: 88px; }
.psb-grid.psb-grid--related { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Traka za kupovinu na mobitelu */
.psb-buybar.psb-buybar { display: none; }

@media (max-width: 1100px) {
	.psb-gallery.psb-gallery { position: static; }
}
@media (max-width: 760px) {
	.psb-product .psb-product__top { padding-top: 14px; }
	.psb-product .psb-crumbs { display: none; }
	.psb-product .psb-product__main { padding-top: 10px; gap: 20px; }
	.psb-gallery.psb-gallery { flex-basis: 100%; margin: 0 calc(-1 * var(--psb-gutter)); }
	.psb-gallery .psb-gallery__main { border-radius: 0; padding: 32px; }
	.psb-gallery .psb-gallery__thumbs { padding: 0 var(--psb-gutter); }
	.psb-gallery .psb-gallery__thumb { width: 72px; height: 72px; border-radius: 14px; padding: 6px; }
	.psb-gallery .psb-gallery__off { top: 14px; left: 14px; font-size: 18px; }
	.psb-buy.psb-buy { gap: 18px; flex-basis: 100%; }
	.psb-buy .psb-buy__row { display: none; }
	.psb-buy .psb-buy__stack img { width: 80px; height: 56px; }
	.psb-trust.psb-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.psb-details.psb-details { padding-top: 40px; }
	.psb-details .psb-details__tabs { display: none; }
	.psb-details .psb-details__panel[hidden] { display: block; }
	.psb-details .psb-acc { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 60px; border: 0; border-bottom: 1px solid var(--psb-line); background: transparent; color: var(--psb-text); padding: 0; text-align: left; cursor: pointer; font-family: var(--psb-display); font-weight: 900; font-stretch: 108%; font-size: 20px; text-transform: uppercase; }
	.psb-details .psb-acc span::before { content: "+"; font-family: var(--psb-font); font-size: 24px; color: var(--psb-accent); }
	.psb-details .psb-acc[aria-expanded="true"] span::before { content: "−"; }
	.psb-details .psb-acc[aria-expanded="false"] + .psb-details__body { display: none; }
	.psb-details .psb-details__body { padding: 16px 0 24px; gap: 20px; }
	.psb-details .psb-details__text { font-size: 15px; }
	.psb-related.psb-related { padding-top: 40px; }
	.psb-buybar.psb-buybar { display: flex; position: sticky; bottom: 0; z-index: 40; background: var(--psb-surface); border-top: 1px solid var(--psb-line); padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); gap: 8px; margin-top: 32px; }
	.psb-qty.psb-qty--bar { height: 52px; }
	.psb-qty--bar button { width: 44px; height: 50px; font-size: 20px; }
	.psb-qty--bar span { min-width: 20px; text-align: center; font-weight: 700; }
	.psb-buybar .psb-buybar__btn { flex: 1; height: 52px; border-radius: var(--psb-pill); background: var(--psb-accent); color: var(--psb-on-accent); font: 700 15px var(--psb-font); border: 0; cursor: pointer; padding: 0 12px; }
	body.psb-has-buybar .psb-footer.psb-footer { margin-top: 0; }
}

/* Odbrojavanje akcije (modul Akcije) */
.psb-buy .psb-countdown { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--psb-accent); border-radius: var(--psb-radius, 8px); font-size: 14px; color: var(--psb-text, #fff); }
.psb-buy .psb-countdown strong { font-family: var(--psb-mono, monospace); color: var(--psb-accent); font-variant-numeric: tabular-nums; }
.psb-buy .psb-countdown span { color: var(--psb-muted, #9a9a9a); font-size: 13px; }

/* Poklon uz proizvod (modul Kupi X, dobij Y) */
.psb-buy .psb-giftbox { display: flex; gap: 12px; align-items: center; margin: 10px 0 0; padding: 12px 14px; border-radius: var(--psb-radius, 8px); background: var(--psb-surface, #161616); border: 1px solid var(--psb-line, #2a2a2a); }
.psb-buy .psb-giftbox p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--psb-text); }
.psb-buy .psb-giftbox__tag { display: inline-block; flex: none; font-family: var(--psb-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--psb-accent); color: var(--psb-on-accent, #0a0a0a); padding: 3px 8px; border-radius: 4px; }
