/* ============================================================
   ProductInfo — brand, title, rating row, stock message, nudges
   ============================================================ */

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-brand {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--pdp-blue);
    text-decoration: none;
}
.pdp-brand:empty {
    display: none;
}

.pdp-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 800;
    color: var(--pdp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pdp-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
@media (min-width: 1200px) {
    .pdp-title {
        font-size: 1.32rem;
    }
}

.pdp-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--pdp-muted);
}

.pdp-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--pdp-yellow);
}
.pdp-stars .material-icons-outlined {
    font-size: 16px;
}
.pdp-stars .is-empty {
    color: #e2e8f0;
}

.pdp-rating-link {
    color: var(--pdp-blue);
    font-weight: 700;
    text-decoration: none;
}
.pdp-rating-link:hover {
    text-decoration: underline;
}

.pdp-sold-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #ffd8a8;
    border-radius: 999px;
    padding: 5px 14px 5px 10px;
    font-size: 0.8rem;
    color: var(--pdp-ink);
    width: fit-content;
}
.pdp-sold-count .pdp-sold-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b1a, #ff9d3c);
    color: #fff;
    flex: none;
}
.pdp-sold-count .pdp-sold-icon .material-icons-outlined {
    font-size: 14px;
}
.pdp-sold-count .pdp-sold-text {
    font-weight: 600;
    color: var(--pdp-muted);
}
.pdp-sold-count .pdp-sold-text strong {
    font-weight: 900;
    color: #ea580c;
    font-size: 0.9rem;
    margin: 0 2px;
}

/* ── إجمالي المبيعات: بانر عريض مدمج بنفس عائلة شارة المبيعات ── */
.pdp-total-sales {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 8px 14px;
    background:
        radial-gradient(130% 180% at 100% 0%, rgba(124, 58, 237, 0.14), transparent 55%),
        linear-gradient(120deg, #eef2ff, #e0e7ff 60%, #f3e8ff);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px -8px rgba(79, 70, 229, 0.55);
}
.pdp-total-sales[hidden] {
    display: none;
}
.pdp-total-sales-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: none;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: #fff;
    box-shadow: 0 3px 8px -3px rgba(79, 70, 229, 0.65);
}
.pdp-total-sales-icon .material-icons-outlined {
    font-size: 18px;
}
.pdp-total-sales-body {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.pdp-total-sales-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4338ca;
}
.pdp-total-sales-num {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1.1;
}

.pdp-nudges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pdp-nudge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--pdp-blue-strong);
    font-size: 0.68rem;
    font-weight: 800;
}
.pdp-nudge .material-icons-outlined,
.pdp-nudge svg {
    width: 13px;
    height: 13px;
    font-size: 13px;
}
.pdp-nudge.pdp-nudge-hot {
    background: #fdeeea;
    color: var(--pdp-stock-low-text);
}
.pdp-nudge.pdp-nudge-express {
    background: var(--pdp-express-bg);
    color: var(--pdp-express-text);
}

/* ---------- Stock message ---------- */
.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    width: fit-content;
}
.pdp-stock .material-icons-outlined {
    font-size: 17px;
}
.pdp-stock.is-ok {
    color: var(--pdp-stock-ok);
}
.pdp-stock.is-ok .pdp-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--pdp-stock-ok, #0d9459);
    background: #e7f6ee;
    border: 1px solid #bfe8d2;
    padding: 5px 10px;
    border-radius: 999px;
}
.pdp-stock.is-ok .pdp-stock-badge .material-icons-outlined {
    font-size: 15px;
}
.pdp-stock.is-ok .pdp-stock-badge strong {
    font-weight: 900;
}
.pdp-stock.is-out {
    color: var(--pdp-stock-out);
}

/* Scarcity card (1-10 units) — big-retailer style */
.pdp-stock.is-low {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, #fdeeea);
    border: 1px solid #fed7aa;
}
.pdp-stock-low-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pdp-stock-flame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    flex-shrink: 0;
    animation: pdpFlamePulse 1.6s ease-in-out infinite;
}
.pdp-stock-flame .material-icons-outlined {
    font-size: 16px;
}
@keyframes pdpFlamePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.pdp-stock-low-text {
    color: #9a3412;
    font-size: 0.85rem;
    line-height: 1.4;
}
.pdp-stock-low-text strong {
    color: #c2410c;
    font-size: 1rem;
    font-weight: 900;
    padding: 0 2px;
}
.pdp-stock-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #ffe4c7;
    overflow: hidden;
}
.pdp-stock-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #ef4444);
    transition: width 0.6s ease;
}

.pdp-explore-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 12px;
    background: #f7f8fa;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
}
.pdp-explore-link:hover {
    background: #f0f2f5;
}
.pdp-explore-trophy {
    display: inline-flex;
    color: #f5a623;
}
.pdp-explore-trophy .material-icons-outlined {
    font-size: 18px;
}
.pdp-explore-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pdp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdp-explore-text strong {
    font-weight: 900;
}
.pdp-explore-caret {
    font-size: 16px;
    color: var(--pdp-ink);
    margin-inline-start: auto;
}

/* ---------- Rating row under the explore link (noon style) ---------- */
.pdp-explore-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    text-decoration: none;
    width: fit-content;
}
.pdp-explore-rating[hidden] {
    display: none;
}
.pdp-explore-rating-num {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--pdp-ink);
}
.pdp-explore-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--pdp-yellow);
}
.pdp-explore-rating-stars .material-icons-outlined {
    font-size: 16px;
}
.pdp-explore-rating-stars .is-empty {
    color: #e2e8f0;
}
.pdp-explore-rating-divider {
    width: 1px;
    height: 16px;
    background: var(--pdp-border);
}
.pdp-explore-rating-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pdp-blue);
}
.pdp-explore-rating:hover .pdp-explore-rating-count {
    text-decoration: underline;
}

/* ---------- Offers accordion (coupons / bank offers) ---------- */
.pdp-offers {
    border: 1px solid var(--pdp-border);
    border-radius: 12px;
    overflow: hidden;
}
.pdp-offers-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--pdp-ink);
}
.pdp-offers-summary::-webkit-details-marker {
    display: none;
}
.pdp-offers-summary .material-icons-outlined {
    color: var(--pdp-muted);
    transition: transform var(--pdp-fade-fast) ease;
}
.pdp-offers[open] .pdp-offers-summary .material-icons-outlined {
    transform: rotate(180deg);
}
.pdp-offers-body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pdp-offer-group-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--pdp-muted);
}
.pdp-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px dashed var(--pdp-border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.78rem;
}
.pdp-offer-code {
    font-weight: 900;
    color: var(--pdp-blue);
    background: #eef4ff;
    border-radius: 6px;
    padding: 2px 8px;
    direction: ltr;
}
.pdp-bank-offer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--pdp-text);
}
.pdp-bank-offer-row .material-icons-outlined {
    font-size: 16px;
    color: var(--pdp-blue);
}
