/* Enhanced Product Details Page Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1f2937;
    --accent-color: #f8fafc;
    --text-color: #374151;
    --text-light: #6b7280;
    --light-gray: #e5e7eb;
    --border-color: #d1d5db;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Global Enhancements */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafbfc;
}

/* Enhanced Container */
.container {
    max-width: 1200px;
}

/* Enhanced Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-color) 100%);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Enhanced Product Title */
.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Product Price */
.price {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--danger-color);
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.original-price {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 1rem;
    opacity: 0.8;
}

.discount-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Product Meta */
.product-meta {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.product-meta div {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.product-meta div:last-child {
    margin-bottom: 0;
}

.product-meta strong {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    min-width: 80px;
    font-weight: 600;
}

.product-meta div::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

/* Enhanced Product Actions */
.product-actions {
    margin: 2rem 0;
}

.btn-buy {
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    background: var(--gradient-primary);
    border: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy:active {
    transform: translateY(-1px);
}

/* Enhanced Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.share-buttons span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.btn-share {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: scale(0);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-share:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.btn-share:hover::before {
    transform: scale(1);
}

.facebook { background: linear-gradient(135deg, #3b5998, #4c70ba); }
.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.instagram { background: linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045); }
.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

/* Enhanced Product Image */
.product-image-main {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-image-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    pointer-events: none;
}

.product-image-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.product-image-main:hover img {
    transform: scale(1.02);
}

/* Enhanced Product Description Card */
.card {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    background: var(--white);
    overflow: hidden;
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}

.card-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 2rem;
}

.product-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

.product-description p {
    margin-bottom: 1.5rem;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* Enhanced Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced Product Cards */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 1rem;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(167, 139, 250, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
}

.btn-view:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--danger-color);
    text-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

/* Enhanced Responsive Styles */
@media (max-width: 991.98px) {
    .product-title {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .current-price {
        font-size: 1.75rem;
    }
    
    .original-price {
        font-size: 1.125rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .price, .product-meta, .share-buttons {
        margin: 1.5rem 0;
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .share-buttons {
        gap: 0.75rem;
    }
    
    .btn-share {
        width: 42px;
        height: 42px;
    }
    
    .product-image {
        height: 160px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.loading {
    animation: shimmer 1.5s ease-in-out infinite;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Product Description Formatting */
.product-description {
    white-space: normal;
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 1.5rem;
}

.product-description br {
    content: "";
    display: block;
    margin-bottom: 0.75rem;
}

.product-description strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.product-description em {
    color: var(--primary-color);
    font-style: italic;
}

.product-description ul, 
.product-description ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.product-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Enhanced Focus States for Accessibility */
.btn-buy:focus,
.btn-view:focus,
.btn-share:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .share-buttons,
    .product-actions {
        display: none;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}