/* Detail Page Styles - Clean & Simple */

:root {
    --primary: #4A7CD2;
    --primary-rgb: 74, 124, 210;
    --secondary: #EAA638;
    --secondary-rgb: 234, 166, 56;
}

/* Product Section */
.product-section {
    padding: 120px 0 40px;
    background: #fff;
}

/* Remove white space between sections */
.product-section + section,
.product-description-section {
    margin-top: 0;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 30px;
    padding: 0 0 20px;
}

.breadcrumb-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav span {
    color: #cbd5e1;
    margin: 0 8px;
    font-size: 12px;
}

.breadcrumb-nav .current {
    color: #1e293b;
    font-weight: 600;
}

/* Product Gallery - Sticky positioning */
.product-gallery {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 10;
    background: #fff;
}

/* Make the row container work with sticky */
.product-section .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Left column background matches page */
.product-section .col-lg-5 {
    background: #fff;
}

.main-image-wrapper {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 5;
}

.zoom-icon:hover {
    background: var(--primary);
    color: #fff;
}

/* Thumbnail Slider */
.thumbnail-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    flex: 0 0 70px;
    height: 70px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info-wrapper {
    padding-left: 20px;
}

@media (max-width: 991px) {
    .product-info-wrapper {
        padding-left: 0;
        margin-top: 30px;
    }
}

/* Product Badge */
.product-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-left: 10px;
    margin-bottom: 15px;
}

.brand-tag i {
    color: var(--primary);
}

/* Product Title */
.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
}

.product-subtitle {
    font-size: 16px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Quick Specs */
.quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.quick-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.quick-spec i {
    color: #10b981;
    font-size: 12px;
}

/* Specs Highlight */
.specs-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

@media (max-width: 767px) {
    .specs-highlight {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
}

.spec-box:hover {
    border-color: var(--primary);
}

.spec-box .number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-word;
}

.spec-box .text {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Section Title */
.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

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

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

.specs-table tr:hover {
    background: #f8fafc;
}

.specs-table td {
    padding: 15px 20px;
    font-size: 14px;
    vertical-align: middle;
}

.specs-table td:first-child {
    color: #64748b;
    width: 25%;
    font-weight: 500;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.specs-table td:last-child {
    color: #1e293b;
    font-weight: 500;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.feature-list li {
    padding: 15px 20px;
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.feature-list li:hover {
    background: #f8fafc;
}

.feature-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #10b981;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: #3d6bc0;
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Contact Card */
.contact-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-card .icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-card .info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.contact-card .info a {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.contact-card .info a:hover {
    color: var(--primary);
}

/* Feature Group */
.feature-group {
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
}

.feature-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-group-title i {
    color: var(--primary);
}

/* Product Tabs Section */
.product-tabs {
    background: #f8fafc;
    padding: 50px 0;
}

.tab-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(74, 124, 210, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.tab-content {
    display: none;
}

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

/* Feature Box */
.feature-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    height: 100%;
    border-radius: 12px;
}

.feature-box:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.feature-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Section */
.why-choose-section {
    padding: 60px 0;
    background: #fff;
}

.why-choose-section .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.why-choose-section .section-heading h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.why-choose-section .section-heading p {
    color: #64748b;
    font-size: 16px;
}

.why-box {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
    height: 100%;
}

.why-box:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.why-box .icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #fff;
}

.why-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.why-box p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Sticky Scroll Section - Pure CSS */
.scroll-section {
    padding: 60px 0 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.scroll-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.scroll-sticky {
    flex: 0 0 50%;
    position: sticky;
    top: 100px;
    height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 40px;
}

/* Scroll Image Slider */
.scroll-image-slider {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    position: relative;
    background: #f8fafc;
}

.scroll-slides {
    display: flex;
    width: 400%;
    animation: scrollSlide 16s ease-in-out infinite;
}

.scroll-slide {
    width: 25%;
    flex-shrink: 0;
}

.scroll-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

@keyframes scrollSlide {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

.scroll-slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.scroll-slide-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-slide-indicators .indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* Legacy scroll-image support */
.scroll-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    position: relative;
    width: 100%;
}

.scroll-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 124, 210, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.scroll-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-content {
    flex: 0 0 50%;
    padding: 40px 60px;
}

.scroll-item {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.scroll-number {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(74, 124, 210, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 25px;
}

.scroll-item h3 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.scroll-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.scroll-item p {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    max-width: 500px;
}

/* Last item doesn't need full height */
.scroll-item:last-child {
    min-height: 60vh;
    padding-bottom: 80px;
}

@media (max-width: 991px) {
    .scroll-section {
        padding: 40px 0;
    }

    .scroll-container {
        flex-direction: column;
    }

    .scroll-sticky {
        position: relative;
        top: 0;
        height: auto;
        flex: none;
        padding: 20px;
    }

    .scroll-content {
        flex: none;
        padding: 20px;
    }

    .scroll-item {
        min-height: auto;
        padding: 30px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .scroll-item:last-child {
        min-height: auto;
        border-bottom: none;
        padding-bottom: 30px;
    }

    .scroll-number {
        font-size: 48px;
    }

    .scroll-item h3 {
        font-size: 24px;
    }

    .scroll-item p {
        font-size: 16px;
        max-width: 100%;
    }
}

/* Trust Section */
.trust-section {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 767px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trust-item {
    text-align: center;
    padding: 20px 15px;
    background: #fff;
    border-radius: 10px;
}

.trust-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}

.trust-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Related Products Section */
.related-section {
    padding: 60px 0;
    background: #fff;
}

.related-section .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.related-section .section-heading h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-card .product-img {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card .product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-category {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.product-card .product-name a:hover {
    color: var(--primary);
}

.product-card .product-specs {
    font-size: 13px;
    color: #64748b;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: #f8fafc;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: #0f172a;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.cta-section .btn-white {
    background: #fff;
    color: #0f172a;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cta-section .btn-white:hover {
    background: #f1f5f9;
}

.cta-section .btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-left: 12px;
}

.cta-section .btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .product-section {
        padding: 100px 0 40px;
    }

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

    .main-image {
        min-height: 250px;
        max-height: 300px;
    }

    .main-image img {
        max-height: 280px;
    }
}

@media (max-width: 767px) {
    .product-section {
        padding: 90px 0 30px;
    }

    .product-badge,
    .brand-tag {
        margin-bottom: 10px;
    }

    .brand-tag {
        margin-left: 0;
        display: flex;
        width: fit-content;
    }

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

    .product-subtitle {
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .product-tabs {
        padding: 40px 0;
    }

    .tab-nav-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }

    .why-choose-section,
    .related-section {
        padding: 40px 0;
    }

    .why-choose-section .section-heading h2,
    .related-section .section-heading h2 {
        font-size: 24px;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section .btn-white,
    .cta-section .btn-outline-white {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Product Description Section */
.product-description-section {
    padding: 40px 0 60px;
    background: #f8fafc;
}

.product-description-section .subtitle {
    color: var(--secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-description-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.product-description-section p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* Old product-image-box for compatibility */
.product-image-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.product-image-box img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

/* Contact info for old pages */
.contact-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
}

.contact-info a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Full Width Specifications Section */
.specs-full-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.specs-full-section .specs-table {
    width: 100%;
}

.specs-full-section .specs-table td:first-child {
    width: 200px;
}
