/* product-details.css - High-Fidelity UI Architecture */

/* Global Custom Properties mapped to exact image tones */
/* styles.css - High-Fidelity UI Architecture */

/* Global Custom Properties mapped to exact image tones */
:root {
    --primary-blue: #0d6efd;
    --primary-blue-hover: #0b5ed7;
    --pricing-red: #d9534f;
    /* Matched to the exact red in the target image */
    --action-green: #198754;
    --action-green-hover: #157347;
    --bg-light-blue: #eef3ff;
    /* Matched to the "Starting Price" box background */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-stack);
    background-color: #f8f9fa;
    /* Outer canvas color */
    -webkit-font-smoothing: antialiased;
}

/* Structural Refinements */
.main-product-container {
    max-width: 1140px;
    /* Standard enterprise constrained width */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Image Gallery Mechanics */
.main-image-wrapper {
    height: 400px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}
.main-image-wrapper:hover {
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.main-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}

.zoom-icon-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.zoom-icon-btn:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.cursor-pointer {
    cursor: pointer;
}

.thumbnail-track {
    scroll-behavior: smooth;
    /* Enables elegant native horizontal scrolling */
}

.custom-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid #eef1f6;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.custom-thumb:hover {
    opacity: 1;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
}

/* The active state perfectly mimics the blue border in the provided image */
.custom-thumb.active-thumb {
    border-color: var(--primary-blue);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.carousel-arrow {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.carousel-arrow:hover {
    opacity: 1;
}

/* Trust Badges Styling */
.trust-badges i {
    color: var(--primary-blue) !important;
}

/* Starting Price Box Formatting */
.starting-price-box {
    background-color: var(--bg-light-blue);
    border: 1px solid transparent;
}

/* Pricing Matrix Typography and Spacing */
.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table td.text-danger {
    color: var(--pricing-red) !important;
}

/* Quantity Selector Input Enhancements */
.quantity-selector {
    width: 140px;
}

.quantity-selector.btn {
    background-color: #fff;
    color: var(--text-dark);
}

.quantity-selector.btn:hover {
    background-color: #f8f9fa;
}

.quantity-selector input {
    background-color: #fff;
}

.quantity-selector input:focus {
    box-shadow: none;
    /* Removes distracting blue glow on focus */
}

/* Call to Action Button Overrides */
.custom-btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.custom-btn-outline:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.custom-btn-success {
    background-color: var(--action-green);
    border-color: var(--action-green);
    color: #fff;
}

.custom-btn-success:hover {
    background-color: var(--action-green-hover);
    border-color: var(--action-green-hover);
}

.custom-btn-rfq {
    border-color: var(--text-dark);
    color: var(--text-dark);
    background-color: transparent;
}

.custom-btn-rfq:hover {
    background-color: var(--text-dark);
    color: #fff;
}

/* Platform Guarantees Formatting */
.platform-guarantees i.border {
    border-color: var(--border-color) !important;
    background-color: #fff;
}

.text-sm {
    font-size: 0.95rem;
}

/* Responsive Overrides (Mobile-First Paradigm) */
@media (max-width: 991px) {
    .main-image-wrapper {
        height: 300px;
    }

    .platform-guarantees.border-end {
        border-right: none !important;
        /* Removes vertical dividers on mobile */
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
}
