/* ==========================================
   Products Page Styles — Medismart Global
   Professional, Compact, Clean & Aligned
   ========================================== */

/* ---- Hero Section (Atmospheric Cloud Design) ---- */
.products-hero {
    position: relative;
    background: linear-gradient(160deg, #0a0f1a 0%, #111c2e 25%, #1a3348 50%, #1e4a5c 75%, #1a3348 100%);
    padding: 100px 0 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.products-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(43, 154, 166, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(26, 60, 90, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 70% 45% at 75% 70%, rgba(43, 120, 140, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 40% 80%, rgba(30, 80, 110, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 90% 50% at 60% 90%, rgba(43, 154, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.products-hero::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 10%;
    width: 80%;
    height: 70%;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(43, 140, 160, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(26, 60, 100, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(43, 154, 166, 0.12) 0%, transparent 40%);
    filter: blur(40px);
    pointer-events: none;
    border-radius: 50%;
}

.products-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(43, 154, 166, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}


.products-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(43, 154, 166, 0.18);
    border: 1px solid rgba(43, 154, 166, 0.35);
    color: #4DB8C4;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

.products-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
    text-align: left !important;
    max-width: 580px;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    transition: color 0.2s ease;
}

.hero-breadcrumb a:hover {
    color: #00d4ff;
}

.hero-breadcrumb i {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.25);
}

.hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.45);
}

.hero-breadcrumb span:last-child {
    color: #4DB8C4;
}


/* ---- Stats Strip ---- */
.product-stats-strip {
    background: transparent;
    padding: 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-right: 1px solid #edf0f3;
    transition: background 0.3s ease;
}

.stat-pill:last-child {
    border-right: none;
}

.stat-pill:hover {
    background: linear-gradient(135deg, rgba(43, 154, 166, 0.03) 0%, rgba(77, 184, 196, 0.05) 100%);
}

.stat-pill i {
    font-size: 22px;
    color: var(--primary-teal);
    background: rgba(43, 154, 166, 0.08);
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-pill strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1px;
}

.stat-pill span {
    font-size: 12.5px;
    color: var(--medium-gray);
    font-weight: 400;
}


/* ---- Product Showcase ---- */
.product-showcase {
    padding: 56px 0 48px;
    background: var(--off-white);
}

.product-showcase .section-header {
    margin-bottom: 40px;
}

.product-showcase .section-header .subheading {
    margin-bottom: 8px;
}

.product-showcase .section-header h2 {
    margin-bottom: 8px;
}

.product-showcase .section-header .section-subtitle {
    font-size: 14.5px;
    max-width: 520px;
    margin: 0 auto;
}

/* Product Feature Card */
.product-feature-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 28px;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
    border: 1px solid #eef1f4;
}

.product-feature-card:last-child {
    margin-bottom: 0;
}

.product-feature-card:hover {
    box-shadow: 0 10px 40px rgba(43, 154, 166, 0.1);
    transform: translateY(-3px);
}

.product-feature-card.reverse {
    grid-template-columns: 1fr 380px;
}

.product-feature-card.reverse .pf-image-container {
    order: 2;
}

.product-feature-card.reverse .pf-content {
    order: 1;
}

/* Image Container — Light, attractive gradient */
.pf-image-container {
    position: relative;
    background: linear-gradient(145deg, #eaf6f8 0%, #f0fafb 30%, #f7fdfd 60%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    overflow: hidden;
    padding: 30px;
}

/* Soft geometric mesh pattern */
.pf-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(43, 154, 166, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(43, 154, 166, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Decorative ring accent */
.pf-image-container::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 154, 166, 0.06) 0%, transparent 70%);
    border: 2px solid rgba(43, 154, 166, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.product-feature-card:hover .pf-image-container::before {
    width: 250px;
    height: 250px;
    border-color: rgba(43, 154, 166, 0.15);
    background: radial-gradient(circle, rgba(43, 154, 166, 0.08) 0%, transparent 70%);
}

/* Soft ambient teal glow */
.pf-image-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(43, 154, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 18%;
    left: 22%;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 1;
}

.product-feature-card:hover .pf-image-glow {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(43, 154, 166, 0.12) 0%, transparent 70%);
}

/* Product image */
.pf-image-container img {
    max-width: 82%;
    max-height: 280px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.product-feature-card:hover .pf-image-container img {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 28px rgba(43, 154, 166, 0.15));
}

/* "Best Seller" badge */
.pf-image-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff8c00, #e06000);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.3);
}

.pf-image-badge i {
    font-size: 10px;
}

/* Content Side */
.pf-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    position: relative;
}

.pf-tag {
    display: inline-block;
    background: rgba(43, 154, 166, 0.08);
    color: var(--primary-teal);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    width: fit-content;
}

.pf-tag.blue {
    background: rgba(58, 111, 157, 0.08);
    color: var(--primary-blue);
}

.pf-tag.green {
    background: rgba(40, 167, 69, 0.08);
    color: var(--accent-green);
}

.pf-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e4d7b;
    margin-bottom: 10px;
    line-height: 1.25;
}

.pf-description {
    font-size: 14px !important;
    color: var(--medium-gray) !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
    text-align: justify !important;
}

/* Specs Grid */
.pf-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.pf-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f7f9fb;
    border-radius: 8px;
    border: 1px solid #edf0f3;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pf-spec:hover {
    border-color: rgba(43, 154, 166, 0.25);
    background: rgba(43, 154, 166, 0.02);
}

.pf-spec i {
    font-size: 16px;
    color: var(--primary-teal);
    min-width: 18px;
    text-align: center;
}

.pf-spec strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0;
    line-height: 1.3;
}

.pf-spec span {
    font-size: 13px;
    color: var(--medium-gray);
    font-weight: 500;
    line-height: 1.3;
}

/* Features List */
.pf-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pf-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.45;
}

.pf-features li i {
    color: var(--accent-green);
    font-size: 11px;
    margin-top: 3px;
    min-width: 13px;
}

.pf-content .btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    padding: 10px 24px;
}


/* ---- Technical Info Section ---- */
.tech-info-section {
    background: linear-gradient(135deg, #0f1923 0%, #1a3a4a 50%, #2B9AA6 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.tech-info-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(43, 154, 166, 0.35);
}

.tech-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(43, 154, 166, 0.25), rgba(0, 212, 255, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.06);
}

.tech-icon i {
    font-size: 22px;
    color: #00d4ff;
}

.tech-card h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}


/* ---- Products CTA ---- */
.products-cta {
    background: var(--off-white);
    padding: 48px 0;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 36px 44px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf0f3;
}

.cta-text h2 {
    font-size: 26px;
    color: #1e4d7b;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 0;
    max-width: 460px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--primary-teal);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 154, 166, 0.3);
}


/* ---- Scroll Reveal Animation ---- */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-feature-card {
    opacity: 0;
    animation: productFadeIn 0.6s ease-out forwards;
}

.product-feature-card:nth-child(2) {
    animation-delay: 0.12s;
}

.product-feature-card:nth-child(3) {
    animation-delay: 0.24s;
}

.product-feature-card:nth-child(4) {
    animation-delay: 0.36s;
}


/* ============================
   Responsive — Tablet (1024px)
   ============================ */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-pill {
        border-bottom: 1px solid #edf0f3;
    }

    .stat-pill:nth-child(2) {
        border-right: none;
    }

    .stat-pill:nth-child(3),
    .stat-pill:nth-child(4) {
        border-bottom: none;
    }

    .product-feature-card {
        grid-template-columns: 1fr;
    }

    .product-feature-card.reverse {
        grid-template-columns: 1fr;
    }

    .product-feature-card.reverse .pf-image-container {
        order: 0;
    }

    .product-feature-card.reverse .pf-content {
        order: 0;
    }

    .pf-image-container {
        min-height: 280px;
        padding: 28px;
    }

    .pf-image-container img {
        max-height: 240px;
    }

    .pf-content {
        padding: 28px 28px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
    }

    .cta-text p {
        max-width: none;
    }

    .cta-actions {
        justify-content: center;
    }
}

/* ============================
   Responsive — Mobile (768px)
   ============================ */
@media (max-width: 768px) {
    .products-hero {
        padding: 75px 0 50px;
    }

    .products-hero h1 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 14px !important;
    }

    .hero-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        border-radius: 12px;
    }

    .stat-pill {
        padding: 16px 18px;
        gap: 10px;
    }

    .stat-pill i {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
        border-radius: 10px;
    }

    .stat-pill strong {
        font-size: 13px;
    }

    .stat-pill span {
        font-size: 11.5px;
    }

    .product-showcase {
        padding: 44px 0 36px;
    }

    .product-showcase .section-header {
        margin-bottom: 28px;
    }

    .pf-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pf-features {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pf-content h3 {
        font-size: 22px;
    }

    .pf-image-container {
        min-height: 240px;
        padding: 24px;
    }

    .pf-image-container img {
        max-height: 210px;
    }

    .pf-image-container::before {
        width: 180px;
        height: 180px;
    }

    .tech-info-section {
        padding: 44px 0;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .tech-card {
        padding: 22px 16px;
    }

    .tech-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .tech-icon i {
        font-size: 18px;
    }

    .tech-card h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .tech-card p {
        font-size: 12.5px !important;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .products-cta {
        padding: 36px 0;
    }

    .cta-wrapper {
        padding: 28px 22px;
    }

    .cta-text h2 {
        font-size: 22px;
    }

    .product-feature-card {
        margin-bottom: 20px;
    }

    /* Override generic responsive.css center-aligning */
    .pf-content h3,
    .pf-content h2 {
        text-align: left;
    }

    .products-hero h1 {
        text-align: left;
    }

    .cta-text h2 {
        text-align: center;
    }

    .products-hero,
    .product-stats-strip,
    .product-showcase,
    .tech-info-section,
    .products-cta {
        padding-top: unset;
        padding-bottom: unset;
    }
}

/* ============================
   Responsive — Small (480px)
   ============================ */
@media (max-width: 480px) {
    .products-hero {
        padding: 70px 0 44px;
    }

    .products-hero h1 {
        font-size: 25px;
    }

    .hero-breadcrumb {
        flex-wrap: wrap;
        gap: 5px;
        font-size: 12px;
    }

    .pf-content {
        padding: 24px 18px;
    }

    .pf-content h3 {
        font-size: 20px;
    }

    .pf-description {
        font-size: 13px !important;
    }

    .pf-specs-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .pf-spec {
        padding: 8px 10px;
    }

    .pf-image-container {
        min-height: 200px;
        padding: 20px;
    }

    .pf-image-container img {
        max-height: 180px;
    }

    .cta-wrapper {
        padding: 24px 18px;
    }

    .cta-text h2 {
        font-size: 20px;
    }

    .cta-text p {
        font-size: 13px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        border-radius: 10px;
    }

    .stat-pill {
        border-right: none;
        border-bottom: 1px solid #edf0f3;
    }

    .stat-pill:last-child {
        border-bottom: none;
    }

    .stat-pill:nth-child(2) {
        border-right: none;
    }

    .stat-pill:nth-child(3) {
        border-bottom: 1px solid #edf0f3;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Override generic responsive.css center-aligning */
    .pf-content h3,
    .pf-content h2 {
        text-align: left;
    }

    .products-hero h1 {
        text-align: left;
    }
}