/* ==========================================================================
   Product Detail Page Styles
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    padding: 120px 0 0;
    background: var(--bg-alt);
    display: block;
}

.breadcrumb .container {
    text-align: left;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: var(--accent);
}

.breadcrumb-list i {
    color: var(--text-muted);
    font-size: 10px;
}

.breadcrumb-list .current {
    color: var(--text-main);
    font-weight: 600;
}

/* Product Hero */
.product-hero {
    background: var(--bg-alt);
    padding: 60px 0 80px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-image-wrap {
    position: relative;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.product-image-wrap::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: calc(var(--radius) + 10px);
    z-index: -1;
    opacity: 0.1;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-info h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-power {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.product-power i {
    font-size: 16px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.product-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* Product Features */
.product-features {
    padding: 80px 0;
    background: white;
}

.product-features .section-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.product-features .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

.product-features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-features .feature-card {
    background: var(--bg-alt);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.product-features .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.product-features .feature-card i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-features .feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-features .feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Product Specs */
.product-specs {
    padding: 80px 0;
    background: var(--bg-alt);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.specs-table {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 20px 28px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.3s;
}

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

.specs-row:hover {
    background: var(--bg-alt);
}

.specs-label {
    font-weight: 600;
    color: var(--text-main);
}

.specs-value {
    color: var(--text-muted);
    font-weight: 500;
}

.applications-box {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.applications-box h3 {
    font-size: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.applications-box h3 i {
    color: var(--accent);
}

.applications-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.applications-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
}

.applications-list li:hover {
    background: var(--accent);
    color: white;
    transform: translateX(8px);
}

.applications-list li i {
    color: var(--success);
    transition: color 0.3s;
}

.applications-list li:hover i {
    color: white;
}

/* Product CTA Section */
.product-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
}

.product-cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.product-cta-section p {
    opacity: 0.85;
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.related-card-img {
    height: 180px;
    padding: 24px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.related-card-info {
    padding: 24px;
}

.related-card-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.related-card-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.related-card-info .power-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-alt);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Compact */
.footer-compact {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo img {
    height: 48px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom-compact {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom-compact p {
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 100px 0 0;
    }

    .product-hero {
        padding: 40px 0 60px;
    }

    .product-hero-grid {
        gap: 30px;
    }

    .product-image-wrap {
        padding: 24px;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .product-power {
        font-size: 16px;
        padding: 10px 20px;
    }

    .product-desc {
        font-size: 15px;
    }

    .product-cta {
        flex-direction: column;
    }

    .product-cta .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        display: flex;
    }

    .product-features,
    .product-specs,
    .related-products {
        padding: 50px 0;
    }

    .product-features .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-features .feature-card {
        padding: 24px 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
