/* Product Detail Page Styles */

/* Product Introduction Section */
.product-introduction-section {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-introduction-title {
    color: #2d3748;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #0a6169;
    padding-bottom: 10px;
}

.product-introduction-title i {
    color: #0a6169;
    margin-right: 10px;
}

/* Product Description Content Styles */
.product-description {
    line-height: 1.8;
    color: #4a5568;
}

.product-description h2 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.product-description h3 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.product-description p {
    margin: 15px 0;
    line-height: 1.8;
    color: #4a5568;
}

.product-description ul,
.product-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.product-description li {
    margin: 8px 0;
    line-height: 1.6;
}

.product-description a {
    color: #0a6169;
    text-decoration: underline;
}

.product-description a:hover {
    color: #f7941d;
}

.product-description hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 30px 0;
}

.product-description strong {
    font-weight: 600;
    color: #2d3748;
}

.product-description em {
    font-style: italic;
}

/* Clean up any conflicting Quill editor styles */
.product-description .ql-editor {
    padding: 0 !important;
}

.product-description br {
    display: block;
    margin: 5px 0;
    content: "";
}

/* Image Lightbox Styles */
#imageLightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#imageLightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

#imageLightbox button {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
}

#imageLightbox button:hover {
    color: #f7941d;
    transform: scale(1.1);
}

/* Product Thumbnails Styling */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnails img:hover {
    border-color: #0a6169;
    transform: scale(1.05);
}

.product-thumbnails img.active {
    border-color: #0a6169;
    box-shadow: 0 0 10px rgba(10, 97, 105, 0.3);
}

/* Product Detail Container */
.product-detail {
    padding: 40px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Product Images Section */
.product-images {
    display: flex;
    flex-direction: column;
}

.product-main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-main-image.clickable {
    cursor: pointer;
}

.product-main-image.clickable:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Product Details Section */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-details h1 {
    color: #2d3748;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-dosage {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e6f7f8;
    color: #0a6169;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-category-badge {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f4f8;
    color: #2d3748;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-category-badge i,
.product-dosage i {
    margin-right: 5px;
}

/* Product Info Items */
.product-info-item {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.product-info-item:last-of-type {
    border-bottom: none;
}

.product-info-item strong {
    display: block;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info-item p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Related Products Section */
.related-products-section {
    background-color: #f7fafc;
    padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-details h1 {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
}
