/* Product Detail Page Styles */

/* Header */
.product-header {
    padding: 20px 0;
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.product-header .site-logo img {
    max-width: 280px;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 15px 0;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "/";
}

/* Product Detail Section */
.product-detail-section {
    padding: 40px 0 60px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.gallery-image-wrapper.single {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Carousel */
.product-detail-carousel {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.product-detail-carousel .carousel-inner {
    border-radius: 16px;
}

.product-detail-carousel .gallery-image-wrapper {
    border-radius: 0;
    border: none;
}

.product-detail-carousel .carousel-control-prev,
.product-detail-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-detail-carousel .carousel-control-prev {
    left: 15px;
}

.product-detail-carousel .carousel-control-next {
    right: 15px;
}

.product-detail-carousel:hover .carousel-control-prev,
.product-detail-carousel:hover .carousel-control-next {
    opacity: 1;
}

.product-detail-carousel .carousel-control-prev:hover,
.product-detail-carousel .carousel-control-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.product-detail-carousel .carousel-control-prev-icon,
.product-detail-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.product-detail-carousel .carousel-indicators {
    margin-bottom: 15px;
}

.product-detail-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    opacity: 1;
    margin: 0 5px;
}

.product-detail-carousel .carousel-indicators .active {
    background-color: var(--accent-color);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 5px 0;
    overflow-x: auto;
}

.thumbnail-btn {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-btn:hover {
    border-color: var(--accent-color);
}

.thumbnail-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Gallery Placeholder */
.gallery-placeholder {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.gallery-placeholder i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Product Info */
.product-info {
    padding: 10px 0;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.product-price-tag .currency {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
}

.product-short-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Inline Product Description */
.product-description-inline {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.product-description-inline p {
    margin-bottom: 0.75rem;
}

.product-description-inline p:last-child {
    margin-bottom: 0;
}

.product-description-inline ul,
.product-description-inline ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.product-description-inline li {
    margin-bottom: 0.35rem;
}

.product-description-inline strong {
    color: var(--text-light);
}

.product-description-inline a {
    color: var(--accent-color);
}

.product-description-inline a:hover {
    color: var(--accent-light);
}

/* Product Actions */
.product-actions {
    margin-bottom: 2rem;
}

.whatsapp-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-large:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-large svg {
    transition: transform 0.3s ease;
}

.whatsapp-btn-large:hover svg {
    transform: scale(1.1);
}

/* Product Meta */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Product Description Section */
.product-description-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--accent-color);
}

.description-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.description-content h1,
.description-content h2,
.description-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.description-content h1:first-child,
.description-content h2:first-child,
.description-content h3:first-child {
    margin-top: 0;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content a {
    color: var(--accent-color);
}

.description-content a:hover {
    color: var(--accent-light);
}

.description-content strong {
    color: var(--text-light);
}

/* Back Button */
.back-to-home {
    margin-top: 50px;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* Responsive */
@media (max-width: 991px) {
    .product-gallery {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-price-tag {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 30px 0 50px;
    }

    .product-header .site-logo img {
        max-width: 200px;
    }

    .whatsapp-btn-large {
        width: 100%;
        padding: 16px 30px;
    }

    .product-meta {
        gap: 1rem;
    }

    .description-content {
        padding: 1.5rem;
    }

    .thumbnail-btn {
        width: 60px;
        height: 60px;
    }
}

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

    .product-price-tag {
        font-size: 1.75rem;
    }

    .product-price-tag .currency {
        font-size: 1.1rem;
    }

    .product-detail-carousel .carousel-control-prev,
    .product-detail-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .product-detail-carousel .carousel-control-prev {
        left: 10px;
    }

    .product-detail-carousel .carousel-control-next {
        right: 10px;
    }
}

@media (hover: none) {
    .product-detail-carousel .carousel-control-prev,
    .product-detail-carousel .carousel-control-next {
        opacity: 1;
    }
}
