/* =============================================================
   pharmacy.css  —  24/7 Pharmacy RX
   Place at: public/css/pharmacy.css

   TABLE OF CONTENTS
   1.  Color tokens (CSS variables)
   2.  Shared / reusable utilities
   3.  Header
   4.  Search overlay
   5.  Hero section
   6.  Product card (shared by Categories & Featured)
   7.  Categories section (tabs)
   8.  Content / About split section
   9.  How It Works section
   10. Why Choose Us section
   11. Testimonials section
   12. Footer
   ============================================================= */


/* ── 1. COLOR TOKENS ────────────────────────────────────────── */
:root {
    /* Brand */
    --pharm-blue:          #105E9C;
    --pharm-blue-dark:     #0c4d82;
    --pharm-green:         #64AD04;
    --pharm-green-dark:    #559203;
    --pharm-white:         #ffffff;

    /* Tints (icon backgrounds, hover fills) */
    --pharm-green-tint:    rgba(100, 173, 4, 0.10);

    /* Text on dark backgrounds (hero, footer) */
    --pharm-text-muted:    rgba(255, 255, 255, 0.75);
    --pharm-text-faint:    rgba(255, 255, 255, 0.50);

    /* Footer-specific */
    --pharm-social-bg:     rgba(255, 255, 255, 0.12);
    --pharm-border-dark:   rgba(255, 255, 255, 0.20);

    /* Global transition shorthand */
    --pharm-transition:    0.2s ease;
}


/* ── 2. SHARED / REUSABLE UTILITIES ─────────────────────────── */

/* Green filled button (hero CTA, content section) */
.pharm-btn-primary {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--pharm-transition), transform var(--pharm-transition);
}
.pharm-btn-primary:hover {
    background-color: var(--pharm-green-dark);
    color: var(--pharm-white);
    transform: translateY(-1px);
}

/* Blue filled button (View All, Browse All) */
.pharm-btn-blue {
    background-color: var(--pharm-blue);
    color: var(--pharm-white);
    padding: 0.7rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color var(--pharm-transition), transform var(--pharm-transition);
}
.pharm-btn-blue:hover {
    background-color: var(--pharm-blue-dark);
    color: var(--pharm-white);
    transform: translateY(-1px);
}

/* White filled button (hero secondary CTA) */
.pharm-btn-white {
    background-color: var(--pharm-white);
    color: var(--pharm-blue);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--pharm-transition), transform var(--pharm-transition);
}
.pharm-btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--pharm-blue);
    transform: translateY(-1px);
}

/* Green cart button (product cards) */
.pharm-btn-cart {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-btn-cart:hover {
    background-color: var(--pharm-green-dark);
    color: var(--pharm-white);
    box-shadow: 0 4px 12px rgba(100, 173, 4, 0.35);
}

/* Green text link (View All Products arrow link) */
.pharm-link-green {
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pharm-transition);
}
.pharm-link-green:hover { color: var(--pharm-green-dark); }

/* Login button (header) */
.pharm-btn-login {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--pharm-transition);
}
.pharm-btn-login:hover {
    background-color: var(--pharm-green-dark);
    color: var(--pharm-white);
}

/* Vertical padding applied to every homepage section */
.pharm-section { padding: 3rem 0; }

/* Shared section heading */
.pharm-section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Shared section subtitle */
.pharm-section-sub {
    color: #575c60;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 0;
}


/* ── 3. HEADER ──────────────────────────────────────────────── */
.pharm-header {
    background-color: var(--pharm-white);
    z-index: 1030;
}

.pharm-logo-link { display: inline-block; flex-shrink: 0; }
.pharm-logo      { height: 44px; width: auto; display: block; }

/* Desktop nav links */
.pharm-nav-link {
    color: var(--pharm-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--pharm-transition);
}
.pharm-nav-link:hover,
.pharm-nav-link.active { color: var(--pharm-green); }

/* Icon buttons (search, cart, hamburger, mobile login) */
.pharm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: var(--pharm-blue);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--pharm-transition);
}
.pharm-icon-btn:hover {
    background-color: #f0f0f0;
    color: var(--pharm-blue);
}

/* Cart badge counter */
.pharm-cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    font-size: 0.65rem;
    font-weight: 600;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Mobile nav drawer */
.pharm-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.pharm-mobile-menu--open { max-height: 400px; }

.pharm-mobile-link {
    display: block;
    color: var(--pharm-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color var(--pharm-transition);
}
.pharm-mobile-link:hover { color: var(--pharm-green); }


/* ── 4. SEARCH OVERLAY ──────────────────────────────────────── */
.pharm-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: var(--pharm-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.pharm-search-overlay.pharm-search-overlay--open { transform: translateY(0); }

.pharm-search-overlay-icon { color: var(--pharm-blue); font-size: 1.1rem; flex-shrink: 0; }

.pharm-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    color: var(--pharm-blue);
    background: transparent;
    padding: 0.6rem 0;
    border-bottom: 2px solid var(--pharm-blue);
}
.pharm-search-input::placeholder { color: #aaa; }

.pharm-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: var(--pharm-blue);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--pharm-transition);
}
.pharm-search-close:hover { background-color: #f0f0f0; }

.pharm-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pharm-search-backdrop--open { opacity: 1; visibility: visible; }


/* ── 5. HERO SECTION ────────────────────────────────────────── */
.pharm-hero { background-color: var(--pharm-blue); }

.pharm-hero-bg { position: absolute; inset: 0; }

.pharm-hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

/* Gradient overlay that fades image into brand blue */
.pharm-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--pharm-blue) 40%, rgba(16, 94, 156, 0.85));
}

/* "Available 24/7" pill */
.pharm-hero-badge {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pharm-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
}
.pharm-hero-subtitle {
    font-size: 1.1rem;
    color: var(--pharm-text-muted);
    line-height: 1.7;
}

/* Large green stat numbers */
.pharm-stat-number {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--pharm-green);
    line-height: 1.1;
}
.pharm-stat-label {
    font-size: 0.85rem;
    color: var(--pharm-text-muted);
    margin-top: 0.25rem;
}

/* Right-side feature cards inside hero */
.pharm-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 1.25rem;
    transition: background-color var(--pharm-transition);
}
.pharm-feature-card:hover { background: rgba(255, 255, 255, 0.16); }

.pharm-feature-icon-wrap {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    padding: 0.65rem;
    border-radius: 8px;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.pharm-feature-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.pharm-feature-card-desc {
    font-size: 0.9rem;
    color: var(--pharm-text-muted);
}


/* ── 6. PRODUCT CARD (Categories & Featured share this) ─────── */
.pharm-product-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-product-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* 1.5:1 image container */
.pharm-product-img-wrap {
    position: relative;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    background: #f8f8f8;
}
.pharm-product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.pharm-product-card:hover .pharm-product-img { transform: scale(1.08); }

/* Pill badge (BESTSELLER, NEW, etc.) */
.pharm-product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.pharm-product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}
.pharm-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
    min-height: 2.8rem;
    /* 2-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pharm-star             { color: var(--pharm-green); font-size: 0.85rem; }
.pharm-product-price    { font-size: 1.3rem; font-weight: 700; color: var(--pharm-blue); }
.pharm-product-original { font-size: 0.85rem; color: #9ca3af; text-decoration: line-through; }


/* ── 7. CATEGORIES SECTION — tab buttons ────────────────────── */
.pharm-tab-btn {
    background-color: var(--pharm-white);
    color: var(--pharm-blue);
    border: 2px solid transparent;
    padding: 0.65rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-tab-btn:hover { background-color: #f0f0f0; }
.pharm-tab-btn--active {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    box-shadow: 0 4px 12px rgba(100, 173, 4, 0.35);
}


/* ── 8. CONTENT / ABOUT SECTION ─────────────────────────────── */

/* Green tint circle for checklist icons */
.pharm-check-icon-wrap {
    background-color: var(--pharm-green-tint);
    color: var(--pharm-green);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.pharm-content-point-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.25rem;
}


/* ── 9. HOW IT WORKS SECTION ────────────────────────────────── */
.pharm-step-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    height: 100%;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-step-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pharm-step-icon-wrap  { width: 70px; height: 70px; position: relative; }

.pharm-step-icon-circle {
    width: 70px; height: 70px;
    background-color: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Step number badge on icon */
.pharm-step-badge {
    position: absolute;
    top: -4px; right: -4px;
    background-color: var(--pharm-blue);
    color: var(--pharm-white);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.pharm-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
}

/* Horizontal connector between steps on desktop */
.pharm-step-connector {
    position: absolute;
    top: 50%;
    left: calc(100% - 0.8rem);
    width: calc(100% - 1rem);
    height: 2px;
    background: linear-gradient(to right, var(--pharm-green), transparent);
    z-index: 0;
}


/* ── 10. WHY CHOOSE US SECTION ──────────────────────────────── */
.pharm-why-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-why-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pharm-why-icon-wrap {
    background-color: var(--pharm-green-tint);
    color: var(--pharm-green);
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pharm-why-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.35rem;
}


/* ── 11. TESTIMONIALS SECTION ───────────────────────────────── */
.pharm-testimonial-card {
    background: #f8f9fa;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-testimonial-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pharm-quote-icon       { color: var(--pharm-green); font-size: 1.5rem; flex-shrink: 0; }
.pharm-stars            { color: var(--pharm-green); display: flex; gap: 2px; font-size: 0.85rem; }
.pharm-testimonial-text { color: #374151; line-height: 1.7; font-size: 0.97rem; flex: 1; margin-bottom: 1rem; }
.pharm-testimonial-name { font-weight: 600; color: var(--pharm-blue); margin-bottom: 0.1rem; }


/* ── 12. FOOTER ─────────────────────────────────────────────── */
.pharm-footer { background-color: var(--pharm-blue); color: var(--pharm-white); }

.pharm-footer-logo     { height: 48px; width: auto; display: block; filter: brightness(0) invert(1); }
.pharm-footer-heading  { font-size: 1rem; font-weight: 600; color: var(--pharm-white); margin-bottom: 1rem; }
.pharm-footer-muted    { color: var(--pharm-text-muted); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.pharm-footer-small    { color: var(--pharm-text-faint); font-size: 0.8rem; }

.pharm-footer-list     { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.pharm-footer-link     { color: var(--pharm-text-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--pharm-transition); }
.pharm-footer-link:hover { color: var(--pharm-green); }

.pharm-footer-contact  { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.pharm-contact-icon    { color: var(--pharm-green); font-size: 0.95rem; flex-shrink: 0; }

.pharm-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: var(--pharm-social-bg);
    color: var(--pharm-white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color var(--pharm-transition);
}
.pharm-social-btn:hover { background-color: var(--pharm-green); color: var(--pharm-white); }

.pharm-footer-bottom        { border-top: 1px solid var(--pharm-border-dark); }
.pharm-footer-bottom-link   { color: var(--pharm-text-faint); font-size: 0.85rem; text-decoration: none; transition: color var(--pharm-transition); }
.pharm-footer-bottom-link:hover { color: var(--pharm-green); }


/* ── FOCUS RINGS (accessibility) ────────────────────────────── */
.pharm-nav-link:focus-visible,
.pharm-mobile-link:focus-visible,
.pharm-icon-btn:focus-visible,
.pharm-btn-login:focus-visible,
.pharm-btn-primary:focus-visible,
.pharm-btn-blue:focus-visible,
.pharm-btn-white:focus-visible,
.pharm-btn-cart:focus-visible,
.pharm-tab-btn:focus-visible,
.pharm-social-btn:focus-visible {
    outline: 2px solid var(--pharm-green);
    outline-offset: 2px;
}

/* =============================================================
   APPEND TO BOTTOM OF pharmacy.css
   About Us page — new classes only.
   All colours, buttons, cards, section headings, testimonials,
   why-cards, stat numbers etc. are reused from existing rules.
   ============================================================= */


/* ── 13. PAGE BANNER (breadcrumb header — shared across inner pages) ── */

/* Shorter version of the hero, reuses pharm-hero-bg + overlay */
.pharm-page-banner {
    background-color: var(--pharm-blue);  /* fallback if image fails */
    padding: 0;
}

.pharm-page-banner-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Breadcrumb list — custom, no Bootstrap breadcrumb override needed */
.pharm-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.pharm-breadcrumb-item { display: flex; align-items: center; gap: 0.35rem; }

/* Chevron separator — added via CSS so no extra markup needed */
.pharm-breadcrumb-item + .pharm-breadcrumb-item::before {
    content: "\f054";            /* fa-chevron-right unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: var(--pharm-text-muted);
}

.pharm-breadcrumb-link {
    color: var(--pharm-text-muted);
    text-decoration: none;
    transition: color var(--pharm-transition);
}
.pharm-breadcrumb-link:hover { color: var(--pharm-white); }

.pharm-breadcrumb-item--active { color: var(--pharm-white); font-weight: 500; }


/* ── 14. HERO BADGE LIGHT MODIFIER (green-on-white for light sections) ── */
/* Base .pharm-hero-badge already exists (white text on green bg, for dark hero).
   This modifier flips it for use on white backgrounds. */
.pharm-hero-badge--light {
    background-color: var(--pharm-green-tint);
    color: var(--pharm-green);
}


/* ── 15. OUR STORY — image wrapper + floating stat badge ──── */
.pharm-about-img-wrap {
    position: relative;
    display: inline-block;   /* shrink-wrap so badge stays flush */
    width: 100%;
}

/* Floating card pinned to bottom-right of the image */
.pharm-about-float-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    text-align: center;
    min-width: 110px;
}

/* Re-uses pharm-stat-number for the big green number */
.pharm-about-float-label {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.1rem;
    white-space: nowrap;
}


/* ── 16. STATS BANNER ──────────────────────────────────────── */
/* Full-width blue band — same bg as footer/hero */
.pharm-stats-banner {
    background-color: var(--pharm-blue);
    padding: 3.5rem 0;
}

.pharm-stats-item {
    padding: 1rem;
}

/* Icon circle above the number */
.pharm-stats-icon {
    width: 52px; height: 52px;
    background-color: var(--pharm-social-bg);   /* reuse rgba white tint from footer */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--pharm-white);
}

/* pharm-stat-number & pharm-stat-label already defined — no repeat */


/* ── 17. TEAM CARDS ─────────────────────────────────────────── */
.pharm-team-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-team-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* Square portrait image */
.pharm-team-img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}
.pharm-team-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}
.pharm-team-card:hover .pharm-team-img { transform: scale(1.05); }

.pharm-team-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.25rem;
}
.pharm-team-role {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Small social icon buttons on team card
   Shares radius/size concept with pharm-social-btn but on white bg */
.pharm-team-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background-color: var(--pharm-green-tint);
    color: var(--pharm-green);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color var(--pharm-transition), color var(--pharm-transition);
}
.pharm-team-social:hover {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
}


/* ── 18. TIMELINE ───────────────────────────────────────────── */
.pharm-timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

/* Vertical centre line */
.pharm-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, var(--pharm-green), var(--pharm-blue));
}

.pharm-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    /* Default: year left, card right */
    flex-direction: row;
}
.pharm-timeline-item--right {
    flex-direction: row-reverse;   /* year right, card left */
}

/* Year bubble on the centre line */
.pharm-timeline-year {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: 50%;
    background-color: var(--pharm-blue);
    color: var(--pharm-white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--pharm-white), 0 0 0 6px var(--pharm-green);
    /* self-centre vertically */
    margin-top: 0.25rem;
}

/* Content card — shares border/radius style with pharm-why-card */
.pharm-timeline-card {
    flex: 1;
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}
.pharm-timeline-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pharm-timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.35rem;
}

/* Collapse to single column on mobile */
@media (max-width: 575.98px) {
    .pharm-timeline::before { left: 28px; }

    .pharm-timeline-item,
    .pharm-timeline-item--right {
        flex-direction: row;    /* always left-to-right on mobile */
        gap: 1rem;
    }

    .pharm-timeline-year {
        width: 56px; height: 56px;
        font-size: 0.72rem;
    }
}


/* ── 19. CTA BANNER ─────────────────────────────────────────── */
.pharm-cta-banner {
    background-color: var(--pharm-blue);
    padding: 4rem 0;
}

.pharm-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
}
.pharm-cta-sub {
    font-size: 1.05rem;
    color: var(--pharm-text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* pharm-btn-white and pharm-btn-primary already defined — no repeat */


/* ── FOCUS RINGS — add new interactive classes ───────────────── */
.pharm-breadcrumb-link:focus-visible,
.pharm-team-social:focus-visible {
    outline: 2px solid var(--pharm-green);
    outline-offset: 2px;
}

/* ── OUR STORY: element-scoped styles ─────────────────────── */
 
/* Section wrapper — scopes all element rules below */
.pharm-about-copy {
    /* No visual style needed here — just the scope anchor */
}
 
/* Main heading */
.pharm-about-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--pharm-blue);
    line-height: 1.25;
    margin-bottom: 1rem;
}
 
/* Lead / intro paragraph */
.pharm-about-copy p.lead {
    font-size: 1.05rem;
    color: var(--pharm-blue);
    opacity: 0.85;
    margin-bottom: 1rem;
}
 
/* Body paragraphs */
.pharm-about-copy p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1rem;
}
 
/* Points list — replaces the old d-flex loop */
.pharm-about-copy ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
 
.pharm-about-copy li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 2rem;
    position: relative;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.55;
}
 
/* Green check icon via ::before — mirrors pharm-check-icon-wrap */
.pharm-about-copy li::before {
    content: "\f058";                  /* fa-circle-check unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--pharm-green);
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0.05rem;
}
 
/* Point title — the <strong> inside each <li> */
.pharm-about-copy li strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.1rem;
}
 
/* =============================================================
   APPEND TO BOTTOM OF pharmacy.css
   Section 20 — Contact Us page
   Everything else (buttons, cards, breadcrumb, section headings,
   why-cards, step-cards, icons) reused from existing sections.
   ============================================================= */


/* ── 20. CONTACT PAGE ──────────────────────────────────────── */

/* Small uppercase label above each info item's text
   (sits inside .pharm-why-card, above the value line)          */
.pharm-contact-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pharm-green);
    margin-bottom: 0.25rem;
}

/* White card that wraps the form — same border/radius language
   as pharm-product-card / pharm-why-card but no hover effect   */
.pharm-contact-form-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem 2.25rem;
}

/* Form section heading */
.pharm-contact-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.35rem;
}

/* Unified form label */
.pharm-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pharm-blue);
    margin-bottom: 0.4rem;
}

/* Unified form control — input, textarea, select */
.pharm-form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    background-color: var(--pharm-white);
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
    outline: none;
    appearance: none;          /* normalise <select> across browsers */
}
.pharm-form-control::placeholder { color: #adb5bd; }

.pharm-form-control:focus {
    border-color: var(--pharm-green);
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.15);
}

/* Error state */
.pharm-form-control--error { border-color: #dc3545; }
.pharm-form-control--error:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15); }

.pharm-form-error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #dc3545;
}

/* Responsive: stack form card padding on mobile */
@media (max-width: 575.98px) {
    .pharm-contact-form-card { padding: 1.25rem 1rem; }
}

/* Focus ring for submit button (reuses existing pattern) */
.pharm-contact-form-card .pharm-btn-primary:focus-visible {
    outline: 2px solid var(--pharm-green);
    outline-offset: 2px;
}

/* Reviews page */
/* Review Card */
.reviews {
    background: var(--pharm-white);
    border-radius: 10px;
    transition: var(--pharm-transition);
}

.reviews:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Star Colors */
.pharm-star {
    color: var(--pharm-green);
    font-size: 14px;
}

.reviews i.fa-star.text-muted {
    font-size: 14px;
    opacity: 0.5;
}

/* Review Text */
.reviews p {
    margin-bottom: 4px;
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

/* Reviewer Name */
.reviews p b {
    color: var(--pharm-blue);
    font-weight: 600;
}

/* Date */
.reviews .fa-calendar-alt {
    color: var(--pharm-green);
    margin-right: 4px;
}

/* =============================================================
   BLOG PAGES — Listing & Single Post
   Reuses existing tokens, cards, and button styles
   ============================================================= */

/* ----- Blog Listing Card (reuses pharm-product-card structure) ----- */
.blog-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* Image container — 16:9 aspect ratio */
.blog-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8f8f8;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

/* Blog content area */
.blog-content {
    padding: 1.5rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta info — date and read time */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.blog-meta i {
    color: var(--pharm-green);
    margin-right: 0.35rem;
    font-size: 0.75rem;
}

/* Blog title */
.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.65rem;
    line-height: 1.4;
    /* 2-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: var(--pharm-blue);
    text-decoration: none;
    transition: color var(--pharm-transition);
}

.blog-title a:hover {
    color: var(--pharm-green);
}

/* Blog excerpt */
.blog-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    /* 3-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more link — reuses pharm-link-green */
.blog-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap var(--pharm-transition), color var(--pharm-transition);
}

.blog-read-more i {
    font-size: 0.7rem;
    transition: transform var(--pharm-transition);
}

.blog-read-more:hover {
    color: var(--pharm-green-dark);
    gap: 0.65rem;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* ----- Pagination (reuses existing pharm-btn styles) ----- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.blog-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.25rem;
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    color: var(--pharm-blue);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--pharm-transition);
}

.blog-pagination .page-link:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.blog-pagination .page-link.active {
    background: var(--pharm-green);
    border-color: var(--pharm-green);
    color: var(--pharm-white);
}

.blog-pagination .page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ----- Single Blog Post ----- */
.single-blog-content {
    background: var(--pharm-white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
}

/* Featured image */
.single-blog-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16 / 7;
}

.single-blog-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post header */
.single-blog-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f0f0f0;
}

.single-blog-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.single-blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

.single-blog-meta i {
    color: var(--pharm-green);
    margin-right: 0.4rem;
}

/* Post body typography */
.single-blog-body {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.single-blog-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin: 2rem 0 1rem;
}

.single-blog-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin: 1.75rem 0 0.75rem;
}

.single-blog-body p {
    margin-bottom: 1.25rem;
}

.single-blog-body ul,
.single-blog-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.single-blog-body li {
    margin-bottom: 0.5rem;
}

.single-blog-body li::marker {
    color: var(--pharm-green);
}

.single-blog-body blockquote {
    background: var(--pharm-green-tint);
    border-left: 4px solid var(--pharm-green);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--pharm-blue);
}

.single-blog-body a {
    color: var(--pharm-green);
    text-decoration: none;
    border-bottom: 1px dotted var(--pharm-green);
}

.single-blog-body a:hover {
    color: var(--pharm-green-dark);
    border-bottom-style: solid;
}

/* ----- Sidebar (reuses existing card styles) ----- */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--pharm-green-tint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-heading i {
    color: var(--pharm-green);
    font-size: 1rem;
}

/* Recent posts list */
.recent-post-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.recent-post-title a {
    color: var(--pharm-blue);
    text-decoration: none;
    transition: color var(--pharm-transition);
}

.recent-post-title a:hover {
    color: var(--pharm-green);
}

.recent-post-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.recent-post-date i {
    color: var(--pharm-green);
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

/* Categories list */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.65rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color var(--pharm-transition), padding-left var(--pharm-transition);
}

.category-list a:hover {
    color: var(--pharm-green);
    padding-left: 0.35rem;
}

.category-list i {
    color: var(--pharm-green);
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.category-count {
    background: #f0f0f0;
    color: #6c757d;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tags cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #f8f9fa;
    color: #4b5563;
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all var(--pharm-transition);
}

.tag-item:hover {
    background: var(--pharm-green);
    border-color: var(--pharm-green);
    color: var(--pharm-white);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .blog-content {
        padding: 1.25rem 1rem;
    }
    
    .single-blog-content {
        padding: 1.25rem;
    }
    
    .single-blog-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .blog-sidebar {
        margin-top: 2rem;
        position: static;
    }
}

/* =============================================================
   CATEGORY PAGES — Main Category & Subcategory Listing
   Reuses existing card styles and tokens
   ============================================================= */

/* ----- Subcategory Card (reuses pharm-product-card structure) ----- */
.subcategory-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    height: 100%;
    text-align: center;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition), transform var(--pharm-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.subcategory-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Icon circle for subcategory */
.subcategory-icon {
    width: 64px;
    height: 64px;
    background-color: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: background-color var(--pharm-transition), color var(--pharm-transition);
}

.subcategory-card:hover .subcategory-icon {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
}

/* Subcategory name */
.subcategory-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.35rem;
    transition: color var(--pharm-transition);
}

.subcategory-card:hover .subcategory-name {
    color: var(--pharm-green-dark);
}

/* Subcategory count badge */
.subcategory-count {
    font-size: 0.8rem;
    color: #9ca3af;
    background: #f8f9fa;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* ----- Category SEO Content Wrapper ----- */
.category-seo-content {
    background: var(--pharm-white);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #f0f0f0;
}

.category-seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1rem;
}

.category-seo-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin: 1.5rem 0 0.75rem;
}

.category-seo-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.category-seo-content ul,
.category-seo-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #4b5563;
}

.category-seo-content li {
    margin-bottom: 0.4rem;
}

.category-seo-content li::marker {
    color: var(--pharm-green);
}

/* ----- Section Header (for category page) ----- */
.category-section-header {
    margin-bottom: 2rem;
}

.category-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
}

.category-section-sub {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Empty state */
.category-empty-state {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.category-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.category-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
}

.category-empty-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .subcategory-card {
        padding: 1.5rem 1rem;
    }
    
    .subcategory-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .subcategory-name {
        font-size: 1rem;
    }
    
    .category-seo-content {
        padding: 1.25rem 1.25rem;
    }
}

/* =============================================================
   PRODUCT CATEGORY PAGE — Subcategory Product Listing
   ============================================================= */

/* ----- Product Grid Wrapper ----- */
.product-grid-wrapper {
    margin-top: 1rem;
}

/* ----- Category Header with Count ----- */
.product-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.product-count-info {
    color: #6c757d;
    font-size: 0.95rem;
}

.product-count-info strong {
    color: var(--pharm-blue);
    font-weight: 600;
}

/* ----- Category SEO Content (same as main category) ----- */
.product-category-seo {
    background: var(--pharm-white);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #f0f0f0;
    position: relative;
}

.product-category-seo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1rem;
}

.product-category-seo h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin: 1.5rem 0 0.75rem;
}

.product-category-seo p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-category-seo ul,
.product-category-seo ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #4b5563;
}

.product-category-seo li {
    margin-bottom: 0.4rem;
}

.product-category-seo li::marker {
    color: var(--pharm-green);
}

.product-category-seo strong {
    color: var(--pharm-blue);
    font-weight: 600;
}

/* Collapsed state for SEO content */
.product-category-seo.collapsed .seo-full-content {
    display: none;
}

.product-category-seo.collapsed .seo-preview {
    display: block;
}

.product-category-seo.expanded .seo-preview {
    display: none;
}

.product-category-seo.expanded .seo-full-content {
    display: block;
}

.seo-preview p {
    margin-bottom: 0.5rem;
}

/* Read More / Read Less toggle */
.seo-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pharm-green);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.75rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color var(--pharm-transition);
}

.seo-toggle-btn:hover {
    color: var(--pharm-green-dark);
}

.seo-toggle-btn i {
    font-size: 0.75rem;
    transition: transform var(--pharm-transition);
}

/* Fade effect at bottom when collapsed */
.seo-preview {
    position: relative;
}

.seo-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--pharm-white));
    pointer-events: none;
}

/* ----- Pagination Styling ----- */
.category-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.category-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    color: var(--pharm-blue);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--pharm-transition);
}

.category-pagination .page-link:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.category-pagination .page-link.active {
    background: var(--pharm-green);
    border-color: var(--pharm-green);
    color: var(--pharm-white);
}

.category-pagination .page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.category-pagination .pagination-prev,
.category-pagination .pagination-next {
    padding: 0 1.25rem;
}

.page-info-text {
    text-align: center;
    margin-top: 1rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ----- Empty Product State ----- */
.product-empty-state {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
}

.product-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.product-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
}

.product-empty-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Outline blue button */
.pharm-btn-outline-blue {
    background: transparent;
    border: 2px solid var(--pharm-blue);
    color: var(--pharm-blue);
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: all var(--pharm-transition);
}

.pharm-btn-outline-blue:hover {
    background: var(--pharm-blue);
    color: var(--pharm-white);
    transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .product-category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-category-seo {
        padding: 1.25rem 1rem;
    }
    
    .category-pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .category-pagination .pagination-prev,
    .category-pagination .pagination-next {
        padding: 0 0.75rem;
    }
}

/* =============================================================
   CATEGORY SEO CONTENT — Read More Toggle (shared)
   ============================================================= */

/* Collapsed/Expanded states for SEO content */
.category-seo-content.collapsed .seo-full-content {
    display: none;
}

.category-seo-content.collapsed .seo-preview {
    display: block;
}

.category-seo-content.expanded .seo-preview {
    display: none;
}

.category-seo-content.expanded .seo-full-content {
    display: block;
}

.seo-preview p {
    margin-bottom: 0.5rem;
}

.seo-preview {
    position: relative;
}

/* Fade effect at bottom when collapsed */
.seo-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--pharm-white));
    pointer-events: none;
}

/* Read More / Read Less toggle button */
.seo-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pharm-green);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.75rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color var(--pharm-transition);
}

.seo-toggle-btn:hover {
    color: var(--pharm-green-dark);
}

.seo-toggle-btn i {
    font-size: 0.75rem;
    transition: transform var(--pharm-transition);
}

/* =============================================================
   SINGLE PRODUCT PAGE
   Reuses existing tokens, buttons, and card styles
   ============================================================= */

/* ----- Product Image Gallery ----- */
.product-main-image {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    padding: 1.5rem;
    transition: border-color var(--pharm-transition);
}

.product-main-image:hover {
    border-color: var(--pharm-green);
}

.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* aspect-ratio: 1 / 1; */
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

/* ----- Product Info Section ----- */
.product-info-wrapper {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.product-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-short-desc {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}

/* Benefits section */
.product-benefits {
    background: var(--pharm-green-tint);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    border-left: 4px solid var(--pharm-green);
}

.product-benefits h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-benefits h5 i {
    color: var(--pharm-green);
}

.product-benefits ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.product-benefits li {
    margin-bottom: 0.35rem;
}

.product-benefits li::marker {
    color: var(--pharm-green);
}

/* Rating display */
.product-rating-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f6;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 140px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: var(--pharm-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pharm-blue);
    cursor: pointer;
    transition: all var(--pharm-transition);
}

.quantity-btn:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
}

.quantity-input-field {
    width: 50px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--pharm-blue);
    background: var(--pharm-white);
}

.quantity-input-field:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.15);
}

/* Add to cart button large */
.pharm-btn-cart-large {
    background-color: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--pharm-transition);
    width: 100%;
}

.pharm-btn-cart-large:hover {
    background-color: var(--pharm-green-dark);
    color: var(--pharm-white);
    box-shadow: 0 4px 12px rgba(100, 173, 4, 0.35);
    transform: translateY(-1px);
}

/* ----- Product Tabs ----- */
.product-tabs-wrapper {
    margin-top: 2.5rem;
}

.product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.product-tab-btn {
    background: transparent;
    border: none;
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all var(--pharm-transition);
    position: relative;
}

.product-tab-btn:hover {
    color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.product-tab-btn.active {
    color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.product-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pharm-green);
}

/* Tab content */
.product-tab-content {
    background: var(--pharm-white);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid #f0f0f0;
}

.product-tab-pane {
    display: none;
}

.product-tab-pane.active {
    display: block;
}

/* Tab content typography */
.product-tab-pane h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1.25rem;
}

.product-tab-pane h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin: 1.5rem 0 0.75rem;
}

.product-tab-pane p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.product-tab-pane ul,
.product-tab-pane ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: #4b5563;
}

.product-tab-pane li {
    margin-bottom: 0.5rem;
}

.product-tab-pane li::marker {
    color: var(--pharm-green);
}

.product-tab-pane strong {
    color: var(--pharm-blue);
    font-weight: 600;
}

/* Reviews list */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f6;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    color: var(--pharm-blue);
}

.review-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.review-rating {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.review-text {
    color: #4b5563;
    line-height: 1.6;
}

/* Review form */
.review-form-wrapper {
    max-width: 600px;
}

.review-form-group {
    margin-bottom: 1.25rem;
}

.review-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.4rem;
}

.review-form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.review-form-control:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.15);
}

.review-form-control::placeholder {
    color: #adb5bd;
}

/* Star rating selector */
.rating-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-star {
    font-size: 1.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color var(--pharm-transition);
}

.rating-star:hover,
.rating-star.selected {
    color: #ffc107;
}

.rating-text {
    margin-left: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Submit review button */
.pharm-btn-submit {
    background-color: var(--pharm-blue);
    color: var(--pharm-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pharm-transition);
}

.pharm-btn-submit:hover {
    background-color: var(--pharm-blue-dark);
    transform: translateY(-1px);
}

/* FAQ accordion style */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--pharm-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question i {
    color: var(--pharm-green);
    transition: transform var(--pharm-transition);
}

.faq-answer {
    padding: 1rem 1.25rem;
    color: #4b5563;
    line-height: 1.7;
    border-top: 1px solid #eef2f6;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .product-info-wrapper {
        padding: 1.5rem;
    }
    
    .product-main-image {
        padding: 1rem;
    }
    
    .product-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .product-tab-btn {
        padding: 0.7rem 1.25rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .product-tab-content {
        padding: 1.25rem;
    }
    
    .quantity-selector {
        max-width: 120px;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
    }
    
    .quantity-input-field {
        width: 45px;
        height: 36px;
    }
}

/* =============================================================
   CART PAGE
   Reuses existing tokens, buttons, and card styles
   ============================================================= */

/* ----- Cart Container ----- */
.cart-container {
    background: var(--pharm-white);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

/* ----- Cart Table (Desktop) ----- */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #eef2f6;
}

.cart-table th {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pharm-blue);
    text-align: left;
    white-space: nowrap;
}

.cart-table th:last-child {
    text-align: center;
}

.cart-table td {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

/* Product cell */
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-product-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-name {
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cart-product-sku {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Price cells */
.cart-price {
    font-weight: 600;
    color: var(--pharm-blue);
    font-size: 1rem;
}

.cart-total-price {
    font-weight: 700;
    color: var(--pharm-green);
    font-size: 1.1rem;
}

/* Quantity selector in cart */
.cart-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 120px;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    background: var(--pharm-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--pharm-blue);
    cursor: pointer;
    transition: all var(--pharm-transition);
}

.cart-qty-btn:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
}

.cart-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-qty-input {
    width: 40px;
    height: 32px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: var(--pharm-blue);
    background: var(--pharm-white);
    font-size: 0.9rem;
}

/* Remove button */
.cart-remove-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #fee2e2;
    background: #fef2f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    transition: all var(--pharm-transition);
    margin: 0 auto;
}

.cart-remove-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: var(--pharm-white);
}

/* ----- Mobile Cart Cards ----- */
.cart-mobile {
    display: none;
}

.cart-mobile-item {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cart-mobile-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-mobile-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-mobile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-mobile-info {
    flex: 1;
}

.cart-mobile-name {
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    padding-right: 2rem;
    position: relative;
}

.cart-mobile-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #fee2e2;
    background: #fef2f2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-mobile-price {
    font-weight: 600;
    color: var(--pharm-green);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-mobile-sku {
    font-size: 0.7rem;
    color: #9ca3af;
}

.cart-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f6;
}

.cart-mobile-total {
    font-weight: 700;
    color: var(--pharm-blue);
}

.cart-mobile-total span {
    color: var(--pharm-green);
    margin-left: 0.5rem;
}

/* ----- Cart Summary Footer ----- */
.cart-summary {
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
    padding: 1.5rem 2rem;
    border-top: 2px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.cart-total-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharm-blue);
}

.cart-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pharm-green);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-continue-shopping {
    color: var(--pharm-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--pharm-transition);
}

.cart-continue-shopping:hover {
    color: var(--pharm-green);
}

/* ----- Empty Cart State ----- */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-icon {
    width: 100px;
    height: 100px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.cart-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.75rem;
}

.cart-empty-text {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .cart-table-wrapper {
        display: none;
    }
    
    .cart-mobile {
        display: block;
    }
    
    .cart-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .cart-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cart-actions .pharm-btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .cart-continue-shopping {
        justify-content: center;
        padding: 0.5rem;
    }
}

/* =============================================================
   MY ACCOUNT PAGE - COMPLETE
   Reuses existing tokens, buttons, and card styles
   ============================================================= */

/* ----- Account Container ----- */
.account-container {
    background: var(--pharm-white);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ----- Account Header with Logout (Always Visible) ----- */
.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-bottom: 2px solid #eef2f6;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-welcome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-welcome-icon {
    width: 48px;
    height: 48px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.account-welcome-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.15rem;
}

.account-welcome-text p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

.account-logout-btn {
    background: #fef2f2;
    border: 2px solid #fee2e2;
    color: #dc2626;
    padding: 0.65rem 1.5rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--pharm-transition);
    text-decoration: none;
    white-space: nowrap;
}

.account-logout-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.account-logout-btn i {
    font-size: 0.9rem;
}

/* ----- Account Tabs Navigation ----- */
.account-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--pharm-white);
    border-bottom: 1px solid #eef2f6;
}

.account-tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--pharm-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.account-tab-btn i {
    font-size: 0.95rem;
    color: #9ca3af;
    transition: color var(--pharm-transition);
}

.account-tab-btn:hover {
    color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.account-tab-btn:hover i {
    color: var(--pharm-green);
}

.account-tab-btn.active {
    color: var(--pharm-green);
    background: var(--pharm-green-tint);
    font-weight: 600;
}

.account-tab-btn.active i {
    color: var(--pharm-green);
}

.account-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pharm-green);
    border-radius: 3px 3px 0 0;
}

/* Order count badge on Orders tab */
.tab-badge {
    background: var(--pharm-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

/* ----- Account Tab Content ----- */
.account-tab-content {
    padding: 2rem;
    background: var(--pharm-white);
}

.account-tab-pane {
    display: none;
}

.account-tab-pane.active {
    display: block;
}

/* ----- Section Header ----- */
.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharm-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-section-title i {
    color: var(--pharm-green);
}

/* ----- Account Form Styling ----- */
.account-form-group {
    margin-bottom: 1.5rem;
}

.account-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
}

.account-form-label sup {
    color: #dc2626;
    font-size: 0.75rem;
}

.account-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    background: var(--pharm-white);
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.account-form-control:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.12);
}

.account-form-control:read-only {
    background: #f8fafc;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.account-form-control::placeholder {
    color: #adb5bd;
}

.account-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    background: var(--pharm-white);
    cursor: pointer;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.account-form-select:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.12);
}

/* Form error text */
.account-form-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #dc2626;
}

/* ----- Orders Table ----- */
.orders-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: #f8fafc;
}

.orders-table th {
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pharm-blue);
    text-align: left;
    border-bottom: 2px solid #eef2f6;
    white-space: nowrap;
}

.orders-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    color: #4b5563;
    vertical-align: middle;
    background: var(--pharm-white);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-table tbody tr:hover td {
    background: #fafbfc;
}

.order-status {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status.completed,
.order-status.delivered {
    background: var(--pharm-green-tint);
    color: var(--pharm-green-dark);
}

.order-status.pending {
    background: #fef3c7;
    color: #b45309;
}

.order-status.processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.order-view-link {
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--pharm-transition);
    white-space: nowrap;
}

.order-view-link:hover {
    color: var(--pharm-green-dark);
}

/* ----- Address Cards ----- */
.address-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.address-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pharm-green-tint);
}

.address-card-icon {
    width: 44px;
    height: 44px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.address-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pharm-blue);
}

.address-name {
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.address-line {
    color: #4b5563;
    line-height: 1.65;
    font-size: 0.9rem;
}

.address-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f6;
}

.address-contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.address-contact-item i {
    color: var(--pharm-green);
    width: 16px;
    font-size: 0.8rem;
}

.address-edit-btn {
    background: transparent;
    border: 2px solid var(--pharm-green-tint);
    color: var(--pharm-green);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pharm-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
}

.address-edit-btn:hover {
    background: var(--pharm-green);
    border-color: var(--pharm-green);
    color: var(--pharm-white);
}

/* ----- Popup Modal ----- */
.address-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.address-popup-overlay.active {
    display: flex;
}

.address-popup {
    background: var(--pharm-white);
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.address-popup-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--pharm-white);
    z-index: 1;
}

.address-popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pharm-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-popup-title i {
    color: var(--pharm-green);
}

.address-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pharm-transition);
}

.address-popup-close:hover {
    background: #ef4444;
    color: white;
}

.address-popup-body {
    padding: 1.5rem;
}

.address-popup-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: var(--pharm-white);
}

/* ----- Alerts ----- */
.account-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-alert-success {
    background: var(--pharm-green-tint);
    color: var(--pharm-green-dark);
    border: 1px solid rgba(100, 173, 4, 0.2);
}

.account-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.account-alert i {
    font-size: 1.1rem;
}

/* ----- Buttons ----- */
.account-submit-btn {
    background: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pharm-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.account-submit-btn:hover {
    background: var(--pharm-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 173, 4, 0.3);
}

.account-cancel-btn {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6c757d;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pharm-transition);
}

.account-cancel-btn:hover {
    background: #f8fafc;
    border-color: #9ca3af;
}

/* ----- Empty State ----- */
.account-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.account-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.account-empty-text {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ----- Mobile Optimizations ----- */
@media (max-width: 767.98px) {
    .account-header {
        padding: 1rem 1.25rem;
    }
    
    .account-welcome-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .account-welcome-text h2 {
        font-size: 1.1rem;
    }
    
    .account-logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .account-tabs-nav {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .account-tab-btn {
        padding: 0.6rem 1rem;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.85rem;
    }
    
    .account-tab-btn.active::after {
        bottom: -0.5rem;
    }
    
    .account-tab-content {
        padding: 1.25rem;
    }
    
    .address-card {
        margin-bottom: 1rem;
    }
    
    .address-popup {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 85vh;
    }
    
    .address-popup-body {
        padding: 1rem;
    }
    
    .address-popup-footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .address-popup-footer .account-submit-btn,
    .address-popup-footer .account-cancel-btn {
        width: 100%;
        justify-content: center;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem 1rem;
    }
}

/* =============================================================
   CHECKOUT PAGE
   Reuses existing tokens, buttons, and card styles
   ============================================================= */

/* ----- Checkout Container ----- */
.checkout-container {
    background: var(--pharm-white);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

/* ----- Checkout Section Header ----- */
.checkout-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharm-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-section-title i {
    color: var(--pharm-green);
}

/* ----- Address Card (Read-only view) ----- */
.checkout-address-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.checkout-address-card:hover {
    border-color: var(--pharm-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.checkout-address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f6;
}

.checkout-address-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--pharm-blue);
}

.checkout-address-label i {
    color: var(--pharm-green);
}

.checkout-address-edit {
    background: transparent;
    border: none;
    color: var(--pharm-green);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: all var(--pharm-transition);
}

.checkout-address-edit:hover {
    background: var(--pharm-green-tint);
}

.checkout-address-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

.checkout-address-name {
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.25rem;
}

/* ----- Different Address Checkbox ----- */
.checkout-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.checkout-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pharm-green);
    cursor: pointer;
}

.checkout-checkbox-wrapper label {
    color: var(--pharm-blue);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

/* ----- Order Summary Card ----- */
.order-summary-card {
    background: var(--pharm-white);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.75rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary-title i {
    color: var(--pharm-green);
}

/* Order Items List */
.order-items-list {
    margin-bottom: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    color: var(--pharm-blue);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.order-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.order-item-price {
    font-weight: 600;
    color: var(--pharm-green);
}

/* Order Totals */
.order-totals {
    border-top: 2px solid #eef2f6;
    padding-top: 1.25rem;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.order-total-row.shipping-row {
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e5e7eb;
}

.order-total-row.grand-total {
    margin-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pharm-blue);
}

.order-total-row.grand-total .total-value {
    color: var(--pharm-green);
    font-size: 1.3rem;
}

/* Shipping Options in Summary */
.shipping-options-list {
    margin: 1rem 0;
}

.shipping-option-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    cursor: pointer;
    transition: all var(--pharm-transition);
}

.shipping-option-item:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-white);
}

.shipping-option-item.selected {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.shipping-option-item input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--pharm-green);
    cursor: pointer;
}

.shipping-option-content {
    flex: 1;
}

.shipping-option-name {
    font-weight: 600;
    color: var(--pharm-blue);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.shipping-option-zone {
    font-size: 0.8rem;
    color: #6c757d;
}

.shipping-option-price {
    font-weight: 700;
    color: var(--pharm-green);
    font-size: 0.95rem;
}

/* ----- Payment Methods ----- */
.payment-methods-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px solid #eef2f6;
}

.payment-methods-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1rem;
}

.payment-method-item {
    margin-bottom: 0.75rem;
}

.payment-method-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    cursor: pointer;
    transition: all var(--pharm-transition);
}

.payment-method-radio:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-white);
}

.payment-method-radio.selected {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
}

.payment-method-radio input[type="radio"] {
    accent-color: var(--pharm-green);
    cursor: pointer;
}

.payment-method-radio label {
    color: var(--pharm-blue);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

.payment-method-details {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #eef2f6;
}

/* ----- Place Order Button ----- */
.checkout-place-order-btn {
    width: 100%;
    margin-top: 1.5rem;
    background: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--pharm-transition);
}

.checkout-place-order-btn:hover {
    background: var(--pharm-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 173, 4, 0.3);
}

/* ----- Checkout Form Styling ----- */
.checkout-form-group {
    margin-bottom: 1.25rem;
}

.checkout-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pharm-blue);
    margin-bottom: 0.4rem;
}

.checkout-form-label sup {
    color: #dc2626;
}

.checkout-form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    background: var(--pharm-white);
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.checkout-form-control:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.12);
}

.checkout-form-control:read-only {
    background: #f8fafc;
    color: #6c757d;
}

.checkout-form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    background: var(--pharm-white);
    cursor: pointer;
    transition: border-color var(--pharm-transition), box-shadow var(--pharm-transition);
}

.checkout-form-select:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.12);
}

.checkout-form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--pharm-blue);
    background: var(--pharm-white);
    resize: vertical;
    min-height: 80px;
}

.checkout-form-textarea:focus {
    border-color: var(--pharm-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 173, 4, 0.12);
}

/* ----- Address Edit Popup ----- */
.checkout-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.checkout-popup-overlay.active {
    display: flex;
}

.checkout-popup {
    background: var(--pharm-white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.checkout-popup-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--pharm-white);
    z-index: 1;
}

.checkout-popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pharm-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-popup-title i {
    color: var(--pharm-green);
}

.checkout-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8fafc;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pharm-transition);
}

.checkout-popup-close:hover {
    background: #ef4444;
    color: white;
}

.checkout-popup-body {
    padding: 1.5rem;
}

.checkout-popup-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: var(--pharm-white);
}

/* ----- Alerts ----- */
.checkout-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-alert-success {
    background: var(--pharm-green-tint);
    color: var(--pharm-green-dark);
    border: 1px solid rgba(100, 173, 4, 0.2);
}

.checkout-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

/* ----- Mobile Optimizations ----- */
@media (max-width: 767.98px) {
    .order-summary-card {
        position: static;
        margin-top: 2rem;
    }
    
    .checkout-address-card {
        padding: 1.25rem;
    }
    
    .checkout-popup {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 85vh;
    }
    
    .checkout-popup-body {
        padding: 1rem;
    }
    
    .checkout-popup-footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .checkout-popup-footer .account-submit-btn,
    .checkout-popup-footer .account-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================
   ORDER SUCCESS PAGE - MINIMAL
   ============================================================= */

.success-container {
    max-width: 650px;
    margin: 0 auto;
}

.success-card {
    background: var(--pharm-white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.success-icon {
    width: 90px;
    height: 90px;
    background: var(--pharm-green-tint);
    color: var(--pharm-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--pharm-green);
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.75rem;
}

.success-message {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eef2f6;
}

.success-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.success-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.success-detail-row:first-child {
    padding-top: 0;
}

.success-detail-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--pharm-blue);
    font-weight: 500;
    font-size: 0.95rem;
}

.success-detail-label i {
    color: var(--pharm-green);
    width: 18px;
}

.success-detail-value {
    font-weight: 600;
    color: #1a1a1a;
}

.success-detail-value.highlight {
    color: var(--pharm-green);
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.success-btn {
    background: var(--pharm-green);
    color: var(--pharm-white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--pharm-transition);
}

.success-btn:hover {
    background: var(--pharm-green-dark);
    color: var(--pharm-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 173, 4, 0.3);
}

.success-btn-outline {
    background: transparent;
    border: 2px solid var(--pharm-blue);
    color: var(--pharm-blue);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--pharm-transition);
}

.success-btn-outline:hover {
    background: var(--pharm-blue);
    color: var(--pharm-white);
}

.success-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.success-link:hover {
    color: var(--pharm-green-dark);
}

.success-link i {
    font-size: 0.75rem;
    margin-right: 0.35rem;
}

@media (max-width: 767.98px) {
    .success-card {
        padding: 1.75rem 1.25rem;
    }
    
    .success-icon {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .success-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .success-btn,
    .success-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================
   VIEW ORDER PAGE
   Reuses existing tokens and styles
   ============================================================= */

/* ----- Order Container ----- */
.order-view-container {
    background: var(--pharm-white);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ----- Order Header ----- */
.order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eef2f6;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 0.5rem;
}

.order-info p {
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.order-status-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    background: var(--pharm-green-tint);
    color: var(--pharm-green-dark);
}

.order-back-btn {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: var(--pharm-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--pharm-transition);
}

.order-back-btn:hover {
    border-color: var(--pharm-green);
    background: var(--pharm-green-tint);
    color: var(--pharm-green-dark);
}

/* ----- Order Contact Note ----- */
.order-contact-note {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    border-left: 4px solid var(--pharm-green);
}

.order-contact-note a {
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
}

.order-contact-note a:hover {
    color: var(--pharm-green-dark);
}

/* ----- Order Table ----- */
.order-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table thead {
    background: #f8fafc;
}

.order-table th {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pharm-blue);
    text-align: left;
    border-bottom: 2px solid #eef2f6;
    white-space: nowrap;
}

.order-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    color: #4b5563;
    vertical-align: middle;
}

.order-table tbody tr:last-child td {
    border-bottom: none;
}

.order-table tfoot tr:first-child td {
    padding-top: 1.25rem;
}

.order-table tfoot td {
    padding: 0.5rem 1.25rem;
    border: none;
}

.order-table .text-end {
    text-align: right;
}

.order-table .subtotal-row td {
    color: #6c757d;
    font-size: 0.95rem;
}

.order-table .shipping-row td {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-table .total-row td {
    font-weight: 700;
    color: var(--pharm-blue);
    font-size: 1.1rem;
    padding-top: 1rem;
}

.order-table .total-row td:last-child {
    color: var(--pharm-green);
}

/* ----- Address Cards ----- */
.order-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eef2f6;
}

.order-address-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #eef2f6;
}

.order-address-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-address-title i {
    color: var(--pharm-green);
}

.order-address-content p {
    margin-bottom: 0.25rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

.order-address-content .address-name {
    font-weight: 600;
    color: var(--pharm-blue);
    margin-bottom: 0.35rem;
}

/* ----- Mobile Adjustments ----- */
@media (max-width: 767.98px) {
    .order-view-container {
        padding: 1.25rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-address-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-table th,
    .order-table td {
        padding: 0.75rem 1rem;
    }
}

/* =============================================================
   HOMEPAGE CONTENT SECTION — Backend Content Styling
   Styles for {!! $page->content !!} output
   Uses existing font sizes from defined classes
   ============================================================= */

/* ----- Content Container ----- */
.pharm-home-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

/* Headings - matching existing .pharm-section-title style */
.pharm-home-content h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--pharm-blue);
    margin: 1.75rem 0 1rem;
    line-height: 1.25;
}

.pharm-home-content h1:first-child {
    margin-top: 0;
}

.pharm-home-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin: 1.5rem 0 0.75rem;
}

.pharm-home-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pharm-blue);
    margin: 1.25rem 0 0.5rem;
}

/* Paragraphs - matching body text */
.pharm-home-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pharm-home-content p:last-child {
    margin-bottom: 0;
}

.pharm-home-content strong {
    color: var(--pharm-blue);
    font-weight: 600;
}

/* Lists - matching body text */
.pharm-home-content ul,
.pharm-home-content ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.75rem;
    font-size: 1rem;
}

.pharm-home-content li {
    margin-bottom: 0.5rem;
}

.pharm-home-content li::marker {
    color: var(--pharm-green);
}

.pharm-home-content ul ul,
.pharm-home-content ol ol,
.pharm-home-content ul ol,
.pharm-home-content ol ul {
    margin: 0.5rem 0 0.5rem 0;
}

/* Checkmark list variant */
.pharm-home-content .check-list {
    list-style: none;
    padding-left: 0;
}

.pharm-home-content .check-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.pharm-home-content .check-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--pharm-green);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

/* Blockquotes */
.pharm-home-content blockquote {
    background: var(--pharm-green-tint);
    border-left: 4px solid var(--pharm-green);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--pharm-blue);
    font-size: 1rem;
}

.pharm-home-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Links - matching .pharm-link-green */
.pharm-home-content a {
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pharm-transition);
    border-bottom: 1px dotted var(--pharm-green);
}

.pharm-home-content a:hover {
    color: var(--pharm-green-dark);
    border-bottom-style: solid;
}

/* Tables */
.pharm-home-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.pharm-home-content th {
    background-color: var(--pharm-blue);
    color: var(--pharm-white);
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-size: 0.9rem;
}

.pharm-home-content td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    color: #4b5563;
    font-size: 0.95rem;
}

.pharm-home-content tr:last-child td {
    border-bottom: none;
}

.pharm-home-content tr:nth-child(even) {
    background-color: #fafbfc;
}

/* Images */
.pharm-home-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.25rem 0;
}

/* Horizontal rule */
.pharm-home-content hr {
    margin: 2rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e7ef, transparent);
}

/* Feature boxes / callouts */
.pharm-home-content .feature-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid #eef2f6;
}

.pharm-home-content .feature-box h3,
.pharm-home-content .feature-box h4 {
    margin-top: 0;
}

/* Highlight box */
.pharm-home-content .highlight-box {
    background: var(--pharm-green-tint);
    border-left: 4px solid var(--pharm-green);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

/* Two-column layout */
.pharm-home-content .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

@media (max-width: 767.98px) {
    .pharm-home-content .two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pharm-home-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =============================================================
   ZELLE PAYMENT PAGE
   Reuses existing tokens, buttons, and card styles
   ============================================================= */

/* ----- Payment Section ----- */
.payment-section {
    padding: 3rem 0;
}

.payment-card {
    background: var(--pharm-white);
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ----- QR Panel (Left) ----- */
.payment-qr-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border-right: 1px solid #eef2f6;
}

.payment-qr-img {
    /* width: 220px; */
    height: 360px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--pharm-white);
    padding: 1rem;
    border: 2px solid #f0f0f0;
}

.payment-qr-placeholder {
    width: 220px;
    height: 220px;
    background: var(--pharm-white);
    border: 2px dashed #d1d9e6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.payment-id-badge {
    background: var(--pharm-blue);
    color: var(--pharm-white);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--pharm-transition);
    position: relative;
}

.payment-id-badge:hover {
    background: var(--pharm-blue-dark);
}

.payment-id-badge i {
    font-size: 0.9rem;
}

/* Copy tooltip */
.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.copy-tooltip.show {
    opacity: 1;
}

/* ----- Info Panel (Right) ----- */
.payment-info-panel {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.payment-info-panel h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pharm-blue);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.payment-info-panel p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.payment-info-panel strong {
    color: var(--pharm-blue);
    font-weight: 600;
}

.payment-note {
    background: var(--pharm-green-tint);
    border-left: 4px solid var(--pharm-green);
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pharm-blue);
    line-height: 1.6;
}

.payment-note i {
    color: var(--pharm-green);
    margin-right: 0.5rem;
}

/* ----- Contact Block ----- */
.payment-contact-block {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f6;
}

.payment-contact-label {
    font-weight: 600;
    color: var(--pharm-blue);
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.payment-email-link {
    color: var(--pharm-green);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pharm-transition);
}

.payment-email-link:hover {
    color: var(--pharm-green-dark);
    text-decoration: underline;
}

.payment-whatsapp-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.payment-whatsapp-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    transition: transform var(--pharm-transition);
}

.payment-whatsapp-icon:hover {
    transform: scale(1.1);
}

/* ----- Mobile Adjustments ----- */
@media (max-width: 767.98px) {
    .payment-card {
        grid-template-columns: 1fr;
    }
    
    .payment-qr-panel {
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        padding: 2rem 1.5rem;
    }
    
    .payment-qr-img,
    .payment-qr-placeholder {
        /* width: 180px; */
        height: 320px;
    }
    
    .payment-info-panel {
        padding: 1.5rem;
    }
    
    .payment-info-panel h2 {
        font-size: 1.2rem;
    }
    
    .payment-id-badge {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
}