/* ========================================
   Product Detail Page Styles
   ======================================== */

/* Loading State */
.loading-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
}

.loading-section .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff8c00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Not Found State */
.not-found-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
}

.not-found-section i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.not-found-section h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.not-found-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.btn-back {
    background: linear-gradient(135deg, #ff8c00, #ff6f00);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
    padding: 15px 5%;
    margin-top: 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-container a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-container a:hover {
    color: #ff8c00;
}

.breadcrumb-container span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-container .current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Product Detail Section */
.product-detail-section {
    padding: 50px 5%;
    background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #ff8c00;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.5);
}

.thumbnail:hover {
    border-color: rgba(255, 140, 0, 0.5);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 111, 0, 0.1));
    color: #ff8c00;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #ff8c00;
}

.price-original {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-description p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.product-features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature i {
    font-size: 1.2rem;
    color: #ff8c00;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 35px;
    border-radius: 12px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Related Products */
.related-section {
    padding: 60px 5%;
    background: linear-gradient(135deg, #0f1629 0%, #1a2744 100%);
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h5 {
    padding: 15px 15px 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.related-price {
    display: block;
    padding: 0 15px 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff8c00;
}

/* Responsive */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        margin-top: 0;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .price-current {
        font-size: 1.6rem;
    }

    .product-features {
        flex-direction: column;
        gap: 15px;
    }

    .product-actions {
        flex-direction: row;
        gap: 10px;
    }

    .btn-whatsapp,
    .btn-contact {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.85rem;
        justify-content: center;
        white-space: nowrap;
        border-radius: 12px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    /* Ensure space for WhatsApp floating button */
    .related-section {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: row;
        gap: 8px;
    }

    .btn-whatsapp,
    .btn-contact {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .btn-whatsapp i,
    .btn-contact i {
        font-size: 1rem;
    }
}
