/* Product page, measured from the reference storefront. */
#live-catalog.pp-section { width: min(1248px, calc(100% - 32px)); margin: 0 auto; padding: 160px 0 96px; max-width: none; }
.pp-box {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 32px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05); border-radius: 16px; color: #f4f4f5;
}
.pp-left, .pp-right { min-width: 0; }
.pp-card { padding: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px; }
.pp-card-title { font-size: 24px; line-height: 32px; font-weight: 500; color: #f4f4f5; text-align: center; }

/* Gallery */
.pp-gallery { margin-top: 24px; }
.pp-main-image { display: block; width: 100%; height: auto; border-radius: 8px; }
.pp-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.pp-thumbs button { flex: 0 0 calc(25% - 6px); padding: 0; border: 1px solid transparent; border-radius: 8px; overflow: hidden; opacity: .5; transition: opacity .2s; background: none; }
.pp-thumbs button.is-active, .pp-thumbs button:hover { opacity: 1; border-color: #0085ff; }
.pp-thumbs img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pp-description-card { margin-top: 24px; }

/* Description (rendered markdown) */
.pp-description { font-size: 16px; line-height: 28px; color: #f4f4f5; overflow-wrap: anywhere; }
.pp-description h1, .pp-description h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 48px 0 24px; }
.pp-description h3, .pp-description h4 { font-size: 20px; line-height: 32px; font-weight: 600; margin: 32px 0 12px; }
.pp-description > :first-child { margin-top: 32px; }
.pp-description p { margin: 0 0 20px; }
.pp-description strong { font-weight: 700; }
.pp-description ul, .pp-description ol { margin: 0 0 20px; padding-left: 20px; }
.pp-description ul { list-style: disc; }
.pp-description ol { list-style: decimal; }
.pp-description li { margin: 4px 0; }
.pp-description hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 24px 0; }
.pp-description a { color: #0085ff; text-decoration: underline; }
.pp-description img { max-width: 100%; border-radius: 8px; }
.pp-description > :last-child { margin-bottom: 0; }

/* Header */
.pp-head { margin-bottom: 16px; }
.pp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.pp-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px;
    background: rgba(234, 179, 8, .1); border: 1px solid #eab308; color: #eab308; font-size: 14px; line-height: 20px; font-weight: 500;
}
.pp-title { font-size: 36px; line-height: 40px; font-weight: 600; color: #f4f4f5; }

/* Quick Specifications */
.pp-specs { margin-bottom: 16px; }
.pp-specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.pp-spec {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 8px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05);
}
.pp-spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pp-spec dt { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pp-spec dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: #f4f4f5; overflow-wrap: anywhere; }
@media (max-width: 480px) { .pp-specs-grid { grid-template-columns: minmax(0, 1fr); } }

/* Purchase panel */
.pp-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.pp-option {
    display: block; width: 100%; padding: 16px; text-align: left; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05); transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.pp-option:hover { border-color: rgba(0, 133, 255, .5); }
.pp-option.is-selected { background: rgba(0, 133, 255, .1); border-color: #0085ff; }
.pp-option:disabled { opacity: .5; cursor: not-allowed; }
.pp-option-top { display: flex; justify-content: space-between; gap: 4px; }
.pp-option-top h3 { font-size: 16px; line-height: 24px; font-weight: 400; color: rgba(255, 255, 255, .8); }
.pp-option-top p { font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.pp-option-price { margin-top: 4px; font-size: 24px; line-height: 32px; font-weight: 500; color: #0085ff; }
.pp-block { margin-top: 16px; }
.pp-label { font-size: 16px; line-height: 24px; font-weight: 300; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.pp-stepper { display: flex; gap: 8px; }
.pp-stepper button {
    flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #f4f4f5;
    background: rgba(0, 133, 255, .1); border: 1px solid rgba(0, 133, 255, .2); transition: background .2s;
}
.pp-stepper button:hover:not(:disabled) { background: rgba(0, 133, 255, .2); }
.pp-stepper button:disabled { opacity: .5; cursor: not-allowed; }
.pp-stepper svg { width: 20px; height: 20px; }
.pp-stepper input {
    flex: 1; min-width: 0; height: 40px; text-align: center; font-size: 16px; color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05); border-radius: 8px; -moz-appearance: textfield;
}
.pp-stepper input::-webkit-outer-spin-button, .pp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-progress { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pp-progress[hidden], .pp-volume[hidden] { display: none; }
.pp-progress-text { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .8); }
.pp-progress-text b { font-weight: 700; color: #fff; }
.pp-progress-text span:not(.pp-check) { color: rgba(255, 255, 255, .5); }
.pp-check { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 9999px; background: #0085ff; color: #fff; }
.pp-check svg { width: 14px; height: 14px; }
.pp-progress-bar { height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pp-progress-bar div { height: 100%; border-radius: 9999px; background: #0085ff; transition: width .3s; }
.pp-total { padding: 16px 0; }
.pp-total .pp-label { margin-bottom: 0; }
.pp-total-value { font-size: 30px; line-height: 36px; font-weight: 600; color: #fff; }
.pp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pp-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 9999px;
    font-size: 18px; line-height: 28px; font-weight: 500; border: 1px solid #0085ff; transition: all .2s;
}
.pp-btn svg { width: 20px; height: 20px; }
.pp-btn-outline { color: #0085ff; background: transparent; }
.pp-btn-outline:hover:not(:disabled) { background: rgba(0, 133, 255, .1); }
.pp-btn-solid { color: #fff; background: #0085ff; border-color: transparent; }
.pp-btn-solid:hover:not(:disabled) { background: #1a91ff; }
.pp-btn:disabled { opacity: .4; cursor: not-allowed; }
.pp-notice { margin-top: 12px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .5); text-align: center; }
.pp-notice a, .pp-notice span { text-decoration: underline; text-underline-offset: 2px; }
.pp-notice a:hover { color: #fff; }

/* Volume discounts */
.pp-volume { margin-top: 16px; padding: 0; overflow: hidden; }
.pp-volume-head { padding: 12px 16px; }
.pp-volume table { width: 100%; font-size: 14px; border-collapse: collapse; }
.pp-volume th { padding: 8px 16px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.pp-volume th:last-child, .pp-volume td:last-child { text-align: right; }
.pp-volume td { padding: 10px 16px; color: rgba(255, 255, 255, .7); }
.pp-volume tbody tr { border-top: 1px solid rgba(255, 255, 255, .1); }
.pp-volume tr.is-applied { background: rgba(0, 133, 255, .1); }
.pp-volume tr.is-applied td { color: #fff; }
.pp-volume td b { font-weight: 700; color: #f4f4f5; }

@media (max-width: 767px) {
    #live-catalog.pp-section { width: calc(100% - 48px); padding: 128px 0 112px; }
    .pp-box { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 0; }
    .pp-gallery { margin-top: 0; }
    .pp-right { margin-top: 24px; }
    .pp-title { font-size: 24px; line-height: 32px; }
    .pp-actions { grid-template-columns: minmax(0, 1fr); }
    .pp-btn { font-size: 16px; line-height: 24px; }
}
