/* ============================================================
   HOME PAGE STYLES — Medical Qena
   Scoped to body.home-page to avoid conflicts with other pages.
   ============================================================ */

/* ---------- Google Font loaded via <link> in header.php for non-blocking load ---------- */

/* ---------- CSS Variables (home-specific) ---------- */
body.home-page {
    --hp-primary: #6c7fd8;
    --hp-primary-dark: #5468c4;
    --hp-primary-light: #e8ebf7;
    --hp-accent: #f97316;
    --hp-accent-light: #fff7ed;
    --hp-dark: #1e293b;
    --hp-text: #475569;
    --hp-text-light: #94a3b8;
    --hp-bg-soft: #f8fafc;
    --hp-card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    --hp-card-shadow-hover: 0 8px 30px rgba(108,127,216,.15), 0 4px 12px rgba(0,0,0,.06);
    --hp-radius: 16px;
    --hp-radius-sm: 10px;
    --hp-transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Section spacing ---------- */
body.home-page .hp-section {
    padding: 60px 0;
}
body.home-page .hp-section-sm {
    padding: 40px 0;
}

/* ---------- Section Headers ---------- */
body.home-page .hp-section-header {
    text-align: center;
    margin-bottom: 40px;
}
body.home-page .hp-section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-dark);
    margin-bottom: 8px;
    letter-spacing: -.3px;
}
body.home-page .hp-section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--hp-text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   ① HERO SECTION
   ============================================================ */
body.home-page .hp-hero {
    position: relative;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ebf7 50%, #f5f0ff 100%);
    overflow: hidden;
    padding: 0;
}
body.home-page .hp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,127,216,.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
body.home-page .hp-hero .hero-slider {
    background: transparent;
}
body.home-page .hp-hero .swiper-slide {
    padding: 50px 0 40px;
    /* Fix fade effect: hide inactive slides */
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: opacity 2.5s ease;
}
body.home-page .hp-hero .swiper-slide-active,
body.home-page .hp-hero .swiper-slide-duplicate-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}
body.home-page .hp-hero .hero-contact {
    position: relative;
    z-index: 2;
}
body.home-page .hp-hero .hero-contact p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.home-page .hp-hero .hero-contact p::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--hp-primary);
    border-radius: 2px;
}
body.home-page .hp-hero .hero-contact h1,
body.home-page .hp-hero .hero-contact h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    color: var(--hp-dark);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -.5px;
}
body.home-page .hp-hero .hero-contact h1 span,
body.home-page .hp-hero .hero-contact h2 span {
    color: var(--hp-primary);
    position: relative;
}
body.home-page .hp-hero .hero-contact h1 span::after,
body.home-page .hp-hero .hero-contact h2 span::after {
    display: none;
}
body.home-page .hp-hero .bb-btn-1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--hp-primary);
    color: #fff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hp-transition);
    box-shadow: 0 4px 15px rgba(108,127,216,.35);
    border: none;
}
body.home-page .hp-hero .bb-btn-1:hover {
    background: var(--hp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,127,216,.4);
}
body.home-page .hp-hero .hero-image {
    position: relative;
    z-index: 2;
    padding: 0;
}
body.home-page .hp-hero .hero-image img {
    opacity: 1;
    padding: 0;
    animation: hp-float 4s ease-in-out infinite;
    max-height: 380px;
    object-fit: contain;
    width: auto;
    margin: 0 auto;
    display: block;
}
body.home-page .hp-hero .hero-image svg {
    display: none;
}
body.home-page .hp-hero .swiper-slide-active .hero-image img {
    opacity: 1;
}
body.home-page .hp-hero .bb-scroll-Page {
    display: none;
}
body.home-page .hp-hero .swiper-pagination {
    bottom: 15px !important;
    text-align: center !important;
}
body.home-page .hp-hero .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
    transform: none !important;
    background: var(--hp-text-light);
    opacity: .4;
}
body.home-page .hp-hero .swiper-pagination-bullet-active {
    width: 28px !important;
    border-radius: 20px !important;
    background: var(--hp-primary) !important;
    opacity: 1 !important;
}

@keyframes hp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================================
   ② TRUST BAR (Services moved up)
   ============================================================ */
body.home-page section.section-hero.hp-hero div.container {
    padding-bottom: 70px;
}

body.home-page .hp-trust-bar {
    padding: 0;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}
body.home-page .hp-trust-card {
    background: #fff;
    border-radius: var(--hp-radius);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--hp-card-shadow);
    transition: var(--hp-transition);
    border: 1px solid rgba(0,0,0,.04);
    height: 100%;
}
body.home-page .hp-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-card-shadow-hover);
}
body.home-page .hp-trust-card .hp-trust-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--hp-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
body.home-page .hp-trust-card .hp-trust-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
body.home-page .hp-trust-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 2px;
}
body.home-page .hp-trust-card p {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: var(--hp-text-light);
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   ③ CATEGORIES — Swiper Slider
   ============================================================ */
body.home-page .hp-categories {
    background: #fff;
    overflow: hidden;
}
body.home-page .hp-cat-slider.swiper-container {
    overflow: hidden;
}
body.home-page .hp-cat-slider .swiper-slide {
    width: auto;
}
body.home-page .hp-cat-card {
    display: block;
    min-width: 140px;
    max-width: 170px;
    background: var(--hp-bg-soft);
    border: 1px solid #eef1f6;
    border-radius: var(--hp-radius);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--hp-transition);
    cursor: pointer;
}
body.home-page .hp-cat-card:hover {
    border-color: var(--hp-primary);
    background: var(--hp-primary-light);
    transform: translateY(-4px);
    box-shadow: var(--hp-card-shadow-hover);
}
body.home-page .hp-cat-card .hp-cat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: var(--hp-transition);
}
body.home-page .hp-cat-card:hover .hp-cat-icon {
    background: var(--hp-primary);
    box-shadow: 0 4px 14px rgba(108,127,216,.3);
}
body.home-page .hp-cat-card .hp-cat-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: var(--hp-transition);
}
body.home-page .hp-cat-card:hover .hp-cat-icon img {
    filter: brightness(0) invert(1);
}
body.home-page .hp-cat-card h5 {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hp-dark);
    margin-bottom: 4px;
}
body.home-page .hp-cat-card span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--hp-text-light);
}

/* ============================================================
   ④ TODAY'S DEALS — Accent Background
   ============================================================ */
body.home-page .hp-deals {
    background: linear-gradient(135deg, #fff8f0 0%, #fff5eb 100%);
    position: relative;
    overflow: hidden;
}
body.home-page .hp-deals::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============================================================
   ⑤ PROMO BANNERS
   ============================================================ */
body.home-page .hp-promo-card {
    position: relative;
    border-radius: var(--hp-radius);
    padding: 36px 32px;
    overflow: hidden;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    transition: var(--hp-transition);
}
body.home-page .hp-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
body.home-page .hp-promo-card.hp-promo-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
body.home-page .hp-promo-card.hp-promo-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
body.home-page .hp-promo-card .hp-promo-content {
    position: relative;
    z-index: 2;
    flex: 1;
}
body.home-page .hp-promo-card h5 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
body.home-page .hp-promo-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-bottom: 16px;
    line-height: 1.5;
}
body.home-page .hp-promo-card .bb-btn-1,
body.home-page .hp-promo-card .hp-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hp-transition);
    border: 1px solid rgba(255,255,255,.3);
}
body.home-page .hp-promo-card .bb-btn-1:hover,
body.home-page .hp-promo-card .hp-promo-btn:hover {
    background: #fff;
    color: var(--hp-dark);
}
body.home-page .hp-promo-card .hp-promo-img {
    position: relative;
    z-index: 2;
    flex: 0 0 140px;
}
body.home-page .hp-promo-card .hp-promo-img img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.15));
}

/* ============================================================
   ⑥ BEST SELLERS
   ============================================================ */
body.home-page .hp-bestsellers {
    background: var(--hp-bg-soft);
}

/* ============================================================
   ⑦ PARALLAX CTA — Enhanced
   ============================================================ */
body.home-page .hp-parallax {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}
body.home-page .hp-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,41,59,.85) 0%, rgba(108,127,216,.7) 100%);
    z-index: 1;
}
body.home-page .hp-parallax .container {
    position: relative;
    z-index: 2;
}
body.home-page .hp-parallax .banner-justify-box-contact {
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
body.home-page .hp-parallax .banner-two-box {
    background-color: transparent !important;
    border-radius: 0 !important;
    max-width: 650px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    align-items: center !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
}
body.home-page .hp-parallax .banner-two-box::before,
body.home-page .hp-parallax .banner-two-box::after {
    display: none !important;
}
body.home-page .hp-parallax .banner-two-box span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.75) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}
body.home-page .hp-parallax .banner-two-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 3.5vw, 42px) !important;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
body.home-page .hp-parallax .banner-two-box .bb-btn-1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #fff;
    color: var(--hp-dark) !important;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--hp-transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
body.home-page .hp-parallax .banner-two-box .bb-btn-1:hover {
    background: var(--hp-primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,127,216,.4);
}

/* ============================================================
   ⑧ NEW ARRIVALS
   ============================================================ */
body.home-page .hp-arrivals {
    background: #fff;
}

/* Pagination */
body.home-page .hp-pagination {
    text-align: center;
    margin-top: 36px;
}
body.home-page .hp-pagination .pagination {
    display: inline-flex;
    gap: 6px;
}
body.home-page .hp-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text);
    background: #fff;
    text-decoration: none;
    transition: var(--hp-transition);
}
body.home-page .hp-pagination .page-item .page-link:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
    background: var(--hp-primary-light);
}
body.home-page .hp-pagination .page-item.active .page-link {
    background: var(--hp-primary);
    border-color: var(--hp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108,127,216,.3);
}
body.home-page .hp-pagination .page-item.disabled .page-link {
    color: var(--hp-text-light);
    opacity: .5;
    pointer-events: none;
}

/* ============================================================
   PRODUCT CARD ENHANCEMENTS (home-only)
   ============================================================ */
body.home-page .bb-pro-box {
    border: 1px solid #eef1f6;
    border-radius: var(--hp-radius);
    transition: var(--hp-transition);
    overflow: hidden;
}
body.home-page .bb-pro-box:hover {
    box-shadow: var(--hp-card-shadow-hover);
    transform: translateY(-4px);
}
body.home-page .bb-pro-box .bb-pro-img {
    border-radius: 0;
}
body.home-page .bb-pro-box .bb-pro-img .inner-img {
    border-radius: 0;
}

/* Discount badge */
body.home-page .hp-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: .3px;
}

/* Product title */
body.home-page .bb-pro-box .bb-pro-contact h4.bb-pro-title a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-dark);
}
body.home-page .bb-pro-box .bb-pro-contact h4.bb-pro-title a:hover {
    color: var(--hp-primary);
}
body.home-page .bb-pro-box .bb-pro-contact .bb-price .inner-price .new-price {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--hp-primary);
    font-size: 15px;
}
body.home-page .bb-pro-box .bb-pro-contact .bb-price .inner-price .olg-price {
    color: var(--hp-text-light);
    font-size: 13px;
}
body.home-page .bb-pro-box .bb-pro-contact .bb-pro-subtitle a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--hp-text-light);
    font-weight: 500;
}

/* ============================================================
   ⑨ TESTIMONIALS enhancements
   ============================================================ */
body.home-page .section-testimonials {
    background: var(--hp-bg-soft);
}

/* ============================================================
   DEAL SLIDER owl-carousel overrides
   ============================================================ */
body.home-page .bb-deal-block .bb-deal-card {
    padding: 0 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    body.home-page section.section-hero.hp-hero div.container {
        padding-bottom: 0;
    }
    body.home-page .hp-trust-bar {
        margin-top: 0;
        padding: 16px 0;
    }
    body.home-page .hp-section {
        padding: 40px 0;
    }
    body.home-page .hp-section-header h2 {
        font-size: 24px;
    }
    body.home-page .hp-promo-card {
        min-height: 180px;
    }
    body.home-page .hp-promo-card .hp-promo-img {
        flex: 0 0 100px;
    }
    body.home-page .hp-promo-card .hp-promo-img img {
        max-width: 100px;
    }
    body.home-page .hp-parallax {
        background-attachment: scroll;
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    body.home-page .hp-hero .hero-contact h1,
    body.home-page .hp-hero .hero-contact h2 {
        margin-bottom: 16px;
    }
    body.home-page .hp-hero .bb-btn-1 {
        padding: 12px 24px;
        font-size: 13px;
    }
    body.home-page .hp-hero .hero-image img {
        max-height: 200px;
    }
    body.home-page .hp-section {
        padding: 28px 0;
    }
    body.home-page .hp-section-header {
        margin-bottom: 20px;
    }
    body.home-page .hp-section-header h2 {
        font-size: 20px;
    }
    body.home-page .hp-section-header p {
        font-size: 13px;
    }
    body.home-page .hp-promo-card {
        padding: 20px 16px;
    }
    body.home-page .hp-promo-card h5 {
        font-size: 16px;
    }
    body.home-page .hp-promo-card .hp-promo-img {
        display: none;
    }
    body.home-page .hp-trust-card {
        padding: 14px 12px;
        gap: 10px;
    }
    body.home-page .hp-trust-card .hp-trust-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }
    body.home-page .hp-trust-card .hp-trust-icon img {
        width: 22px;
        height: 22px;
    }
    body.home-page .hp-trust-card h4 {
        font-size: 12px;
    }
    body.home-page .hp-trust-card p {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 575px) {
    body.home-page .hp-cat-card {
        min-width: 120px;
        padding: 18px 12px;
    }
    body.home-page .hp-cat-card .hp-cat-icon {
        width: 48px;
        height: 48px;
    }
    body.home-page .hp-promo-card h5 {
        font-size: 16px;
    }
    body.home-page .hp-pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
