/* Product Detail Page Styles */

/* Product Detail Section */
.product-detail-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Product Gallery */
.product-gallery {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-main-image {
    width: 100%;
    height: 640px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    overflow: visible;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #667eea;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-info h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
}

.product-tagline {
    font-size: 1.2rem;
    color: #666;
    margin: -0.5rem 0 0 0;
    font-style: italic;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.old-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-availability {
    color: #28a745;
    font-weight: 500;
}

.product-description {
    line-height: 1.8;
    color: #555;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.buy-now-button {
    flex: 1;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Product Meta */
.product-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
}

.meta-item i {
    color: #667eea;
}

/* Social Share */
.social-share {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.social-share span {
    color: #666;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Contents List */
.contents-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contents-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contents-list i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.2rem;
}

.contents-list h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.contents-list p {
    margin: 0;
    color: #666;
}

/* Delivery Info */
.delivery-info {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.delivery-info i {
    color: #667eea;
}

/* Related Products */
.related-products {
    margin-bottom: 3rem;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.related-product {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.related-product:hover {
    transform: translateY(-5px);
}

.related-product-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product h3 {
    margin: 0.5rem 0;
    color: #333;
}

.related-product p {
    color: #666;
    margin-bottom: 1rem;
}

.related-product-price {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.related-product-btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-main-image {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 2rem 1rem;
    }
    
    .product-main-image {
        height: 440px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Fix for horizontal scrollbar */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .product-gallery, 
    .product-info,
    .product-tabs,
    .related-products {
        width: 100%;
        overflow-x: hidden;
    }
    
    .product-thumbnails {
        padding-bottom: 10px;
    }
    
    .thumbnail {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .contents-list li,
    .delivery-info li {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .product-main-image {
        height: 400px;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .old-price {
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 1.5rem 1rem;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
} 