/* Theme tokens */
:root {
    --primary: #00A4FF;
    --primary-dark: #00389B;
    --bg: #f7f7f7;
    --text: #1f2937;
    --white: #fff;
}

/* ================ FONTAWESOME ICON FIXES ================ */
/* Ensure FontAwesome icons display properly in RTL */
[dir="rtl"] .fas,
[dir="rtl"] .far,
[dir="rtl"] .fab,
[dir="rtl"] .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* Global FontAwesome icon fix for all pages */
.fas,
.far,
.fab,
.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Hero */
.product-hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(850px 380px at var(--g1-x, 85%) var(--g1-y, 18%), rgba(0, 164, 255, 0.14), transparent 60%),
        radial-gradient(850px 380px at var(--g2-x, 15%) var(--g2-y, 22%), rgba(0, 56, 155, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(0, 56, 155, .10), rgba(0, 164, 255, .10));
    position: relative;
    overflow: hidden;
    animation: heroGradientShift 12s ease-in-out infinite alternate;
}

.product-hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 164, 255, 0.25), rgba(0, 56, 155, 0.15));
    filter: blur(28px);
    left: -120px;
    bottom: -120px;
    animation: floatBlob 18s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0% {
        --g1-x: 82%;
        --g1-y: 16%;
        --g2-x: 18%;
        --g2-y: 26%;
    }

    50% {
        --g1-x: 88%;
        --g1-y: 24%;
        --g2-x: 12%;
        --g2-y: 18%;
    }

    100% {
        --g1-x: 78%;
        --g1-y: 10%;
        --g2-x: 22%;
        --g2-y: 30%;
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: .85
    }

    50% {
        transform: translate(20px, -20px) scale(1.06);
        opacity: 1
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: .85
    }
}

.product-hero .hero-content {
    text-align: center;
}

.product-hero h1 {
    color: var(--primary-dark);
    font-size: clamp(28px, 4vw, 44px);
}

.product-hero p {
    color: #475569;
    margin-top: 8px;
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.chip.active,
.chip:hover {
    border-color: rgba(0, 164, 255, .5);
    box-shadow: 0 6px 16px rgba(0, 164, 255, .18);
}

/* Grid */
.product-list {
    padding: 48px 0;
    background: var(--bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin: 4px 40px;
}

.card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}

.card-body h3 {
    color: var(--primary-dark);
    font-size: 18px;
}

.card-body p {
    color: #475569;
    font-size: 14px;
}

/* highlight anchor jump */
.card.highlight {
    outline: 2px solid rgba(0, 164, 255, 0.5);
    outline-offset: -2px;
    transition: outline-color .6s ease;
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-hero {
        min-height: 70vh;
    }
}

@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 200px;
    }
}