/* =========================================================
   PLUS MOBILE - PRODUCT / DEVICE DETAIL PAGE
========================================================= */

.pm-product-page {
    padding: 42px 0 90px;
    background: #fff;
}

.pm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--pm-muted);
    font-size: 14px;
}

.pm-breadcrumb a {
    color: var(--pm-primary);
}

.pm-breadcrumb strong {
    color: var(--pm-text);
}

.pm-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 32px;
    align-items: start;
}

.pm-product-left {
    position: sticky;
    top: 140px;
    align-self: start;
    height: fit-content;
}

.pm-product-image-box,
.pm-product-card,
.pm-product-info-box {
    border: 1px solid var(--pm-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(91, 33, 182, 0.07);
}

.pm-product-image-box {
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 34px;
}

.pm-product-image-box img {
    max-height: 350px;
    object-fit: contain;
}

.pm-product-placeholder {
    color: var(--pm-primary-dark);
    font-size: 34px;
    font-weight: 900;
}

.pm-product-info-box {
    margin-top: 24px;
    padding: 30px;
}

.pm-product-info-box h2 {
    margin: 0 0 12px;
}

.pm-product-card {
    position: relative;
    height: fit-content;
    max-height: none !important;
    overflow: visible !important;
    padding: 32px;
}

.pm-rating {
    margin-bottom: 14px;
    color: var(--pm-accent);
    font-size: 14px;
    font-weight: 850;
}

.pm-product-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.pm-product-brand {
    margin: 0 0 22px;
    color: var(--pm-primary);
    font-weight: 900;
    text-transform: uppercase;
}

/* =========================================================
   REPAIR OPTIONS
========================================================= */

.pm-repair-options {
    margin-bottom: 24px;
}

.pm-repair-options h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.pm-repair-option {
    display: flex;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    background: #fff;
    color: var(--pm-text) !important;
    font-weight: 850;
    transition: 0.18s ease;
}

.pm-repair-option:hover,
.pm-repair-option.active {
    border-color: var(--pm-primary);
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark) !important;
}

.pm-repair-option-text {
    min-width: 0;
    display: grid !important;
    gap: 6px;
}

.pm-repair-option-title {
    display: block;
    color: inherit;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.pm-repair-option-description {
    display: block;
    max-width: 100%;
    color: var(--pm-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.pm-repair-option.active .pm-repair-option-description {
    color: #5f536f;
}

.pm-repair-option strong {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--pm-primary-dark);
    line-height: 1.25;
}

/* =========================================================
   PRICE / CART
========================================================= */

.pm-product-price {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin: 22px 0;
}

.pm-product-price span {
    font-weight: 900;
}

.pm-product-price strong {
    color: var(--pm-primary-dark);
    font-size: 36px;
    letter-spacing: -0.05em;
}

.pm-product-benefits {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 18px;
    background: var(--pm-primary-soft);
    color: var(--pm-text);
    font-weight: 750;
}

.pm-cart-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.pm-add-cart {
    all: unset;
    width: 100%;
    height: 41px;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6d3df5 !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    border-radius: 52px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(109, 61, 245, 0.25);
    transition: 0.25s ease;
}

.pm-add-cart:hover {
    background: #5b2fe0 !important;
    transform: translateY(-2px);
}

.pm-add-cart:focus,
.pm-add-cart:active {
    outline: none !important;
    border: none !important;
}

.pm-add-cart * {
    color: #fff !important;
}

.pm-payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pm-payment-methods img {
    height: 32px;
    width: auto;
    background: #fff;
    border: 1px solid #ece8f7;
    border-radius: 10px;
    padding: 5px 8px;
    transition: 0.2s;
}

.pm-payment-methods img:hover {
    transform: translateY(-2px);
}

/* =========================================================
   TRUST LIST
========================================================= */

.pm-product-trust-list {
    margin-top: 28px;
    display: grid;
}

.pm-trust-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--pm-border);
}

.pm-trust-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #f3e8ff, #fff);
    color: var(--pm-primary);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
}

.pm-trust-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-trust-item:first-child .pm-trust-icon svg {
    fill: currentColor;
    stroke: currentColor;
}

.pm-trust-item strong {
    display: block;
    color: var(--pm-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.pm-trust-item p {
    margin: 4px 0 0;
    color: var(--pm-muted);
    font-size: 13px;
    line-height: 1.35;
}

/* =========================================================
   PRODUCT FAQ
========================================================= */

.pm-product-faq {
    padding: 70px 0;
    background: linear-gradient(180deg, #fff, #fbf8ff);
}

.pm-product-faq-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.pm-product-faq-head span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark);
    font-size: 13px;
    font-weight: 950;
}

.pm-product-faq-head h2 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.pm-product-faq-head p {
    margin: 0;
    color: var(--pm-muted);
}

.pm-product-faq-list {
    display: grid;
    gap: 14px;
}

.pm-product-faq-list details {
    border: 1px solid var(--pm-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(91, 33, 182, 0.06);
    overflow: hidden;
}

.pm-product-faq-list summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 20px 56px 20px 22px;
    color: var(--pm-text);
    font-size: 17px;
    font-weight: 950;
}

.pm-product-faq-list summary::-webkit-details-marker {
    display: none;
}

.pm-product-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pm-primary);
    font-size: 26px;
    font-weight: 950;
}

.pm-product-faq-list details[open] summary::after {
    content: "−";
    color: var(--pm-accent);
}

.pm-product-faq-list details p {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0 22px;
    color: var(--pm-muted);
    font-size: 15px;
}

.pm-product-faq-list details[open] p {
    max-height: 300px;
    padding: 0 22px 22px;
}

/* =========================================================
   PRODUCT REVIEWS
========================================================= */

.pm-device-reviews {
    margin-top: 70px;
    padding: 52px;
    border-radius: 30px;
    background: linear-gradient(180deg, #fff, #fbf8ff);
    border: 1px solid var(--pm-border);
    box-shadow: 0 28px 90px rgba(91, 33, 182, 0.10);
}

.pm-device-review-head {
    margin-bottom: 28px;
}

.pm-device-review-head h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.055em;
}

.pm-device-review-head strong {
    color: var(--pm-accent);
}

.pm-device-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--pm-primary-soft), #fff);
    border: 1px solid var(--pm-border);
}

.pm-device-review-top h2 {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.pm-device-review-top p:last-child {
    margin: 0;
    color: var(--pm-muted);
}

.pm-review-write-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark));
    color: #fff !important;
    font-weight: 950;
    white-space: nowrap;
}

.pm-device-review-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 24px 28px;
    border-radius: 26px;
    background: #fff8eb;
    border: 1px solid #f2e5cf;
}

.pm-review-big-stars {
    color: #f7b500;
    font-size: 34px;
    letter-spacing: 2px;
    line-height: 1;
}

.pm-review-big-stars span,
.pm-review-stars span {
    color: #ddd;
}

.pm-device-review-summary strong {
    color: var(--pm-text);
    font-size: 30px;
    font-weight: 950;
}

.pm-device-review-summary span {
    color: var(--pm-muted);
    font-weight: 850;
}

.pm-device-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

.pm-device-review-grid article {
    min-height: 250px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--pm-border);
    box-shadow: 0 18px 45px rgba(91, 33, 182, 0.06);
}

.pm-review-stars {
    font-size: 19px;
    letter-spacing: 1px;
    color: var(--pm-accent);
    margin-bottom: 12px;
}

.pm-device-review-grid article p {
    min-height: 86px;
    margin: 0 0 18px;
    color: var(--pm-text);
    font-size: 15px;
}

.pm-device-review-grid article strong {
    display: block;
    color: var(--pm-text);
    font-weight: 950;
}

.pm-device-review-grid article small {
    display: block;
    margin-top: 4px;
    color: var(--pm-primary);
    font-weight: 850;
}

.pm-no-review {
    color: var(--pm-muted);
}

.pm-review-form-box {
    margin: 28px 0 0;
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--pm-border);
    box-shadow: 0 18px 50px rgba(91, 33, 182, 0.06);
}

.pm-review-form-box h3,
.pm-review-form-box .comment-reply-title {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

/* =========================================================
   COMMENT FORM
========================================================= */

.comment-form {
    display: grid;
    gap: 14px;
}

.comment-form p {
    margin: 0;
}

.pm-rating-field label,
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    margin: 0 0 7px;
    color: var(--pm-text);
    font-size: 14px;
    font-weight: 900;
}

.pm-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.pm-star-input input {
    display: none;
}

.pm-star-input label {
    margin: 0;
    color: #d8d2e6;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pm-star-input input:checked ~ label,
.pm-star-input label:hover,
.pm-star-input label:hover ~ label {
    color: var(--pm-accent);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none !important;
    background: #fff;
    color: var(--pm-text);
    box-shadow: none !important;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 4px var(--pm-primary-soft) !important;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.pm-cookie-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--pm-muted);
    font-size: 14px;
}

.pm-cookie-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pm-primary);
}

.form-submit .submit {
    border: 0 !important;
    outline: none !important;
    border-radius: 999px;
    padding: 15px 26px;
    background: var(--pm-primary) !important;
    color: #fff !important;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
}

/* =========================================================
   PRODUCT RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .pm-product-grid {
        grid-template-columns: 1fr;
    }

    .pm-product-left {
        position: static;
    }

    .pm-product-card {
        position: static;
        max-height: none !important;
        overflow: visible !important;
    }

    .pm-device-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .pm-device-reviews {
        padding: 28px;
    }

    .pm-device-review-top,
    .pm-device-review-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .pm-device-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .pm-cart-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-add-cart {
        flex: 1 1 auto;
        min-height: 54px;
    }

    .pm-payment-methods {
        justify-content: flex-start;
    }

    .pm-product-image-box {
        min-height: 300px;
        padding: 22px;
    }

    .pm-product-image-box img {
        max-height: 260px;
    }
}

@media (max-width: 560px) {
    .pm-product-page,
    .pm-product-faq {
        padding-block: 44px;
    }

    .pm-product-card,
    .pm-product-info-box,
    .pm-device-reviews,
    .pm-review-form-box {
        padding: 22px !important;
        border-radius: 24px !important;
    }

    .pm-product-card h1 {
        font-size: clamp(30px, 10vw, 42px);
        letter-spacing: -0.055em;
    }

    .pm-repair-option {
        gap: 10px !important;
        padding: 14px 15px !important;
    }

    .pm-repair-option-title {
        font-size: 15px;
    }

    .pm-repair-option-description {
        font-size: 12.5px;
    }

    .pm-repair-option strong {
        font-size: 14px;
    }

    .pm-product-price strong {
        font-size: 30px;
    }
}


/* =========================================================
   PRODUCT SEO TEXT
========================================================= */

.pm-product-seo-text {
    margin-top: 56px;
}

.pm-product-seo-text-inner {
    padding: 42px;
    border: 1px solid var(--pm-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 20%, rgba(124, 58, 237, 0.09), transparent 34%),
        #fff;
    box-shadow: 0 22px 65px rgba(91, 33, 182, 0.08);
}

.pm-product-seo-text span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.pm-product-seo-text h2 {
    margin: 0 0 14px;
    color: var(--pm-text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.pm-product-seo-text p {
    max-width: 920px;
    margin: 0;
    color: var(--pm-muted);
    font-size: 17px;
    line-height: 1.75;
}

@media (max-width: 560px) {
    .pm-product-seo-text {
        margin-top: 34px;
    }

    .pm-product-seo-text-inner {
        padding: 24px;
        border-radius: 24px;
    }

    .pm-product-seo-text p {
        font-size: 15px;
    }
}