/* ===== Product page v2 additions ===== */

/* Title head with share */
.ps-prod-head-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.ps-share-fb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1877f2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.ps-share-fb:hover { background: #166fe5; }

/* Rating row under title */
.ps-prod-rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
    flex-wrap: wrap;
}
.ps-prod-rating-row .ps-prod-reviews-link {
    font-size: 14px;
    color: #4a5562;
}
.ps-prod-rating-row .ps-prod-reviews-link strong { color: #1a1a1a; }
.ps-prod-recommend {
    font-size: 13px;
    color: #27ae60;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ps-prod-recommend strong { color: #27ae60; font-size: 14px; }

/* Variant button shows name + price */
.ps-prod-variant-price { font-size: 11px; color: #c0392b; font-weight: 500; margin-top: 2px; }

/* Voucher badge in buy-box */
.ps-buy-voucher {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff4ec, #ffe4d1);
    border: 1px solid #ffb380;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
}
.ps-buy-voucher-badge {
    width: 32px;
    height: 32px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.ps-buy-voucher > div:nth-child(2) { flex: 1; min-width: 0; }
.ps-buy-voucher-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.ps-buy-voucher-sub { font-size: 11px; color: #6b7785; line-height: 1.3; }
.ps-buy-voucher-btn {
    background: transparent;
    border: 1px solid #6b7785;
    color: #1a1a1a;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}
.ps-buy-voucher-btn:hover { background: #fff; border-color: #1a1a1a; }

/* Vendor info */
.ps-buy-vendor {
    font-size: 12px;
    color: #4a5562;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 10px;
}
.ps-buy-vendor strong { color: #0d91d3; }
.ps-vendor-score {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    color: #f5a623;
    font-weight: 600;
}

/* Genius transport */
.ps-buy-genius {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f8f4;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 14px;
}
.ps-genius-badge {
    width: 28px;
    height: 28px;
    background: #2dbe60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 14px;
}
.ps-buy-genius > div:nth-child(2) { flex: 1; font-size: 12px; line-height: 1.4; }
.ps-buy-genius strong { color: #27ae60; }
.ps-buy-genius-sub { color: #6b7785; font-size: 11px; margin-top: 2px; }
.ps-buy-genius-link { color: #0d91d3; font-size: 11px; text-decoration: none; display: inline-block; margin-top: 4px; }
.ps-buy-genius-link:hover { text-decoration: underline; }

/* ====== Reviews tab ====== */
.ps-reviews-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 18px;
    color: #1a1a1a;
}
.ps-reviews-count { font-size: 14px; color: #6b7785; font-weight: 400; }

.ps-reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr 140px 200px;
    gap: 24px;
    padding: 18px 0 22px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 20px;
    align-items: center;
}
.ps-reviews-summary-avg { text-align: center; }
.ps-reviews-avg-num { font-size: 48px; font-weight: 300; color: #1a1a1a; line-height: 1; }
.ps-reviews-avg-cnt { font-size: 12px; color: #6b7785; margin-top: 4px; }

.ps-reviews-bars { display: flex; flex-direction: column; gap: 5px; }
.ps-reviews-bar-row { display: grid; grid-template-columns: 60px 1fr 50px; gap: 10px; align-items: center; }
.ps-reviews-bar-label { font-size: 12px; color: #4a5562; }
.ps-reviews-bar { background: #eef0f3; height: 8px; border-radius: 4px; overflow: hidden; }
.ps-reviews-bar-fill { background: #27ae60; height: 100%; transition: width .3s ease; }
.ps-reviews-bar-count { font-size: 12px; color: #6b7785; text-align: right; }

.ps-reviews-recommend { text-align: center; font-size: 12px; color: #6b7785; }
.ps-reviews-recommend-pct { font-size: 28px; font-weight: 600; color: #27ae60; line-height: 1; }

.ps-reviews-add { font-size: 13px; }
.ps-reviews-add-title { font-weight: 500; color: #1a1a1a; }
.ps-reviews-add-sub { color: #6b7785; margin-top: 2px; }

.ps-reviews-empty,
.ps-qna-empty { color: #6b7785; padding: 16px 0; }

.ps-review-form, .ps-qna-form, .ps-qna-reply-form {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ps-review-form h3, .ps-qna-form h3 { margin: 0 0 4px; font-size: 16px; }
.ps-review-form input, .ps-review-form textarea, .ps-review-form select,
.ps-qna-form input, .ps-qna-form textarea, .ps-qna-reply-form input, .ps-qna-reply-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d8e0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}
.ps-review-form input:focus, .ps-review-form textarea:focus, .ps-review-form select:focus,
.ps-qna-form input:focus, .ps-qna-form textarea:focus { outline: none; border-color: #0d91d3; }
.ps-review-form-rating { display: flex; align-items: center; gap: 10px; }
.ps-review-form-rating select { width: auto; }

.ps-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.ps-review-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eef0f3;
}
.ps-review-card:last-child { border-bottom: 0; }
.ps-review-author { display: flex; align-items: center; gap: 10px; }
.ps-review-avatar {
    width: 40px;
    height: 40px;
    background: #0d91d3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.ps-review-author-name { font-size: 13px; color: #1a1a1a; font-weight: 500; }
.ps-review-date { font-size: 11px; color: #6b7785; }
.ps-review-stars { display: flex; gap: 1px; margin-bottom: 6px; }
.ps-review-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ps-review-comment { margin: 0; font-size: 13px; color: #2a2f36; line-height: 1.5; }

/* ====== Q&A tab ====== */
.ps-qna-title { font-size: 20px; font-weight: 500; margin: 0 0 16px; color: #1a1a1a; }
.ps-qna-ask-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.ps-qna-ask-title { font-weight: 600; color: #1a1a1a; font-size: 15px; }
.ps-qna-ask-sub { font-size: 12px; color: #6b7785; margin-top: 2px; }

.ps-qna-list { display: flex; flex-direction: column; gap: 16px; }
.ps-qna-item {
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 14px;
}
.ps-qna-q, .ps-qna-a {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.ps-qna-a { margin-left: 30px; }
.ps-qna-q-avatar, .ps-qna-a-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.ps-qna-q-avatar { background: #0d91d3; }
.ps-qna-a-avatar { background: #27ae60; }
.ps-qna-q-meta, .ps-qna-a-meta { font-size: 11px; color: #6b7785; margin-bottom: 4px; }
.ps-qna-q-meta strong, .ps-qna-a-meta strong { color: #1a1a1a; }
.ps-qna-q-text, .ps-qna-a-text { font-size: 14px; color: #1a1a1a; line-height: 1.5; }
.ps-qna-official {
    display: inline-block;
    background: #0d91d3;
    color: #fff;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    margin: 0 4px;
}
.ps-qna-reply-btn {
    background: transparent;
    border: 0;
    color: #0d91d3;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 0;
    margin-top: 4px;
}
.ps-qna-reply-btn:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .ps-reviews-summary {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .ps-review-card { grid-template-columns: 1fr; }
}

/* Buy-box buttons aligned with card buttons style */
.ps-buy-add { height: 48px; font-size: 14px; }
.ps-buy-add .ps-product-add-label { line-height: 48px; }
.ps-buy-add .ps-product-add-badge { height: 48px; width: 52px; }
.ps-buy-add { padding-left: 52px; }
.ps-buy-add .ps-product-add-badge svg { width: 24px; height: 24px; }

.ps-fav-btn {
    width: 100%;
    background: #fff;
    color: #395374;
    border: 1px solid #d1d8e0;
    border-radius: 6px;
    padding: 10px 16px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: background .15s ease, color .15s ease;
}
.ps-fav-btn svg { width: 22px; height: 22px; fill: currentColor; }
.ps-fav-btn:hover { background: #f5f7fa; color: #2c4159; }
.ps-fav-btn.ps-fav-active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.ps-fav-btn.ps-fav-active svg { fill: #fff; }

/* Delivery + Info block (eMAG-style under variants) */
.ps-delivery-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: 13px;
    color: #1a1a1a;
}
.ps-delivery-est {
    margin-bottom: 12px;
    color: #4a5562;
}
.ps-delivery-city {
    color: #0d91d3;
    text-decoration: underline;
}
.ps-delivery-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    margin-bottom: 14px;
}
.ps-delivery-star {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5a623;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ps-delivery-star-blue { background: #0d91d3; }
.ps-delivery-title { font-weight: 500; color: #1a1a1a; font-size: 13px; }
.ps-delivery-name { font-weight: 600; color: #1a1a1a; margin-top: 2px; }
.ps-delivery-when { color: #4a5562; font-size: 12px; }
.ps-delivery-price { color: #1a1a1a; font-size: 14px; font-weight: 500; margin-top: 4px; }
.ps-delivery-price sup { font-size: 10px; }
.ps-delivery-more {
    display: inline-block;
    margin-top: 8px;
    color: #0d91d3;
    text-decoration: none;
    font-size: 12px;
}
.ps-delivery-more:hover { text-decoration: underline; }

.ps-delivery-info { margin-top: 16px; }
.ps-delivery-info-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ps-delivery-info-head strong { font-size: 13px; }
.ps-delivery-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ps-delivery-info-list li {
    padding: 4px 0;
    color: #1a1a1a;
    font-size: 13px;
}
.ps-delivery-info-list ul {
    margin: 4px 0 0 26px;
    padding: 0;
    list-style: disc;
    color: #6b7785;
    font-size: 12px;
}
.ps-delivery-info-list a {
    color: #0d91d3;
    text-decoration: underline;
}
.ps-check {
    color: #27ae60;
    font-weight: 700;
    margin-right: 4px;
}

/* Spacing between cart and favorite buttons */
.ps-buy-add { margin-bottom: 12px; }
.ps-fav-btn { margin-top: 4px; }

.ps-buy-price-novat {
    font-size: 12px;
    color: #6b7785;
    margin: -2px 0 10px;
}
.ps-buy-price-novat strong { color: #1a1a1a; font-weight: 600; }

/* Tabs nav like the blue 'Cele mai comandate' bar */
.ps-prod-tabs-nav {
    background: #0d91d3;
    border-bottom: 0;
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 20px;
    gap: 0;
}
.ps-prod-tab {
    color: #fff;
    background: transparent;
    border: 0;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 0;
    margin-bottom: 0;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.ps-prod-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ps-prod-tab.ps-active {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-bottom: 0;
}
