/* Medical Single Product - Clean Modern Design */
/* Reset và Base Styles */
.medical-single-product {
    width: 100%;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
}

/* Main Product Layout - 3 Columns */
.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

/* Left Column - Product Images */
.product-images-section {
    position: sticky;
    top: 20px;
}

.product-images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid #f1f3f4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    transition: transform 0.3s ease;
    background: #fff;
}

.main-product-image:hover {
    transform: scale(1.02);
}

/* Image Zoom Effect */
.main-image-container::after {
    content: "🔍";
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover::after {
    opacity: 1;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.thumbnail-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-wrapper:hover {
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.thumbnail-wrapper.active {
    border-color: #4A90E2;
    box-shadow: 0 0 0 1px #4A90E2;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover .product-thumbnail {
    transform: scale(1.1);
}

/* Right Column - Product Info */
.product-summary-section {
    padding: 0;
}

.product-summary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product Title */
.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 15px;
}

/* Product Meta (Stock, SKU, Brand) */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.product-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.product-meta .label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.product-meta .value {
    font-weight: 500;
    color: #333;
}

.product-meta .value.in-stock {
    color: #27ae60;
    font-weight: 600;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-meta .value.out-of-stock {
    color: #e74c3c;
    font-weight: 600;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Button Section */
.product-purchase-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.contact-button,
.woocommerce-Price-amount {
    display: none; /* Hide default WooCommerce elements */
}

/* Custom Contact Button */
.custom-contact-button {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.custom-contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.custom-contact-button:hover::before {
    left: 100%;
}

.custom-contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.custom-contact-button:active {
    transform: translateY(-1px);
}

/* Lower Section Layout */
.product-lower-section {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.product-lower-main {
    flex: 0 0 70%;
}

.product-lower-sidebar {
    flex: 0 0 30%;
}

@media (max-width: 768px) {
    .product-lower-section {
        flex-direction: column;
        gap: 30px;
    }

    .product-lower-main,
    .product-lower-sidebar {
        flex: 1;
    }
}

/* Product Tabs */
.product-tabs-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.tabs-navigation {
    display: flex;
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-button {
    background: none;
    border: none;
    padding: 18px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    text-align: center;
}

.tab-button:hover {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.05);
}

.tab-button.active {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
    background: rgba(44, 90, 160, 0.08);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
    background: #fff;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    border-top: none;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Related Products Sidebar */
.related-products-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.related-products-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.related-products-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #2c5aa0;
}

.related-product-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.related-product-item:last-child {
    border-bottom: none;
}

.related-product-item:hover {
    background: rgba(44, 90, 160, 0.02);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.related-product-image {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-item:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #2c5aa0;
}

.related-product-original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}
/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.modal-body .contact-form .form-row {
    margin-bottom: 20px;
}

.modal-body .contact-form input,
.modal-body .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.modal-body .contact-form input:focus,
.modal-body .contact-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.modal-body .contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-body .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

/* Product Gallery Improvements */
.thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: #2c5aa0;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-product-image {
    cursor: zoom-in;
}

.main-product-image img {
    transition: transform 0.3s ease;
}

.main-product-image:hover img {
    transform: scale(1.05);
}
/* Features Section */
.product-features {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

.features-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-item:first-child {
    padding-top: 0;
}

.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: #27ae60;
}

.feature-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

/* Commitment Section */
.product-commitment {
    margin-top: 25px;
}

.commitment-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: left;
}

.commitment-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.commitment-item:hover {
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.commitment-icon {
    font-size: 24px;
    flex-shrink: 0;
    color: #4A90E2;
    width: 30px;
    text-align: center;
}

.commitment-item-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Contact Section - Third Column */
.product-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.contact-header {
    margin-bottom: 20px;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.contact-info {
    margin: 20px 0;
}

.phone-number a {
    color: #ffd700;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.phone-number a:hover {
    transform: scale(1.05);
}

.contact-note {
    font-size: 14px;
    opacity: 0.8;
    margin: 8px 0;
}

.chat-support {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-actions {
    margin: 20px 0;
}

.chat-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.chat-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Contact Services Grid */
.contact-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.service-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Breadcrumb Styling */
.woocommerce-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #357ABD;
}

/* Product Tabs Styling */
.product-tabs-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tabs-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover,
.tab-button.active {
    color: #4A90E2;
    background: #fff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4A90E2;
}

.tabs-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Related Products */
.related-products-section {
    margin-top: 40px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-product-item .product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-product-item .product-info {
    padding: 15px;
}

.related-product-item .product-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-product-item .product-price {
    color: #4A90E2;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .medical-single-product {
        padding: 30px 20px;
    }

    .product-main-content {
        gap: 30px;
    }

    .main-product-image {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .medical-single-product {
        padding: 20px 15px;
    }

    .product-main-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .product-images-section {
        position: static;
        order: 1;
    }

    .product-summary-section {
        order: 2;
    }

    .product-title {
        font-size: 24px;
    }

    .contact-services {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .phone-number a {
        font-size: 22px;
    }

    .tabs-navigation {
        flex-direction: column;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .medical-single-product {
        padding: 15px 10px;
    }

    .product-main-content {
        padding: 15px;
    }

    .product-title {
        font-size: 20px;
    }

    .commitment-list {
        gap: 8px;
    }

    .commitment-item {
        padding: 12px;
        gap: 10px;
    }

    .product-contact {
        padding: 20px;
    }

    .custom-contact-button {
        padding: 15px 25px;
        font-size: 14px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-wrapper {
        width: 60px;
        height: 60px;
    }

    .main-product-image {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .product-contact,
    .custom-contact-button,
    .chat-button {
        display: none !important;
    }

    .medical-single-product {
        box-shadow: none;
        background: #fff;
    }

    .product-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

