/**
 * Single Product Page Styles - Premium Edition
 * SilvForLife Theme
 * @version 2.0.0
 */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Barlow Condensed', sans-serif;
    --color-primary: #3b82f6;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-text: rgba(255, 255, 255, 0.9);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-bg: #050810;
    --color-surface: rgba(30, 41, 59, 0.6);
    --color-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
}

/* Shimmer Animation for Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Meta Card Hover Effects */
.meta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* === HIDE WOOCOMMERCE DEFAULT ELEMENTS === */
.woocommerce-product-gallery,
.woocommerce div.product .product_title,
.woocommerce-product-rating,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-product-details__short-description,
.woocommerce div.product form.cart,
.woocommerce div.product .product_meta,
.woocommerce-tabs,
.related.products,
.upsells.products {
    display: none !important;
}

.variations_form,
.variations_form select,
.variations_form .variations,
.variations_form table.variations,
table.variations select,
.single_variation_wrap,
.variations select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* === PREMIUM BASE STYLES === */
body.single-product {
    background: linear-gradient(180deg, #0a1525 0%, #050810 50%, #0a1220 100%) !important;
    font-family: var(--font-main);
    color: var(--color-text);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.silvforlife-product-page-v2 {
    padding: 20px 40px 60px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* Premium ambient background */
.silvforlife-product-page-v2::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.product-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
    min-height: 600px;
}

.product-main-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* === PREMIUM GALLERY === */
.product-gallery-section {
    position: sticky;
    top: 120px;
    max-width: 100%;
    width: 100%;
}

.product-gallery-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 24px;
    box-shadow: var(--shadow-xl), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-gallery-card:hover {
    box-shadow: 0 20px 64px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    aspect-ratio: 1/1;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.02);
}

.product-thumbnails-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.product-thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.product-thumbnails-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.thumb-item {
    cursor: pointer;
    flex-shrink: 0;
}

.thumb-item img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumb-item.active img {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1),
                0 4px 12px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.thumb-item:hover img {
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

/* === PREMIUM SUMMARY === */
.product-summary-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 48px;
    box-shadow: var(--shadow-xl),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-title-premium {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === PREMIUM RATING === */
.product-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-rating:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.rating-stars {
    display: flex;
    gap: 6px;
}

.rating-stars svg {
    width: 20px !important;
    height: 20px !important;
    color: #fbbf24;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.rating-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* === PREMIUM PRICE === */
.product-price-section {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.product-price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--color-primary),
        var(--color-secondary),
        transparent);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.price-old {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 1.3rem;
    margin-right: 16px;
    opacity: 0.7;
}

.tax-notice {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* === PREMIUM VARIATIONS === */
.product-variations {
    margin: 32px 0;
}

.variation-group {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.variation-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variation-label::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.color-swatches {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-swatch:hover {
    transform: scale(1.12) rotate(3deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.color-swatch.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 6px 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.color-swatch.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.size-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-swatch {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.size-swatch:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.size-swatch.selected {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.size-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* === PREMIUM QUANTITY & CART === */
.quantity-cart-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-label {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    min-width: 50px;
}

.quantity-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

.qty-field {
    width: 60px;
    height: 38px;
    border: none;
    background: transparent;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
}

.add-to-cart-btn {
    flex: 1;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

.add-to-cart-btn .btn-loading {
    display: none;
}

.add-to-cart-btn.loading .btn-text {
    display: none;
}

.add-to-cart-btn.loading .btn-loading {
    display: inline;
}

/* === PREMIUM TABS === */
.product-tabs-section {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 48px;
    margin: 80px auto;
    max-width: 1600px;
    box-shadow: var(--shadow-xl),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tabs-header {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.tab-button {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    background: rgba(59, 130, 246, 0.12);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* === PREMIUM PROPERTIES GRID === */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.property-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.property-card:hover::before {
    opacity: 1;
}

.property-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(96, 165, 250, 0.9);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.property-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    line-height: 1.5;
    word-break: break-word;
}

/* === SAFETY INFO === */
.safety-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.safety-section {
    padding: 36px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.safety-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.safety-section:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.25);
}

.safety-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.safety-section h3::before {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
}

.safety-section p {
    margin: 16px 0;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.safety-section p strong {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.safety-section a {
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.safety-section a:hover {
    color: #93c5fd;
    transform: translateX(3px);
}

.safety-section a[href^="mailto:"]::before {
    content: '✉️';
    font-size: 1.1rem;
}

.safety-section a[href^="tel:"]::before {
    content: '📞';
    font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1280px) {
    .product-main-grid {
        gap: 60px;
    }
    
    .silvforlife-product-page-v2 {
        padding: 40px 30px;
    }
}

@media (max-width: 1024px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .product-gallery-section {
        position: relative;
        top: 0;
    }
    
    .product-title-premium {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .silvforlife-product-page-v2 {
        padding: 24px 16px;
    }
    
    .product-summary-card,
    .product-tabs-section {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .product-title-premium {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .quantity-cart-section {
        flex-direction: column;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-title-premium {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .add-to-cart-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }
}
/* ==================== ANIMATIONS ==================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Progress Bar Animation */
@keyframes progressGrow {
    0% {
        width: 0%;
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0.8;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ==================== RELATED PRODUCTS DARK MODE FIX ==================== */
.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-card:hover .related-product-title {
    color: #60a5fa;
}

/* ==================== RELATED PRODUCTS PREMIUM IxD ==================== */

/* Enhanced Hover States with Premium Feel */
.related-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25),
                0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.08);
}

.related-product-card:hover .related-product-title {
    color: #60a5fa;
}

/* Quick View Interaction */
.related-product-card:hover .related-quick-view {
    opacity: 1;
    transform: scale(1);
}

.related-quick-view:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.1) !important;
}

/* Sale Badge Animation */
.related-sale-badge {
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Staggered Card Animation */
.related-product-card:nth-child(1) { animation-delay: 0.1s; }
.related-product-card:nth-child(2) { animation-delay: 0.2s; }
.related-product-card:nth-child(3) { animation-delay: 0.3s; }
.related-product-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-product-card {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Title Gradient on Hover */
.silvforlife-related-products .related-title {
    transition: all 0.4s ease;
}

.silvforlife-related-products:hover .related-title {
    background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Responsive Spacing */
@media (max-width: 768px) {
    .silvforlife-related-products {
        margin: 60px 0 40px;
        padding: 0 16px;
    }
    
    .related-header {
        margin-bottom: 40px !important;
    }
    
    .related-products-grid {
        gap: 20px !important;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
    
    .related-product-card {
        border-radius: 16px !important;
    }
    
    .related-product-info {
        padding: 18px !important;
    }
}

/* Premium Touch Feedback */
@media (hover: none) and (pointer: coarse) {
    .related-product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}
