/* ============================================
   RENABEL CONCEPT — Single Product
   ============================================ */

/* LAYOUT */
.single-product-container {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    align-items: flex-start;
}

/* HERO TITLE */
.product-hero {
    padding-top: 160px;
    padding-bottom: 60px;
    position: relative;
}

.hero-breadcrumb {
    color: var(--rnb-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* GALLERY */
.product-gallery {
    position: sticky;
    top: 120px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--rnb-border);
    background: var(--rnb-card);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100% !important;
}

/* Dezactivare WooCommerce gallery zoom/lightbox residual */
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__image a {
    pointer-events: none !important;
    cursor: default !important;
}

.woocommerce-product-gallery .zoomImg,
.woocommerce-product-gallery .zoom img,
img.zoomImg {
    display: none !important;
}

.woocommerce-product-gallery {
    opacity: 1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* DETAILS */
.product-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 700;
}

.product-price {
    font-size: 2rem;
    color: white;
    font-weight: 300;
    margin-bottom: 2rem;
    display: block;
    font-family: 'Sora', sans-serif;
}
.product-price span { color: var(--rnb-accent); font-weight: 700; }

.product-description {
    color: var(--rnb-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rnb-border);
}

/* LOGIC BOX (GLASS PANEL) */
.logic-box {
    background: rgba(26, 32, 54, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.logic-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logic-title::before {
    content: ''; display: block; width: 4px; height: 1.5rem; background: var(--rnb-accent); border-radius: 2px;
}

/* FORMS & INPUTS */
.calculator-form label {
    color: var(--rnb-text); font-size: 0.9rem; margin-bottom: 8px; display: block; font-weight: 600; letter-spacing: 0.5px;
}

.custom-input, .custom-select {
    width: 100%;
    background: var(--rnb-dark);
    border: 1px solid var(--rnb-border);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none;
}

.custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.custom-input:focus, .custom-select:focus { border-color: var(--rnb-accent); }

/* ACTION BUTTONS */
.action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--rnb-accent) 0%, #FBBF24 100%);
    color: var(--rnb-dark);
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
    display: block;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    border: 1px solid var(--rnb-border);
    background: transparent;
    color: var(--rnb-text);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--rnb-accent);
    color: var(--rnb-accent);
    background: rgba(245, 158, 11, 0.05);
}

/* RESULT BOX */
.calc-result {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--rnb-accent);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: white;
    display: none;
}
.calc-result span { color: var(--rnb-accent); font-weight: 800; font-size: 1.8rem; display: block; margin-top: 5px; }

/* REVIEWS SECTION */
.reviews-section {
    border-top: 1px solid var(--rnb-border);
    padding-top: 4rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
.reviews-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--rnb-accent);
    padding-left: 1rem;
}

/* ELIMINARE CHENAR ALB ASTRA/WC (Regula 18) */
#reviews,
#comments,
.woocommerce-Reviews,
.comment-respond,
#review_form_wrapper,
.comments-area,
#commentform,
.comment-form,
.woocommerce-Tabs-panel,
.woocommerce-Tabs-panel--reviews,
.ast-comment-list .ast-comment {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override review form wrapper — dark bg, no white */
#review_form_wrapper,
#review_form,
#respond,
.woocommerce-js #reviews #review_form,
.woocommerce #reviews #review_form {
    background: rgba(26, 32, 54, 0.4) !important;
    border: 1px solid var(--rnb-border) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Comentarii individuale — card dark */
.comment-body,
.review {
    background: var(--rnb-card) !important;
    border: 1px solid var(--rnb-border) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Label-uri formular review */
.comment-form-rating label,
.comment-form label {
    color: var(--rnb-text-muted) !important;
}

/* Commentlist — no bullets */
ol.commentlist,
.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Astra .ast-comment reset */
.ast-comment {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* STAR RATING DISPLAY */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1.2em;
    line-height: 1.2em;
    font-size: 1rem;
    width: 5.5em;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: inline-block;
    margin-left: auto;
}

.star-rating::before {
    content: '\f005\f005\f005\f005\f005';
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: '\f005\f005\f005\f005\f005';
    top: 0;
    position: absolute;
    left: 0;
    color: var(--rnb-accent);
}

.star-rating span { font-size: 0; color: transparent; }

/* STAR INPUT */
p.stars {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

p.stars a {
    position: relative;
    height: 1.5em;
    width: 1.5em;
    text-indent: -999em;
    display: inline-block;
    text-decoration: none;
    color: transparent;
    transition: transform 0.2s;
}

p.stars a::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f005';
    color: rgba(255,255,255,0.2);
    text-indent: 0;
    font-size: 1.2rem;
    transition: color 0.2s;
}

p.stars:hover a::before { color: var(--rnb-accent); }
p.stars a:hover ~ a::before { color: rgba(255,255,255,0.2); }

p.stars.selected a.active::before,
p.stars.selected a.active ~ a::before { color: rgba(255,255,255,0.2); }
p.stars.selected a:not(.active)::before { color: var(--rnb-accent); }

/* COMMENT LIST */
#reviews ol.commentlist {
    padding: 0;
    list-style: none;
}

#reviews ol.commentlist li.comment {
    margin-bottom: 2rem;
    background: var(--rnb-card);
    border: 1px solid var(--rnb-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

#reviews ol.commentlist li.comment:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#reviews .comment_container {
    display: flex;
    gap: 1.5rem;
}

#reviews img.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--rnb-accent);
    padding: 2px;
    background: transparent;
}

#reviews .comment-text {
    flex-grow: 1;
}

#reviews .meta {
    font-size: 0.85rem;
    color: var(--rnb-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#reviews .meta strong {
    color: white;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
}

#reviews .description {
    color: var(--rnb-text);
    line-height: 1.6;
}

/* REVIEW FORM */
#review_form_wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid var(--rnb-border);
}

#reply-title {
    color: white;
    font-size: 1.5rem;
    font-family: 'Sora', sans-serif;
    margin-bottom: 1.5rem;
    display: block;
}

.comment-form-rating label {
    color: var(--rnb-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    color: var(--rnb-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#comment, #author, #email {
    width: 100%;
    background: var(--rnb-dark);
    border: 1px solid var(--rnb-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'DM Sans', sans-serif;
}

#comment:focus, #author:focus, #email:focus {
    border-color: var(--rnb-accent);
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, var(--rnb-accent) 0%, #FBBF24 100%);
    color: var(--rnb-dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s;
    margin-top: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.9); backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; transition: all 0.4s ease;
}
.modal-overlay.active { visibility: visible; opacity: 1; }

.modal-content {
    background: var(--rnb-card); border: 1px solid var(--rnb-border); padding: 3rem;
    border-radius: 24px; text-align: center; max-width: 450px; width: 90%;
    transform: translateY(30px); opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0); opacity: 1; }

.modal-icon { color: var(--rnb-accent); font-size: 3.5rem; margin-bottom: 1.5rem; }

.modal-btn {
    background: var(--rnb-accent); color: var(--rnb-dark); border: none;
    padding: 0.8rem 2rem; border-radius: 10px; font-weight: 700;
    cursor: pointer; margin-top: 1.5rem; text-decoration: none; display: inline-block;
    transition: transform 0.2s;
}
.modal-btn:hover { transform: scale(1.05); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .single-product-container { grid-template-columns: 1fr; gap: 3rem; }
    .product-gallery { position: static; margin-bottom: 2rem; }
    .product-hero { padding-top: 140px; }
    .product-title { font-size: 2.5rem; }
    #reviews .comment_container { flex-direction: column; }
    #reviews img.avatar { width: 50px; height: 50px; }
}
