/*
 * Sehatyaab Premium Revamp Styles
 * Trust colors: Greens, Whites, Soft Golds
 * Modern typography: Inter and Outfit
 */

:root {
    --sehatyaab-primary: #0e7a22; /* Trust Green */
    --sehatyaab-primary-hover: #0a5f1a;
    --sehatyaab-secondary: #f4c242; /* Soft Gold/Yellow */
    --sehatyaab-bg: #f9fdfa; /* Very light mint/white */
    --sehatyaab-text-main: #1d2a38;
    --sehatyaab-text-muted: #7d879c;
    --sehatyaab-card-bg: rgba(255, 255, 255, 0.85);
    --sehatyaab-border: #e6eaea;
    --shadow-soft: 0 10px 30px rgba(14, 122, 34, 0.08);
    --shadow-hover: 0 15px 40px rgba(14, 122, 34, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Typography Overrides */
body, p, a, li, span, div, input, button {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .site-title, .page-title, .product-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--sehatyaab-text-main) !important;
}

/* Global Background & Glassmorphism */
body {
    background-color: var(--sehatyaab-bg) !important;
}

/* Header Revamp */
.site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sehatyaab-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.main-navigation .top-menu > li > a {
    color: var(--sehatyaab-text-main) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation .top-menu > li > a:hover {
    color: var(--sehatyaab-primary) !important;
}

/* Buttons */
.button-primary, .elementor-button-primary, .add_to_cart_button, .single_add_to_cart_button {
    background-color: var(--sehatyaab-primary) !important;
    color: #fff !important;
    border-radius: 50px !important; /* Pill shape */
    padding: 12px 28px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(14, 122, 34, 0.2) !important;
}

.button-primary:hover, .elementor-button-primary:hover, .add_to_cart_button:hover, .single_add_to_cart_button:hover {
    background-color: var(--sehatyaab-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(14, 122, 34, 0.3) !important;
}

/* Product Cards Grid Revamp */
.products .product {
    background: var(--sehatyaab-card-bg) !important;
    border-radius: 16px !important;
    border: 1px solid var(--sehatyaab-border) !important;
    padding: 20px !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-soft) !important;
    position: relative;
    overflow: hidden;
}

.products .product:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--sehatyaab-primary) !important;
}

/* Product Images - subtle scale on hover */
.products .product img {
    border-radius: 10px !important;
    transition: transform 0.5s ease !important;
}

.products .product:hover img {
    transform: scale(1.05) !important;
}

/* Product Titles */
.products .product .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* Price */
.price {
    color: var(--sehatyaab-primary) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

.price del {
    color: var(--sehatyaab-text-muted) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

/* Single Product Page Enhancements */
.single-product div.product {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}

.single-product .product_title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
}

/* Mobile Responsiveness specifically for Pakistan market (heavy mobile usage) */
@media (max-width: 768px) {
    .single-product div.product {
        padding: 20px;
        border-radius: 12px;
    }
    
    .single-product .product_title {
        font-size: 1.8rem !important;
    }
    
    .products .product {
        padding: 15px !important;
    }
    
    .button-primary, .add_to_cart_button {
        width: 100% !important; /* Full width buttons on mobile */
        text-align: center !important;
    }
    
    /* Fix WhatsApp Button Position on Mobile to avoid browser bottom bar overlap */
    #qlwapp, .qlwapp {
        bottom: 90px !important;
    }
    
    .premium-sticky-atc {
        display: flex;
    }
}

/* Premium Ecommerce Features (Trust Badges, Scarcity, Sticky ATC) */
.premium-trust-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fbfa;
    border: 1px solid var(--sehatyaab-border);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    color: var(--sehatyaab-text-muted);
    font-weight: 500;
}

.trust-badge .dashicons {
    color: var(--sehatyaab-primary);
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.premium-scarcity-indicator {
    background: #fff4e5;
    border-left: 4px solid #ff9800;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #b36a00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fire-icon {
    font-size: 1.2rem;
}

/* Sticky Mobile Add to Cart */
.premium-sticky-atc {
    display: none; /* Hidden on desktop, shown on mobile via media query above */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
    padding: 12px 20px;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--sehatyaab-border);
}

.sticky-atc-info {
    flex: 1;
}

.sticky-atc-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sehatyaab-text-main);
}

.sticky-atc-price del {
    color: var(--sehatyaab-text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    margin-right: 5px;
}

.sticky-atc-btn {
    flex: 1;
    margin: 0 !important;
    padding: 12px 20px !important;
}

/* Review Incentive Banner */
.premium-review-incentive {
    background: linear-gradient(135deg, #f9fdfa 0%, #eef7ee 100%);
    border: 1px solid var(--sehatyaab-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-soft);
}

.premium-review-incentive .star-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(244, 194, 66, 0.4));
}

.premium-review-incentive .incentive-text strong {
    font-size: 1.1rem;
    color: var(--sehatyaab-primary);
    display: block;
    margin-bottom: 5px;
}

.premium-review-incentive .incentive-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--sehatyaab-text-main);
}

/* Blog & Article Styling */
.post, .type-post {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--sehatyaab-border);
    transition: var(--transition);
}

.post:hover, .type-post:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.entry-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--sehatyaab-text-main);
}

.entry-content h2, .entry-content h3 {
    color: var(--sehatyaab-primary) !important;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Homepage Redesign & Icon Fixes */
.home .elementor-widget-icon-box {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.home .elementor-widget-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Fix broken/misaligned icons */
.home .elementor-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--sehatyaab-primary) 0%, #159b31 100%);
    border-radius: 50%;
    margin-bottom: 20px !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(14, 122, 34, 0.25);
}

.home .elementor-icon i, .home .elementor-icon svg {
    fill: #fff !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
}

.home .elementor-heading-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* Hero Section Glassmorphism Enhancement */
.home .elementor-section:first-child {
    position: relative;
}

.home .elementor-section:first-child::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(249, 253, 250, 0.1) 0%, rgba(249, 253, 250, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.home .elementor-section:first-child .elementor-container {
    position: relative;
    z-index: 1;
}
