/* ===========================================
   PREMIUM ENHANCEMENTS for PicksCurated
   This file ADDS features, doesn't replace anything
   =========================================== */

/* 1. PREMIUM SHADOWS (Better depth) */
:root {
  --shadow-premium-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-premium-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-premium-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-premium-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

/* 2. SMOOTH ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* 3. ENHANCED PRODUCT CARDS (adds to existing) */
.product-card-enhanced {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-premium-md);
}

.product-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-xl);
}

/* 4. IMAGE ZOOM ON HOVER */
.product-image-zoom {
  overflow: hidden;
}

.product-image-zoom img {
  transition: transform 0.6s ease;
}

.product-image-zoom:hover img {
  transform: scale(1.08);
}

/* 5. PREMIUM BUTTON STYLES */
.btn-premium-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-premium-primary::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.5s;
}

.btn-premium-primary:hover::before {
  left: 100%;
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.5);
}

/* 6. ANIMATED BADGES */
.badge-hot-deal {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.badge-hot-deal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

/* 7. PREMIUM TOAST NOTIFICATIONS */
.premium-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-premium-xl);
  z-index: 999;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 8. IMPROVED TYPOGRAPHY */
.product-title-enhanced {
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.product-title-enhanced:hover {
  color: #3b82f6;
}

/* 9. MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
  .product-card-enhanced:hover {
    transform: none; /* Remove lift on mobile */
  }
}

/* FULL-WIDTH OPTIMIZATIONS */

/* Better side padding */
.site-content,
.products-section {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Responsive grid that scales */
.product-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 2000px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Prevent cards from getting too wide */
.product-card {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile: less padding */
@media (max-width: 768px) {
    .site-content,
    .products-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Skinny Hero Banner - WITH IMAGE SUPPORT */
.skinny-hero-banner {
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.skinny-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Background image overlay */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.skinny-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Image container */
.skinny-hero-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skinny-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.skinny-hero-banner:hover .skinny-hero-image img {
    transform: scale(1.05);
}

/* Image left layout */
.skinny-hero-banner.image-left .skinny-hero-container {
    flex-direction: row;
}

/* Image right layout (default) */
.skinny-hero-banner.image-right .skinny-hero-container {
    flex-direction: row;
}

/* Background image - make text more readable */
.skinny-hero-banner.image-background .skinny-hero-title,
.skinny-hero-banner.image-background .skinny-hero-subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.skinny-hero-content {
    flex: 1;
}

.skinny-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.skinny-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.hero-countdown-timer {
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.skinny-hero-cta {
    flex-shrink: 0;
}

.skinny-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: white;
    color: #7c3aed;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.skinny-hero-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.skinny-hero-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.skinny-hero-btn:hover .skinny-hero-arrow {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skinny-hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Stack image on top on mobile */
    .skinny-hero-banner.image-left .skinny-hero-container,
    .skinny-hero-banner.image-right .skinny-hero-container {
        flex-direction: column;
    }
    
    .skinny-hero-image {
        width: 100px;
        height: 100px;
    }
    
    .skinny-hero-title {
        font-size: 1.5rem;
    }
    
    .skinny-hero-subtitle {
        font-size: 0.875rem;
    }
    
    .skinny-hero-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .skinny-hero-banner {
        padding: 1rem 0;
    }
    
    .skinny-hero-image {
        width: 80px;
        height: 80px;
    }
    
    .skinny-hero-title {
        font-size: 1.25rem;
    }
}

/* Gradient Border for Mega Menu - Override Plugin Styles */
.mega-menu-wrap .mega-menu-panel {
    position: relative !important;
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 40px 30px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
}

/* Gradient border using pseudo-element */
.mega-menu-wrap .mega-menu-panel::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #4F46E5 0%,
        #7C3AED 25%,
        #2563EB 50%,
        #0EA5E9 75%,
        #06B6D4 100%
    );
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    z-index: -1;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ensure content is above the gradient */
.mega-menu-wrap .mega-menu-panel > * {
    position: relative;
    z-index: 1;
}
/* ========================================
   PRODUCT CARD FIXES
======================================== */

/* Card Container */
.product-card {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   BADGE POSITIONING - FIXED
======================================== */

/* Badge Container */
.badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

/* Editor's Pick - Full width */
.editors-pick-badge {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Row - Trust Score + Save % */
.badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Trust Score Badge */
.trust-score-badge {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Save Badge */
.save-badge {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* Hot Deal Badge */
.hot-deal-badge {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ========================================
   PRODUCT IMAGE
======================================== */

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    padding: 0;
}

/* ========================================
   WISHLIST BUTTON
======================================== */

.wishlist-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wishlist-btn:hover svg {
    stroke: #dc2626;
    fill: #dc2626;
}

.wishlist-btn svg {
    transition: all 0.2s;
}

/* Wishlist Active State */
.wishlist-btn.active svg {
    fill: #dc2626;
    stroke: #dc2626;
}

/* ========================================
   PRODUCT INFO SECTION
======================================== */

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-title:hover {
    color: #4F46E5;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.rating-stars {
    color: #fbbf24;
}

.rating-number {
    font-weight: 600;
    color: #0f172a;
}

.review-count {
    color: #64748b;
    font-size: 13px;
}

/* Stock Status */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ========================================
   PRICING SECTION
======================================== */

.pricing-section {
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.current-price {
    font-size: 24px;
    font-weight: 800;
    color: #dc2626;
}

.original-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
}

.savings-text {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.price-updated {
    font-size: 11px;
    color: #94a3b8;
}

/* ========================================
   BUTTONS SECTION
======================================== */

.button-section {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Primary CTA Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f55a24 0%, #e8820d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary svg:first-child {
    flex-shrink: 0;
}

.btn-primary span {
    flex: 1;
    text-align: center;
}

.btn-primary svg:last-child {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-primary:hover svg:last-child {
    transform: translateX(4px);
}

/* Hot Deal Primary Button - Red gradient */
.product-card.hot-deal .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.product-card.hot-deal .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Secondary Buttons Grid */
.secondary-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f8fafc;
    color: #475569;
    padding: 10px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #eff6ff;
    border-color: #4F46E5;
    color: #4F46E5;
    transform: translateY(-1px);
}

.btn-secondary svg {
    flex-shrink: 0;
}

.btn-secondary span {
    display: block;
}

/* ========================================
   TRUST INDICATORS (Bottom)
======================================== */

.trust-indicators {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trust-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ========================================
   LOADING OVERLAY
======================================== */

.price-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 100;
}

.price-loader.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #4F46E5;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-content p {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .product-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .secondary-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .button-section {
        gap: 10px;
    }
    
    .btn-primary {
        padding: 12px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .secondary-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-secondary {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .btn-secondary svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .btn-primary span {
        font-size: 12px;
    }
}
/* FORCE BUY BUTTON TO SHOW */
.product-card .affiliate-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

/* BLOCK JAVASCRIPT FROM HIDING BUY BUTTON */
.product-card .affiliate-link,
.product-card .space-y-2\.5 > a[target="_blank"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    pointer-events: auto !important;
}

/* Override any inline styles JavaScript might add */
.product-card .affiliate-link[style*="display: none"],
.product-card .affiliate-link[style*="visibility: hidden"],
.product-card .affiliate-link[style*="opacity: 0"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* MAXIMUM FORCE - BUY BUTTON */
article.product-card div[class*="space-y"] > a.affiliate-link,
.product-card .affiliate-link[href*="amzn"],
.product-card .affiliate-link[href*="amazon"],
.product-card a[target="_blank"][rel*="nofollow"][class*="affiliate"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 52px !important;
    max-height: 999px !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    position: relative !important;
    pointer-events: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
}

/* Block inline styles */
.affiliate-link[style*="display"],
.affiliate-link[style*="visibility"],
.affiliate-link[style*="opacity"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}