/* ==========================================================================
   Herbal Wellness Platform — Public Core Stylesheet (Vanilla CSS)
   Target: <25 KB minified, zero CLS, mobile-first, RTL-ready
   ========================================================================== */

:root {
    --brand-primary: #0c3b2e;
    --brand-primary-light: #165b47;
    --brand-primary-dark: #07251d;
    --brand-accent: #b38a2e;
    --brand-accent-gold: #d4af37;
    --brand-cream: #fbfaf6;
    --brand-sand: #f2eee3;
    --brand-surface: #ffffff;
    --brand-border: #e6e1d5;
    --brand-text: #1f2937;
    --brand-text-muted: #6b7280;
    --brand-success: #15803d;
    --brand-danger: #b91c1c;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(12, 59, 46, 0.05);
    --shadow-md: 0 4px 14px rgba(12, 59, 46, 0.08);
    --shadow-lg: 0 10px 30px rgba(12, 59, 46, 0.12);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--brand-text);
    background-color: var(--brand-cream);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] {
    font-family: var(--font-urdu), var(--font-body);
    line-height: 1.9;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--brand-accent);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-primary-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
    font-family: var(--font-urdu);
    line-height: 1.5;
}

.h1-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

.h2-section {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--brand-text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

/* Top Notification Banner */
.top-bar {
    background-color: var(--brand-primary-dark);
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.lang-switch {
    display: inline-flex;
    gap: 0.4rem;
}
.lang-badge {
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}
.lang-badge.active {
    background: var(--brand-accent);
    color: #fff;
}

/* Header & Navbar */
.site-header {
    background-color: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-decoration: none;
}
.brand-logo-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
}
.brand-logo:hover .brand-logo-img {
    transform: scale(1.02);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-link {
    font-weight: 500;
    color: var(--brand-text);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-accent);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--brand-primary-light);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(12, 59, 46, 0.25);
}
.btn-accent {
    background-color: var(--brand-accent);
    color: #ffffff;
}
.btn-accent:hover {
    background-color: #997323;
    color: #ffffff;
}
.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-primary);
}
.btn-outline:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}
.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: #ffffff;
}
.btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
}
.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 3.5rem;
    background: linear-gradient(180deg, var(--brand-surface) 0%, var(--brand-cream) 100%);
    border-bottom: 1px solid var(--brand-border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(179, 138, 46, 0.12);
    color: var(--brand-accent);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(179, 138, 46, 0.25);
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--brand-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 50px -12px rgba(12, 59, 46, 0.28), 0 0 0 1px rgba(212, 163, 89, 0.25);
    border: 2px solid rgba(212, 163, 89, 0.35);
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: visible;
}
.hero-image-wrap picture {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.hero-3d-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}
.hero-3d-glow {
    position: absolute;
    top: -12%;
    left: -12%;
    width: 124%;
    height: 124%;
    background: radial-gradient(circle at 50% 45%, rgba(212, 163, 89, 0.28) 0%, rgba(12, 59, 46, 0.2) 45%, transparent 72%);
    pointer-events: none;
    z-index: 1;
    filter: blur(32px);
    border-radius: 50%;
    opacity: 0.85;
}
.hero-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 163, 89, 0.45);
    padding: 0.55rem 0.95rem;
    border-radius: 9999px;
    box-shadow: 0 12px 28px -4px rgba(12, 59, 46, 0.22), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
    z-index: 4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatBadge 4s ease-in-out infinite alternate;
}
.badge-top-right {
    top: -1rem;
    right: -1rem;
}
.badge-bottom-left {
    bottom: -1rem;
    left: -1rem;
    animation-delay: 2s;
}
[dir="rtl"] .badge-top-right {
    right: auto;
    left: -1rem;
}
[dir="rtl"] .badge-bottom-left {
    left: auto;
    right: -1rem;
}
.hero-floating-badge .badge-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.hero-floating-badge .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.hero-floating-badge .badge-text strong {
    font-size: 0.82rem;
    color: var(--brand-primary);
    font-weight: 700;
}
.hero-floating-badge .badge-text small {
    font-size: 0.72rem;
    color: var(--brand-text-muted);
}
@keyframes floatBadge {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-7px) rotate(0.8deg); }
}
[data-theme="dark"] .hero-floating-badge {
    background: rgba(18, 38, 32, 0.9);
    border-color: rgba(212, 163, 89, 0.4);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .hero-floating-badge .badge-text strong {
    color: var(--brand-accent-light);
}
[data-theme="dark"] .hero-floating-badge .badge-text small {
    color: #cbd5e1;
}
.hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-border);
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-trust-icon {
    font-size: 1.6rem;
    color: var(--brand-accent);
}
.hero-trust-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary-dark);
}

/* Sections Global */
.section {
    padding: 4.5rem 0;
}
.section-alt {
    background-color: var(--brand-sand);
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background-color: var(--brand-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--brand-border);
    box-shadow: 0 8px 24px -4px rgba(12, 59, 46, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px -8px rgba(12, 59, 46, 0.2), 0 0 0 1px rgba(212, 163, 89, 0.35);
    border-color: var(--brand-accent-gold);
}
.product-card-img-wrap {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(212, 163, 89, 0.12) 0%, rgba(12, 59, 46, 0.06) 65%, transparent 85%), var(--brand-sand);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card-img {
    transform: scale(1.06);
}
.product-badge-featured {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--brand-primary);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}
.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.product-card-urdu {
    font-family: var(--font-urdu);
    color: var(--brand-primary-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.product-card-desc {
    font-size: 0.88rem;
    color: var(--brand-text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}
.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
}
.price-currency {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

/* Feature Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.pillar-card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.pillar-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.pillar-desc {
    font-size: 0.9rem;
    color: var(--brand-text-muted);
}

/* Direct Answer / Wisdom Callout */
.wisdom-callout {
    background: linear-gradient(135deg, #0c3b2e 0%, #165b47 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border-left: 6px solid var(--brand-accent);
}
.wisdom-callout h3 {
    color: var(--brand-accent-gold);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.wisdom-callout p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #f3f4f6;
    margin-bottom: 0;
}

/* Botanical Ingredients Showcase */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.ingredient-badge-card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.ing-icon {
    font-size: 1.8rem;
    background-color: var(--brand-sand);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Semantic FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-size: 1.05rem;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--brand-accent);
    transition: transform 0.2s ease;
}
details[open] .faq-question::after {
    content: "−";
    color: var(--brand-primary);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--brand-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* Product Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}
.product-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-direct-answer {
    background-color: rgba(12, 59, 46, 0.05);
    border-left: 4px solid var(--brand-primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    color: var(--brand-primary-dark);
}
.pack-size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.pack-size-btn {
    border: 1.5px solid var(--brand-border);
    background-color: var(--brand-surface);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.pack-size-btn.active, .pack-size-btn:hover {
    border-color: var(--brand-primary);
    background-color: rgba(12, 59, 46, 0.08);
    color: var(--brand-primary);
}
.product-actions-bar {
    display: flex;
    gap: 1rem;
    margin: 1.75rem 0;
}

/* Blog Article Page */
.article-header {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    color: var(--brand-text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}
.article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.85;
}
.article-content h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.toc-box {
    background-color: var(--brand-sand);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}
.toc-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}
.toc-list {
    list-style: none;
    padding-left: 0;
}
.toc-list li {
    margin-bottom: 0.4rem;
}
.eeat-author-card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* Floating WhatsApp Button (Zero-CLS + Gentle Pulse Animation) */
@keyframes waPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.75), 0 0 0 6px rgba(37, 211, 102, 0.18);
    }
}
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    font-size: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    animation: waPulse 3.5s infinite ease-in-out;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.8);
    color: #ffffff;
}
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 24px;
}

/* Hero Entrance Animations */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-badge {
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-grid .h1-title {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-desc {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-actions {
    animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-image-wrap {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-image-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(12, 59, 46, 0.18);
}

/* Scroll Reveal Micro-Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Botanical Ingredient Photo Cards */
.ingredients-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}
.ingredient-photo-card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(12, 59, 46, 0.07);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}
.ingredient-photo-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 42px -10px rgba(12, 59, 46, 0.2), 0 0 0 1px rgba(212, 163, 89, 0.4);
    border-color: var(--brand-accent-gold);
}
.ingredient-photo-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(212, 163, 89, 0.1) 0%, rgba(12, 59, 46, 0.05) 60%, transparent 80%), var(--brand-sand);
}
.ingredient-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ingredient-photo-card:hover .ingredient-photo-img {
    transform: scale(1.07);
}
.ingredient-photo-body {
    padding: 1.25rem;
    flex-grow: 1;
}

/* Hakeem & Apothecary Portrait Frame */
.portrait-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(212, 163, 89, 0.45);
    box-shadow: 0 20px 50px -12px rgba(12, 59, 46, 0.25);
    background-color: var(--brand-sand);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.portrait-frame:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 28px 60px -12px rgba(12, 59, 46, 0.32), 0 0 0 1px rgba(212, 163, 89, 0.5);
}
.portrait-badge-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(12, 59, 46, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 0.85rem;
    text-align: center;
}
[dir="rtl"] .portrait-badge-overlay {
    direction: rtl;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Footer */
.site-footer {
    background-color: var(--brand-primary-dark);
    color: #d1d5db;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 3px solid var(--brand-accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand h4 {
    color: #ffffff;
    font-size: 1.35rem;
}
.footer-title {
    color: var(--brand-accent-gold);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: #9ca3af;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-disclaimer {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 2rem;
}
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 1rem 0;
    font-size: 0.88rem;
    color: var(--brand-text-muted);
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb-item:not(:last-child)::after {
    content: "/";
    color: #d1d5db;
}
[dir="rtl"] .breadcrumb-item:not(:last-child)::after {
    content: "\\";
}
.breadcrumb-item a {
    color: var(--brand-text-muted);
}
.breadcrumb-item a:hover {
    color: var(--brand-primary);
}
.breadcrumb-item.active {
    color: var(--brand-primary);
    font-weight: 600;
}

/* Flash Messages */
.flash-container {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-text);
}
.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--brand-surface);
    color: var(--brand-text);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.12);
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.75rem;
    font-size: 0.88rem;
}
.form-check input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--brand-primary);
    width: 17px;
    height: 17px;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-border);
    background: var(--brand-surface);
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}
[dir="rtl"] .custom-table {
    text-align: right;
}
.custom-table th {
    background-color: var(--brand-sand);
    color: var(--brand-primary-dark);
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    border-bottom: 2px solid var(--brand-border);
}
.custom-table td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-text);
}
.custom-table tr:last-child td {
    border-bottom: none;
}
.custom-table tr:hover td {
    background-color: rgba(242, 238, 227, 0.4);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 37, 29, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-overlay.open {
    display: flex;
}
.modal-dialog {
    background-color: var(--brand-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--brand-border);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--brand-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--brand-sand);
}
.modal-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--brand-primary-dark);
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--brand-text-muted);
}
.modal-body {
    padding: 1.5rem;
}

/* Reviews List */
.reviews-container {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--brand-border);
}
.review-card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.review-author {
    font-weight: 700;
    color: var(--brand-primary-dark);
}
.review-stars {
    color: var(--brand-accent-gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.review-date {
    font-size: 0.8rem;
    color: var(--brand-text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-stock {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.badge-out {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.badge-pill {
    background-color: var(--brand-sand);
    color: var(--brand-primary);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-full);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    list-style: none;
}
.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    color: var(--brand-text);
    font-weight: 600;
    font-size: 0.9rem;
}
.page-item.active .page-link {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .hero-grid, .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--brand-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 2px solid var(--brand-border);
        box-shadow: var(--shadow-md);
    }
    .nav-menu.active {
        display: flex;
    }
}
@media (max-width: 575.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-trust-bar {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}


/* ==========================================================================
   Mobile scroll stability
   ========================================================================== */

/* 1. Nothing may widen the page. `clip` (unlike `hidden`) does not create a
      scroll container, so the sticky header keeps working. */
html, body { overflow-x: clip; max-width: 100%; }
.hero, .hero-grid, .hero-3d-card, .hero-image-wrap { max-width: 100%; }
.hero-3d-glow { inset: 0 !important; left: 0 !important; right: 0 !important; max-width: 100%; }

/* 2. WhatsApp pulse on the compositor: animate a ring's transform/opacity
      instead of box-shadow, which forced a full repaint every frame. */
.whatsapp-float { animation: none; isolation: isolate; }
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #25D366;
    z-index: -1;
    opacity: 0.45;
    animation: waRing 3s ease-out infinite;
    pointer-events: none;
}
@keyframes waRing {
    0% { transform: scale(1); opacity: 0.45; }
    70%, 100% { transform: scale(1.45); opacity: 0; }
}

/* 3. Touch devices: content is simply there, no slide-in while scrolling,
      no endless badge motion, no live blur behind moving elements. */
@media (hover: none), (max-width: 768px) {
    .reveal-on-scroll,
    .reveal-on-scroll.revealed {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    .hero-floating-badge {
        animation: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff;
    }
    .portrait-badge-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(12, 59, 46, 0.94);
    }
    /* Anchor links jump instantly instead of a long animated scroll */
    html { scroll-behavior: auto; }
}

/* Wide tables scroll inside their own box on phones, never the page.
   display:block on the <table> keeps columns aligned (the browser wraps the
   rows in an anonymous table box). */
@media (max-width: 768px) {
    table.custom-table, .article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::after { animation: none; opacity: 0; }
}


/* --- nuskha: about page --- */
.about-hakeem { margin: 1.25rem 0 1.75rem; }
.about-hakeem img { width: 100%; height: auto; border-radius: 12px; display: block; }
.about-hakeem figcaption {
    margin-top: .7rem;
    font-size: .92rem;
    color: #6b7280;
    font-style: italic;
}
.about-profile {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.75rem;
}
.about-profile th,
.about-profile td {
    padding: .65rem .85rem;
    border-bottom: 1px solid #e6e1d5;
    text-align: left;
    vertical-align: top;
}
.about-profile th {
    width: 34%;
    font-weight: 600;
    color: #0c3b2e;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .about-profile th, .about-profile td { display: block; width: auto; }
    .about-profile th { border-bottom: 0; padding-bottom: 0; white-space: normal; }
}
