:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-gallery {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-image-main {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.product-image-main:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto;
}
.image-zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.zoom-image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.zoom-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10000;
}
.zoom-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.product-header {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.custom-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.custom-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.badge-featured {
    background: var(--danger-gradient);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-stock-in {
    background: var(--success-gradient);
    color: white;
}

.badge-stock-out {
    background: #6c757d;
    color: white;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-right: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateX(-5px);
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.price-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.price-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.price-item:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.03);
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 5px;
    display: block;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.price-contact {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
}

.price-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.meta-table-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.meta-table {
    margin-bottom: 0;
}

.meta-table tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.meta-table tr:hover {
    background: #f8f9fa;
}

.meta-table tr:last-child {
    border-bottom: none;
}

.meta-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    color: #495057;
    padding: 15px 18px;
    width: 40%;
    font-size: 0.95rem;
    vertical-align: middle;
}

.meta-table td {
    padding: 15px 18px;
    font-size: 1rem;
    color: #2c3e50;
    vertical-align: middle;
}

.meta-icon {
    width: 20px;
    text-align: center;
    margin-left: 10px;
    color: #0d6efd;
}

.action-buttons .btn,
.btn-contact,
.btn-compare {
    padding: 15px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

.action-buttons .btn:hover,
.btn-contact:hover,
.btn-compare:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-contact {
    background: var(--success-gradient);
    color: white;
}

.btn-compare {
    background: var(--info-gradient);
    color: white;
}

.tabs-custom {
    border: none;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.tabs-custom .nav-link {
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.tabs-custom .nav-link:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.tabs-custom .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-content-custom {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
    min-height: 300px;
}

.tab-content-custom h4 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
}

.specifications-list {
    list-style: none;
    padding: 0;
}

.specifications-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #0d6efd;
    transition: all 0.2s;
}

.specifications-list li:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.related-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    margin-top: 60px;
    border-radius: 30px;
}

.related-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.related-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.related-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.related-product-img {
    height: 250px;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    transition: transform 0.4s ease;
}

.related-product-card:hover .related-product-img {
    transform: scale(1.1);
}

.related-product-body {
    padding: 25px;
}

.related-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb-custom {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 2px solid #f8f9fa;
}

.breadcrumb-custom .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-custom .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-email { background: #EA4335; }

@media (max-width: 991px) {
    .product-gallery {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .product-image-main {
        height: 350px;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-subtitle {
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .meta-table th {
        width: 45%;
        font-size: 0.85rem;
        padding: 12px 15px;
    }
    
    .meta-table td {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .badges-container {
        flex-wrap: wrap;
    }
    
    .custom-badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.4rem;
    }
    
    .product-image-main {
        height: 280px;
        padding: 15px;
    }
    
    .info-card,
    .price-card,
    .product-header {
        padding: 15px;
    }
    
    .btn-contact,
    .btn-compare {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
