/* ========================================
   MEDICOX Showroom Product Styling
   ======================================== */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Product Container Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: transparent;
}

/* Add separation line between products */
.column::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.column:first-child::before {
    display: none;
}

/* Product Column Styling */
.column {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    margin-bottom: 4rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e8ecf1;
    padding-bottom: 1.5rem;
    position: relative;
}

.column:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(11, 170, 117, 0.2);
    border-color: #0baa75;
}

/* Product Image Container & Thumbnail */
.product-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    cursor: zoom-in;
    background: linear-gradient(135deg, #f8fafb 0%, #e8ecf1 100%);
    border-bottom: 4px solid #0baa75;
    margin-bottom: 0.5rem;
}

.column img {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 0;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

/* Zoom Icon Indicator */
.product-image-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(11, 170, 117, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Image Zoom Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #0baa75;
}

/* Zoom Controls for Mobile */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
}

.zoom-controls button {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-controls button:hover {
    background: #0baa75;
    border-color: #0baa75;
}

/* Product Detail Content */
#content-detail {
    padding: 2.5rem 3rem;
    margin: 0;
    letter-spacing: normal;
    line-height: 1.8;
    background: #ffffff;
}

#content-detail h3 {
    color: #0baa75;
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid #0baa75;
    font-family: 'Poppins', 'Prompt', 'Mitr', sans-serif;
    position: relative;
}

#content-detail h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #333;
}

#content-detail p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
    font-family: 'Poppins', 'Prompt', 'Mitr', sans-serif;
}

/* List Styling */
#content-detail ol,
#content-detail ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    font-family: 'Poppins', 'Prompt', 'Mitr', sans-serif;
}

#content-detail ol {
    list-style-type: decimal;
    counter-reset: item;
}

#content-detail ol li {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.7;
}

#content-detail ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

#content-detail ul li {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Nested List Styling */
#content-detail ol li ul {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

#content-detail ol li ul li {
    color: #666;
}

/* Feature Highlights */
#content-detail ol li strong {
    color: #0baa75;
    font-weight: 600;
}

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

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design - Tablet */
@media screen and (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .column {
        margin-bottom: 3.5rem;
        border-radius: 16px;
    }

    .column::before {
        top: -1.75rem;
    }
    
    .product-image-container {
        height: 300px;
    }
    
    #content-detail {
        padding: 2rem 1.75rem;
    }
    
    #content-detail h3 {
        font-size: 1.35rem;
    }
    
    #content-detail p {
        font-size: 0.95rem;
    }
    
    #content-detail ol li,
    #content-detail ul li {
        font-size: 0.9rem;
    }

    .modal-close {
        top: -40px;
        font-size: 35px;
    }

    .zoom-controls {
        bottom: 15px;
        padding: 8px 15px;
    }

    .zoom-controls button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 1.5rem 0.75rem;
    }

    .column {
        margin-bottom: 3rem;
    }

    .column::before {
        top: -1.5rem;
    }

    .product-image-container {
        height: 260px;
    }

    #content-detail {
        padding: 1.5rem 1.25rem;
    }
    
    #content-detail h3 {
        font-size: 1.2rem;
    }
    
    #content-detail ol,
    #content-detail ul {
        padding-left: 1.25rem;
    }

    .product-image-container::after {
        width: 35px;
        height: 35px;
        font-size: 14px;
        bottom: 10px;
        right: 10px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .modal-content-wrapper {
        max-width: 95%;
        max-height: 85%;
    }

    .zoom-controls {
        bottom: 10px;
        gap: 10px;
        padding: 6px 12px;
    }

    .zoom-controls button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* iOS Safari Fixes */
@supports (-webkit-touch-callout: none) {
    .image-modal {
        height: -webkit-fill-available;
    }
    
    .modal-image {
        max-height: 85vh;
    }
}

/* Print Styles */
@media print {
    .column {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .column:hover {
        transform: none;
    }

    .product-image-container::after,
    .zoom-controls,
    .image-modal {
        display: none !important;
    }
}