/* Product page. Phone first: title and price on top, a big floating picture, then a rounded sheet with options
   and a dark Add to Cart bar. From 900px up it becomes a picture card on the left and the buying panel on the right. */

.cb-pdp-wrap { background: linear-gradient(180deg, #e8eef8 0, #f3f6fb 460px, #fff 860px); }
.cb-pdp { max-width: 80rem; margin: 0 auto; padding: 8px 16px 112px; box-sizing: border-box; color: #0f172a; }
.cb-pdp *, .cb-pdp *::before, .cb-pdp *::after { box-sizing: border-box; }
.cb-pdp-crumbs { font-size: 13px; color: #64748b; margin: 4px 0 8px; }

.cb-pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); }

/* ---- title block ---- */
.cb-pdp-head { position: relative; padding: 4px 62px 0 0; }
.cb-pdp-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #f97316; }
.cb-pdp-title { margin: 4px 0 6px; font-size: clamp(26px, 7.4vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #0b1220; }
.cb-pdp-sub { display: inline-block; font-size: 15px; color: #94a3b8; text-decoration: none; }
.cb-pdp-sub:hover { color: #475569; }
.cb-pdp-rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; }
.cb-pdp-rating .cb-stars { font-size: 19px; }
.cb-pdp-rating em { font-style: normal; font-weight: 500; color: #94a3b8; }
.cb-pdp-seller { margin: 10px 0 0; font-size: 13px; color: #64748b; }
.cb-pdp-price { margin: 14px 0 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #0b1220; }
.cb-pdp-price .cb-price-amount { color: inherit; }
.cb-pdp-was { margin-left: 10px; font-size: 17px; font-weight: 500; color: #94a3b8; text-decoration: line-through; }
.cb-pdp-was .cb-price-amount { color: inherit; }
.cb-pdp-stock { margin: 8px 0 0; font-size: 14px; }
.cb-wl-btn.cb-wl-pdp { position: absolute; top: 4px; right: 0; width: 54px; height: 54px; padding: 0; justify-content: center; background: #fff; color: #0f172a; box-shadow: 0 8px 22px rgba(15, 23, 42, .14); }
.cb-wl-btn.cb-wl-pdp.is-on { color: #e11d48; }
.cb-wl-btn.cb-wl-pdp .cb-wl-heart-wrap { width: 54px; height: 54px; }

/* ---- pictures ---- */
.cb-pdp-media { position: relative; margin: 6px -16px 0; }
.cb-pdp-stage { position: relative; }
.cb-pdp-stage::before { content: ""; position: absolute; left: -8%; top: 14%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); pointer-events: none; }
.cb-pdp-track { position: relative; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; overscroll-behavior-x: contain; }
.cb-pdp-track::-webkit-scrollbar { display: none; }
.cb-pdp-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-height: 68vh; padding: 3% 6%; }
.cb-pdp-img { position: relative; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(15, 23, 42, .22)); user-select: none; -webkit-user-drag: none; }
.cb-pdp-empty { aspect-ratio: 1 / 1; margin: 0 16px; border-radius: 24px; background: #eef2f7; }
.cb-pdp-dots { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; z-index: 3; }
.cb-pdp-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: transform .2s, background .2s; }
.cb-pdp-dots button.is-active { background: #0b1220; transform: scale(1.25); }
.cb-pdp-arrow { display: none; }
.cb-pdp-thumbs { display: none; }

/* ---- the sheet with options ---- */
.cb-pdp-sheet { position: relative; margin: -34px -16px 0; padding: 26px 16px 4px; background: #fff; border-radius: 34px 34px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .07); }
.cb-pdp-form { display: block; }
.cb-pdp-opt { margin: 0 0 18px; }
.cb-pdp-opt-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.cb-pdp-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-pdp .cb-pdp-form button.cb-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 56px; height: 50px; padding: 0 18px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; color: #0f172a; font-size: 15px; font-weight: 600; line-height: 1; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .12s; }
.cb-pdp .cb-pdp-form button.cb-chip:hover { border-color: #94a3b8; background: #fff; color: #0f172a; }
.cb-pdp .cb-pdp-form button.cb-chip:active { transform: scale(.97); }
.cb-pdp .cb-pdp-form button.cb-chip.is-on { background: #0b0b0c; border-color: #0b0b0c; color: #fff; }
.cb-pdp .cb-pdp-form button.cb-chip.is-out { opacity: .5; text-decoration: line-through; }
.cb-pdp .cb-pdp-form button.cb-chip.has-img { flex-direction: column; gap: 4px; height: auto; min-width: 74px; padding: 6px 6px 7px; font-size: 12px; font-weight: 600; }
.cb-pdp .cb-pdp-form button.cb-chip.has-img img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; background: #f1f5f9; }
.cb-pdp .cb-pdp-form button.cb-chip.has-img.is-on { background: #fff7ed; border: 2px solid #f97316; color: #9a3412; padding: 5px 5px 6px; }
.cb-chip:focus-visible, .cb-qty button:focus-visible, .cb-pdp-dots button:focus-visible, .cb-pdp-arrow:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.cb-pdp-opts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.cb-pdp-opts:empty { display: none; }
.cb-pdp-opts .cb-mode-picker, .cb-pdp-opts .cb-lic-options, .cb-pdp-opts .cb-mode-single { flex: 1 1 100%; }

/* ---- Add to Cart bar: fixed to the bottom on phones ---- */
.cb-pdp-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 30px rgba(15, 23, 42, .08); }
.cb-qty { display: inline-flex; align-items: center; flex: none; height: 58px; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; }
.cb-qty[hidden] { display: none; }
.cb-pdp .cb-pdp-form .cb-qty button { width: 34px; height: 100%; padding: 0; border: 0; border-radius: 22px; background: transparent; color: #0f172a; font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer; }
.cb-pdp .cb-pdp-form .cb-qty button:hover { background: #f1f5f9; color: #0f172a; }
.cb-pdp .cb-pdp-form .cb-qty input { width: 26px; height: 100%; padding: 0; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.cb-qty input::-webkit-outer-spin-button, .cb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cb-pdp .cb-pdp-buy.cb-btn { display: flex; align-items: center; flex: 1; min-width: 0; width: auto; height: 58px; padding: 0 16px; border-radius: 22px; border: 0; justify-content: space-between; gap: 8px; background: linear-gradient(180deg, #232326, #09090a); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 12px 26px rgba(9, 9, 10, .28); }
.cb-pdp .cb-pdp-buy.cb-btn:hover:not(:disabled) { background: linear-gradient(180deg, #2f2f34, #111113); }
.cb-pdp .cb-pdp-buy .cb-atc-label { margin-right: auto; }
.cb-pdp .cb-pdp-buy .cb-atc-icon, .cb-pdp .cb-pdp-buy .cb-atc-icon > svg { width: 18px; height: 18px; }
.cb-pdp .cb-pdp-buy .cb-pdp-buy-price { font-weight: 800; white-space: nowrap; }
.cb-pdp .cb-pdp-buy .cb-price-amount { color: inherit; }
.cb-pdp .cb-pdp-buy:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
body.single-cb_product .cb-atc-live { z-index: 70; }

/* ---- description, highlights, specs ---- */
.cb-pdp-details { display: grid; gap: 28px; margin: 26px 0 0; padding: 0 0 8px; }
.cb-pdp-block h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.cb-product-highlights ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #334155; }
.cb-pdp-block .cb-product-specs { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid #eef2f7; border-radius: 14px; overflow: hidden; }
.cb-pdp-block .cb-product-specs th, .cb-pdp-block .cb-product-specs td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; }
.cb-pdp-block .cb-product-specs th { width: 38%; font-weight: 600; color: #64748b; background: #f8fafc; }
.cb-pdp-block .cb-product-specs tr:last-child th, .cb-pdp-block .cb-product-specs tr:last-child td { border-bottom: 0; }

/* ---- tablet and desktop ---- */
@media (min-width: 900px) {
	.cb-pdp-wrap { background: #fff; }
	.cb-pdp { padding: 16px 24px 64px; }
	.cb-pdp-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "media head" "media sheet"; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
	.cb-pdp-media { grid-area: media; position: sticky; top: 24px; margin: 0; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; align-items: start; }
	.cb-pdp-media:not(:has(.cb-pdp-thumbs)) { grid-template-columns: minmax(0, 1fr); }
	.cb-pdp-head { grid-area: head; padding: 24px 68px 0 0; }
	.cb-pdp-title { font-size: 42px; }
	.cb-pdp-price { font-size: 38px; margin-top: 18px; }
	.cb-wl-btn.cb-wl-pdp { top: 26px; }
	.cb-pdp-stage { grid-column: 2; border-radius: 34px; background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #eaf0f9 55%, #dfe7f3 100%); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16); overflow: hidden; }
	.cb-pdp-media:not(:has(.cb-pdp-thumbs)) .cb-pdp-stage { grid-column: 1; }
	.cb-pdp-slide { max-height: none; padding: 7%; }
	.cb-pdp-dots { top: auto; bottom: 18px; right: 50%; transform: translateX(50%); flex-direction: row; }
	.cb-pdp-thumbs { display: flex; flex-direction: column; gap: 10px; grid-column: 1; margin: 0; }
	.cb-pdp .cb-pdp-thumbs .cb-product-gallery-thumb { width: 78px; height: 78px; padding: 4px; border: 2px solid transparent; border-radius: 18px; background: #f1f5f9; overflow: hidden; cursor: pointer; transition: border-color .18s, transform .18s; }
	.cb-pdp .cb-pdp-thumbs .cb-product-gallery-thumb:hover { transform: translateY(-2px); }
	.cb-pdp .cb-pdp-thumbs .cb-product-gallery-thumb.is-active { border-color: #0b0b0c; background: #fff; }
	.cb-pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
	.cb-pdp-arrow { position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0f172a; box-shadow: 0 6px 18px rgba(15, 23, 42, .16); cursor: pointer; opacity: 0; transition: opacity .2s; }
	.cb-pdp-arrow svg { width: 20px; height: 20px; }
	.cb-pdp-prev { left: 14px; }
	.cb-pdp-next { right: 14px; }
	.cb-pdp-stage:hover .cb-pdp-arrow, .cb-pdp-arrow:focus-visible { opacity: 1; }
	.cb-pdp-sheet { grid-area: sheet; margin: 0; padding: 22px 0 0; background: none; border-radius: 0; box-shadow: none; }
	.cb-pdp-buybar { position: static; padding: 6px 0 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.cb-qty { height: 62px; border-radius: 24px; }
	.cb-pdp .cb-pdp-form .cb-qty button { border-radius: 24px; width: 44px; }
	.cb-pdp .cb-pdp-buy.cb-btn { height: 62px; border-radius: 24px; font-size: 18px; padding: 0 28px; gap: 12px; }
	.cb-pdp .cb-pdp-form .cb-qty button { width: 44px; }
	.cb-pdp .cb-pdp-form .cb-qty input { width: 34px; }
	.cb-pdp .cb-pdp-buy .cb-atc-icon, .cb-pdp .cb-pdp-buy .cb-atc-icon > svg { width: 20px; height: 20px; }
	.cb-pdp-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 56px; padding-top: 32px; border-top: 1px solid #eef2f7; }
	.cb-pdp-details .cb-product-description { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
	body.single-cb_product { padding-bottom: 0; }
	.cb-pdp-media .cb-page-media .cb-bx-slot { z-index: 3; }
}

@media (prefers-reduced-motion: reduce) {
	.cb-chip, .cb-pdp-dots button, .cb-pdp-arrow, .cb-pdp-thumbs .cb-product-gallery-thumb { transition: none !important; }
}

/* ---- quantity discount ---- */
.cb-bulk-hint { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed #86efac; border-radius: 16px; background: #f0fdf4; }
.cb-bulk-title { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #166534; }
.cb-bulk-hint ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cb-bulk-hint li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #bbf7d0; font-size: 13px; color: #166534; transition: background .2s, color .2s; }
.cb-bulk-hint li.is-on { background: #166534; border-color: #166534; color: #fff; }
