/* ============================================
   HOMEPAGE TRENDING PRODUCTS - DESKTOP FIXES
   Fixes for pricing alignment, button sizes
   DESKTOP ONLY - No mobile changes
   ============================================ */

/* Apply these fixes ONLY on desktop (above 768px) */
@media (min-width: 769px) {

    /* ============================================
       PRICING SECTION - UNIFORM CLEAN DESIGN
       Consistent alignment, font sizes, spacing
       ============================================ */

    .product-price-modern {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
        min-height: 40px;
    }

    .price-current-modern {
        font-size: 1.75rem;
        font-weight: 800;
        background: linear-gradient(135deg, #9333ea, #a855f7);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
        line-height: 1.2;
        flex-shrink: 0;
    }

    .price-original-modern {
        font-size: 0.95rem;
        color: #9ca3af;
        text-decoration: line-through;
        font-weight: 500;
        line-height: 1.2;
        flex-shrink: 0;
    }

    .price-discount-modern {
        padding: 6px 12px;
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        border-radius: 16px;
        font-size: 0.75rem;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
        line-height: 1;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* ============================================
       ADD TO CART BUTTON - Reduced Size
       ============================================ */

    .btn-add-cart-modern {
        flex: 1;
        padding: 12px 16px;  /* Reduced from 16px */
        background: linear-gradient(135deg, var(--section-purple, #9333ea) 0%, var(--section-purple-light, #a855f7) 100%);
        color: white;
        border: none;
        border-radius: 14px;  /* Slightly reduced from 16px */
        font-weight: 700;  /* Reduced from 800 */
        font-size: 0.85rem;  /* Reduced from 0.95rem */
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 16px rgba(147, 51, 234, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
    }

    .btn-add-cart-modern i,
    .btn-add-cart-modern svg {
        font-size: 0.95rem;  /* Slightly smaller icon */
    }

    .btn-add-cart-modern:hover {
        transform: translateY(-2px);  /* Reduced movement */
        box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3),
                    0 4px 12px rgba(147, 51, 234, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

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

    /* ============================================
       WHATSAPP BUTTON - Increased Size
       ============================================ */

    .btn-whatsapp-modern {
        width: 64px;  /* Increased from 52px */
        height: 64px;  /* Increased from 52px */
        min-width: 64px;  /* Ensure it doesn't shrink */
        border-radius: 16px;
        background: linear-gradient(135deg, #25D366, #128C7E);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        color: white;
        font-size: 1.3rem;  /* Reduced icon size */
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    }

    .btn-whatsapp-modern i,
    .btn-whatsapp-modern svg {
        font-size: 1.3rem;  /* Reduced icon size */
        line-height: 1;
    }

    .btn-whatsapp-modern:hover {
        background: linear-gradient(135deg, #1faa52, #0f7a5f);
        transform: translateY(-3px) scale(1.08);  /* Slightly more scale */
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    }

    .btn-whatsapp-modern:active {
        transform: translateY(-1px) scale(1.02);
    }

    /* ============================================
       PRODUCT ACTIONS CONTAINER - Better Spacing
       ============================================ */

    .product-actions-modern {
        display: flex;
        gap: 12px;  /* Increased gap for better separation */
        margin-top: auto;
        align-items: stretch;
    }

    /* ============================================
       ADDITIONAL FIXES FOR PRODUCT CARDS
       ============================================ */

    /* Ensure product card content has proper spacing */
    .product-content-modern {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Product title - better spacing */
    .product-title-modern {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--section-gray-900, #111827);
        margin-bottom: 12px;
        line-height: 1.3;
        transition: color 0.3s ease;
    }

    /* Product features tags - better alignment */
    .product-features-modern {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .feature-tag-modern {
        padding: 6px 12px;
        background: linear-gradient(135deg, #f3e8ff, rgba(233, 213, 255, 0.8));
        color: #9333ea;
        border-radius: 14px;
        font-size: 0.75rem;
        font-weight: 700;
        border: 1px solid rgba(147, 51, 234, 0.15);
        transition: all 0.3s ease;
        line-height: 1;
    }

    /* Product rating - better spacing */
    .product-rating-modern {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
    }

    .stars-modern {
        display: flex;
        gap: 2px;
        color: #fbbf24;
        font-size: 0.9rem;
    }

    .rating-count-modern {
        font-size: 0.85rem;
        color: #6b7280;
    }
}

/* ============================================
   LARGE DESKTOP (1200px+) - Minor Adjustments
   ============================================ */

@media (min-width: 1200px) {

    /* Slightly larger WhatsApp button on large screens */
    .btn-whatsapp-modern {
        width: 68px;
        height: 68px;
        min-width: 68px;
        font-size: 1.4rem;
    }

    .btn-whatsapp-modern i,
    .btn-whatsapp-modern svg {
        font-size: 1.4rem;
    }

    /* Better spacing for product actions */
    .product-actions-modern {
        gap: 14px;
    }

    /* Maintain same uniform sizes on larger screens */
    .price-current-modern {
        font-size: 1.75rem;
    }

    .price-original-modern {
        font-size: 0.95rem;
    }

    .price-discount-modern {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ============================================
   EXTRA LARGE DESKTOP (1400px+)
   ============================================ */

@media (min-width: 1400px) {

    /* Maximum size for WhatsApp button */
    .btn-whatsapp-modern {
        width: 72px;
        height: 72px;
        min-width: 72px;
        font-size: 1.5rem;
    }

    .btn-whatsapp-modern i,
    .btn-whatsapp-modern svg {
        font-size: 1.5rem;
    }

    /* Keep pricing uniform even on extra large screens */
    .price-current-modern {
        font-size: 1.75rem;
    }

    .price-original-modern {
        font-size: 0.95rem;
    }

    .price-discount-modern {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
