/* --- FIX CURSOR PESTE MODAL (CRITIC) --- */
#cursor-dot,
#cursor-ring {
    z-index: 2147483647 !important;
}

/* 1. HERO SECTION REDEFINIT */
.product-hero {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08), transparent 70%);
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-breadcrumb {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

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

/* 3. GALERIE FOTO */
.product-gallery {
    position: sticky;
    top: 120px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-gallery:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.2);
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-gallery:hover img {
    transform: scale(1.08);
}

/* 4. DETALII PRODUS */
.product-summary {
    position: relative;
}

.product-summary h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.product-summary h1:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

.product-price {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 2.5rem;
    display: block;
    letter-spacing: -1px;
}

.product-price span {
    color: var(--accent-gold);
    font-weight: 700;
}

.product-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 5. LOGIC BOX */
.logic-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.logic-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logic-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Inputs */
.calculator-form label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.custom-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 1.5rem;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.custom-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

/* Button */
.action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: var(--bg-dark);
    border: none;
    padding: 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1rem;
    text-align: center;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.15);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.3);
    color: #000;
}

/* Result */
.calc-result {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--accent-gold);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    color: #fff;
    display: none;
}

.calc-result span {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.5rem;
}

/* Hide standard Woo elements */
.woocommerce-product-details__short-description,
.product_meta,
.entry-summary .price {
    display: none;
}

/* 6. RECENZII */
.reviews-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-header {
    text-align: left;
    margin-bottom: 2rem;
}

.reviews-header h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviews-header h2::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

#reviews,
#comments,
.woocommerce-Reviews,
.comment-respond,
#review_form_wrapper,
.comments-area,
#commentform,
.woocommerce-Reviews #comments,
.ast-comment-list .ast-comment,
.comment-form,
.woocommerce-Tabs-panel,
.woocommerce-Tabs-panel--reviews {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    outline: none !important;
}

/* Wrapper comentarii Astra/WC — elimină chenar alb */
.ast-comment-list,
.comment-list,
ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.comment-body,
.review {
    background: var(--panel-bg) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem;
    box-shadow: none !important;
}

#respond,
.woocommerce-js #reviews #review_form,
.woocommerce #reviews #review_form,
#review_form {
    background: var(--panel-bg) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem;
    box-shadow: none !important;
    outline: none !important;
}

.comment-reply-title {
    color: #fff;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.comment-form label {
    color: var(--text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
#review_form input[type="text"],
#review_form input[type="email"] {
    background: rgba(10, 14, 23, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 0.8rem 1rem !important;
}

.stars a {
    color: var(--accent-gold);
}

#review_form textarea,
.comment-form textarea {
    background: rgba(10, 14, 23, 0.8) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    width: 100%;
    padding: 1rem;
    border-radius: 12px !important;
}

.form-submit input[type="submit"],
.comment-form input[type="submit"] {
    background: var(--accent-gold) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.8rem 2rem !important;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

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

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10001;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-icon {
    color: var(--accent-gold);
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.modal-btn {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

@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;
        text-align: center;
    }
}
