/* Products Show Page Styles */

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-gallery .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-gallery .thumbnail.active {
    border-color: #007bff;
}

.thumbnail-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding-left: 30px;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-brand {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.product-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #1e7e34, #155724);
}

.product-category {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.specifications-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.specifications-table h4 {
    margin-bottom: 15px;
    color: #333;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #666;
}

.action-buttons {
    margin-top: 30px;
}

.btn-primary {
    background: #007bff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    margin-right: 15px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    color: white;
}

.btn-outline-secondary {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.related-products {
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-info {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-gallery .main-image img {
        height: 300px;
    }

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

    .action-buttons {
        text-align: center;
    }

    .btn-primary,
    .btn-outline-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.contact-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.contact-modal-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.contact-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-modal-close:hover,
.contact-modal-close:focus {
    color: #333;
}

.contact-modal-body {
    padding: 25px;
}

.contact-modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-options .btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-options .btn-success {
    background-color: #28a745;
    color: white;
}

.contact-options .btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.contact-options .btn-primary {
    background-color: #25D366;
    color: white;
}

.contact-options .btn-primary:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .contact-modal-header {
        padding: 15px 20px;
    }

    .contact-modal-body {
        padding: 20px;
    }

    .contact-options {
        gap: 12px;
    }
}
