/* ==========================================================================
   Self-contained design system for the product detail page. Scoped under
   .product-shell so it never depends on (or bleeds into) the rest of the
   storefront's stylesheets. Mirrors the visual language of the new Mana
   template (rounded glass cards, floating actions, pill tabs) using plain
   CSS instead of a Tailwind build, since this project has no Tailwind
   toolchain to compile new utility classes on demand.
   ========================================================================== */

.product-shell {
    --pp-primary: #2563eb;
    --pp-primary-dark: #1d4ed8;
    --pp-primary-light: #eff6ff;
    --pp-accent: #f59e0b;
    --pp-danger: #ef4444;
    --pp-success: #10b981;
    --pp-ink: #111827;
    --pp-muted: #6b7280;
    --pp-border: #e5e7eb;
    --pp-surface: #ffffff;
    --pp-surface-soft: #f9fafb;
    --pp-radius-xl: 2rem;
    --pp-radius-lg: 1.5rem;
    --pp-radius-md: 1rem;
    --pp-radius-sm: 0.65rem;
    --pp-shadow: 0 20px 45px -20px rgba(17, 24, 39, 0.18);
    padding: 1.5rem 0 3rem;
    color: var(--pp-ink);
}

.product-shell * {
    box-sizing: border-box;
}

.product-shell .hidden {
    display: none !important;
}

.pp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ------------------------------- Breadcrumb ------------------------------ */

.pp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pp-muted);
    margin-bottom: 1.25rem;
}

.pp-breadcrumb a {
    color: var(--pp-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.pp-breadcrumb a:hover {
    color: var(--pp-primary);
}

.pp-breadcrumb i {
    font-size: 0.6rem;
    opacity: .5;
}

.pp-breadcrumb .current {
    color: var(--pp-ink);
    font-weight: 800;
}

/* ---------------------------------- Hero ---------------------------------- */

.pp-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .pp-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pp-gallery-card {
    position: relative;
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-xl);
    box-shadow: var(--pp-shadow);
    padding: 1.5rem;
}

.pp-toolbar {
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--pp-border);
    border-radius: 1.1rem;
    box-shadow: 0 10px 25px -12px rgba(17, 24, 39, .25);
}

.pp-toolbar-sep {
    width: 1px;
    height: 18px;
    background: var(--pp-border);
}

.pp-toolbar-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-muted);
    cursor: pointer;
    transition: all .2s ease;
}

.pp-toolbar-btn:hover {
    background: var(--pp-primary);
    color: #fff;
}

.pp-toolbar-btn.wishlist:hover { background: var(--pp-danger); }
.pp-toolbar-btn.compare:hover { background: var(--pp-success); }
.pp-toolbar-btn.notify:hover { background: var(--pp-accent); }

.pp-main-swiper {
    position: relative;
    width: 100%;
    height: 360px;
    max-height: 360px;
    border-radius: var(--pp-radius-lg);
    overflow: hidden;
    touch-action: pan-y;
}

.pp-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--pp-surface-soft);
    border-radius: var(--pp-radius-lg);
}

.pp-main-swiper .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pp-main-swiper img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.pp-zoom-hint {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    pointer-events: none;
    z-index: 15;
}

.pp-main-swiper .swiper-button-next,
.pp-main-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .92);
    border-radius: 1rem;
    box-shadow: 0 8px 20px -8px rgba(17, 24, 39, .3);
    color: var(--pp-primary);
}

.pp-main-swiper .swiper-button-next::after,
.pp-main-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.pp-thumb-swiper {
    margin-top: 1rem;
}

.pp-thumb-swiper .swiper-slide {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    border: 2px solid transparent;
    background: var(--pp-surface-soft);
    padding: .4rem;
    opacity: .55;
    cursor: pointer;
    transition: all .2s ease;
}

.pp-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--pp-primary);
}

.pp-thumb-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --------------------------------- Info ----------------------------------- */

.pp-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pp-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}

.pp-chip {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    color: var(--pp-primary);
    background: var(--pp-primary-light);
    padding: .3rem .7rem;
    border-radius: .6rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.pp-chip:hover {
    background: var(--pp-primary);
    color: #fff;
}

.pp-chip.muted {
    color: var(--pp-muted);
    background: var(--pp-surface-soft);
}

.pp-chip.muted:hover {
    color: #fff;
    background: var(--pp-muted);
}

.pp-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 2.1rem;
    margin: 0;
}

.pp-rating {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}

.pp-rating-stars {
    color: var(--pp-accent);
    font-size: .8rem;
    display: inline-flex;
    gap: .15rem;
}

.pp-rating-count {
    color: var(--pp-muted);
    font-size: .75rem;
    font-weight: 700;
}

.pp-rating-link {
    background: none;
    border: none;
    color: var(--pp-primary);
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.pp-rating-link:hover {
    text-decoration: underline;
}

.pp-two-col {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1.75rem;
}

@media (max-width: 767px) {
    .pp-two-col {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Options */

.pp-option-group {
    margin-bottom: 1.3rem;
}

.pp-option-label {
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.pp-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-option-item {
    position: relative;
}

.pp-option-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pp-option-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1.1rem;
    border-radius: .8rem;
    border: 2px solid var(--pp-border);
    background: var(--pp-surface-soft);
    font-size: .78rem;
    font-weight: 700;
    color: var(--pp-ink);
    cursor: pointer;
    transition: all .15s ease;
}

.pp-option-item input:checked ~ .pp-option-pill {
    border-color: var(--pp-primary);
    background: var(--pp-primary-light);
    color: var(--pp-primary);
}

.pp-option-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    cursor: pointer;
}

.pp-option-swatch-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .15s ease;
}

.pp-option-item input:checked ~ .pp-option-swatch .pp-option-swatch-circle {
    border-color: var(--pp-primary);
}

.pp-option-swatch-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-option-swatch-name {
    font-size: .68rem;
    font-weight: 700;
    color: var(--pp-muted);
}

/* Feature grid */

.pp-feature-title {
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: .7rem;
}

.pp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.pp-feature-item {
    background: var(--pp-surface-soft);
    border: 1px solid var(--pp-border);
    border-radius: 1rem;
    padding: .7rem .85rem;
}

.pp-feature-item span {
    display: block;
}

.pp-feature-item .k {
    font-size: .65rem;
    color: var(--pp-muted);
    font-weight: 600;
    margin-bottom: .2rem;
}

.pp-feature-item .v {
    font-size: .75rem;
    font-weight: 800;
}

.pp-toggle-features {
    margin-top: .7rem;
    background: none;
    border: none;
    color: var(--pp-primary);
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.pp-toggle-features:hover {
    text-decoration: underline;
}

/* Meta / buy box */

.pp-meta-card {
    background: var(--pp-surface-soft);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.5rem;
    align-self: start;
}

.pp-meta-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.pp-meta-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--pp-muted);
}

.pp-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: .8rem;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-primary);
    flex-shrink: 0;
}

.pp-meta-icon.success { color: var(--pp-success); }
.pp-meta-icon.danger { color: var(--pp-danger); }

.pp-price-block {
    padding-top: 1rem;
    border-top: 1px dashed var(--pp-border);
    margin-bottom: 1.2rem;
}

.pp-price-old-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .3rem;
}

.pp-discount-badge {
    background: var(--pp-danger);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: .2rem .5rem;
    border-radius: .5rem;
}

.pp-price-old {
    font-size: .75rem;
    color: var(--pp-muted);
    text-decoration: line-through;
}

.pp-price-final-row {
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.pp-price-final {
    font-size: 1.65rem;
    font-weight: 900;
}

.pp-price-unit {
    font-size: .72rem;
    font-weight: 700;
    color: var(--pp-muted);
}

.pp-add-to-cart {
    width: 100%;
    height: 3.4rem;
    background: var(--pp-primary);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-size: .9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    cursor: pointer;
    box-shadow: 0 15px 30px -12px rgba(37, 99, 235, .55);
    transition: background .2s ease, transform .15s ease;
}

.pp-add-to-cart:hover {
    background: var(--pp-primary-dark);
}

.pp-add-to-cart:active {
    transform: scale(.98);
}

.pp-add-to-cart:disabled {
    background: var(--pp-border);
    color: var(--pp-muted);
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------------------------- Out of stock state --------------------------- */

.pp-oos-ribbon-wrap {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pp-oos-ribbon {
    padding: .7rem 1.8rem;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    border-radius: 1rem;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, .5);
    transform: rotate(-8deg);
}

.pp-gallery-disabled {
    filter: grayscale(1);
    opacity: .55;
    pointer-events: none;
}

.pp-muted-oos {
    color: var(--pp-muted) !important;
}

.pp-oos-disabled {
    opacity: .5;
    pointer-events: none;
    user-select: none;
}

.pp-oos-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .6rem;
    padding: .5rem 0 1.3rem;
}

.pp-oos-icon {
    width: 58px;
    height: 58px;
    border-radius: 1.4rem;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-muted);
    font-size: 1.4rem;
}

.pp-oos-card h3 {
    font-size: .95rem;
    font-weight: 800;
    margin: 0;
}

.pp-oos-card p {
    font-size: .75rem;
    font-weight: 600;
    color: var(--pp-muted);
    line-height: 1.6rem;
    margin: 0;
}

.pp-notify-btn {
    width: 100%;
    height: 3.4rem;
    background: var(--pp-ink);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    font-size: .88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    cursor: pointer;
    transition: opacity .2s ease, transform .15s ease;
}

.pp-notify-btn:hover {
    opacity: .9;
}

.pp-notify-btn:active {
    transform: scale(.98);
}

.pp-similar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    background: none;
    border: none;
    padding: .8rem 0 0;
    color: var(--pp-primary);
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.pp-similar-link:hover {
    text-decoration: underline;
}

.pp-oos-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1rem 0 0;
    font-size: .72rem;
    font-weight: 700;
    color: var(--pp-muted);
}

/* -------------------------------- Tabs ------------------------------------ */

.pp-tabs {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-xl);
    box-shadow: var(--pp-shadow);
    overflow: hidden;
}

.pp-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .8rem;
    background: var(--pp-surface-soft);
    border-bottom: 1px solid var(--pp-border);
    overflow-x: auto;
}

.pp-tabs .tab-btn {
    border: none;
    background: transparent;
    color: var(--pp-muted);
    font-size: .82rem;
    font-weight: 800;
    padding: .7rem 1.3rem;
    border-radius: 1rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .2s ease;
}

.pp-tabs .tab-btn:hover {
    color: var(--pp-ink);
}

.pp-tabs .tab-btn.active {
    background: var(--pp-primary);
    color: #fff !important;
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .6);
}

.pp-tab-panels {
    padding: 1.75rem;
}

@media (min-width: 768px) {
    .pp-tab-panels {
        padding: 2.5rem;
    }
}

.pp-tabs .tab-content.block {
    display: block;
}

/* Specs */

.pp-spec-group {
    margin-bottom: 2rem;
}

.pp-spec-group:last-child {
    margin-bottom: 0;
}

.pp-spec-group-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.pp-spec-group-title .bar {
    width: 5px;
    height: 1.4rem;
    background: var(--pp-primary);
    border-radius: 999px;
}

.pp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
}

@media (max-width: 640px) {
    .pp-spec-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pp-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
    border-bottom: 1px solid var(--pp-border);
    gap: 1rem;
}

.pp-spec-row .k {
    font-size: .72rem;
    font-weight: 700;
    color: var(--pp-muted);
}

.pp-spec-row .v {
    font-size: .78rem;
    font-weight: 800;
    text-align: left;
}

/* Product grid (related / suggested) */

.pp-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (min-width: 576px) {
    .pp-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .pp-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pp-product-card {
    position: relative;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 1.4rem;
    padding: .7rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.pp-product-card:hover {
    box-shadow: var(--pp-shadow);
    transform: translateY(-3px);
}

.pp-product-card .badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: var(--pp-danger);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: .2rem .45rem;
    border-radius: .5rem;
    z-index: 2;
}

.pp-product-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-surface-soft);
    border-radius: 1.1rem;
    overflow: hidden;
    margin-bottom: .6rem;
}

.pp-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pp-product-name {
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.3rem;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    color: var(--pp-ink);
}

.pp-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .6rem;
}

.pp-product-price .old {
    font-size: .62rem;
    color: var(--pp-muted);
    text-decoration: line-through;
    display: block;
}

.pp-product-price .final {
    font-size: .82rem;
    font-weight: 800;
}

.pp-mini-cart-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: .8rem;
    background: var(--pp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.pp-mini-cart-btn:hover {
    background: var(--pp-primary-dark);
}

.pp-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--pp-muted);
    font-size: .85rem;
    padding: 2rem 0;
}

/* Reviews */

.pp-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .pp-review-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pp-review-summary {
    background: var(--pp-surface-soft);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
}

.pp-review-summary .label {
    font-size: .7rem;
    font-weight: 800;
    color: var(--pp-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.pp-review-summary .score {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: .6rem;
}

.pp-review-summary .pp-rating-stars {
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: .6rem;
}

.pp-review-summary .count {
    font-size: .75rem;
    font-weight: 700;
    color: var(--pp-muted);
}

.pp-review-card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 1.5rem;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
}

.pp-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
}

.pp-review-user {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.pp-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    object-fit: cover;
}

.pp-review-name {
    font-size: .82rem;
    font-weight: 800;
    margin: 0;
}

.pp-review-date {
    font-size: .68rem;
    color: var(--pp-muted);
    font-weight: 700;
    margin: .15rem 0 0;
}

.pp-review-content {
    margin-top: .9rem;
    font-size: .82rem;
    line-height: 1.9rem;
    color: #374151;
}

/* Review form */

.pp-review-form-card {
    background: var(--pp-surface-soft);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.pp-review-form-card h3 {
    font-size: .9rem;
    font-weight: 800;
    margin: 0 0 1.3rem;
}

.pp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 640px) {
    .pp-form-grid { grid-template-columns: minmax(0, 1fr); }
}

.pp-field label {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    color: var(--pp-muted);
    margin-bottom: .45rem;
}

.pp-field input[type="text"],
.pp-field input[type="email"],
.pp-field textarea {
    width: 100%;
    border: 1px solid var(--pp-border);
    background: var(--pp-surface);
    border-radius: .9rem;
    padding: .8rem 1rem;
    font-size: .82rem;
    font-family: inherit;
    color: var(--pp-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pp-field input:focus,
.pp-field textarea:focus {
    outline: none;
    border-color: var(--pp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.pp-field textarea {
    resize: vertical;
    min-height: 120px;
}

.pp-field .invalid-feedback {
    display: block;
    color: var(--pp-danger);
    font-size: .7rem;
    margin-top: .35rem;
}

.pp-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

.pp-alert-danger ul {
    margin: 0;
    padding-right: 1.1rem;
}

.pp-submit-review {
    width: 100%;
    padding: 1rem;
    background: var(--pp-primary);
    color: #fff;
    border: none;
    border-radius: 1.1rem;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease;
}

.pp-submit-review:hover {
    background: var(--pp-primary-dark);
}

/* Star rating input (checkbox/label technique) */

.pp-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .15rem;
}

.pp-star-input input.star {
    display: none;
}

.pp-star-input label.star {
    font-size: 1.4rem;
    color: #d1d5db;
    cursor: pointer;
    transition: transform .15s ease;
}

.pp-star-input label.star:before {
    content: '\f005';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.pp-star-input label.star:hover,
.pp-star-input label.star:hover ~ label.star {
    color: var(--pp-accent);
    transform: scale(1.15);
}

.pp-star-input input.star:checked ~ label.star {
    color: var(--pp-accent);
}

/* Description tab */

.pp-description {
    font-size: .85rem;
    line-height: 2rem;
    color: #374151;
}

.pp-description img {
    max-width: 100%;
    border-radius: 1rem;
}

.pp-source-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.2rem;
    color: var(--pp-primary);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.pp-source-link:hover {
    text-decoration: underline;
}

/* Share modal */

.pp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .55);
    padding: 1rem;
}

.pp-modal-overlay.hidden {
    display: none !important;
}

.pp-modal {
    width: 100%;
    max-width: 420px;
    background: var(--pp-surface, #fff);
    border-radius: var(--pp-radius-lg, 1.5rem);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
}

.pp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    background: var(--pp-accent, #f59e0b);
    color: #fff;
}

.pp-modal-header strong {
    font-size: .9rem;
}

.pp-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.pp-modal-body {
    padding: 1.5rem;
}

.pp-modal-body p {
    font-size: .78rem;
    color: var(--pp-muted, #6b7280);
    margin-bottom: 1.1rem;
}

.pp-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-share-list a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
}

.pp-share-facebook { background: #1877f2; }
.pp-share-twitter { background: #1da1f2; }
.pp-share-telegram { background: #26a5e4; }
.pp-share-whatsapp { background: #25d366; }
.pp-share-copy { background: var(--pp-ink, #111827); }

.pp-copy-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
}

.pp-copy-row input {
    flex: 1;
    border: 1px solid var(--pp-border, #e5e7eb);
    border-radius: .7rem;
    padding: .6rem .8rem;
    font-size: .75rem;
    background: var(--pp-surface-soft, #f9fafb);
}

.pp-copy-row button {
    border: none;
    background: var(--pp-primary, #2563eb);
    color: #fff;
    border-radius: .7rem;
    padding: .6rem 1rem;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* Image lightbox */

.pp-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
    padding: 3rem 1rem;
}

.pp-lightbox-overlay.hidden {
    display: none !important;
}

.pp-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
}

.pp-lightbox-close {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.pp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

.pp-lightbox-prev {
    right: 1rem;
}

.pp-lightbox-next {
    left: 1rem;
}

.pp-lightbox-nav.hidden {
    display: none !important;
}
