/* ========================================
   PRODUCT DETAIL PAGE STYLES
   ======================================== */

/* Product Detail Navigation */
.product-detail-nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.product-detail-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
}

.back-link:hover {
    color: #111827;
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.logo-link {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

/* Product Detail Main */
.product-detail-main {
    padding: 2rem 0;
    background: linear-gradient(180deg, #e8f4f8 0%, #f0f9ff 100%);
    min-height: calc(100vh - 64px);
}

@media (min-width: 640px) {
    .product-detail-main {
        padding: 3rem 0;
    }
}

/* Product Detail Wrapper */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 2.5rem;
    }
}

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

.main-image-container {
    background: linear-gradient(135deg, #1e6fa8 0%, #2980b9 100%);
    border-radius: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .main-image-container {
        min-height: 350px;
        border-radius: 1.25rem;
    }
}

.product-image-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .product-image-title {
        font-size: 1.75rem;
    }
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* Thumbnail Row */
.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.thumbnail-box {
    background: linear-gradient(135deg, #1e6fa8 0%, #2980b9 100%);
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

@media (min-width: 640px) {
    .thumbnail-box {
        font-size: 0.75rem;
        padding: 1rem 0.5rem;
        border-radius: 0.75rem;
        min-height: 60px;
    }
}

.thumbnail-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumbnail-box.active {
    box-shadow: 0 0 0 3px rgba(30, 111, 168, 0.3);
}

/* Product Info Section */
.product-info-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
    .product-info-section {
        padding: 2rem;
        border-radius: 1.25rem;
    }
}

.product-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .product-category-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
}

.product-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .product-title {
        font-size: 1.5rem;
    }
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Info Section */
.info-section {
    margin-bottom: 1.25rem;
}

.info-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .info-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Feature List Styled */
.feature-list-styled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-styled li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .feature-list-styled li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

.feature-list-styled li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .specs-table {
        font-size: 0.8rem;
    }
}

.specs-table tr {
    border-bottom: 1px solid #e5e7eb;
}

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

.specs-table td {
    padding: 0.4rem 0;
}

@media (min-width: 640px) {
    .specs-table td {
        padding: 0.5rem 0;
    }
}

.specs-table td:first-child {
    color: #6b7280;
    font-weight: 500;
    width: 50%;
}

.specs-table td:last-child {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-quote-product {
    flex: 2;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #38bdf8 0%, #1e6fa8 100%);
    border-radius: 9999px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

@media (min-width: 640px) {
    .btn-quote-product {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.btn-quote-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 111, 168, 0.3);
}

.btn-brochure {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .btn-brochure {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.btn-brochure:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Video Section */
.video-section {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
    .video-section {
        padding: 1.5rem;
        border-radius: 1.25rem;
        margin-bottom: 2rem;
    }
}

.section-title-sm {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title-sm {
        font-size: 1.125rem;
    }
}

.video-container {
    background: #2a2a2a;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.75rem;
}

.video-icon {
    width: 3rem;
    height: 3rem;
    opacity: 0.7;
}

.video-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Bottom Cards Grid */
.bottom-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .bottom-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
    .info-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

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

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

@media (min-width: 640px) {
    .card-list li {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    }
}

.card-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

@media (min-width: 640px) {
    .scroll-to-top {
        width: 3.5rem;
        height: 3.5rem;
        bottom: 2.5rem;
        right: 2.5rem;
    }
    
    .scroll-to-top svg {
        width: 1.75rem;
        height: 1.75rem;
    }
}
