/* Premium Cards Universal Styling - Professional Design System */
/* CARDS ONLY - Premium Section Header handled by camera-premium-section.css */

/* Premium Section Container */
.premium-section,
.cards-section,
.products-section {
    background: linear-gradient(135deg,
        rgba(16, 24, 48, 0.95) 0%,
        rgba(10, 16, 30, 0.9) 50%,
        rgba(20, 30, 55, 0.95) 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px 0;
    min-height: 100vh;
}

.premium-section::before,
.cards-section::before,
.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Cards Container Grid */
.cards-container,
.premium-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Premium Product Card */
.product-card,
.premium-card {
    background: linear-gradient(145deg, 
        rgba(30, 41, 59, 0.8) 0%,
        rgba(20, 30, 48, 0.85) 50%,
        rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.product-card::before,
.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.05) 0%,
        rgba(245, 158, 11, 0.03) 50%,
        rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
}

.product-card:hover,
.premium-card:hover {
    transform: translateY(-16px) rotateX(2deg);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.product-card:hover::before,
.premium-card:hover::before {
    opacity: 1;
}

/* Card Header with Image */
.card-header,
.product-image {
    height: 200px;
    min-height: 200px;
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.4) 0%,
        rgba(15, 23, 42, 0.6) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
    position: relative;
    overflow: hidden;
    /* Background image properties - CRITICAL */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-header::before,
.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Lighter overlay so image shows through */
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.card-header:hover::before,
.product-image:hover::before {
    opacity: 0.5;
}

.card-header img,
.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.card-header:hover img,
.product-image:hover img {
    transform: scale(1.1);
}

/* Badges System */
.brand-badge,
.new-badge,
.featured-badge {
    position: relative;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    /* Enhanced visibility on images */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.brand-badge {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.new-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.featured-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #064e3b;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Card Content */
.card-content,
.product-details {
    padding: 20px;
    position: relative;
    z-index: 3;
}

.product-title,
.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.product-subtitle,
.card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-weight: 500;
}

/* Updated Specifications Grid - Compact Design */
.product-specs,
.card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.spec-box {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.spec-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(245, 158, 11, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.spec-box:hover::before {
    opacity: 1;
}

.spec-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.spec-main-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

/* Color-coded specification boxes */
.resolution-box {
    border-left: 3px solid #f59e0b;
}

.resolution-box:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.resolution-box .spec-main-value {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.video-box {
    border-left: 3px solid #8b5cf6;
}

.video-box:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.video-box .spec-main-value {
    color: #a855f7;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.price-box {
    border-left: 3px solid #10b981;
}

.price-box:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.price-box .spec-main-value {
    color: #34d399;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
    font-size: 1.3rem;
}

/* Enhanced Rating Section - Compact */
.product-rating,
.card-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.12) 0%,
        rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    margin-bottom: 18px;
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 3px 12px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.product-rating::before,
.card-rating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(245, 158, 11, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-rating:hover::before,
.card-rating:hover::before {
    opacity: 1;
}

.stars {
    display: flex;
    gap: 3px;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.star {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.star:hover {
    transform: scale(1.2);
    text-shadow: 0 0 25px rgba(251, 191, 36, 1);
}

.star.empty {
    color: rgba(251, 191, 36, 0.3);
    text-shadow: none;
}

.rating-score {
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    position: relative;
    z-index: 2;
}

/* Price Section */
.price-section {
    margin: 20px 0;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    margin-bottom: 8px;
}

.price-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Buttons Section - Compact Layout */
.button-section,
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

/* Primary buttons container - side by side */
.primary-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-secondary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 100%);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
}

/* Amazon button - compact */
.amazon-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #92400e;
    text-decoration: none;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer; /* Hand cursor on hover */
}

.amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
    color: #92400e;
    text-decoration: none;
    cursor: pointer; /* Ensure hand cursor on hover */
}

/* Accessibility Improvements */
.product-card:focus-within,
.premium-card:focus-within {
    outline: 3px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

.btn-primary:focus,
.btn-secondary:focus,
.amazon-btn:focus {
    outline: 2px solid rgba(139, 92, 246, 0.8);
    outline-offset: 2px;
}

/* Animation Keyframes */
@keyframes cardGlow {
    0%, 100% { 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                    0 0 60px rgba(139, 92, 246, 0.1);
    }
    50% { 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                    0 0 80px rgba(139, 92, 246, 0.2);
    }
}

.product-card.featured,
.premium-card.featured {
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes specGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    }
}

.product-card.featured .spec-box {
    animation: specGlow 3s ease-in-out infinite;
}

.product-card.featured .spec-box:nth-child(1) {
    animation-delay: 0s;
}

.product-card.featured .spec-box:nth-child(2) {
    animation-delay: 0.5s;
}

.product-card.featured .spec-box:nth-child(3) {
    animation-delay: 1s;
}

/* Force background image display - Add at the end of file */
.product-card .card-header[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* REMOVE any .mid-range-section styles if they exist here */
/* Mid-range section styling should ONLY be in camera-mid-range-section.css */