/* Product Detail Page Styles */

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Product Image Styles */
.product-image-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 8px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #ff5722;
}

/* Product Info Styles */
.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.product-header .share-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: static; /* Override any absolute positioning */
}

.product-header .share-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-price {
    font-size: 2rem;
    color: #333;
    font-weight: 600;
}

.buy-now-btn {
    background: #ff5722;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

.buy-now-btn:hover {
    background: #f4511e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.2);
}

/* Product Details Section */
.detail-section {
    margin-top: 0rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.section-title {
    font-size: 1.25rem;
    color: #333;
    padding: 1rem;
    margin: 0;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.section-title::after {
  
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.detail-section.active .section-title::after {
    transform: rotate(180deg);
}

.detail-content {
    padding: 1rem;
    color: #666;
    line-height: 1.6;
}

.detail-content {
    overflow: scroll;
    transition: all 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.detail-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.detail-section {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 25px;
}

.features-list li::before {
    content: '•';
    color: #ff5722;
    font-size: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 0rem;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .buy-now-btn {
        width: 100%;
        max-width: none;
    }
}

/* Collapsible Section Styles */
.section-title.collapsible {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.section-title.collapsible:hover {
    color: var(--primary-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #666;
}
