/* =========================================================
   ساخت‌یار | Product Detail Page V3
   موبایل‌محور، تمیز، فروشگاهی
   Namespace: .product-page / .pp-*
   وابستگی: theme.css — بدون :root جدا
   ========================================================= */

.product-page {
    --pp-bg: var(--color-white, #FFFFFF);
    --pp-page-bg: var(--color-surface, #F8F8F6);
    --pp-surface: var(--color-surface, #F8F8F6);
    --pp-surface-2: var(--color-surface-2, #F2F1ED);

    --pp-text: var(--color-text, #171A18);
    --pp-text-soft: var(--color-text-soft, #3F4640);
    --pp-muted: var(--color-muted, #5f645c);
    --pp-muted-light: var(--color-muted-light, #737869);

    --pp-primary: var(--color-primary, #B85C38);
    --pp-primary-dark: var(--color-primary-dark, #9A4B2C);
    --pp-primary-soft: var(--color-primary-soft, #FFF2EC);
    --pp-primary-border: var(--color-primary-border, #F3D2C3);

    --pp-secondary: var(--color-secondary, #24372F);
    --pp-secondary-dark: var(--color-secondary-dark, #18251F);
    --pp-secondary-soft: var(--color-secondary-soft, #EEF3F0);

    --pp-accent: var(--color-accent, #D9E84A);

    --pp-border: var(--color-border, #E8E2D8);
    --pp-border-light: var(--color-border-light, #F0EDE6);
    --pp-border-strong: var(--color-border-strong, #D7D0C4);

    --pp-success: var(--color-success, #1F8A5B);
    --pp-success-soft: var(--color-success-soft, #E8F7EF);
    --pp-danger: var(--color-danger, #C0392B);
    --pp-danger-soft: var(--color-danger-soft, #FDECEA);
    --pp-warning: var(--color-warning, #B7791F);

    --pp-shadow-sm: var(--shadow-sm, 0 2px 8px rgba(23, 26, 24, 0.06));
    --pp-shadow-md: var(--shadow-md, 0 10px 28px rgba(23, 26, 24, 0.08));
    --pp-shadow-lg: var(--shadow-lg, 0 18px 40px rgba(23, 26, 24, 0.10));

    --pp-radius-sm: var(--radius-sm, 8px);
    --pp-radius-md: var(--radius-md, 12px);
    --pp-radius-lg: var(--radius-lg, 16px);
    --pp-radius-xl: var(--radius-xl, 22px);
    --pp-radius-full: var(--radius-full, 999px);

    --pp-container-max: var(--container-max, 1320px);
    --pp-container-pad: var(--container-pad, 24px);

    --pp-font: var(--font-body, "Vazirmatn", Tahoma, Arial, sans-serif);
    --pp-mono: var(--font-mono, "Vazirmatn", Tahoma, sans-serif);

    --pp-ease: var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
    --pp-ease-out: var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    --pp-t-fast: var(--transition-fast, 160ms);
    --pp-t-base: var(--transition-base, 260ms);

    font-family: var(--pp-font);
    background: var(--pp-page-bg);
    color: var(--pp-text);
    direction: rtl;
    min-height: 100vh;
    padding-bottom: 80px;
}

.product-page *,
.product-page *::before,
.product-page *::after {
    box-sizing: border-box;
}

.product-page a {
    text-decoration: none;
    color: inherit;
}

.product-page button {
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.product-page input,
.product-page select {
    font-family: inherit;
}

.product-page img {
    display: block;
    max-width: 100%;
}

.product-page ul,
.product-page ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-page p {
    margin: 0;
}

.pp-container {
    width: 100%;
    max-width: var(--pp-container-max);
    margin-inline: auto;
    padding-inline: var(--pp-container-pad);
}

/* =========================================================
   01 · TOP (Breadcrumb + Badges + Stock)
   ========================================================= */

.pp-top {
    background: var(--pp-bg);
    border-bottom: 1px solid var(--pp-border-light);
    padding: 18px 0 16px;
}

.pp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--pp-muted);
}

.pp-breadcrumb a {
    color: var(--pp-muted);
    transition: color var(--pp-t-fast) var(--pp-ease);
}

.pp-breadcrumb a:hover {
    color: var(--pp-primary);
}

.pp-breadcrumb__sep {
    opacity: 0.4;
    font-size: 12px;
}

.pp-breadcrumb__current {
    color: var(--pp-text);
    font-weight: 700;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-top__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pp-top__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.pp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--pp-radius-full);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.pp-badge--cat {
    background: var(--pp-secondary-soft);
    color: var(--pp-secondary);
}

.pp-badge--brand {
    background: var(--pp-primary-soft);
    color: var(--pp-primary-dark);
}

.pp-badge--sku {
    font-family: var(--pp-mono);
    background: var(--pp-surface);
    color: var(--pp-muted);
    font-size: 12px;
}

.pp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--pp-radius-full);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.pp-stock__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pp-stock--in {
    background: var(--pp-success-soft);
    color: var(--pp-success);
}

.pp-stock--low {
    background: rgba(183, 121, 31, 0.1);
    color: var(--pp-warning);
}

.pp-stock--out {
    background: var(--pp-danger-soft);
    color: var(--pp-danger);
}

/* =========================================================
   02 · CONSOLE (Gallery + Purchase)
   ========================================================= */

.pp-console {
    padding: 20px 0 32px;
}

.pp-console__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

/* Gallery */
.pp-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.pp-gallery__main {
    position: relative;
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    border-radius: var(--pp-radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.pp-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 250ms var(--pp-ease);
}

.pp-gallery__discount {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: var(--pp-radius-full);
    background: var(--pp-primary);
    color: var(--pp-bg);
    font-family: var(--pp-mono);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.25);
}

.pp-gallery__zoom {
    position: absolute;
    bottom: 14px;
    inset-inline-end: 14px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--pp-border-light);
    color: var(--pp-secondary);
    box-shadow: var(--pp-shadow-sm);
    z-index: 3;
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease);
}

.pp-gallery__zoom svg {
    width: 16px;
    height: 16px;
}

.pp-gallery__zoom:hover {
    background: var(--pp-primary);
    color: var(--pp-bg);
    transform: scale(1.08);
}

/* Thumbnails - horizontal scroll on mobile */
.pp-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--pp-border-strong) transparent;
    -webkit-overflow-scrolling: touch;
}

.pp-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
}

.pp-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--pp-border);
    border-radius: 99px;
}

.pp-gallery__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--pp-radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--pp-surface-2);
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition:
        opacity var(--pp-t-fast) var(--pp-ease),
        border-color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease);
}

.pp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-gallery__thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.pp-gallery__thumb.is-active {
    opacity: 1;
    border-color: var(--pp-primary);
}

/* Purchase Card */
.pp-purchase__card {
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    border-radius: var(--pp-radius-xl);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--pp-shadow-sm);
}

.pp-purchase__title {
    margin: 0;
    font-size: clamp(19px, 4.5vw, 26px);
    font-weight: 900;
    line-height: 1.5;
    color: var(--pp-text);
    letter-spacing: -0.015em;
}

.pp-purchase__subtitle {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--pp-muted);
}

/* Price */
.pp-purchase__price-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--pp-surface);
    border-radius: var(--pp-radius-lg);
    border: 1px solid var(--pp-border-light);
}

.pp-purchase__price-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pp-purchase__price {
    font-family: var(--pp-mono);
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 900;
    line-height: 1;
    color: var(--pp-secondary);
}

.pp-purchase__price small {
    font-family: var(--pp-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--pp-muted);
    margin-inline-start: 3px;
}

.pp-purchase__old {
    font-family: var(--pp-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--pp-muted-light);
    text-decoration: line-through;
}

.pp-purchase__save {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--pp-radius-full);
    background: var(--pp-primary-soft);
    color: var(--pp-primary-dark);
    font-size: 12px;
    font-weight: 800;
    width: fit-content;
}

/* Unit */
.pp-purchase__unit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--pp-muted);
    padding: 10px 14px;
    background: var(--pp-surface);
    border-radius: var(--pp-radius-md);
}

.pp-purchase__unit b {
    color: var(--pp-text);
    font-weight: 800;
}

/* Quantity */
.pp-purchase__qty {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-purchase__qty-label {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--pp-text);
}

.pp-purchase__qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-qty-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--pp-radius-md);
    border: 1.5px solid var(--pp-border);
    background: var(--pp-bg);
    color: var(--pp-secondary);
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        border-color var(--pp-t-fast) var(--pp-ease),
        color var(--pp-t-fast) var(--pp-ease);
}

.pp-qty-btn svg {
    width: 14px;
    height: 14px;
}

.pp-qty-btn:hover {
    background: var(--pp-secondary);
    border-color: var(--pp-secondary);
    color: var(--pp-bg);
}

.pp-qty-input {
    width: 70px;
    height: 42px;
    text-align: center;
    border: 1.5px solid var(--pp-border);
    border-radius: var(--pp-radius-md);
    background: var(--pp-bg);
    font-family: var(--pp-mono);
    font-size: 15px;
    font-weight: 800;
    color: var(--pp-text);
    outline: none;
    transition: border-color var(--pp-t-fast) var(--pp-ease);
}

.pp-qty-input:focus {
    border-color: var(--pp-primary);
}

.pp-purchase__qty-hint {
    font-size: 12px;
    color: var(--pp-muted-light);
}

/* Total */
.pp-purchase__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--pp-surface);
    border-radius: var(--pp-radius-md);
    border: 1px dashed var(--pp-border);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.pp-purchase__total-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pp-muted);
}

.pp-purchase__total-value {
    font-family: var(--pp-mono);
    font-size: 16px;
    font-weight: 900;
    color: var(--pp-secondary);
}

.pp-purchase__total-value small {
    font-family: var(--pp-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--pp-muted);
    margin-inline-start: 3px;
}

/* Submit */
.pp-purchase__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border-radius: var(--pp-radius-md);
    background: var(--pp-primary);
    color: var(--pp-bg);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(184, 92, 56, 0.2);
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease),
        box-shadow var(--pp-t-fast) var(--pp-ease);
}

.pp-purchase__submit svg {
    width: 17px;
    height: 17px;
    transition: transform var(--pp-t-fast) var(--pp-ease);
}

.pp-purchase__submit:hover {
    background: var(--pp-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(184, 92, 56, 0.26);
}

.pp-purchase__submit:hover svg {
    transform: translateX(-3px);
}

.pp-purchase__submit--disabled,
.pp-purchase__submit:disabled {
    background: var(--pp-muted-light);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pp-purchase__notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: var(--pp-radius-md);
    background: var(--pp-bg);
    border: 1.5px solid var(--pp-border);
    color: var(--pp-secondary);
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
    transition:
        border-color var(--pp-t-fast) var(--pp-ease),
        background-color var(--pp-t-fast) var(--pp-ease);
}

.pp-purchase__notify:hover {
    border-color: var(--pp-secondary);
    background: var(--pp-surface);
}

.pp-purchase__out {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Fulfillment */
.pp-fulfillment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    border-radius: var(--pp-radius-lg);
}

.pp-fulfillment__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pp-secondary);
    min-width: 0;
}

.pp-fulfillment__item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--pp-primary);
}

.pp-fulfillment__item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-fulfillment__sep {
    width: 1px;
    height: 20px;
    background: var(--pp-border-light);
    flex-shrink: 0;
}

/* =========================================================
   03 · TABS
   ========================================================= */

.pp-tabs-section {
    padding: 12px 0 40px;
}

.pp-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    border-radius: var(--pp-radius-full);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pp-tabs::-webkit-scrollbar {
    display: none;
}

.pp-tabs__btn {
    flex: 1;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: var(--pp-radius-full);
    background: transparent;
    color: var(--pp-muted);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        color var(--pp-t-fast) var(--pp-ease);
}

.pp-tabs__btn:hover {
    color: var(--pp-text);
}

.pp-tabs__btn.is-active {
    background: var(--pp-secondary);
    color: var(--pp-bg);
}

/* Tab Panels */
.pp-tab-panel {
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    border-radius: var(--pp-radius-xl);
    padding: 24px;
    min-height: 200px;
}

.pp-tab-panel[hidden] {
    display: none;
}

/* Content (Description) */
.pp-content {
    font-size: 14px;
    line-height: 2.05;
    color: var(--pp-text-soft);
}

.pp-content p {
    margin-bottom: 16px;
}

.pp-content p:last-child {
    margin-bottom: 0;
}

.pp-content h3 {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 900;
    color: var(--pp-text);
    padding-inline-start: 12px;
    border-inline-start: 3px solid var(--pp-primary);
}

.pp-content ul {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-content li {
    position: relative;
    padding-inline-start: 18px;
    font-size: 13.5px;
    line-height: 1.9;
}

.pp-content li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    inset-inline-start: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pp-primary);
}

/* Empty */
.pp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 40px 20px;
}

.pp-empty svg {
    width: 44px;
    height: 44px;
    color: var(--pp-muted-light);
}

.pp-empty p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--pp-muted);
    max-width: 42ch;
}

.pp-empty__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: var(--pp-radius-md);
    background: var(--pp-primary);
    color: var(--pp-bg);
    font-size: 12.5px;
    font-weight: 800;
    margin-top: 6px;
    transition: background-color var(--pp-t-fast) var(--pp-ease);
}

.pp-empty__btn:hover {
    background: var(--pp-primary-dark);
}

/* Specs */
.pp-specs {
    display: flex;
    flex-direction: column;
}

.pp-specs__row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--pp-border-light);
    font-size: 13px;
}

.pp-specs__row:last-child {
    border-bottom: none;
}

.pp-specs__row dt {
    color: var(--pp-muted);
    font-weight: 500;
}

.pp-specs__row dd {
    margin: 0;
    color: var(--pp-text);
    font-weight: 700;
}

.pp-specs__row code {
    font-family: var(--pp-mono);
    font-size: 12px;
    padding: 2px 7px;
    background: var(--pp-surface);
    border-radius: var(--pp-radius-sm);
    color: var(--pp-secondary);
    margin-inline-start: 4px;
}

/* Delivery */
.pp-delivery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-delivery__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--pp-surface);
    border-radius: var(--pp-radius-lg);
    border: 1px solid var(--pp-border-light);
}

.pp-delivery__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--pp-radius-md);
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    color: var(--pp-primary);
}

.pp-delivery__icon svg {
    width: 20px;
    height: 20px;
}

.pp-delivery__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pp-delivery__body h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--pp-text);
}

.pp-delivery__body p {
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--pp-muted);
}

/* =========================================================
   04 · RELATED
   ========================================================= */

.pp-related {
    padding: 20px 0 40px;
}

.pp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.pp-section-title {
    margin: 0;
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 900;
    color: var(--pp-text);
    letter-spacing: -0.015em;
}

.pp-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--pp-primary);
    flex-shrink: 0;
}

.pp-section-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--pp-t-fast) var(--pp-ease);
}

.pp-section-link:hover svg {
    transform: translateX(-3px);
}

.pp-related__slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pp-related__card {
    background: var(--pp-bg);
    border: 1px solid var(--pp-border-light);
    border-radius: var(--pp-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform var(--pp-t-base) var(--pp-ease-out),
        box-shadow var(--pp-t-base) var(--pp-ease-out),
        border-color var(--pp-t-fast) var(--pp-ease);
}

.pp-related__card:hover {
    transform: translateY(-3px);
    border-color: var(--pp-border);
    box-shadow: var(--pp-shadow-md);
}

.pp-related__card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pp-surface-2);
}

.pp-related__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--pp-ease-out);
}

.pp-related__card:hover .pp-related__card-img img {
    transform: scale(1.05);
}

.pp-related__card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pp-related__card-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.55;
    color: var(--pp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-related__card:hover .pp-related__card-title {
    color: var(--pp-primary);
}

.pp-related__card-price {
    font-family: var(--pp-mono);
    font-size: 13px;
    font-weight: 900;
    color: var(--pp-secondary);
    margin-top: auto;
}

.pp-related__card-price small {
    font-family: var(--pp-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--pp-muted);
}

/* =========================================================
   05 · CTA
   ========================================================= */

.pp-cta {
    padding: 20px 0 40px;
}

.pp-cta__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px;
    background: var(--pp-secondary);
    border-radius: var(--pp-radius-xl);
    overflow: hidden;
    isolation: isolate;
}

.pp-cta__glow {
    position: absolute;
    top: -80px;
    inset-inline-end: -50px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(217, 232, 74, 0.18) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.pp-cta__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-cta__title {
    margin: 0;
    font-size: clamp(19px, 4.5vw, 26px);
    font-weight: 900;
    line-height: 1.5;
    color: var(--pp-bg);
}

.pp-cta__title span {
    color: var(--pp-accent);
}

.pp-cta__desc {
    font-size: 13px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.7);
    max-width: 52ch;
}

.pp-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: var(--pp-radius-md);
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        color var(--pp-t-fast) var(--pp-ease),
        border-color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease);
}

.pp-cta__btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--pp-t-fast) var(--pp-ease);
}

.pp-cta__btn--primary {
    background: var(--pp-accent);
    color: var(--pp-secondary);
    box-shadow: 0 12px 28px rgba(217, 232, 74, 0.22);
}

.pp-cta__btn--primary:hover {
    background: var(--pp-bg);
    transform: translateY(-2px);
}

.pp-cta__btn--primary:hover svg {
    transform: translateX(-3px);
}

.pp-cta__btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--pp-bg);
    font-family: var(--pp-mono);
    font-size: 13px;
    direction: ltr;
}

.pp-cta__btn--ghost svg {
    color: var(--pp-accent);
}

.pp-cta__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   06 · MODAL
   ========================================================= */

.pp-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 280ms var(--pp-ease),
        visibility 280ms var(--pp-ease);
}

.pp-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 21, 0.65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.pp-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 90vh;
    background: var(--pp-bg);
    border-radius: var(--pp-radius-xl);
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(18, 24, 21, 0.3);
    transform: translateY(18px) scale(0.97);
    transition: transform 360ms var(--pp-ease-out);
}

.pp-modal.is-open .pp-modal__panel {
    transform: translateY(0) scale(1);
}

.pp-modal__close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pp-surface);
    color: var(--pp-secondary);
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease);
}

.pp-modal__close svg {
    width: 15px;
    height: 15px;
}

.pp-modal__close:hover {
    background: var(--pp-primary);
    color: var(--pp-bg);
    transform: rotate(90deg);
}

.pp-modal__header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--pp-border-light);
}

.pp-modal__code {
    font-family: var(--pp-mono);
    font-size: 12px;
    font-weight: 800;
    color: var(--pp-primary);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.pp-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--pp-text);
    line-height: 1.4;
}

.pp-modal__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-modal__desc {
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--pp-muted);
}

.pp-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-modal__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pp-modal__field label {
    font-size: 12px;
    font-weight: 800;
    color: var(--pp-text);
}

.pp-modal__field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1.5px solid var(--pp-border);
    border-radius: var(--pp-radius-md);
    background: var(--pp-bg);
    color: var(--pp-text);
    font-size: 13px;
    outline: none;
    transition: border-color var(--pp-t-fast) var(--pp-ease);
}

.pp-modal__field input:focus {
    border-color: var(--pp-primary);
}

.pp-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--pp-radius-md);
    background: var(--pp-primary);
    color: var(--pp-bg);
    font-size: 13.5px;
    font-weight: 800;
    margin-top: 4px;
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease);
}

.pp-modal__submit:hover {
    background: var(--pp-primary-dark);
    transform: translateY(-1px);
}

/* =========================================================
   07 · STICKY BAR (Mobile only)
   ========================================================= */

.pp-sticky {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--pp-border);
    padding: 10px 14px;
    box-shadow: 0 -4px 20px rgba(23, 26, 24, 0.08);
}

.pp-sticky__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--pp-container-max);
    margin-inline: auto;
}

.pp-sticky__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-sticky__amount {
    font-family: var(--pp-mono);
    font-size: 17px;
    font-weight: 900;
    color: var(--pp-secondary);
    line-height: 1.1;
}

.pp-sticky__price small {
    font-family: var(--pp-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--pp-muted);
}

.pp-sticky__form {
    flex-shrink: 0;
}

.pp-sticky__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--pp-radius-md);
    background: var(--pp-primary);
    color: var(--pp-bg);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(184, 92, 56, 0.2);
    transition:
        background-color var(--pp-t-fast) var(--pp-ease),
        transform var(--pp-t-fast) var(--pp-ease);
}

.pp-sticky__btn svg {
    width: 15px;
    height: 15px;
}

.pp-sticky__btn:hover {
    background: var(--pp-primary-dark);
    transform: translateY(-1px);
}

.pp-sticky__btn--disabled {
    background: var(--pp-muted-light);
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================================================
   RESPONSIVE — Tablet (≥ 768px)
   ========================================================= */

@media (min-width: 768px) {
    .pp-related__slider {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .pp-cta__panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        padding: 32px 36px;
    }

    .pp-cta__actions {
        flex-direction: row;
    }

    .pp-cta__btn {
        flex: 1;
    }

    .pp-specs__row {
        font-size: 13.5px;
    }
}

/* =========================================================
   RESPONSIVE — Desktop (≥ 992px)
   ========================================================= */

@media (min-width: 992px) {
    .pp-console__grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 28px;
        align-items: start;
    }

    .pp-gallery {
        position: sticky;
        top: 100px;
    }

    .pp-related__slider {
        grid-template-columns: repeat(4, 1fr);
    }

    .pp-tabs {
        max-width: 560px;
    }
}

/* =========================================================
   RESPONSIVE — Large Desktop (≥ 1200px)
   ========================================================= */

@media (min-width: 1200px) {
    .pp-console__grid {
        gap: 36px;
    }

    .pp-purchase__card {
        padding: 28px;
    }

    .pp-tab-panel {
        padding: 32px;
    }
}

/* =========================================================
   HIDE STICKY ON DESKTOP
   ========================================================= */

@media (min-width: 768px) {
    .pp-sticky {
        display: none;
    }

    .product-page {
        padding-bottom: 60px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.product-page :focus-visible {
    outline: 2px solid var(--pp-primary);
    outline-offset: 2px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .product-page *,
    .product-page *::before,
    .product-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .pp-sticky,
    .pp-modal,
    .pp-gallery__zoom,
    .pp-cta,
    .pp-purchase__submit {
        display: none !important;
    }

    .pp-console__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-gallery {
        position: static;
    }
}