/*
 * ─────────────────────────────────────────────────────────────────────────────
 * Root-level design tokens
 * These mirror the .baraa-home light-mode values so that WooCommerce elements
 * rendered outside the .baraa-home wrapper (notices, admin bar overlays, etc.)
 * always have a valid fallback for every --baraa-* custom property.
 * ─────────────────────────────────────────────────────────────────────────────
 */
:root {
    --baraa-primary:       #16A085;
    --baraa-primary-dark:  #0E6655;
    --baraa-primary-soft:  #D4E6F1;
    --baraa-ink:           #1a201b;
    --baraa-muted:         #5a6e5b;
    --baraa-line:          #9DD3CF;
    --baraa-surface:       #ffffff;
    --baraa-soft:          #EBF5FB;
    --baraa-page:          #ffffff;
    --baraa-card:          #ffffff;
    --baraa-input:         #EBF5FB;
    --baraa-highlight:     #D4E6F1;
    --baraa-text:          #1a201b;
    --baraa-placeholder:   #6d7e6e;
}

/*
 * ─────────────────────────────────────────────────────────────────────────────
 * Hero Banner Slider Styles
 * ─────────────────────────────────────────────────────────────────────────────
 */
.hero-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner-large {
    position: relative;
    width: 100%;
    height: clamp(250px, 31vw, 420px);
    overflow: hidden;
}

.hero-banner-swiper,
.hero-banner-large .swiper-wrapper,
.hero-banner-large .swiper-slide,
.hero-banner-large .swiper-slide > div,
.hero-banner-large .swiper-slide > div > a {
    width: 100%;
    height: 100%;
}

.hero-banner-large .swiper-slide > div > a {
    display: block;
    position: relative;
}

.hero-banner-large picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-large .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-navigation {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    pointer-events: none;
}

.custom-swiper-button-prev,
.custom-swiper-button-next {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    width: clamp(36px, 3vw, 46px);
    height: clamp(36px, 3vw, 46px);
    margin: 0;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    color: #1a201b;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-swiper-button-prev {
    left: 20px;
}

.custom-swiper-button-next {
    right: 20px;
}

.hero-banner-section.is-rtl .custom-swiper-button-prev {
    right: 20px;
    left: auto;
}

.hero-banner-section.is-rtl .custom-swiper-button-next {
    right: auto;
    left: 20px;
}

.custom-swiper-button-prev svg {
    transform: rotate(180deg);
}

.hero-banner-section.is-rtl .custom-swiper-button-prev svg {
    transform: none;
}

.hero-banner-section.is-rtl .custom-swiper-button-next svg {
    transform: rotate(180deg);
}

.custom-swiper-button-prev:hover,
.custom-swiper-button-next:hover {
    transform: translateY(-50%) scale(1.06);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.custom-swiper-button-prev:focus-visible,
.custom-swiper-button-next:focus-visible {
    outline: 3px solid #16A085;
    outline-offset: 3px;
}

.custom-swiper-button-prev.swiper-button-disabled,
.custom-swiper-button-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: default;
}

.swiper-navigation-icon {
    width: 11px;
    height: 20px;
}

.hero-banner-swiper .swiper-pagination {
    bottom: 14px;
    z-index: 4;
}

.hero-banner-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.75);
    opacity: 1;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-banner-swiper .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 5px;
    background: #16A085;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 40px max(24px, 6vw);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
}

[dir="ltr"] .hero-banner-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
}

.hero-banner-content {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.hero-banner-copy {
    max-width: 42rem;
    color: #fff;
    text-align: start;
}

.hero-banner-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3.8vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-banner-copy p {
    margin: 0 0 22px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-banner-cta {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: #16A085;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.hero-banner-cta:hover {
    background: #0E6655;
}

@media (max-width: 767px) {
    .hero-banner-large {
        height: clamp(210px, 64vw, 250px);
    }

    .hero-banner-overlay {
        align-items: flex-end;
        padding: 18px 50px 42px;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.02) 88%);
    }

    .custom-swiper-button-prev,
    .custom-swiper-button-next {
        width: 34px;
        height: 34px;
    }

    .custom-swiper-button-prev {
        left: 8px;
    }

    .custom-swiper-button-next {
        right: 8px;
    }

    .hero-banner-section.is-rtl .custom-swiper-button-prev {
        right: 8px;
        left: auto;
    }

    .hero-banner-section.is-rtl .custom-swiper-button-next {
        right: auto;
        left: 8px;
    }

    .swiper-navigation-icon {
        width: 9px;
        height: 16px;
    }

    .hero-banner-copy h2 {
        margin-bottom: 7px;
        font-size: clamp(1.2rem, 5.5vw, 1.5rem);
    }

    .hero-banner-copy p {
        margin-bottom: 10px;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .hero-banner-cta {
        padding: 9px 15px;
    }

    .hero-banner-swiper .swiper-pagination {
        bottom: 12px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --baraa-primary:       #4ECDC4;
        --baraa-primary-dark:  #3DB8B0;
        --baraa-primary-soft:  #1A5A52;
        --baraa-ink:           #e8f3f2;
        --baraa-muted:         #9dbfb9;
        --baraa-line:          #2D6A65;
        --baraa-surface:       #1e2d2b;
        --baraa-soft:          #161f1e;
        --baraa-page:          #0f1514;
        --baraa-card:          #1e2d2b;
        --baraa-input:         #273634;
        --baraa-highlight:     #1A5A52;
        --baraa-text:          #e8f3f2;
        --baraa-placeholder:   #9dbfb9;
    }
}

/*
 * Manual dark mode — user clicked the theme toggle.
 * We update :root tokens by targeting <body> which contains .baraa-home,
 * so shop/product/cart pages (outside .baraa-home) also switch to dark.
 *
 * The :has() selector is broadly supported in modern browsers (2023+).
 */
body:has(.baraa-home[data-theme="dark"]),
body:has(.baraa-home[data-theme="system"]):where([data-system-dark]) {
    --baraa-primary:       #4ECDC4;
    --baraa-primary-dark:  #3DB8B0;
    --baraa-primary-soft:  #1A5A52;
    --baraa-ink:           #e8f3f2;
    --baraa-muted:         #9dbfb9;
    --baraa-line:          #2D6A65;
    --baraa-surface:       #1e2d2b;
    --baraa-soft:          #161f1e;
    --baraa-page:          #0f1514;
    --baraa-card:          #1e2d2b;
    --baraa-input:         #273634;
    --baraa-highlight:     #1A5A52;
    --baraa-text:          #e8f3f2;
    --baraa-placeholder:   #9dbfb9;
}

@media (prefers-color-scheme: dark) {
    body:has(.baraa-home[data-theme="system"]) {
        --baraa-primary:       #4ECDC4;
        --baraa-primary-dark:  #3DB8B0;
        --baraa-primary-soft:  #1A5A52;
        --baraa-ink:           #e8f3f2;
        --baraa-muted:         #9dbfb9;
        --baraa-line:          #2D6A65;
        --baraa-surface:       #1e2d2b;
        --baraa-soft:          #161f1e;
        --baraa-page:          #0f1514;
        --baraa-card:          #1e2d2b;
        --baraa-input:         #273634;
        --baraa-highlight:     #1A5A52;
        --baraa-text:          #e8f3f2;
        --baraa-placeholder:   #9dbfb9;
    }
}
html,
body {
    margin: 0;
}

/*
 * Base body styles — apply the theme font and text direction to the whole
 * document so that WooCommerce pages (shop, product, cart) inherit them
 * regardless of whether they are wrapped in .baraa-home.
 */
body {
    background: var(--baraa-page);
    color: var(--baraa-text);
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Global focus-visible — applies to all pages including shop/product/cart */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--baraa-primary);
    outline-offset: 3px;
}

html {
    scrollbar-color: #16A085 #EBF5FB;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: #EBF5FB;
}

html::-webkit-scrollbar-thumb {
    background: #16A085;
    border: 3px solid #EBF5FB;
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #0E6655;
}

html:has(.baraa-home[data-theme="dark"]) {
    scrollbar-color: #4ECDC4 #161f1e;
}

html:has(.baraa-home[data-theme="dark"])::-webkit-scrollbar-track {
    background: #161f1e;
}

html:has(.baraa-home[data-theme="dark"])::-webkit-scrollbar-thumb {
    background: #4ECDC4;
    border-color: #161f1e;
}

html:has(.baraa-home[data-theme="dark"])::-webkit-scrollbar-thumb:hover {
    background: #3DB8B0;
}

@media (prefers-color-scheme: dark) {
    html:has(.baraa-home[data-theme="system"]) {
        scrollbar-color: #4ECDC4 #161f1e;
    }

    html:has(.baraa-home[data-theme="system"])::-webkit-scrollbar-track {
        background: #161f1e;
    }

    html:has(.baraa-home[data-theme="system"])::-webkit-scrollbar-thumb {
        background: #4ECDC4;
        border-color: #161f1e;
    }

    html:has(.baraa-home[data-theme="system"])::-webkit-scrollbar-thumb:hover {
        background: #3DB8B0;
    }
}

.baraa-home {
    --baraa-primary: #16A085;
    --baraa-primary-dark: #0E6655;
    --baraa-primary-soft: #D4E6F1;
    --baraa-ink: #1a201b;
    --baraa-muted: #5a6e5b;
    --baraa-line: #9DD3CF;
    --baraa-surface: #ffffff;
    --baraa-soft: #EBF5FB;
    --baraa-page: #ffffff;
    --baraa-card: #ffffff;
    --baraa-input: #EBF5FB;
    --baraa-highlight: #D4E6F1;
    --baraa-text: #1a201b;
    --baraa-placeholder: #6d7e6e;
    direction: inherit;
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-inline: auto;
    background: var(--baraa-page);
    color: var(--baraa-text);
}

.baraa-home[data-theme="system"] {
    color-scheme: light;
}

.baraa-home[data-theme="dark"] {
    --baraa-primary: #4ECDC4;
    --baraa-primary-dark: #3DB8B0;
    --baraa-primary-soft: #1A5A52;
    --baraa-ink: #e8f3f2;
    --baraa-muted: #9dbfb9;
    --baraa-line: #2D6A65;
    --baraa-surface: #1e2d2b;
    --baraa-soft: #161f1e;
    --baraa-page: #0f1514;
    --baraa-card: #1e2d2b;
    --baraa-input: #273634;
    --baraa-highlight: #1A5A52;
    --baraa-text: #e8f3f2;
    --baraa-placeholder: #9dbfb9;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    .baraa-home[data-theme="system"] {
        --baraa-primary: #4ECDC4;
        --baraa-primary-dark: #3DB8B0;
        --baraa-primary-soft: #1A5A52;
        --baraa-ink: #e8f3f2;
        --baraa-muted: #9dbfb9;
        --baraa-line: #2D6A65;
        --baraa-surface: #1e2d2b;
        --baraa-soft: #161f1e;
        --baraa-page: #0f1514;
        --baraa-card: #1e2d2b;
        --baraa-input: #273634;
        --baraa-highlight: #1A5A52;
        --baraa-text: #e8f3f2;
        --baraa-placeholder: #9dbfb9;
        color-scheme: dark;
    }
}

.baraa-home *,
.baraa-home *::before,
.baraa-home *::after {
    /* box-sizing inherited from global reset above */
}

.baraa-home a {
    /* color and text-decoration inherited from global reset above */
}

.baraa-home a:focus-visible,
.baraa-home button:focus-visible,
.baraa-home input:focus-visible,
.baraa-home select:focus-visible {
    /* focus-visible inherited from global rule above */
}

.baraa-home button,
.baraa-home input {
    font: inherit;
}

.baraa-home .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.baraa-skip-link {
    background: #fff;
    border: 2px solid var(--baraa-primary);
    border-radius: 6px;
    color: var(--baraa-primary);
    inset-inline-start: 16px;
    padding: 8px 12px;
    position: absolute;
    top: -100px;
    z-index: 1000;
}

.baraa-skip-link:focus {
    top: 12px;
}

.baraa-header {
    background: var(--baraa-surface);
    border-bottom: 1px solid var(--baraa-line);
}

.baraa-header__main {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 16px clamp(16px, 5vw, 64px);
}

.baraa-header__actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
}

.baraa-language-switch {
    align-items: center;
    color: var(--baraa-muted);
    display: inline-flex;
    font-size: 13px;
    gap: 7px;
    white-space: nowrap;
}

.baraa-language-switch a[aria-current="true"] {
    color: var(--baraa-primary);
    font-weight: 700;
}

.baraa-theme-toggle {
    align-items: center;
    background: var(--baraa-highlight);
    border: 1px solid var(--baraa-line);
    border-radius: 8px;
    color: var(--baraa-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    padding: 7px 9px;
    white-space: nowrap;
}

.baraa-theme-toggle__icon {
    color: var(--baraa-primary);
    font-size: 17px;
    line-height: 1;
}

.baraa-brand,
.baraa-brand > span:last-child {
    align-items: center;
    display: flex;
}

.baraa-brand {
    color: var(--baraa-primary);
    flex: 0 0 auto;
    gap: 10px;
}

.baraa-brand > span:last-child {
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.3;
}

.baraa-brand strong {
    font-size: 18px;
}

.baraa-brand small {
    color: var(--baraa-muted);
    direction: ltr;
    font-size: 11px;
}

.baraa-brand__mark {
    align-items: center;
    background: var(--baraa-primary);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.baraa-search {
    align-items: center;
    background: var(--baraa-card);
    border: 1px solid var(--baraa-line);
    border-radius: 12px;
    display: flex;
    flex: 1 1 420px;
    max-width: 640px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.baraa-search:focus-within {
    border-color: var(--baraa-primary);
    box-shadow: 0 0 0 3px rgb(0 139 125 / 15%);
}

.baraa-search input[type="search"] {
    background: transparent;
    border: 0;
    color: var(--baraa-text);
    min-width: 0;
    outline: 0;
    padding: 12px 16px;
    width: 100%;
    font-size: 15px;
}

.baraa-search button,
.baraa-button {
    align-items: center;
    background: var(--baraa-primary);
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    padding: 10px 18px;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.baraa-search button {
    border-radius: 0;
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0 14px;
}

.baraa-search button:hover,
.baraa-button:hover {
    background: var(--baraa-primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgb(0 107 95 / 20%);
}

.baraa-button:hover {
    transform: translateY(-2px);
}

.baraa-button:active {
    transform: translateY(0);
}

.baraa-cart {
    align-items: center;
    color: var(--baraa-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 600;
    gap: 7px;
}

.baraa-cart__count {
    align-items: center;
    background: var(--baraa-highlight);
    border-radius: 50%;
    display: inline-flex;
    font-size: 12px;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.baraa-home__main {
    display: block;
}

.baraa-hero {
    align-items: center;
    background:
        radial-gradient(ellipse at 85% 12%, rgb(78 205 196 / 28%), transparent 40%),
        radial-gradient(ellipse at 15% 88%, rgb(78 205 196 / 18%), transparent 35%),
        linear-gradient(135deg, #EBF5FB 0%, #fff 55%, #E1EDF7 100%);
    display: grid;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .75fr);
    padding: clamp(48px, 7vw, 96px) clamp(20px, 7vw, 96px);
}

.baraa-home[data-theme="dark"] .baraa-hero {
    background:
        radial-gradient(ellipse at 85% 12%, rgb(78 205 196 / 12%), transparent 40%),
        radial-gradient(ellipse at 15% 88%, rgb(78 205 196 / 8%), transparent 35%),
        linear-gradient(135deg, #131e1d 0%, #0f1514 55%, #172421 100%);
}

@media (prefers-color-scheme: dark) {
    .baraa-home[data-theme="system"] .baraa-hero {
        background:
            radial-gradient(ellipse at 85% 12%, rgb(78 205 196 / 12%), transparent 40%),
            radial-gradient(ellipse at 15% 88%, rgb(78 205 196 / 8%), transparent 35%),
            linear-gradient(135deg, #131e1d 0%, #0f1514 55%, #172421 100%);
    }
}

.baraa-hero__copy {
    max-width: 720px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.baraa-eyebrow {
    color: var(--baraa-primary);
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.baraa-hero h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.05s backwards;
}

.baraa-hero h1 span {
    color: var(--baraa-primary);
}

.baraa-hero__copy > p {
    color: var(--baraa-muted);
    font-size: 18px;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 620px;
}

.baraa-search--hero {
    background: var(--baraa-card);
    margin-bottom: 14px;
    max-width: 580px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    box-shadow: 0 8px 24px rgb(0 139 125 / 8%);
}

.baraa-text-link {
    color: var(--baraa-primary);
    font-size: 14px;
    font-weight: 700;
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

.baraa-text-link span {
    display: inline-block;
    transition: transform .18s ease;
}

/* In LTR the arrow glyph "←" already points left; in RTL flip it to point right */
[dir="ltr"] .baraa-text-link span,
.baraa-home[dir="ltr"] .baraa-text-link span {
    transform: scaleX(-1);
}

.baraa-text-link:hover span {
    transform: translateX(-3px);
}

[dir="ltr"] .baraa-text-link:hover span,
.baraa-home[dir="ltr"] .baraa-text-link:hover span {
    transform: scaleX(-1) translateX(-3px);
}

.baraa-hero__prescription {
    background: var(--baraa-primary);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgb(0 107 95 / 18%);
    color: #fff;
    padding: clamp(24px, 3vw, 36px);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.baraa-hero__prescription:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgb(0 107 95 / 22%);
}

.baraa-hero__icon,
.baraa-pharmacist__mark {
    align-items: center;
    background: rgb(255 255 255 / 14%);
    border-radius: 14px;
    color: #b6f5e8;
    display: inline-flex;
    font-size: 34px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.baraa-hero__prescription h2 {
    font-size: 22px;
    margin: 18px 0 8px;
}

.baraa-hero__prescription p {
    color: #d8f1ed;
    margin: 0 0 20px;
}

.baraa-button--light {
    background: #d4fff2;
    color: #064e46;
}

.baraa-button--light:hover {
    background: #fff;
    color: #064e46;
}

.baraa-hero__prescription small {
    color: #d8f1ed;
    display: block;
    font-size: 11px;
    margin-top: 16px;
}

.baraa-services {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 26px clamp(20px, 5vw, 64px);
}

.baraa-service {
    align-items: center;
    background: var(--baraa-surface);
    border: 1px solid var(--baraa-line);
    border-radius: 14px;
    display: flex;
    gap: 14px;
    padding: 18px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.baraa-service:hover {
    border-color: var(--baraa-primary);
    box-shadow: 0 8px 24px rgb(0 139 125 / 10%);
    transform: translateY(-2px);
}

.baraa-service > span:last-child {
    display: flex;
    flex-direction: column;
}

.baraa-service strong {
    font-size: 14px;
}

.baraa-service small,
.baraa-category small {
    color: var(--baraa-muted);
    font-size: 12px;
}

.baraa-service__icon {
    align-items: center;
    background: var(--baraa-primary-soft);
    border-radius: 10px;
    color: var(--baraa-primary);
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 22px;
    height: 42px;
    justify-content: center;
}

.baraa-section {
    padding: 38px clamp(20px, 5vw, 64px);
}

.baraa-section--soft {
    background: var(--baraa-soft);
}

.baraa-section__heading {
    align-items: end;
    border-bottom: 1px solid var(--baraa-line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
}

.baraa-section__heading .baraa-eyebrow {
    margin-bottom: 0;
}

.baraa-section__heading h2,
.baraa-pharmacist h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.35;
    margin: 2px 0 0;
}

.baraa-product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.baraa-product {
    background: var(--baraa-surface);
    border: 1px solid var(--baraa-line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.baraa-product:hover {
    border-color: var(--baraa-primary);
    box-shadow: 0 14px 32px rgb(0 139 125 / 12%);
    transform: translateY(-4px);
}

.baraa-product__image {
    align-items: center;
    background: var(--baraa-soft);
    display: flex;
    height: 220px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.baraa-product__image img {
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .25s ease;
    width: 100%;
}

.baraa-product:hover .baraa-product__image img {
    transform: scale(1.04);
}

.baraa-product__badge {
    background: #fff0dc;
    border-radius: 20px;
    color: #8c4a0b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    position: absolute;
    inset-inline-end: 12px;
    top: 12px;
}

.baraa-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.baraa-product h3 {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.baraa-product h3 a:hover {
    color: var(--baraa-primary);
}

.baraa-product__stock {
    color: var(--baraa-primary);
    font-size: 12px;
    margin: 8px 0 16px;
}

.baraa-product__footer {
    align-items: center;
    border-top: 1px solid var(--baraa-line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
}

.baraa-product__price {
    color: var(--baraa-primary);
    font-size: 16px;
    font-weight: 700;
}

.baraa-product__price del {
    color: var(--baraa-muted);
    font-size: 12px;
    font-weight: 400;
}

.baraa-product__price ins {
    text-decoration: none;
}

.baraa-button--small {
    font-size: 12px;
    padding: 8px 14px;
    white-space: nowrap;
}

.baraa-category-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.baraa-category {
    align-items: center;
    background: var(--baraa-card);
    border: 1px solid var(--baraa-line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 14px;
    text-align: center;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.baraa-category:hover {
    border-color: var(--baraa-primary);
    box-shadow: 0 8px 24px rgb(0 139 125 / 10%);
    transform: translateY(-3px);
}

.baraa-category__icon {
    align-items: center;
    background: var(--baraa-primary-soft);
    border-radius: 50%;
    color: var(--baraa-primary);
    display: inline-flex;
    font-size: 25px;
    height: 54px;
    justify-content: center;
    margin-bottom: 4px;
    width: 54px;
}

.baraa-category strong {
    font-size: 14px;
}

.baraa-empty,
.baraa-home__notice {
    background: var(--baraa-soft);
    border-radius: 10px;
    color: var(--baraa-muted);
    margin: 0;
    padding: 18px;
}

.baraa-pharmacist {
    align-items: center;
    background: linear-gradient(110deg, #004e47, #08796e);
    border-radius: 18px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 20px clamp(20px, 5vw, 64px) 48px;
    padding: clamp(24px, 4vw, 42px);
}

.baraa-pharmacist .baraa-eyebrow {
    color: #b6f5e8;
}

.baraa-pharmacist p {
    color: #d8f1ed;
    margin: 8px 0 0;
}

.baraa-pharmacist__mark {
    flex: 0 0 auto;
}

.baraa-footer {
    align-items: center;
    background: var(--baraa-soft);
    border-top: 1px solid var(--baraa-line);
    color: var(--baraa-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    justify-content: space-between;
    padding: 28px clamp(20px, 5vw, 64px);
}

.baraa-product,
.baraa-service {
    background: var(--baraa-card);
}

.baraa-search input[type="search"]::placeholder {
    color: var(--baraa-placeholder);
    opacity: 1;
}

.baraa-product__badge {
    background: var(--baraa-highlight);
    color: var(--baraa-primary);
}

.baraa-product__price del {
    color: var(--baraa-muted);
}

.baraa-skip-link {
    background: var(--baraa-card);
    color: var(--baraa-primary);
}

.baraa-home[data-theme="dark"] .baraa-button--light,
.baraa-home[data-theme="system"] .baraa-button--light {
    background: #b6f5e8;
    color: #064e46;
}

@media (prefers-color-scheme: dark) {
    .baraa-home[data-theme="system"] .baraa-button--light {
        background: #b6f5e8;
        color: #064e46;
    }
}

.baraa-brand--footer strong {
    color: var(--baraa-primary);
}

.baraa-footer p {
    margin: 0;
}

.baraa-footer a {
    color: var(--baraa-primary);
    transition: color .25s ease;
}

.baraa-footer a:hover {
    color: var(--baraa-primary-dark);
}

@media (max-width: 960px) {
    .baraa-header__main {
        flex-wrap: wrap;
        gap: 14px;
    }

    .baraa-search {
        flex-basis: 100%;
        max-width: none;
        order: 1;
    }

    .baraa-header__actions {
        margin-inline-start: auto;
    }

    .baraa-hero {
        grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
    }

    .baraa-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .baraa-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .baraa-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .baraa-search button {
        min-width: 70px;
    }
}

@media (max-width: 640px) {
    .baraa-header__main {
        padding-block: 12px;
    }

    .baraa-header__actions {
        gap: 9px;
    }

    .baraa-theme-toggle {
        padding: 7px;
    }

    .baraa-theme-toggle__label {
        display: none;
    }

    .baraa-hero {
        grid-template-columns: 1fr;
        padding-block: 38px;
    }

    .baraa-hero__copy > p {
        font-size: 15px;
    }

    .baraa-services {
        gap: 8px;
        padding-block: 16px;
    }

    .baraa-service {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .baraa-section {
        padding-block: 28px;
    }

    .baraa-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .baraa-product-grid {
        gap: 10px;
    }

    .baraa-product__image {
        height: 150px;
    }

    .baraa-product__body {
        padding: 12px;
    }

    .baraa-product h3 {
        font-size: 13px;
    }

    .baraa-product__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .baraa-button--small {
        width: 100%;
    }

    .baraa-category-grid {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .baraa-pharmacist {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .baraa-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
