﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 20px;
    min-height: 100vh;
}

.product-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header and product showcase */
.product-showcase {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

    .product-showcase:hover {
        transform: translateY(-5px);
    }

.product-image-container {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .product-image-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.9;
    }

.product-image-main {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease;
}

    .product-image-main:hover {
        transform: scale(1.03);
    }

.product-details {
    padding: 45px 50px;
    position: relative;
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 15px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

    .product-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 120px;
        height: 4px;
        background: linear-gradient(45deg, #0984e3, #00cec9);
        border-radius: 2px;
    }

.product-description {
    font-size: 1.25rem;
    color: #636e72;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 850px;
    padding: 15px 0;
}

.product-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    padding-top: 25px;
    border-top: 2px solid #f1f3f5;
}

.product-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0984e3;
    display: flex;
    align-items: center;
    position: relative;
}

    .product-price::before {
        content: '';
        position: absolute;
        left: -10px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background: linear-gradient(to bottom, #0984e3, #00cec9);
        border-radius: 2px;
    }

    .product-price span {
        font-size: 1.5rem;
        color: #b2bec3;
        text-decoration: line-through;
        margin-left: 20px;
        font-weight: 500;
    }

.product-discount-badge {
    background: linear-gradient(45deg, #ff7675, #fd79a8);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 30px;
    margin-left: 20px;
    box-shadow: 0 4px 12px rgba(255, 118, 117, 0.3);
}

.product-add-to-cart-btn {
    background: linear-gradient(45deg, #0984e3, #00cec9);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(9, 132, 227, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .product-add-to-cart-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #00cec9, #0984e3);
        transition: left 0.5s ease;
        z-index: -1;
    }

    .product-add-to-cart-btn:hover::before {
        left: 0;
    }

    .product-add-to-cart-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(9, 132, 227, 0.5);
    }

    .product-add-to-cart-btn:active {
        transform: translateY(-2px);
    }

    .product-add-to-cart-btn i {
        margin-right: 12px;
        font-size: 1.4rem;
    }

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
}

.product-feature {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 18px 25px;
    border-radius: 16px;
    flex: 1;
    min-width: 220px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .product-feature:hover {
        background: white;
        border-color: #0984e3;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(9, 132, 227, 0.15);
    }

    .product-feature i {
        font-size: 1.8rem;
        color: #0984e3;
        margin-right: 18px;
        background: linear-gradient(45deg, #0984e3, #00cec9);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.product-feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2d3436;
    font-weight: 600;
}

.product-feature-text p {
    font-size: 0.95rem;
    color: #636e72;
}

/* Customer Reviews Section */
.product-reviews-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

    .product-section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 80px;
        height: 4px;
        background: linear-gradient(45deg, #0984e3, #00cec9);
        border-radius: 2px;
    }

.product-reviews-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-review {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 5px solid #0984e3;
    position: relative;
    animation: productFadeIn 0.5s ease;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-review:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #0984e3, #00cec9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.product-user-info h4 {
    font-size: 1.2rem;
    color: #2d3436;
    margin-bottom: 5px;
}

.product-review-date {
    color: #636e72;
    font-size: 0.9rem;
}

.product-review-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.product-review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Admin replies container */
.product-admin-replies {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-admin-reply {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #0984e3;
    position: relative;
    animation: productSlideIn 0.5s ease 0.2s both;
}

@keyframes productSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-admin-reply::before {
    content: 'Admin Reply';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0984e3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-admin-reply-content {
    color: #2d3436;
    line-height: 1.6;
}

.product-admin-reply-date {
    color: #636e72;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: right;
}

/* Reply form inside review */
.product-reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    display: none;
}

    .product-reply-form textarea {
        width: 100%;
        padding: 12px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        resize: vertical;
        margin-bottom: 10px;
        transition: border 0.3s;
    }

        .product-reply-form textarea:focus {
            outline: none;
            border-color: #0984e3;
        }

    .product-reply-form button {
        background: #0984e3;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s;
    }

        .product-reply-form button:hover {
            background: #0770c4;
        }

/* Add Review Form */
.product-add-review-form {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    display: none;
}

    .product-add-review-form.active {
        display: block;
        animation: productFadeIn 0.5s ease;
    }

.product-form-title {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-form-group {
    margin-bottom: 20px;
}

    .product-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #2d3436;
        font-weight: 500;
    }

    .product-form-group input,
    .product-form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        transition: border 0.3s;
    }

        .product-form-group input:focus,
        .product-form-group textarea:focus {
            outline: none;
            border-color: #0984e3;
        }

.product-rating-stars {
    display: flex;
    gap: 10px;
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    margin-top: 5px;
}

    .product-rating-stars .product-star {
        transition: color 0.3s;
    }

        .product-rating-stars .product-star:hover,
        .product-rating-stars .product-star.active {
            color: #ffd700;
        }

.product-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.product-submit-btn, .product-cancel-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.product-submit-btn {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
}

    .product-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
    }

.product-cancel-btn {
    background: #dfe6e9;
    color: #2d3436;
}

    .product-cancel-btn:hover {
        background: #b2bec3;
    }

.product-add-review-btn {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.3);
}

    .product-add-review-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
    }

    .product-add-review-btn i {
        margin-right: 10px;
    }

/* Reply button */
.product-reply-btn {
    background: transparent;
    color: #0984e3;
    border: 1px solid #0984e3;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .product-reply-btn:hover {
        background: #0984e3;
        color: white;
    }

/* Related Products */
.product-related-products {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

    .product-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-color: #0984e3;
    }

    .product-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .product-card:hover img {
        transform: scale(1.05);
    }

.product-card-info {
    padding: 25px;
}

    .product-card-info h4 {
        font-size: 1.3rem;
        color: #2d3436;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .product-card-info p {
        color: #636e72;
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

.product-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .product-card-price .product-price {
        font-size: 1.7rem;
        font-weight: 800;
        color: #0984e3;
    }

.product-card-add-to-cart {
    background: #0984e3;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .product-card-add-to-cart:hover {
        background: #0770c4;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3);
    }

.product-quickview {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: #0984e3;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 10;
}

    .product-quickview:hover {
        background: #0984e3;
        color: white;
        transform: scale(1.15);
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .product-container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .product-title {
        font-size: 2.5rem;
    }

    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .product-add-to-cart-btn {
        width: 100%;
        max-width: 400px;
    }

    .product-features {
        flex-direction: column;
    }

    .product-image-container {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        height: 320px;
    }

    .product-title {
        font-size: 2.2rem;
    }

    .product-details {
        padding: 30px;
    }

    .product-price {
        font-size: 2.3rem;
    }

    .product-section-title {
        font-size: 1.9rem;
    }

    .product-reviews-section, .product-related-products {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .product-title {
        font-size: 1.9rem;
    }

    .product-description {
        font-size: 1.1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-details {
        padding: 25px;
    }

    .product-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
