/* Recenzie produktov + wishlist (obľúbené). */

/* ── Recenzie ──────────────────────────────────────────────────────────── */
.reviews-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    color: var(--text-primary, #e6e6e6);
}

.reviews-section h2 {
    font-size: 24px;
    margin: 0 0 6px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.reviews-summary .avg-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent, #ff7700);
    line-height: 1;
}

.reviews-stars {
    color: var(--accent, #ff7700);
    letter-spacing: 2px;
    font-size: 18px;
}

.reviews-stars .star-empty {
    color: rgba(255, 255, 255, 0.25);
}

.reviews-count {
    color: var(--text-secondary, #b0b0b0);
    font-size: 14px;
}

.review-card {
    background: var(--bg-secondary, #222);
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary, #b0b0b0);
}

.review-comment {
    color: var(--text-secondary, #b0b0b0);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.reviews-empty {
    color: var(--text-secondary, #b0b0b0);
    padding: 16px 0;
}

/* ── Formulár recenzie ─────────────────────────────────────────────────── */
.review-form {
    background: var(--bg-secondary, #222);
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.review-form h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 14px;
}

.star-input input {
    display: none;
}

.star-input label {
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: color .12s;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--accent, #ff7700);
}

.review-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    background: var(--bg-primary, #1a1a1a);
    color: var(--text-primary, #e6e6e6);
    font-family: inherit;
    font-size: 14px;
}

.review-form-msg {
    margin-top: 10px;
    font-size: 14px;
}

.review-login-hint {
    color: var(--text-secondary, #b0b0b0);
    margin-top: 18px;
}

.review-login-hint a {
    color: var(--accent, #ff7700);
}

/* ── Wishlist tlačidlo (detail produktu) ───────────────────────────────── */
#wishlistBtn.active {
    border-color: var(--accent, #ff7700);
    color: var(--accent, #ff7700);
}

#wishlistBtn.active #wishlistIcon {
    fill: var(--accent, #ff7700);
    stroke: var(--accent, #ff7700);
}

/* ── Srdce na kartách produktov ────────────────────────────────────────── */
.product-image-container {
    position: relative;
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    left: 10px; /* vľavo, aby nekolidovalo so štítkom ZĽAVA (.product-ribbon je vpravo hore) */
    z-index: 3;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    transition: transform .12s, background .12s;
}

.wishlist-heart:hover {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.6);
}

.wishlist-heart svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.wishlist-heart.active {
    color: var(--accent, #ff7700);
}

.wishlist-heart.active svg {
    fill: var(--accent, #ff7700);
    stroke: var(--accent, #ff7700);
}

/* ── Wishlist v profile ────────────────────────────────────────────────── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.wishlist-item {
    background: var(--bg-secondary, #222);
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wishlist-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--bg-primary, #1a1a1a);
}

.wishlist-item-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.wishlist-item-name {
    font-size: 14px;
    color: var(--text-primary, #e6e6e6);
    font-weight: 600;
}

.wishlist-item-price {
    color: var(--accent, #ff7700);
    font-weight: 700;
}

.wishlist-item-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.wishlist-item-actions a,
.wishlist-item-actions button {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border-color, rgba(255, 119, 0, 0.22));
    background: transparent;
    color: var(--text-primary, #e6e6e6);
    text-decoration: none;
}

.wishlist-item-actions .remove-btn {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}
