*
Theme foundation for Rabindra Medical Hall.

Detailed homepage styling currently lives in WordPress Additional CSS while the
existing page design is preserved. This file intentionally contains only safe
site-wide foundations and WooCommerce polish so it does not fight Astra's
responsive header or duplicate the homepage hero styles.
*/

:root {
    --rmh-green: #007a48;
    --rmh-green-dark: #005f40;
    --rmh-mint: #00c853;
    --rmh-ink: #2d3748;
    --rmh-muted: #5f716b;
    --rmh-border: #dfe9e5;
    --rmh-soft: #f5f8f7;
    --rmh-white: #ffffff;
}

/* RMH-MOBILE-FOUNDATION */
/* Global mobile foundation -- safe for Astra + WooCommerce */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}


html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--rmh-ink);
}

a {
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.ast-button:focus-visible {
    outline: 3px solid rgba(0, 122, 83, 0.32);
    outline-offset: 3px;
}

.site-header,
.ast-primary-header-bar {
    border-bottom-color: var(--rmh-border);
}

.site-title a,
.main-header-menu .menu-link,
.ast-header-account-link,
.ast-site-header-cart a {
    color: var(--rmh-ink);
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.ast-site-header-cart a:hover {
    color: var(--rmh-green);
}

.ast-site-header-cart .ast-addon-cart-wrap i.astra-icon::after,
.ast-site-header-cart .ast-woo-header-cart-info-wrap {
    color: var(--rmh-green);
}

.rmh-site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;
    border-bottom: 1px solid var(--rmh-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 24px rgba(0, 78, 53, 0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.rmh-site-header__inner {
    max-width: 1240px;
    min-height: 56px;
    margin: 0 auto;
    padding: 6px 24px;
    display: grid;
    grid-template-columns: auto minmax(220px, 420px) 1fr auto;
    align-items: center;
    gap: 14px;
}

.rmh-site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--rmh-ink);
    text-decoration: none;
}

.rmh-site-header__mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--rmh-green);
    color: var(--rmh-white);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 122, 83, 0.18);
}

.rmh-site-header__brand-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rmh-site-header__name {
    color: var(--rmh-ink);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.rmh-site-header__tagline {
    color: var(--rmh-muted);
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
}

.rmh-site-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.rmh-header-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--rmh-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--rmh-ink);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.rmh-header-loc-icon {
    font-size: 0.9rem;
}

.rmh-header-loc-text small {
    display: block;
    font-size: 0.66rem;
    color: var(--rmh-muted);
    line-height: 1.2;
}

.rmh-header-loc-text strong {
    font-size: 0.78rem;
    line-height: 1.2;
}

.rmh-header-loc-chevron {
    font-size: 0.7rem;
    color: var(--rmh-muted);
}

.rmh-site-search {
    min-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--rmh-border);
    border-radius: 9px;
    background: #f8fbfa;
    flex: 1 1 auto;
}

.rmh-site-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 13px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--rmh-ink);
    font-size: 0.88rem;
}

.rmh-site-search button[type="submit"] {
    align-self: stretch;
    min-width: 82px;
    padding: 0 16px;
    border: 0;
    background: var(--rmh-green);
    color: var(--rmh-white);
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    flex-shrink: 0;
}

.rmh-site-search button[type="submit"]:hover {
    background: var(--rmh-green-dark);
}

.rmh-search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    padding: 0 4px 0 12px;
}

.rmh-search-lens {
    font-size: 0.9rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.rmh-search-clear {
    background: none;
    border: 0;
    color: var(--rmh-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    line-height: 1;
}

.rmh-search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--rmh-border);
    border-top-color: var(--rmh-green);
    border-radius: 50%;
    animation: rmh-spin 0.6s linear infinite;
}

@keyframes rmh-spin {
    to {
        transform: rotate(360deg);
    }
}

.rmh-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--rmh-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.rmh-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rmh-border);
    text-decoration: none;
    color: inherit;
}

.rmh-search-item:last-child {
    border-bottom: 0;
}

.rmh-search-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f8f9fa;
}

.rmh-search-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 750;
}

.rmh-btn-search-add,
.rmh-btn-search-view {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    flex-shrink: 0;
}

.rmh-btn-search-add {
    background: var(--rmh-green);
    color: #ffffff;
    border: 0;
}

.rmh-btn-search-view {
    background: #ffffff;
    color: var(--rmh-ink);
    border: 1px solid var(--rmh-border);
}

.rmh-site-nav {
    justify-self: end;
}

.rmh-site-nav__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rmh-site-nav__menu a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 8px;
    color: var(--rmh-ink);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.rmh-site-nav__menu a:hover,
.rmh-site-nav__menu .current-menu-item > a {
    background: #eef8f4;
    color: var(--rmh-green);
}

.rmh-site-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.rmh-site-header__action,
.rmh-site-header__cart {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--rmh-border);
    border-radius: 9px;
    color: var(--rmh-ink);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    background: var(--rmh-white);
}

.rmh-site-header__cart {
    border-color: rgba(0, 122, 83, 0.18);
    color: var(--rmh-green);
}

.rmh-cart-count {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--rmh-green);
    color: var(--rmh-white);
    font-size: 0.7rem;
    line-height: 1;
}

.rmh-menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--rmh-border);
    border-radius: 9px;
    background: var(--rmh-white);
    cursor: pointer;
}

.rmh-menu-toggle span[aria-hidden="true"] {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--rmh-ink);
}

.rmh-js .rmh-site-header.is-menu-open .rmh-menu-toggle span[aria-hidden="true"]:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
}

.rmh-js .rmh-site-header.is-menu-open .rmh-menu-toggle span[aria-hidden="true"]:nth-child(3) {
    opacity: 0;
}

.rmh-js .rmh-site-header.is-menu-open .rmh-menu-toggle span[aria-hidden="true"]:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
}

.rmh-empty-state {
    padding: 28px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: var(--rmh-white);
    color: var(--rmh-muted);
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 78, 53, 0.05);
}

.rmh-empty-state h3 {
    margin: 0 0 8px;
    color: var(--rmh-ink);
    font-size: 1.1rem;
}

.rmh-empty-state p {
    max-width: 680px;
    margin: 0 auto 18px;
    color: var(--rmh-muted);
}

.rmh-category-grid .rmh-category-icon {
    width: auto;
    min-width: 64px;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

.rmh-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.rmh-category {
    min-width: 0;
    min-height: 192px;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: var(--rmh-white);
    color: var(--rmh-ink);
    box-shadow: 0 8px 22px rgba(0, 78, 53, 0.05);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rmh-category:hover {
    border-color: rgba(0, 122, 83, 0.3);
    color: var(--rmh-ink);
    box-shadow: 0 12px 26px rgba(0, 78, 53, 0.1);
    transform: translateY(-2px);
}

.rmh-category:focus-visible {
    color: var(--rmh-ink);
}

.rmh-category-media {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #eef8f4;
    color: var(--rmh-green);
}

.rmh-category-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rmh-category-art {
    width: 100%;
    height: 100%;
    display: block;
}

.rmh-category-media .rmh-category-icon {
    min-width: 0;
    padding: 0;
    color: var(--rmh-green);
    font-size: 1.05rem;
    font-weight: 850;
}

.rmh-category strong {
    overflow-wrap: anywhere;
    color: var(--rmh-ink);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.rmh-category-description {
    display: block;
    color: var(--rmh-muted);
    font-size: 0.76rem;
    line-height: 1.35;
    margin-top: 4px;
}

.rmh-category > span:last-child {
    color: var(--rmh-muted);
    font-size: 0.76rem;
    line-height: 1.2;
}

.rmh-category-grid__footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.rmh-promotion-section {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 36px;
    padding: 0 24px;
    box-sizing: border-box;
}

.rmh-promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rmh-promotion-banner {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    box-sizing: border-box;
}

.rmh-promotion-banner__content {
    position: relative;
    z-index: 1;
    max-width: 82%;
}

.rmh-promotion-banner h2 {
    margin: 0 0 9px;
    color: var(--rmh-ink);
    font-size: 1.35rem;
    line-height: 1.15;
}

.rmh-promotion-banner p {
    min-height: 50px;
    margin: 0 0 18px;
    color: var(--rmh-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.rmh-promotion-banner__mark {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 850;
    opacity: 0.85;
}

.rmh-promotion-banner--green {
    background: #effaf5;
}

.rmh-promotion-banner--green .rmh-promotion-banner__mark {
    background: #ccefe0;
    color: var(--rmh-green-dark);
}

.rmh-promotion-banner--blue {
    background: #eff7fb;
}

.rmh-promotion-banner--blue .rmh-promotion-banner__mark {
    background: #d5ebf6;
    color: #17627c;
}

.rmh-promotion-banner--coral {
    background: #fff4ef;
}

.rmh-promotion-banner--coral .rmh-promotion-banner__mark {
    background: #f8ded3;
    color: #a84d37;
}

.rmh-prescription-checkout-notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #f0c8ba;
    border-radius: 8px;
    background: #fff7f3;
    color: #6f3526;
    line-height: 1.5;
}

.rmh-prescription-checkout-notice strong {
    color: #54251a;
}

.rmh-prescription-checkout-notice a {
    color: #8c3f2a;
    font-weight: 800;
}

.rmh-prescription-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff0eb;
    color: #a84d37;
    font-size: 0.7rem;
    font-weight: 800;
}

.rmh-buy-now {
    margin-left: 6px !important;
    background: #eaf5f1 !important;
    color: var(--rmh-green-dark) !important;
}

.rmh-buy-now:hover {
    background: #d8eee6 !important;
    color: var(--rmh-green-dark) !important;
}

.rmh-shop-tools {
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: var(--rmh-soft);
}

.rmh-shop-tools__search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.rmh-shop-tools__search input[type="search"] {
    min-height: 46px;
    flex: 1 1 auto;
    min-width: 0;
    border-color: var(--rmh-border);
    border-radius: 8px;
}

.rmh-shop-tools__search button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--rmh-green);
    color: var(--rmh-white);
    font-weight: 750;
}

.rmh-shop-tools__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rmh-shop-tools__categories a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--rmh-border);
    border-radius: 999px;
    background: var(--rmh-white);
    color: var(--rmh-ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.rmh-shop-tools__categories a:hover {
    border-color: rgba(0, 122, 83, 0.32);
    color: var(--rmh-green);
}

.rmh-section-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--rmh-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rmh-section-label--pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8faf2;
    color: #007a53;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
}

.rmh-faq-section {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 0 24px;
    box-sizing: border-box;
}

.rmh-faq-section__header {
    margin-bottom: 14px;
}

.rmh-faq-section__header h2 {
    margin: 0 0 6px;
    color: var(--rmh-ink);
    font-size: 1.45rem;
    line-height: 1.2;
}

.rmh-faq-section__header p {
    margin: 0;
    color: var(--rmh-muted);
}

.rmh-faq-list {
    display: grid;
    gap: 10px;
}

.rmh-faq-list details {
    border: 1px solid var(--rmh-border);
    border-radius: 10px;
    background: var(--rmh-white);
}

.rmh-faq-list summary {
    padding: 16px 18px;
    color: var(--rmh-ink);
    font-weight: 800;
    cursor: pointer;
}

.rmh-faq-list details p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--rmh-muted);
    line-height: 1.65;
}

.rmh-footer-information {
    border-top: 1px solid var(--rmh-border);
    background: var(--rmh-soft);
}

.rmh-footer-information__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.rmh-footer-information__inner strong {
    color: var(--rmh-ink);
    font-size: 0.88rem;
}

.rmh-footer-information nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
}

.rmh-footer-information nav a {
    color: #4a554f;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.rmh-footer-information nav a:hover {
    color: var(--rmh-green);
}

.rmh-page-hero {
    max-width: 1120px;
    margin: 32px auto 36px;
    padding: 52px 32px;
    border: 1px solid var(--rmh-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #eefaf6 0%, #ffffff 100%);
    box-shadow: 0 12px 36px rgba(0, 78, 53, 0.06);
}

.rmh-360-showcase,
.rmh-find-store {
    max-width: 1120px;
    margin: 0 auto 36px;
    padding: 28px 24px;
    border: 1px solid var(--rmh-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #f3faf7 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(0, 78, 53, 0.06);
}

.rmh-360-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
}

.rmh-360-showcase__visual {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: radial-gradient(circle at center, rgba(0, 122, 83, 0.18), rgba(0, 122, 83, 0.05) 40%, rgba(255, 255, 255, 0) 72%);
    overflow: hidden;
}

.rmh-360-orbit {
    position: absolute;
    border: 1px solid rgba(0, 122, 83, 0.22);
    border-radius: 50%;
}

.rmh-360-orbit--one {
    width: 200px;
    height: 200px;
}

.rmh-360-orbit--two {
    width: 150px;
    height: 150px;
    transform: rotate(20deg);
}

.rmh-360-core {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(var(--rmh-view-rotation, 0deg));
    transition: transform 0.35s ease;
}

.rmh-360-bottle {
    position: relative;
    width: 88px;
    height: 110px;
    border-radius: 18px 18px 16px 16px;
    background: linear-gradient(180deg, #1f5f4e 0%, #0b4537 100%);
    box-shadow: 0 12px 24px rgba(0, 78, 53, 0.2);
}

.rmh-360-bottle::before {
    content: "";
    position: absolute;
    inset: -14px auto auto 50%;
    width: 32px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
    background: #dff3eb;
}

.rmh-360-pill {
    position: absolute;
    width: 70px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0, 122, 83, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 83, 0.1);
}

.rmh-360-pill--one { transform: rotate(28deg) translateX(78px); }
.rmh-360-pill--two { transform: rotate(-32deg) translateX(-78px); }
.rmh-360-pill--three { transform: rotate(90deg) translateY(-90px); }

.rmh-360-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 122, 83, 0.12), rgba(0, 122, 83, 0.02) 55%, rgba(0, 122, 83, 0) 72%);
}

.rmh-360-showcase__content h2,
.rmh-find-store__header h2 {
    margin: 0 0 14px;
    color: var(--rmh-ink);
    font-size: clamp(1.8rem, 2.6vw, 2.7rem);
    line-height: 1.15;
}

.rmh-360-showcase__content p,
.rmh-find-store__address {
    margin: 0;
    color: var(--rmh-muted);
    line-height: 1.7;
}

.rmh-360-showcase__controls,
.rmh-360-showcase__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.rmh-360-control {
    width: 42px;
    height: 42px;
    border: 1px solid var(--rmh-border);
    border-radius: 50%;
    background: var(--rmh-white);
    color: var(--rmh-ink);
    font-size: 1.25rem;
    cursor: pointer;
}

.rmh-360-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eafaf2;
    color: var(--rmh-green);
    font-size: 0.82rem;
    font-weight: 800;
}

.rmh-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rmh-btn:hover {
    transform: translateY(-1px);
}

.rmh-btn-primary {
    border: 1px solid rgba(0, 122, 83, 0.14);
    background: var(--rmh-green);
    color: var(--rmh-white);
    box-shadow: 0 10px 18px rgba(0, 122, 83, 0.18);
}

.rmh-btn-primary:hover {
    background: var(--rmh-green-dark);
    color: var(--rmh-white);
}

.rmh-btn-secondary {
    border: 1px solid var(--rmh-border);
    background: var(--rmh-white);
    color: var(--rmh-ink);
}

.rmh-find-store {
    display: grid;
    gap: 12px;
}

.rmh-find-store__subtitle {
    margin: 0;
    color: var(--rmh-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.rmh-find-store__address-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: #ffffff;
}

.rmh-find-store__addr-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.rmh-find-store__addr-text {
    min-width: 0;
}

.rmh-find-store__addr-text strong {
    display: block;
    margin: 0 0 4px;
    color: var(--rmh-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.rmh-find-store__addr-text address {
    margin: 0;
    color: var(--rmh-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    font-style: normal;
}

.rmh-find-store__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rmh-find-store__directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rmh-find-store__directions-btn svg {
    flex-shrink: 0;
}

.rmh-payment-empty {
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px dashed rgba(0, 122, 83, 0.28);
    border-radius: 12px;
    background: #f6fbf8;
    color: var(--rmh-muted);
}

.rmh-payment-empty h3 {
    margin: 0 0 8px;
    color: var(--rmh-ink);
    font-size: 1rem;
}

.rmh-payment-empty p {
    margin: 0;
    line-height: 1.6;
}

.rmh-account-prescriptions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--rmh-border);
}

.rmh-account-prescriptions h2 {
    margin: 0 0 14px;
    color: var(--rmh-ink);
    font-size: 1.25rem;
}

.rmh-account-prescriptions .rmh-empty-state {
    margin: 0;
}

.rmh-account-prescriptions__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rmh-account-prescriptions__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rmh-border);
    border-radius: 8px;
    background: var(--rmh-soft);
}

.rmh-account-prescriptions__item span {
    color: var(--rmh-muted);
    font-size: 0.9rem;
}

.rmh-order-prescription-link {
    margin: 20px 0 0;
}

@media (max-width: 600px) {
    .rmh-cart-contact-actions {
        grid-template-columns: 1fr;
    }

    .rmh-account-prescriptions__item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.rmh-page-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--rmh-green);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.rmh-page-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    color: var(--rmh-ink);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.rmh-page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--rmh-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.rmh-content-section,
.rmh-feature-band {
    max-width: 1120px;
    margin: 0 auto 36px;
    padding: 0 24px;
}

.rmh-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.rmh-content-grid article,
.rmh-highlight-panel,
.rmh-feature-band article {
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: var(--rmh-white);
    box-shadow: 0 10px 28px rgba(0, 78, 53, 0.05);
}

.rmh-content-grid article {
    padding: 28px;
}

.rmh-content-grid h2,
.rmh-feature-band h2 {
    margin: 0 0 12px;
    color: var(--rmh-ink);
    font-size: 1.35rem;
}

.rmh-content-grid p,
.rmh-feature-band p {
    margin: 0;
    color: var(--rmh-muted);
    line-height: 1.7;
}

.rmh-highlight-panel {
    padding: 24px;
}

.rmh-highlight-panel strong {
    display: block;
    margin-bottom: 12px;
    color: var(--rmh-ink);
    font-size: 1rem;
}

.rmh-highlight-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--rmh-muted);
}

.rmh-highlight-panel li + li {
    margin-top: 8px;
}

.rmh-feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rmh-feature-band article {
    padding: 24px;
}

.rmh-contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}

.rmh-contact-panel,
.rmh-form-card {
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: var(--rmh-white);
    box-shadow: 0 10px 28px rgba(0, 78, 53, 0.05);
}

.rmh-contact-panel {
    padding: 26px;
}

.rmh-contact-panel h2 {
    margin: 0 0 14px;
    color: var(--rmh-ink);
    font-size: 1.28rem;
}

.rmh-muted-note {
    color: var(--rmh-muted);
    font-size: 0.92rem;
}

.rmh-form-card {
    padding: 24px;
    border: 1px solid var(--rmh-border);
    background: var(--rmh-white);
    box-shadow: 0 10px 28px rgba(0, 78, 53, 0.05);
}

.rmh-pharmacy-form {
    display: grid;
    gap: 16px;
    margin: 0;
}

.rmh-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rmh-field-help {
    color: var(--rmh-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.rmh-secure-form {
    display: grid;
    gap: 16px;
}

.rmh-form-field {
    display: grid;
    gap: 7px;
}

.rmh-form-field label {
    color: var(--rmh-ink);
    font-size: 0.9rem;
    font-weight: 750;
}

.rmh-form-field input,
.rmh-form-field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--rmh-border);
    border-radius: 8px;
    background: #fbfdfc;
    color: var(--rmh-ink);
    font: inherit;
    box-sizing: border-box;
}

.rmh-form-field input {
    min-height: 44px;
}

.rmh-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.rmh-prescription-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rmh-file-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--rmh-border);
    border-radius: 8px;
    background: var(--rmh-soft);
    color: var(--rmh-ink);
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
}

.rmh-file-action:hover {
    border-color: var(--rmh-green);
    color: var(--rmh-green-dark);
}

.rmh-prescription-file-input {
    max-width: 100%;
}

.rmh-camera-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.rmh-file-status {
    min-height: 1.3em;
    color: var(--rmh-muted);
    font-size: 0.84rem;
}

.rmh-form-submit,
.rmh-form-button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--rmh-green);
    color: var(--rmh-white);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rmh-form-submit:hover,
.rmh-form-button:hover {
    background: var(--rmh-green-dark);
    transform: translateY(-1px);
}

.rmh-form-submit:hover {
    background: var(--rmh-green-dark);
}

.rmh-whatsapp-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 8px;
    background: #128c4a;
    color: var(--rmh-white);
    font-weight: 800;
    text-decoration: none;
}

.rmh-whatsapp-button:hover {
    background: #0d703a;
    color: var(--rmh-white);
}

.rmh-whatsapp-button--cart {
    width: 100%;
    margin-top: 10px;
}

.rmh-cart-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rmh-cart-contact-actions .rmh-whatsapp-button--cart,
.rmh-cart-contact-actions .rmh-phone-button--cart {
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.rmh-phone-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--rmh-ink);
    color: var(--rmh-white);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.rmh-phone-button:hover {
    background: #253d35;
    color: var(--rmh-white);
}

.rmh-phone-button strong {
    white-space: nowrap;
}

.rmh-form-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.rmh-cart-whatsapp-note {
    margin: 10px 0 0;
    color: var(--rmh-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.rmh-form-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.rmh-form-notice--success {
    background: #eef8f4;
    color: var(--rmh-green);
}

.rmh-form-notice--error {
    background: #fff1f1;
    color: #a21c1c;
}

.rmh-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rmh-loop-pack-size {
    margin: 0 0 8px;
    color: var(--rmh-muted);
    font-size: 0.84rem;
}

.rmh-loop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.rmh-stock-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
}

.rmh-stock-badge {
    background: #eef8f4;
    color: var(--rmh-green);
}

.rmh-stock-badge--outofstock {
    background: #fff1f1;
    color: #a21c1c;
}

.rmh-stock-badge--onbackorder {
    background: #fff8e5;
    color: #825b00;
}

.rmh-product-information {
    clear: both;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: var(--rmh-white);
}

.rmh-product-information h2 {
    margin: 0 0 16px;
    color: var(--rmh-ink);
    font-size: 1.2rem;
}

.rmh-product-information dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.rmh-product-information dl > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--rmh-border);
}

.rmh-product-information dt {
    color: var(--rmh-muted);
    font-weight: 750;
}

.rmh-product-information dd {
    margin: 0;
    color: var(--rmh-ink);
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--rmh-border);
    border-radius: 10px;
    background: var(--rmh-white);
    box-shadow: 0 10px 28px rgba(0, 78, 53, 0.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--rmh-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--rmh-green);
    font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button {
    min-height: 44px;
    border-radius: 8px;
    background: var(--rmh-green);
    color: var(--rmh-white);
    font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .button:hover {
    background: var(--rmh-green-dark);
    color: var(--rmh-white);
}

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 8px;
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order {
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1100px) {
    .rmh-site-header__inner {
        grid-template-columns: auto 1fr auto auto;
    }

    .rmh-menu-toggle {
        display: inline-flex;
        order: 4;
    }

    .rmh-site-nav {
        grid-column: 1 / -1;
        width: 100%;
        display: none;
    }

    .rmh-site-header.is-menu-open .rmh-site-nav {
        display: block;
    }

    .rmh-site-nav__menu {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 10px 0 4px;
    }

    .rmh-site-nav__menu a {
        width: 100%;
        justify-content: flex-start;
        padding: 0 12px;
    }

    .rmh-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .rmh-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rmh-promotion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rmh-promotion-banner:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 782px) {
    .admin-bar .rmh-site-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .rmh-site-header__inner {
        min-height: auto;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        padding: 10px 16px;
    }

    .rmh-site-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .rmh-site-header__tagline,
    .rmh-site-header__action {
        display: none;
    }

    .rmh-form-card {
        padding: 18px;
    }

    .rmh-site-header__name {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rmh-site-header__cart {
        min-width: 44px;
        padding: 0 9px;
    }

    .rmh-shop-tools {
        padding: 14px;
    }

    .rmh-shop-tools__search {
        flex-direction: column;
    }

    .rmh-shop-tools__search button {
        width: 100%;
    }

    .rmh-category-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 2px 8px;
        scroll-snap-type: x proximity;
    }

    .rmh-category {
        flex: 0 0 150px;
        min-height: 184px;
        scroll-snap-align: start;
    }

    .rmh-category-grid__footer {
        margin-top: 16px;
    }

    .rmh-promotion-section {
        margin-bottom: 28px;
        padding: 0 16px;
    }

    .rmh-faq-section {
        margin-bottom: 28px;
        padding: 0 16px;
    }

    .rmh-footer-information__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 16px;
    }

    .rmh-footer-information nav {
        justify-content: flex-start;
    }

    .rmh-promotion-grid {
        grid-template-columns: 1fr;
    }

    .rmh-promotion-banner {
        min-height: 210px;
        padding: 20px;
    }

    .rmh-promotion-banner__content {
        max-width: 76%;
    }

    .rmh-promotion-banner h2 {
        font-size: 1.2rem;
    }

    .rmh-promotion-banner p {
        min-height: 0;
    }

    .rmh-product-information dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .rmh-page-hero,
    .rmh-360-showcase,
    .rmh-find-store {
        margin: 20px 16px 28px;
        padding: 24px 18px;
    }

    .rmh-360-showcase {
        grid-template-columns: 1fr;
    }

    .rmh-content-grid,
    .rmh-contact-grid,
    .rmh-feature-band {
        grid-template-columns: 1fr;
    }

    .rmh-form-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .woocommerce ul.products li.product {
        padding: 12px;
    }

    .woocommerce ul.products li.product .button {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
        text-align: center;
    }

    .rmh-product-footer .rmh-buy-now {
        width: 100%;
        margin-top: 6px;
        margin-left: 0 !important;
    }
}

/* Real WooCommerce category discovery: compact and responsive, never decorative-only. */
.rmh-home-categories {
    width: min(calc(100% - 64px), var(--rmh-container));
    margin: 0 auto 48px;
}

.rmh-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rmh-home-category {
    display: flex;
    min-width: 0;
    min-height: 196px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rmh-line);
    border-radius: 14px;
    background: #fff;
    color: var(--rmh-text-strong);
    box-shadow: 0 2px 10px rgba(19, 61, 43, .04);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rmh-home-category:hover,
.rmh-home-category:focus-visible {
    color: var(--rmh-text-strong);
    border-color: rgba(8, 122, 73, .34);
    box-shadow: 0 12px 24px rgba(19, 61, 43, .10);
    transform: translateY(-3px);
}

.rmh-home-category__visual {
    display: grid;
    height: 112px;
    place-items: center;
    overflow: hidden;
    background: #edf8f1;
}

.rmh-home-category__visual img,
.rmh-home-category__visual svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmh-home-category__visual svg {
    width: 86px;
    height: 70px;
}

.rmh-home-category__name {
    padding: 14px 14px 2px;
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.3;
}

.rmh-home-category__action {
    margin-top: auto;
    padding: 8px 14px 14px;
    color: var(--rmh-accent);
    font-size: .76rem;
    font-weight: 700;
}

.rmh-home-categories__footer {
    margin: 20px 0 0;
    text-align: center;
}

@media (max-width: 768px) {
    .rmh-home-categories {
        width: calc(100% - 32px);
        margin-bottom: 32px;
    }

    .rmh-home-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rmh-home-category {
        min-height: 164px;
    }

    .rmh-home-category__visual {
        height: 88px;
    }
}

@media (min-width: 421px) and (max-width: 768px) {
    .rmh-home-hero {
        width: calc(100% - 36px);
    }
}

@media (max-width: 420px) {
    .rmh-site-header__mark {
        width: 38px;
        height: 38px;
    }

    .rmh-site-header__name {
        max-width: 150px;
        font-size: 0.88rem;
    }

    .rmh-site-search button {
        min-width: 72px;
        padding: 0 12px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 783px) {
    .admin-bar .rmh-site-header {
        top: 32px;
    }
}

/* Final homepage rhythm, catalogue placeholder, and footer assurance. */
.rmh-announcement-ribbon {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: #eaf7ef;
    color: #176342;
    font-size: 0.74rem;
    font-weight: 750;
    overflow: hidden;
    overflow: clip;
    position: relative;
    isolation: isolate;
    contain: layout paint;
}

.rmh-announcement-ribbon__track {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    animation: rmh-announcement-scroll 32s linear infinite;
    will-change: transform;
    position: relative;
}

.rmh-announcement-ribbon__item {
    display: inline-block;
    padding: 6px 0;
}

.rmh-announcement-ribbon__sep {
    opacity: 0.7;
}

@keyframes rmh-announcement-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .rmh-announcement-ribbon__track {
        animation: none;
        white-space: nowrap;
    }
    .rmh-announcement-ribbon {
        overflow: clip;
    }
}

.rmh-promotion-section {
    max-width: 1240px;
    margin: 0 auto 28px;
    padding-right: 24px;
    padding-left: 24px;
}

.rmh-promotion-grid {
    gap: 20px;
}

.rmh-promotion-banner {
    min-height: 260px;
    padding: 32px 28px;
    border-color: #e8ecea;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rmh-promotion-banner--green {
    background: #f1faf5;
}

.rmh-promotion-banner--blue {
    background: #f4f9fb;
}

.rmh-promotion-banner--coral {
    background: #fff8f4;
}

.rmh-promotion-banner h2 {
    font-size: 1.45rem;
}

.rmh-promotion-banner p {
    font-size: 0.88rem;
}

.rmh-catalogue-placeholder {
    padding: 28px;
    border: 1px solid #e8ecea;
    border-radius: 16px;
    background: #f8f9fa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rmh-catalogue-placeholder__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.rmh-catalogue-placeholder__header h3 {
    max-width: 680px;
    margin: 0;
    color: #2d3748;
    font-size: 1.35rem;
    line-height: 1.3;
}

.rmh-catalogue-placeholder__status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e4f4eb;
    color: #176342;
    font-size: 0.72rem;
    font-weight: 800;
}

.rmh-catalogue-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rmh-catalogue-preview {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e8ecea;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.rmh-catalogue-preview__visual {
    min-height: 104px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f5faf7;
}

.rmh-catalogue-preview__visual svg {
    width: 110px;
    height: 90px;
    display: block;
}

.rmh-catalogue-preview strong {
    color: #2d3748;
    font-size: 0.86rem;
}

.rmh-catalogue-preview span,
.rmh-catalogue-preview small {
    color: #718078;
    font-size: 0.74rem;
    line-height: 1.35;
}

.rmh-catalogue-preview small {
    color: #176342;
    font-weight: 700;
}

.rmh-catalogue-placeholder__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.rmh-catalogue-placeholder__actions .rmh-btn {
    min-height: 42px;
}

.rmh-360-showcase {
    border-color: #e8ecea;
    background: #f8f9fa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rmh-360-showcase__visual {
    min-height: 220px;
    background: #eaf7ef;
}

.rmh-360-showcase__visual-mark {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border: 1px solid #a9d9bd;
    border-radius: 50%;
    background: #ffffff;
    color: var(--rmh-green);
    font-size: 1.8rem;
    font-weight: 850;
    box-shadow: 0 10px 20px rgba(0, 122, 72, 0.08);
}

.rmh-360-showcase__visual-line {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px dashed #a9d9bd;
    border-radius: 50%;
}

.rmh-footer-information__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.rmh-footer-legal {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    color: #4a554f;
    font-size: 0.72rem;
    line-height: 1.5;
}

.ast-footer-copyright {
    color: #718078;
    font-size: 0.78rem;
}

.ast-footer-copyright a {
    color: inherit;
}

@media (max-width: 768px) {
    .rmh-announcement-ribbon {
        min-height: 34px;
        font-size: 0.68rem;
    }

    .rmh-promotion-section {
        margin-bottom: 38px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .rmh-promotion-banner {
        min-height: 220px;
        padding: 28px 22px;
    }

    .rmh-catalogue-placeholder {
        padding: 18px;
    }

    .rmh-catalogue-placeholder__header {
        display: grid;
        gap: 12px;
    }

    .rmh-catalogue-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rmh-catalogue-preview {
        padding: 12px;
    }

    .rmh-footer-information__inner {
        display: flex;
    }

    .rmh-footer-legal {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .rmh-catalogue-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage production hero and pharmacy utility bar. */
.rmh-utility-bar {
    width: 100%;
    background: #10392d;
    color: #e8f5ef;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
}

.rmh-utility-bar__inner {
    max-width: 1240px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 0 auto;
    padding: 5px 24px;
    box-sizing: border-box;
}

.rmh-utility-bar__inner span,
.rmh-utility-bar__inner a {
    color: inherit;
    line-height: 1.3;
    text-decoration: none;
}

.rmh-utility-bar__inner span::before,
.rmh-utility-bar__inner a::before {
    content: "";
    width: 4px;
    height: 4px;
    display: inline-block;
    margin: 0 9px 2px 0;
    border-radius: 50%;
    background: #9ed6b9;
}

.rmh-utility-bar__inner span:first-child::before {
    display: none;
}

.rmh-utility-bar__inner a {
    font-weight: 750;
}

.rmh-utility-bar__inner a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.rmh-home-hero {
    width: min(calc(100% - 64px), 1400px);
    max-width: none;
    min-width: 0;
    min-height: 420px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    margin: 0 auto 36px !important;
    padding: 40px 48px !important;
    border-top: 1px solid #dbece3;
    border-bottom: 1px solid #dbece3;
    box-sizing: border-box;
    background: #eff8f3;
    position: relative;
    overflow: hidden;
}

.rmh-home-hero__content {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.rmh-home-hero .rmh-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 0 11px;
    border: 1px solid #b6dfc9;
    border-radius: 999px;
    background: #e3f4eb;
    color: #08754f;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.rmh-home-hero h1 span {
    color: var(--rmh-green);
}

.rmh-home-hero h1 {
    max-width: 510px;
    margin: 0 0 18px;
    color: #10201b;
    font-size: 3.55rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.03;
}

.rmh-home-hero p {
    max-width: 500px;
    margin: 0 0 18px;
    color: #526b61;
    font-size: 1.04rem;
    line-height: 1.55;
}

.rmh-home-hero .rmh-hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.rmh-home-hero .rmh-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 7px;
    font-weight: 800;
    text-decoration: none;
}

.rmh-home-hero .rmh-btn-primary {
    background: var(--rmh-green);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 97, 65, 0.16);
}

.rmh-home-hero .rmh-btn-primary:hover {
    background: #005f40;
    color: #ffffff;
}

.rmh-home-hero .rmh-btn-light {
    border: 1px solid #bedbcd;
    background: #ffffff;
    color: #0b6748;
}

.rmh-home-hero .rmh-btn-light:hover {
    border-color: var(--rmh-green);
    background: #f7fcf9;
    color: #005f40;
}

.rmh-home-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
}

.rmh-home-hero__benefits span {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 6px;
    align-items: center;
    color: #36584a;
    font-size: 0.8rem;
    font-weight: 750;
}

.rmh-home-hero__benefits strong,
.rmh-home-hero__benefits small {
    grid-column: 2;
}

.rmh-home-hero__benefits strong {
    color: #2d3748;
    font-size: 0.8rem;
    line-height: 1.2;
}

.rmh-home-hero__benefits small {
    color: #60766d;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
}

.rmh-home-hero__benefits b {
    grid-row: 1 / span 2;
}

.rmh-home-hero__benefits b {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #c9ead8;
    color: #08754f;
    font-size: 0.72rem;
}

.rmh-hero-art {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.rmh-hero-art__frame {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #d9e5df;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23, 73, 53, 0.12);
}

.rmh-hero-art img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1264 / 843;
    object-fit: cover;
}

.rmh-hero-art figcaption {
    margin-top: 10px;
    color: #60766d;
    font-size: 0.74rem;
    text-align: right;
}

@media (max-width: 1100px) {
    .rmh-home-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
        gap: 26px;
        padding-right: 28px;
        padding-left: 28px;
    }

    .rmh-home-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .rmh-utility-bar__inner {
        justify-content: flex-start;
        gap: 5px 14px;
        padding: 7px 16px;
    }

    .rmh-utility-bar__inner span:nth-child(2),
    .rmh-utility-bar__inner span:nth-child(3) {
        display: none;
    }

    .rmh-home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        margin-top: 16px;
        margin-bottom: 38px;
        padding: 34px 18px 30px;
    }

    .rmh-home-hero h1 {
        max-width: 620px;
        font-size: 2.55rem;
    }

    .rmh-home-hero p {
        font-size: 0.96rem;
    }

    .rmh-hero-art figcaption {
        text-align: left;
    }
}

.rmh-instant-strip {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 28px;
    padding: 0 24px;
}

.rmh-instant-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border: 1px solid #dbece3;
    border-radius: 12px;
    background: #f8faf9;
}

.rmh-instant-strip__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--rmh-green);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.rmh-instant-strip__content {
    flex: 1 1 auto;
    min-width: 0;
}

.rmh-instant-strip__content strong {
    display: block;
    margin: 0 0 2px;
    color: #10201b;
    font-size: 0.92rem;
    font-weight: 800;
}

.rmh-instant-strip__content span {
    color: #5f716b;
    font-size: 0.78rem;
    line-height: 1.4;
}

.rmh-instant-strip__actions {
    flex-shrink: 0;
}

.rmh-instant-strip__actions .rmh-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 750;
}

@media (max-width: 768px) {
    .rmh-instant-strip__inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .rmh-instant-strip__actions {
        width: 100%;
    }

    .rmh-instant-strip__actions .rmh-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 421px) and (max-width: 768px) {
    .rmh-home-hero {
        width: calc(100% - 36px);
    }
}

@media (max-width: 420px) {
    .rmh-utility-bar__inner {
        font-size: 0.68rem;
    }

    .rmh-home-hero {
        padding-right: 16px;
        padding-left: 16px;
    }

    .rmh-home-hero h1 {
        font-size: 2.18rem;
    }

    .rmh-home-hero .rmh-hero-buttons,
    .rmh-home-hero .rmh-btn {
        width: 100%;
    }

    .rmh-home-hero .rmh-btn {
        box-sizing: border-box;
    }

    .rmh-home-hero__benefits {
        display: grid;
        gap: 8px;
    }
}

/* Three-tier header treatment and featured category grid. */
.rmh-site-header__name {
    color: var(--rmh-green);
}

.rmh-site-header__actions {
    grid-column: 3;
    min-width: 0;
    gap: 4px;
}

.rmh-site-header__action,
.rmh-site-header__cart {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--rmh-ink);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.rmh-site-header__action:hover,
.rmh-site-header__cart:hover {
    background: #f1f8f4;
    color: var(--rmh-green);
}

.rmh-site-header__action-icon {
    color: var(--rmh-green);
    font-size: 1rem;
    line-height: 1;
}

.rmh-site-header__cart .rmh-cart-count {
    background: var(--rmh-mint);
    color: #073b25;
}

.rmh-site-header__cart > span:not(.rmh-cart-count) {
    white-space: nowrap;
}

.rmh-site-header__nav-row {
    max-width: 1240px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 auto;
    padding: 0 24px;
    border-top: 1px solid #edf2ef;
    box-sizing: border-box;
}

.rmh-site-header__nav-row .rmh-site-nav {
    flex: 1 1 auto;
    width: auto;
    display: block;
}

.rmh-site-header__nav-row .rmh-site-nav__menu {
    justify-content: flex-start;
    gap: 2px;
}

.rmh-header-whatsapp {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid #a9d9bd;
    border-radius: 7px;
    color: var(--rmh-green-dark);
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
}

.rmh-header-whatsapp span {
    color: var(--rmh-mint);
    font-size: 0.68rem;
}

.rmh-header-whatsapp:hover {
    border-color: var(--rmh-green);
    background: #f1faf5;
    color: var(--rmh-green);
}

.rmh-home-trust {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 32px;
    padding: 0 24px;
    box-sizing: border-box;
}

.rmh-home-trust .rmh-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 10px 0;
    border: 1px solid #e5ebe8;
    background: #f8f9fa;
}

.rmh-home-trust .rmh-trust-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    padding: 14px 18px;
    border-right: 1px solid #e1e8e4;
    text-align: left;
}

.rmh-home-trust .rmh-trust-item:last-child {
    border-right: 0;
}

.rmh-trust-item__icon {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    color: var(--rmh-green);
    line-height: 1;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.rmh-home-trust .rmh-trust-item strong {
    color: #2d3748;
    font-size: 0.84rem;
    line-height: 1.2;
}

.rmh-home-trust .rmh-trust-item p {
    margin: 3px 0 0;
    color: #718078;
    font-size: 0.72rem;
    line-height: 1.3;
}

.rmh-category-carousel-wrapper {
    max-width: 1240px;
    margin: 0 auto 36px;
    padding: 0 24px;
}

#rmh-popular-categories.rmh-category-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

#rmh-popular-categories .rmh-category {
    flex: 0 0 130px;
    min-width: 130px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 10px 8px 12px;
    border: 1px solid #e4ece8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
    scroll-snap-align: start;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#rmh-popular-categories .rmh-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

#rmh-popular-categories .rmh-category-media {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

#rmh-popular-categories .rmh-category strong {
    font-size: 0.78rem;
    line-height: 1.25;
    color: #2d3748;
}

.rmh-category-carousel-wrapper::-webkit-scrollbar,
#rmh-popular-categories::-webkit-scrollbar {
    display: none;
}

.rmh-category-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px;
}

.rmh-category {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.rmh-category:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px);
}

.rmh-category-media {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e4ece8;
    border-radius: 50%;
    background: #f8f9fa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rmh-category strong {
    color: #2d3748;
    font-size: 0.8rem;
    line-height: 1.25;
}

.rmh-category > span:last-child {
    display: none;
}

@media (max-width: 1100px) {
    .rmh-site-header__nav-row {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .rmh-site-header__nav-row .rmh-site-nav {
        display: none;
    }

    .rmh-site-header.is-menu-open .rmh-site-header__nav-row .rmh-site-nav {
        display: block;
    }

    .rmh-site-header__nav-row .rmh-site-nav__menu {
        align-items: stretch;
        flex-direction: column;
    }

    .rmh-header-whatsapp {
        align-self: flex-start;
        margin: 6px 0;
    }

    #rmh-popular-categories.rmh-category-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    #rmh-popular-categories .rmh-category {
        flex: 0 0 auto;
        min-width: 0;
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .rmh-site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .rmh-site-header__brand {
        grid-column: 1;
        grid-row: 1;
    }

    .rmh-site-header__actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .rmh-menu-toggle {
        grid-column: 3;
        grid-row: 1;
        order: initial;
    }

    .rmh-site-header__action--prescription,
    .rmh-site-header__action--account {
        display: none;
    }

    .rmh-site-header__cart {
        min-height: 42px;
        padding: 0 4px;
        font-size: 0.7rem;
    }

    .rmh-site-header__cart > span:not(.rmh-cart-count) {
        display: none;
    }

    .rmh-site-header__nav-row {
        padding-right: 16px;
        padding-left: 16px;
    }

    .rmh-home-trust {
        margin-bottom: 38px;
        padding: 0 16px;
    }

    .rmh-home-trust .rmh-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rmh-home-trust .rmh-trust-item:nth-child(2) {
        border-right: 0;
    }

    .rmh-home-trust .rmh-trust-item:nth-child(-n + 2) {
        border-bottom: 1px solid #e1e8e4;
    }

    #rmh-popular-categories.rmh-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #rmh-popular-categories .rmh-category {
        flex: 0 0 auto;
        min-width: 0;
        padding: 8px 6px;
    }
}

.rmh-utility-bar__inner {
    justify-content: space-between;
}

.rmh-utility-bar__benefits,
.rmh-utility-bar__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.rmh-utility-bar__inner span::before {
    display: none;
}

.rmh-utility-bar__inner span b {
    margin-right: 5px;
    color: var(--rmh-mint);
    font-size: 0.78rem;
}

.rmh-utility-bar__links a::before {
    display: inline-block;
}

@media (max-width: 768px) {
    .rmh-utility-bar__inner {
        justify-content: flex-start;
    }

    .rmh-utility-bar__benefits span:nth-child(2),
    .rmh-utility-bar__benefits span:nth-child(3) {
        display: none;
    }

    .rmh-utility-bar__links {
        gap: 4px 12px;
    }
}

/* Final homepage visual alignment. */
.rmh-site-header__mark {
    position: relative;
    width: 52px !important;
    height: 52px !important;
    display: block !important;
    flex: 0 0 52px;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none !important;
}

.rmh-site-header__mark::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 8px;
    width: 36px;
    height: 16px;
    background: #39ad70;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.rmh-site-header__mark-face {
    position: absolute;
    top: 12px;
    width: 36px;
    height: 34px;
    display: block;
}

.rmh-site-header__mark-face--front {
    left: 8px;
    background: #078a53;
    clip-path: polygon(0 0, 50% 24%, 100% 0, 100% 72%, 50% 100%, 0 72%);
}

.rmh-site-header__mark-face--side {
    left: 26px;
    background: #00633d;
    clip-path: polygon(50% 24%, 100% 0, 100% 72%, 50% 100%);
}

.rmh-site-header__mark-plus {
    position: absolute;
    top: 17px;
    left: 18px;
    z-index: 1;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.rmh-site-header__name {
    font-size: 1.18rem !important;
    line-height: 1.08;
}

.rmh-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.rmh-tool-card {
    width: 100% !important;
    min-height: 0;
    padding: 20px 22px !important;
}

.rmh-tool-whatsapp {
    background: #eefaf4 !important;
}

.rmh-tool-phone {
    background: #fff4ed !important;
}

@media (min-width: 1101px) {
    .rmh-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(32px, 4vw, 64px);
        min-height: 420px;
        padding: 40px 48px;
    }

    .rmh-home-hero.rmh-hero h1 {
        max-width: 560px;
        font-size: 2.75rem !important;
        line-height: 1.05;
        letter-spacing: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .rmh-home-hero.rmh-hero h1 {
        font-size: 2.75rem !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 768px) {
    .rmh-site-header__name {
        max-width: 185px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        font-size: 1.02rem !important;
    }

    .rmh-tools-grid {
        grid-template-columns: 1fr !important;
    }

    .rmh-tool-card {
        min-height: 0;
        padding: 20px 22px !important;
    }
}

/* Supplied reference artwork for the homepage promotions and categories. */
.rmh-promotion-staggered {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    padding: 4px 0 10px;
}

.rmh-promotion-image-card {
    position: relative;
    min-width: 0;
    border: 1px solid #d9e9df;
    border-radius: 18px 12px 18px 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(12, 75, 48, 0.09);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rmh-promotion-image-card--center {
    margin-top: 30px;
    border-radius: 12px 18px 10px 18px;
}

.rmh-promotion-image-card--right {
    border-radius: 10px 18px 12px 18px;
}

.rmh-promotion-image-card:hover,
.rmh-promotion-image-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(12, 75, 48, 0.16);
}

.rmh-promotion-image-card:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -14px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #7ac49a;
    border-right: 2px solid #7ac49a;
    background: #ffffff;
    transform: translateY(-50%) rotate(45deg);
}

.rmh-promotion-image-link {
    display: block;
    overflow: hidden;
    border-radius: inherit;
}

.rmh-promotion-image-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto !important;
    object-fit: contain;
}

.rmh-category-media {
    aspect-ratio: 1.45 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff4ed !important;
    box-shadow: 0 6px 15px rgba(12, 75, 48, 0.07);
}

.rmh-category-media .rmh-category-art,
.rmh-category-media .rmh-category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmh-category-grid::-webkit-scrollbar {
    display: none;
}

.rmh-site-header__mark {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    border-radius: 50% !important;
    object-fit: contain;
    background: #ffffff !important;
}

@media (max-width: 768px) {
    .rmh-promotion-staggered {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-inline: 2px;
    }

    .rmh-promotion-image-card--left {
        margin-right: 24px;
    }

    .rmh-promotion-image-card--center {
        margin-top: 0;
        margin-left: 24px;
    }

    .rmh-promotion-image-card--right {
        margin-right: 24px;
    }

    .rmh-promotion-image-card:not(:last-child)::after {
        display: none;
    }

    .rmh-site-header__mark {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
    }
}

/* Display the supplied advertisements as separate native-ratio placements. */
.rmh-promotion-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto 36px;
    padding: 0 24px;
}

.rmh-promotion-section {
    width: min(calc(100% - 64px), 1400px);
    max-width: none;
    margin: 0 auto 48px;
    padding: 0;
}

.rmh-promotion-section + .rmh-promotion-section {
    margin-top: 0;
}

.rmh-promotion-image-card {
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--rmh-border);
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rmh-promotion-image-card:hover,
.rmh-promotion-image-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(12, 75, 48, 0.12);
}

.rmh-promotion-image-link {
    display: block;
    overflow: hidden;
    border-radius: inherit;
}

.rmh-promotion-image-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rmh-promotion-image-card--center {
    margin-top: 0;
}

.rmh-promotion-image-card:not(:last-child)::after {
    display: none;
}

.rmh-category-media .rmh-category-art--image,
.rmh-category-media .rmh-category-image {
    object-position: center center;
}

/* Moving green information ticker / marquee. */
.rmh-marquee-section {
    width: 100%;
    background: #10392d;
    color: #e8f5ef;
    overflow: hidden;
    padding: 10px 0;
}

.rmh-marquee-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: hidden;
}

.rmh-marquee-track {
    display: flex;
    width: max-content;
    animation: rmh-marquee-scroll 28s linear infinite;
}

.rmh-marquee-group {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.rmh-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.rmh-marquee-bullet {
    color: #9ed6b9;
}

@keyframes rmh-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rmh-marquee-track {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 768px) {
    .rmh-promotion-carousel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px;
    }

    .rmh-promotion-image-link img {
        aspect-ratio: 16 / 9;
    }

    .rmh-marquee-item {
        font-size: 0.72rem;
    }
}

.rmh-order-assistance {
    max-width: 1120px;
    margin: 0 auto 36px;
    padding: 20px 22px;
    border: 1px solid var(--rmh-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #f3faf7 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(0, 78, 53, 0.06);
}

.rmh-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.rmh-step-card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--rmh-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rmh-step-num {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8faf2;
    color: #007a53;
    font-size: 0.75rem;
    font-weight: 800;
}

.rmh-step-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0faf5;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.rmh-step-card h3 {
    margin: 0 0 8px !important;
    color: #13231d !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.rmh-step-card p {
    margin: 0 0 12px !important;
    color: #5f716b !important;
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
}

.rmh-step-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rmh-step-link {
    color: #007a53 !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
}

.rmh-step-link:hover {
    color: #005f40 !important;
    text-decoration: underline !important;
}

.rmh-step-btn {
    background: transparent;
    border: 0;
    color: #007a53;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    padding: 0;
}

.rmh-step-btn:hover {
    color: #005f40;
    text-decoration: underline;
}

.rmh-find-store__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.rmh-find-store__visual {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b4537 0%, #1f5f4e 100%);
    padding: 28px 24px;
    color: #ffffff;
    overflow: hidden;
}

.rmh-find-store__map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 650;
    margin-bottom: 16px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.rmh-find-store__map-graphic {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    z-index: 1;
}

.rmh-map-pin-circle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00a86b;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.35);
    z-index: 2;
    position: relative;
}

.rmh-map-pin-circle svg {
    width: 22px;
    height: 22px;
}

.rmh-map-pin-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 168, 107, 0.25);
    animation: rmh-pulse 2s ease-in-out infinite;
    z-index: 1;
}

.rmh-badge-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00a86b;
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
    animation: rmh-badge-pulse 2s ease-in-out infinite;
}

@keyframes rmh-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.6);
        opacity: 0.2;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes rmh-badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 168, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
    }
}

.rmh-find-store__features {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rmh-find-store__features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4f5e5;
    font-size: 0.78rem;
    font-weight: 650;
}

.rmh-find-store__features svg {
    color: #00a86b;
}

.rmh-find-store__content {
    padding: 0;
}

.rmh-find-store__subtitle {
    margin: 0 0 16px !important;
}

.rmh-find-store__address-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rmh-border);
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 16px;
}

.rmh-find-store__addr-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.rmh-find-store__addr-text strong {
    display: block;
    margin: 0 0 4px;
    color: var(--rmh-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.rmh-find-store__addr-text address {
    margin: 0;
    color: var(--rmh-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    font-style: normal;
}

.rmh-find-store__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rmh-find-store__directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rmh-find-store__directions-btn svg {
    flex-shrink: 0;
}

.rmh-payment-section {
    max-width: 1120px;
    margin: 0 auto 36px;
    padding: 28px 24px;
    border: 1px solid var(--rmh-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #f3faf7 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(0, 78, 53, 0.06);
}

.rmh-payment-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 18px;
}

.rmh-payment-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--rmh-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rmh-payment-qr img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rmh-payment-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rmh-payment-upi {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rmh-payment-upi-label {
    color: var(--rmh-muted);
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rmh-payment-upi-value {
    color: var(--rmh-ink);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.rmh-payment-note {
    margin: 0;
    color: var(--rmh-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.rmh-payment-apps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rmh-payment-app {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8faf2;
    color: #007a53;
    font-size: 0.72rem;
    font-weight: 750;
}

@media (max-width: 768px) {
    .rmh-steps-grid {
        grid-template-columns: 1fr;
    }

    .rmh-find-store__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rmh-find-store__actions .rmh-btn {
        width: 100%;
        justify-content: center;
    }

    .rmh-payment-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .rmh-payment-apps {
        justify-content: center;
    }
}

/* ==================================================
   HOMEPAGE VISUAL REDESIGN - Enhanced UI
   ================================================== */

/* Global refinements */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(0, 122, 83, 0.15);
    color: var(--rmh-ink);
}

/* Consistent container rhythm */
.rmh-section,
.rmh-tools-section,
.rmh-form-section,
.rmh-faq-section,
.rmh-payment-section,
.rmh-order-assistance {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .rmh-section,
    .rmh-tools-section,
    .rmh-form-section,
    .rmh-faq-section,
    .rmh-payment-section,
    .rmh-order-assistance {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==================================================
   HEADER
   ================================================== */
.rmh-site-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 78, 53, 0.06);
}

.rmh-site-header__inner {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 18px;
}

.rmh-site-header__brand {
    gap: 12px;
}

.rmh-site-header__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3rem;
}

.rmh-site-header__name {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.rmh-site-header__tagline {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

/* Search bar prominence */
.rmh-site-search {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--rmh-border);
    background: #f8fbfa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rmh-site-search:focus-within {
    border-color: var(--rmh-green);
    box-shadow: 0 0 0 3px rgba(0, 122, 83, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.rmh-site-search input[type="search"] {
    font-size: 0.92rem;
    padding-left: 16px;
}

.rmh-site-search button[type="submit"] {
    min-width: 96px;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 0 10px 10px 0;
}

/* Header actions */
.rmh-site-header__action,
.rmh-site-header__cart {
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.8rem;
    gap: 7px;
    transition: background 0.2s ease, color 0.2s ease;
}

.rmh-site-header__action:hover,
.rmh-site-header__cart:hover {
    background: #eef8f4;
}

/* Navigation row */
.rmh-site-header__nav-row {
    border-top: 1px solid #edf2ef;
    padding-top: 8px;
    padding-bottom: 8px;
}

.rmh-site-nav__menu a {
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.rmh-site-nav__menu a:hover,
.rmh-site-nav__menu .current-menu-item > a {
    background: #eef8f4;
    color: var(--rmh-green);
}

.rmh-header-whatsapp {
    border-radius: 8px;
    font-size: 0.72rem;
    padding: 0 14px;
}

/* ==================================================
   HERO
   ================================================== */
.rmh-home-hero {
    gap: 40px;
    padding: 40px 40px 36px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eefaf6 0%, #f8fdfb 60%, #ffffff 100%);
    border: 1px solid #d9ece2;
}

.rmh-home-hero__content {
    max-width: 540px;
}

.rmh-home-hero .rmh-eyebrow {
    margin-bottom: 20px;
    padding: 0 14px;
    min-height: 30px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.rmh-home-hero h1 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.rmh-home-hero h1 span {
    color: var(--rmh-green-dark);
}

.rmh-home-hero p {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #526b61;
}

.rmh-hero-buttons {
    gap: 12px;
    margin-bottom: 24px;
}

.rmh-home-hero .rmh-btn {
    min-height: 50px;
    padding: 0 22px;
    font-size: 0.92rem;
    border-radius: 10px;
    gap: 10px;
}

.rmh-home-hero .rmh-btn-primary {
    box-shadow: 0 10px 24px rgba(0, 97, 65, 0.18);
}

.rmh-home-hero .rmh-btn-light {
    border-width: 1.5px;
}

/* Hero benefits */
.rmh-home-hero__benefits {
    gap: 12px 20px;
}

.rmh-home-hero__benefits span {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 8px;
    font-size: 0.82rem;
}

.rmh-home-hero__benefits b {
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
}

.rmh-home-hero__benefits strong {
    font-size: 0.82rem;
    color: var(--rmh-ink);
}

.rmh-home-hero__benefits small {
    font-size: 0.72rem;
    color: var(--rmh-muted);
}

/* Hero art */
.rmh-hero-art__frame {
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(23, 73, 53, 0.12);
}

.rmh-hero-art figcaption {
    margin-top: 12px;
    font-size: 0.8rem;
    text-align: right;
    color: #60766d;
}

/* ==================================================
   INSTANT DELIVERY STRIP
   ================================================== */
.rmh-instant-strip__inner {
    padding: 16px 24px;
    border-radius: 14px;
    gap: 18px;
}

.rmh-instant-strip__badge {
    padding: 8px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.rmh-instant-strip__content strong {
    font-size: 0.98rem;
}

.rmh-instant-strip__content span {
    font-size: 0.82rem;
}

.rmh-instant-strip__actions .rmh-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 0.88rem;
}

/* ==================================================
   SECTION HEADINGS
   ================================================== */
.rmh-section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.rmh-section-heading > div {
    max-width: 640px;
    margin: 0 auto;
}

.rmh-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    background: #e8faf2;
    color: var(--rmh-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rmh-section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.rmh-section-heading p {
    margin: 0;
    color: var(--rmh-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rmh-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rmh-green);
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.rmh-view-all:hover {
    background: #eef8f4;
    color: var(--rmh-green-dark);
}

/* ==================================================
   CATEGORY CARDS
   ================================================== */
.rmh-category-carousel-wrapper {
    margin-bottom: 32px;
}

#rmh-popular-categories.rmh-category-grid {
    gap: 16px;
}

#rmh-popular-categories .rmh-category {
    flex: 0 0 140px;
    min-width: 140px;
    padding: 12px 10px 14px;
    border: 1px solid var(--rmh-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#rmh-popular-categories .rmh-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 78, 53, 0.1);
    border-color: rgba(0, 122, 83, 0.25);
}

#rmh-popular-categories .rmh-category-media {
    border-radius: 14px;
    border: 0;
    box-shadow: none;
    background: var(--rmh-soft);
    margin-bottom: 8px;
}

#rmh-popular-categories .rmh-category strong {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--rmh-ink);
}

.rmh-category-grid__footer {
    margin-top: 24px;
}

.rmh-category-grid__footer .rmh-btn {
    min-height: 46px;
    padding: 0 20px;
}

/* ==================================================
   PROMOTION CAROUSEL (Special Offers)
   ================================================== */
.rmh-promotion-carousel {
    gap: 20px;
    margin-bottom: 40px;
}

.rmh-promotion-image-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--rmh-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rmh-promotion-image-card:hover,
.rmh-promotion-image-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 78, 53, 0.1);
}

.rmh-promotion-image-link {
    display: block;
    overflow: hidden;
}

.rmh-promotion-image-link img {
    transition: transform 0.4s ease;
}

.rmh-promotion-image-card:hover .rmh-promotion-image-link img {
    transform: scale(1.04);
}

/* ==================================================
   PHARMACY SERVICES (Tools)
   ================================================== */
.rmh-tools-section {
    margin-bottom: 40px;
}

.rmh-tools-grid {
    gap: 20px;
}

.rmh-tool-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border: 1px solid var(--rmh-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.rmh-tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rmh-green);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rmh-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 78, 53, 0.08);
    border-color: rgba(0, 122, 83, 0.2);
}

.rmh-tool-card:hover::before {
    opacity: 1;
}

.rmh-tool-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eefaf5;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.rmh-tool-whatsapp .rmh-tool-icon {
    background: #e6f7ee;
}

.rmh-tool-phone .rmh-tool-icon {
    background: #fff4ed;
}

.rmh-tool-content span {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rmh-green);
    margin-bottom: 6px;
}

.rmh-tool-content h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rmh-ink);
    line-height: 1.3;
}

.rmh-tool-content p {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--rmh-muted);
    line-height: 1.6;
}

.rmh-tool-content strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rmh-green);
    font-size: 0.88rem;
    font-weight: 800;
    margin-top: auto;
}

/* ==================================================
   PRESCRIPTION SECTION
   ================================================== */
.rmh-form-section {
    margin-bottom: 40px;
}

.rmh-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.rmh-form-header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.rmh-pharmacy-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--rmh-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 78, 53, 0.05);
}

.rmh-form-grid {
    gap: 18px;
    margin-bottom: 18px;
}

.rmh-form-field {
    gap: 8px;
}

.rmh-form-field label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--rmh-ink);
}

.rmh-form-field input,
.rmh-form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid var(--rmh-border);
    border-radius: 12px;
    background: #fbfdfc;
    font: inherit;
    color: var(--rmh-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rmh-form-field input:focus,
.rmh-form-field textarea:focus {
    border-color: var(--rmh-green);
    box-shadow: 0 0 0 3px rgba(0, 122, 83, 0.08);
    outline: none;
}

.rmh-prescription-file-actions {
    gap: 10px;
    margin-bottom: 10px;
}

.rmh-file-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1.5px solid var(--rmh-border);
    border-radius: 10px;
    background: var(--rmh-soft);
    color: var(--rmh-ink);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rmh-file-action:hover {
    border-color: var(--rmh-green);
    color: var(--rmh-green-dark);
    background: #eef8f4;
}

.rmh-form-button {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 8px;
}

.rmh-form-button:not(:disabled),
.rmh-form-submit:not(:disabled),
.rmh-step-btn:not(:disabled),
.rmh-loc-actions .rmh-btn:not(:disabled),
.rmh-delivery-card__cta:not(:disabled) {
    background: var(--rmh-green, #087a49);
    color: #fff;
    border-color: var(--rmh-green, #087a49);
}

.rmh-form-button:not(:disabled):hover,
.rmh-form-submit:not(:disabled):hover,
.rmh-step-btn:not(:disabled):hover,
.rmh-loc-actions .rmh-btn:not(:disabled):hover,
.rmh-delivery-card__cta:not(:disabled):hover {
    background: var(--rmh-green-dark, #005a30);
    color: #fff;
}

.rmh-form-button:disabled,
.rmh-form-submit:disabled,
.rmh-step-btn:disabled,
.rmh-loc-actions .rmh-btn:disabled,
.rmh-delivery-card__cta:disabled {
    color: #6b7d74;
    background: #e8efeb;
    border-color: #d1dfd7;
    cursor: not-allowed;
}

/* ==================================================
   MARQUEE
   ================================================== */
.rmh-marquee-section {
    padding: 12px 0;
    background: linear-gradient(90deg, #0f3328 0%, #143d31 100%);
}

.rmh-marquee-wrap {
    padding: 0 24px;
}

.rmh-marquee-item {
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: 0.03em;
}

/* ==================================================
   ORDER ASSISTANCE (How to Order)
   ================================================== */
.rmh-order-assistance {
    margin-bottom: 40px;
    border-radius: 20px;
    padding: 32px 24px;
}

.rmh-steps-grid {
    gap: 20px;
    margin-top: 28px;
}

.rmh-step-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--rmh-border);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rmh-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 78, 53, 0.08);
}

.rmh-step-num {
    width: 28px;
    height: 28px;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
}

.rmh-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.rmh-step-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.rmh-step-card p {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.rmh-step-links {
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.rmh-step-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--rmh-green);
    border-radius: 10px;
    color: var(--rmh-green);
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.rmh-step-link:hover {
    background: var(--rmh-green);
    color: #ffffff;
    text-decoration: none;
}

.rmh-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--rmh-green);
    border-radius: 10px;
    background: var(--rmh-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rmh-step-btn:hover {
    background: var(--rmh-green-dark);
    border-color: var(--rmh-green-dark);
}

/* ==================================================
   FAQ
   ================================================== */
.rmh-faq-section {
    margin-bottom: 40px;
}

.rmh-faq-list {
    max-width: 900px;
    margin: 0 auto;
    gap: 12px;
}

.rmh-faq-list details {
    border: 1px solid var(--rmh-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rmh-faq-list details[open] {
    border-color: rgba(0, 122, 83, 0.25);
    box-shadow: 0 8px 24px rgba(0, 78, 53, 0.06);
}

.rmh-faq-list summary {
    padding: 18px 20px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--rmh-ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rmh-faq-list summary::-webkit-details-marker {
    display: none;
}

.rmh-faq-list summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eefaf5;
    color: var(--rmh-green);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rmh-faq-list details[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.rmh-faq-list details p {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--rmh-muted);
}

/* ==================================================
   PAYMENT / UPI
   ================================================== */
.rmh-payment-card {
    gap: 28px;
    margin-top: 20px;
}

.rmh-payment-qr {
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rmh-payment-qr img {
    border-radius: 12px;
}

.rmh-payment-upi-value {
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.rmh-payment-app {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

/* ==================================================
   FIND STORE / LOCATION
   ================================================== */
.rmh-find-store__card {
    gap: 20px;
}

.rmh-find-store__visual {
    border-radius: 20px;
    padding: 32px 24px;
}

.rmh-find-store__map-badge {
    padding: 8px 16px;
    font-size: 0.78rem;
    border-radius: 10px;
    margin-bottom: 20px;
}

.rmh-find-store__map-graphic {
    margin-bottom: 24px;
}

.rmh-map-pin-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #00a86b;
    box-shadow: 0 10px 24px rgba(0, 168, 107, 0.35);
}

.rmh-map-pin-circle svg {
    width: 26px;
    height: 26px;
}

.rmh-find-store__features span {
    font-size: 0.82rem;
    font-weight: 650;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #d4f5e5;
}

.rmh-find-store__content {
    padding: 4px 0;
}

.rmh-find-store__subtitle {
    margin-bottom: 18px;
}

.rmh-find-store__address-box {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.rmh-find-store__addr-text strong {
    font-size: 1rem;
}

.rmh-find-store__addr-text address {
    font-size: 0.9rem;
}

.rmh-find-store__actions {
    gap: 12px;
}

.rmh-find-store__actions .rmh-btn {
    min-height: 48px;
    padding: 0 20px;
    font-size: 0.92rem;
    border-radius: 12px;
}

.rmh-find-store__directions-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================================================
   TRUST SECTION
   ================================================== */
.rmh-home-trust .rmh-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border: 1px solid var(--rmh-border);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .rmh-home-trust .rmh-trust-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.rmh-home-trust .rmh-trust-item {
    padding: 22px 20px;
    border-right: 1px solid var(--rmh-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.rmh-home-trust .rmh-trust-item:hover {
    background: #f8fbf9;
}

.rmh-home-trust .rmh-trust-item:last-child {
    border-right: 0;
}

.rmh-trust-item__icon {
    width: 28px;
    height: 28px;
    color: var(--rmh-green);
}

.rmh-home-trust .rmh-trust-item strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--rmh-ink);
}

.rmh-home-trust .rmh-trust-item p {
    font-size: 0.78rem;
    color: var(--rmh-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .rmh-home-trust .rmh-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rmh-home-trust .rmh-trust-item:nth-child(2) {
        border-right: 0;
    }

    .rmh-home-trust .rmh-trust-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--rmh-border);
    }
}

@media (max-width: 420px) {
    .rmh-home-trust .rmh-trust-grid {
        grid-template-columns: 1fr;
    }

    .rmh-home-trust .rmh-trust-item {
        border-right: 0 !important;
        border-bottom: 1px solid var(--rmh-border);
    }

    .rmh-home-trust .rmh-trust-item:last-child {
        border-bottom: 0;
    }
}

/* ==================================================
   FOOTER
   ================================================== */
.rmh-footer-information {
    border-top: 1px solid var(--rmh-border);
    background: #f8fbf9;
    padding-top: 20px;
    padding-bottom: 20px;
}

.rmh-footer-information__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
}

.rmh-footer-information__inner strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--rmh-ink);
    white-space: nowrap;
}

.rmh-footer-information nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 18px;
}

.rmh-footer-information nav a {
    color: #4a554f;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rmh-footer-information nav a:hover {
    color: var(--rmh-green);
}

.rmh-footer-legal {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rmh-border);
    font-size: 0.76rem;
    line-height: 1.6;
    color: #4a554f;
}

.ast-footer-copyright {
    font-size: 0.8rem;
    color: var(--rmh-muted);
}

@media (max-width: 768px) {
    .rmh-footer-information__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }

    .rmh-footer-information nav {
        justify-content: center;
    }

    .rmh-footer-information__inner strong {
        justify-self: center;
    }
}

/* ==================================================
   MOBILE REFINEMENTS
   ================================================== */
@media (max-width: 768px) {
    .rmh-home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 18px;
        border-radius: 16px;
    }

    .rmh-home-hero h1 {
        font-size: 2rem;
    }

    .rmh-home-hero .rmh-hero-buttons {
        flex-direction: column;
    }

    .rmh-home-hero .rmh-btn {
        width: 100%;
        justify-content: center;
    }

    .rmh-home-hero__benefits {
        grid-template-columns: 1fr;
    }

    .rmh-hero-art figcaption {
        text-align: center;
    }

    .rmh-instant-strip__inner {
        flex-wrap: wrap;
    }

    .rmh-instant-strip__actions {
        width: 100%;
    }

    .rmh-instant-strip__actions .rmh-btn {
        width: 100%;
        justify-content: center;
    }

    #rmh-popular-categories.rmh-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #rmh-popular-categories .rmh-category {
        flex: 0 0 auto;
        min-width: 0;
        padding: 10px 8px;
    }

    .rmh-tools-grid {
        grid-template-columns: 1fr;
    }

    .rmh-steps-grid {
        grid-template-columns: 1fr;
    }

    .rmh-payment-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .rmh-payment-apps {
        justify-content: center;
    }

    .rmh-find-store__actions {
        flex-direction: column;
    }

    .rmh-find-store__actions .rmh-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .rmh-home-hero {
        padding: 24px 14px;
    }

    .rmh-home-hero h1 {
        font-size: 1.75rem;
    }

    .rmh-site-header__inner {
        gap: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .rmh-site-search {
        height: 44px;
    }

    .rmh-site-search button[type="submit"] {
        min-width: 80px;
        font-size: 0.8rem;
    }
}

/* ==================================================
   ACCESSIBILITY & REDUCED MOTION
   ================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================================================
    CATALOG PAGINATION
    ================================================== */
.woocommerce-pagination {
    margin: 36px 0 0;
    padding: 0;
    text-align: center;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-pagination .page-numbers li {
    display: inline-flex;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--rmh-border);
    border-radius: 10px;
    background: var(--rmh-white);
    color: var(--rmh-ink);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.woocommerce-pagination .page-numbers a:hover {
    border-color: var(--rmh-green);
    color: var(--rmh-green);
    background: #eef8f4;
}

.woocommerce-pagination .page-numbers .current {
    border-color: var(--rmh-green);
    background: var(--rmh-green);
    color: var(--rmh-white);
}

.woocommerce-pagination .page-numbers .dots {
    border: 0;
    background: transparent;
    color: var(--rmh-muted);
}

.woocommerce-pagination .page-numbers .next,
.woocommerce-pagination .page-numbers .prev {
    font-weight: 800;
}

@media (max-width: 768px) {
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}

/* Prevent empty/hidden Astra/WooCommerce sale badges from rendering as large blue boxes. */
.ast-onsale-card:empty,
.ast-onsale-card[style*="display: none"],
.ast-onsale-card[hidden],
.woocommerce .onsale:empty {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* =========================================================
   RMH — Prevent empty Astra/WooCommerce sale-card artifacts
   ========================================================= */

.ast-onsale-card:empty,
.woocommerce .ast-onsale-card:empty,
.woocommerce-page .ast-onsale-card:empty {
    display: none !important;
}

.ast-onsale-card {
    min-width: 0;
    min-height: 0;
}

.ast-onsale-card:empty::before,
.ast-onsale-card:empty::after {
    display: none !important;
    content: none !important;
}

/* =========================================================
   RMH — MOBILE BOTTOM NAVIGATION
   Fixed bottom bar visible on screens ≤ 768px.
   The PHP wp_footer hook renders .rmh-mobile-nav; this CSS
   makes it render correctly with constrained SVG icons.
   ========================================================= */

.rmh-mobile-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    /* Add bottom padding to body so page content isn't
       obscured by the fixed nav bar */
    body {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    /* The nav bar itself */
    .rmh-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        height: 62px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #ffffff;
        border-top: 1px solid #e4ece8;
        box-shadow: 0 -4px 20px rgba(0, 78, 53, 0.08);
        box-sizing: border-box;
    }

    /* Each nav item — must be <a> tags */
    .rmh-mobile-nav > a {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 4px;
        color: #5f716b;
        font-size: 0.62rem;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.02em;
        transition: color 0.15s ease;
        min-width: 0;
        overflow: hidden;
        position: relative;
    }

    .rmh-mobile-nav > a:hover,
    .rmh-mobile-nav > a:focus-visible,
    .rmh-mobile-nav > a[aria-current="page"] {
        color: #007a48;
    }

    /* ---- Constrain SVG icons ---- */
    /* This is the critical fix: SVGs without explicit dimensions
       default to 300×150px or stretch to the viewport.
       Force them to a fixed 24×24px icon size. */
    .rmh-mobile-nav > a svg {
        display: block;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px;
        min-height: 24px;
        max-width: 24px;
        max-height: 24px;
        flex-shrink: 0;
        overflow: visible;
    }

    /* Label text below icon */
    .rmh-mobile-nav > a span:not(.rmh-mobile-nav__cart-badge) {
        display: block;
        font-size: 0.62rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Active/current page highlight */
    .rmh-mobile-nav > a[aria-current="page"] svg {
        stroke: #007a48;
    }

    /* Cart badge bubble */
    .rmh-mobile-nav__cart-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 20px);
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #007a48;
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 800;
        line-height: 18px;
        text-align: center;
        box-sizing: border-box;
        pointer-events: none;
    }

    /* Hide badge when count is 0 */
    .rmh-mobile-nav__cart-badge:empty,
    .rmh-mobile-nav__cart-badge[data-count="0"] {
        display: none;
    }
}

/* Prevent admin bar from overlapping sticky header when logged in */
@media (max-width: 600px) {
    .admin-bar .rmh-mobile-nav {
        bottom: 0;
    }
}

/* =========================================================
   RMH — HEADER LOCATION BADGE — hide on small mobile
   ========================================================= */
@media (max-width: 480px) {
    .rmh-header-loc-badge {
        display: none;
    }

    /* Adjust header grid for small screens without location badge */
    .rmh-site-header__inner {
        grid-template-columns: auto 1fr auto;
    }
}

/* =========================================================
   RMH — CATEGORY DESCRIPTION — hide on all category tiles
   The description is only relevant in list/search contexts,
   not on the compact category grid cards.
   ========================================================= */
.rmh-category-grid .rmh-category-description,
.rmh-category-description,
#rmh-healthcare-needs .rmh-category-description,
#rmh-popular-categories .rmh-category-description {
    display: none !important;
}

/* =========================================================
   RMH — CATEGORY GRID — fix layout conflicts at 860px
   ========================================================= */
@media (min-width: 860px) {
    /* Ensure the redesigned category grid uses the icon-circle style */
    #rmh-popular-categories.rmh-category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x proximity;
        -ms-overflow-style: none;
        padding: 4px 2px 12px;
    }

    #rmh-popular-categories.rmh-category-grid::-webkit-scrollbar {
        display: none;
    }

    #rmh-popular-categories .rmh-category {
        flex: 0 0 110px;
        min-width: 110px;
        min-height: 0;
        text-align: center;
    }
}

/* =========================================================
   RMH — MOBILE SEARCH — point search nav item to search bar
   ========================================================= */
@media (max-width: 768px) {
    /* Ensure the search item in the mobile nav has the right style */
    .rmh-mobile-nav__search svg {
        stroke: currentColor;
    }
}

/* =========================================================
   RMH — FOOTER REFINEMENT
   ========================================================= */
/* Remove extra bottom margin that causes doubled copyright appearance */
.rmh-footer-copyright {
    display: none;
}

.ast-footer-copyright .ast-footer-copyright-content,
.ast-footer-copyright p {
    font-size: 0.8rem;
    color: var(--rmh-muted);
    margin: 0;
}

/* =========================================================
   RMH — FRONT PAGE ENTRY TITLE
   Hide the redundant "Home" title on the front page.
   ========================================================= */
.home .entry-title,
.home .ast-single-post-order .entry-title,
.front-page .entry-title,
.home .ast-archive-description {
    display: none !important;
}

/* =========================================================
   RMH — HERO BUTTONS HIGH-CONTRAST SOLID STYLING
   Ensure CTA buttons are high-contrast and unmistakable.
   ========================================================= */
.rmh-home-hero .rmh-btn-primary,
.rmh-btn.rmh-btn-primary,
.rmh-btn-primary {
    background: #007a48 !important;
    color: #ffffff !important;
    border: 1px solid #005f40 !important;
    box-shadow: 0 4px 14px rgba(0, 122, 72, 0.25) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.rmh-home-hero .rmh-btn-light,
.rmh-home-hero .rmh-btn-secondary,
.rmh-btn.rmh-btn-secondary,
.rmh-btn-light {
    background: #ffffff !important;
    color: #007a48 !important;
    border: 2px solid #007a48 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.rmh-home-hero .rmh-btn-primary:hover,
.rmh-btn.rmh-btn-primary:hover {
    background: #005f40 !important;
    color: #ffffff !important;
}

.rmh-home-hero .rmh-btn-light:hover,
.rmh-home-hero .rmh-btn-secondary:hover,
.rmh-btn.rmh-btn-secondary:hover {
    background: #eef8f4 !important;
    color: #005f40 !important;
}

/* =========================================================
   RMH — CARD & PRINT REFINEMENTS
   Prevent card content from being split awkwardly.
   ========================================================= */
.rmh-category,
.rmh-step-card,
.rmh-product-card,
.rmh-tool-card,
.rmh-trust-item {
    page-break-inside: avoid;
    break-inside: avoid;
}

/* Clean product cards */
.rmh-product-card .rmh-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbf9;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.rmh-product-card .rmh-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ============================================================
   MASTER QA FIX — September 2026
   Sections: C (Modal), G (Screen-reader), H (Product cards),
   K (Phone/WhatsApp), L (Skip link), N (Footer), Q (Delivery),
   R (Responsive)
   ============================================================ */

/* ─── C. DELIVERY LOCATION MODAL ─────────────────────────── */
.rmh-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.rmh-modal-backdrop:not([hidden]),
.rmh-modal-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.rmh-modal-backdrop[hidden] {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.rmh-location-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    animation: rmh-modal-pop 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes rmh-modal-pop {
    from { transform: scale(0.93); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.rmh-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e8f0eb;
}

.rmh-modal-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rmh-green);
    margin-bottom: 4px;
}

.rmh-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--rmh-text);
}

.rmh-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: #f4f4f4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s;
}

.rmh-modal-close:hover {
    background: #e0e0e0;
    color: #222;
}

/* Modal tabs */
.rmh-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8f0eb;
    padding: 0 24px;
    background: #fafafa;
}

.rmh-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.rmh-tab-btn:hover {
    color: var(--rmh-green);
}

.rmh-tab-btn.is-active {
    color: var(--rmh-green);
    border-bottom-color: var(--rmh-green);
    font-weight: 600;
}

/* Tab panels */
.rmh-tab-panel {
    padding: 24px;
    display: block;
}

.rmh-tab-panel[hidden] {
    display: none;
}

/* Location states */
.rmh-loc-state {
    display: none;
}

.rmh-loc-state.is-active {
    display: block;
}

.rmh-loc-card-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.rmh-loc-hero-icon {
    width: 48px;
    height: 48px;
    background: var(--rmh-green-light, #e8f4ee);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rmh-green);
    flex-shrink: 0;
}

.rmh-loc-hero-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--rmh-text);
}

.rmh-loc-hero-text p {
    font-size: 0.88rem;
    color: #666;
    margin: 0;
}

.rmh-loc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.rmh-loc-actions--dual {
    flex-direction: row;
}

.rmh-loc-privacy-note {
    font-size: 0.78rem;
    color: #888;
    text-align: center;
    margin: 0;
}

/* Spinner */
.rmh-loc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8f0eb;
    border-top-color: var(--rmh-green);
    border-radius: 50%;
    animation: rmh-spin 0.75s linear infinite;
    margin: 0 auto 16px;
}

@keyframes rmh-spin {
    to { transform: rotate(360deg); }
}

.rmh-loc-loading-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.rmh-loc-loading-desc {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Success/warning badges */
.rmh-loc-badge-success,
.rmh-loc-badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.rmh-loc-badge-success {
    background: #e8f5ee;
    color: #1a6b3a;
}

.rmh-loc-badge-warning {
    background: #fff3cd;
    color: #7d5200;
}

/* Result cards */
.rmh-loc-result-card {
    background: #f8fbf9;
    border: 1px solid #d5e9db;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.rmh-loc-result-card--outside {
    background: #fffdf4;
    border-color: #ffe0a0;
}

.rmh-loc-distance-badge {
    display: inline-block;
    background: var(--rmh-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.rmh-loc-result-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--rmh-text);
}

.rmh-loc-result-desc {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 8px;
}

.rmh-loc-disclaimer {
    font-size: 0.76rem;
    color: #888;
    margin: 0;
}

.rmh-loc-secondary-action {
    text-align: center;
}

/* Error box */
.rmh-loc-error-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.rmh-loc-error-icon {
    color: #c0392b;
    flex-shrink: 0;
}

.rmh-loc-error-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #c0392b;
}

.rmh-loc-error-box p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

/* Manual PIN form */
.rmh-manual-address-form p {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 16px;
}

.rmh-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.rmh-form-row--2col > * {
    flex: 1;
    min-width: 0;
}

.rmh-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rmh-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rmh-text);
}

.rmh-form-group input {
    padding: 10px 14px;
    border: 1.5px solid #c8dbd0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.15s;
    outline: none;
}

.rmh-form-group input:focus {
    border-color: var(--rmh-green);
    box-shadow: 0 0 0 3px rgba(0, 122, 72, 0.12);
}

.rmh-form-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    background: #fff3cd;
    color: #7d5200;
    border: 1px solid #ffe0a0;
}

.rmh-form-feedback.is-success {
    background: #e8f5ee;
    color: #1a6b3a;
    border-color: #a8d8b5;
}

.rmh-req {
    color: #c0392b;
    margin-right: 3px;
}

.rmh-text-btn {
    background: none;
    border: none;
    color: var(--rmh-green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rmh-text-btn:hover {
    color: var(--rmh-green-dark, #005a30);
}

/* Shared button styles for modal */
.rmh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}

.rmh-btn:active {
    transform: scale(0.98);
}

.rmh-btn-block {
    width: 100%;
}

.rmh-btn-primary {
    background: var(--rmh-green) !important;
    color: #fff !important;
}

.rmh-btn-primary:hover {
    background: var(--rmh-green-dark, #005a30) !important;
}

.rmh-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.rmh-btn-secondary:hover {
    background: #e0e0e0;
}

/* ─── G. SCREEN-READER PRICE TEXT FIX ────────────────────── */
/*
 * WooCommerce renders <del aria-hidden="true"><span class="screen-reader-text">
 * Original price:</span>…</del> inside product price HTML.
 * The .screen-reader-text inside a <del aria-hidden="true"> is already hidden
 * from AT, but the fallback is that .screen-reader-text must truly be invisible.
 * WooCommerce ships its own .screen-reader-text rule; this reinforces it.
 */
.screen-reader-text,
.woocommerce .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Price del/ins visual cleanup — no bleed of hidden sr text */
.rmh-price del,
.woocommerce-Price-amount del {
    color: #999;
    font-size: 0.82em;
    text-decoration: line-through;
    margin-right: 4px;
}

.rmh-price ins,
.woocommerce-Price-amount ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--rmh-green);
}

/* ─── H. PRODUCT CARD REDESIGN ───────────────────────────── */
/* Product card price area */
.rmh-product-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}

.rmh-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rmh-green);
    flex: 1;
    min-width: 0;
}

/* Add-to-cart button inside product card */
.rmh-product-footer .button.add_to_cart_button,
.rmh-product-footer .button.ajax_add_to_cart {
    background: var(--rmh-green) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.rmh-product-footer .button.add_to_cart_button:hover,
.rmh-product-footer .button.ajax_add_to_cart:hover {
    background: var(--rmh-green-dark, #005a30) !important;
}

/* Prevent product card height collapse when empty meta */
.rmh-product-card__meta:empty {
    display: none;
}

/* Product card article: full height flex */
.rmh-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5ede8;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
}

.rmh-product-card:hover {
    box-shadow: 0 8px 28px rgba(0, 122, 72, 0.12);
    transform: translateY(-2px);
}

.rmh-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 12px;
}

.rmh-product-info h3 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px;
}

.rmh-product-info h3 a {
    color: var(--rmh-text);
    text-decoration: none;
}

.rmh-product-info h3 a:hover {
    color: var(--rmh-green);
}

/* ─── K. PHONE / WHATSAPP LINKS ──────────────────────────── */
/* Ensure all tel: and WhatsApp links in utility bar have adequate tap target */
.rmh-utility-bar__links a,
.rmh-utility-bar__benefits span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

/* Footer contact links */
.rmh-footer-contact a[href^="tel"],
.rmh-footer-contact a[href*="wa.me"],
.rmh-footer-contact a[href*="whatsapp"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: var(--rmh-green);
    text-decoration: none;
    font-weight: 500;
}

.rmh-footer-contact a[href^="tel"]:hover,
.rmh-footer-contact a[href*="wa.me"]:hover {
    text-decoration: underline;
}

/* ─── L. SKIP LINK ────────────────────────────────────────── */
.rmh-skip-link {
    position: absolute;
    top: -100%;
    left: 8px;
    z-index: 999999;
    background: var(--rmh-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.15s;
}

.rmh-skip-link:focus {
    top: 0;
    outline: 3px solid #ffe000;
    outline-offset: 2px;
}

/* ─── N. FOOTER ───────────────────────────────────────────── */
/* Remove any duplicate copyright text */
.rmh-footer-copyright + .rmh-footer-copyright {
    display: none !important;
}

/* Footer grid responsive improvements */
@media (max-width: 640px) {
    .rmh-footer-grid {
        grid-template-columns: 1fr;
    }

    .rmh-footer-col {
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .rmh-footer-col:last-child {
        border-bottom: none;
    }
}

/* ─── Q. DELIVERY FEE VISUAL INDICATOR ───────────────────── */
/*
 * When WooCommerce cart shows a Local Delivery Fee line (added by
 * rmh_apply_local_delivery_fee hook), give it a highlighted style
 * to make the fee/free threshold clear to the customer.
 */
.woocommerce-cart-form,
.woocommerce-checkout {
    /* nothing global — handled per-rule below */
}

/* Highlight delivery fee row in cart/checkout totals */
.woocommerce .cart-totals .woocommerce-shipping-totals td,
.woocommerce-cart .cart-totals tr.fee td {
    color: var(--rmh-text);
    font-weight: 500;
}

/* Free delivery badge — JS can add this class when fee = ₹0 */
.rmh-free-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5ee;
    color: #1a6b3a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
}

/* Delivery notice on cart / checkout */
.rmh-delivery-notice {
    background: #e8f5ee;
    border-left: 4px solid var(--rmh-green);
    color: #1a6b3a;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── R. RESPONSIVE — MODAL ───────────────────────────────── */
@media (max-width: 540px) {
    .rmh-location-modal {
        border-radius: 16px 16px 0 0;
        max-height: 88vh;
    }

    .rmh-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .rmh-location-modal {
        width: 100%;
        max-width: 100%;
    }

    .rmh-modal-header {
        padding: 16px 16px 12px;
    }

    .rmh-tab-panel {
        padding: 16px;
    }

    .rmh-loc-actions--dual {
        flex-direction: column;
    }

    .rmh-form-row--2col {
        flex-direction: column;
    }
}

/* ─── FORM FIELD SHARED STYLES ──────────────────────────────*/
.rmh-field-help {
    font-size: 0.78rem;
    color: #888;
    display: block;
    margin-top: 3px;
}

/* ─── FOCUS VISIBLE GLOBAL FIX ──────────────────────────── */
/* Ensure all interactive elements have a visible focus ring */
*:focus-visible {
    outline: 2px solid var(--rmh-green, #007a48);
    outline-offset: 2px;
}

/* ─── PRESCRIPTION CAMERA BUTTON VISIBILITY ─────────────── */
/* Camera input must be visually hidden but remain accessible */
.rmh-camera-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rmh-prescription-file-input {
    display: none;
}

.rmh-prescription-file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rmh-file-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1.5px solid var(--rmh-green);
    border-radius: 8px;
    color: var(--rmh-green);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    background: #fff;
    min-height: 42px;
}

.rmh-file-action:hover {
    background: var(--rmh-green);
    color: #fff;
}

.rmh-file-status {
    font-size: 0.82rem;
    color: #555;
    display: block;
    min-height: 18px;
}

/* ─── ANNOUNCEMENT RIBBON MOBILE ────────────────────────── */
@media (max-width: 480px) {
    .rmh-announcement-ribbon {
        font-size: 0.75rem;
    }
}


/* ─── BRAND & PACK SIZE STYLING IN PRODUCT CARDS ────────── */
.rmh-loop-brand {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rmh-green, #007a48);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 4px 0 2px;
}

.rmh-loop-brand__label {
    color: #888;
    font-weight: 500;
}

.rmh-product-card__meta--brand {
    color: var(--rmh-green, #007a48);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.rmh-product-card__meta--pack {
    color: #666;
    font-size: 0.8rem;
}

.rmh-search-brand {
    font-size: 0.75rem;
    color: var(--rmh-green, #007a48);
    font-weight: 600;
    margin-top: 1px;
}

/* Ensure placeholder images have consistent look */
.woocommerce-placeholder.rmh-product-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fbf9;
}

/* ============================================================
   RMH UI POLISH LAYER — September 2026
   Appended block: safe, non-destructive overrides only.
   Areas: typography, product cards, search, hero, categories,
   mobile nav, shop, ribbon, FAQ, buttons, a11y, scrollbars,
   micro-animations, mobile gaps.
   ============================================================ */

/* ── 1. CSS DESIGN TOKENS ────────────────────────────────── */
:root {
    --rmh-radius-sm:  6px;
    --rmh-radius-md:  10px;
    --rmh-radius-lg:  16px;
    --rmh-radius-xl:  20px;
    --rmh-shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --rmh-shadow-md:  0 4px 14px rgba(0,78,53,0.07), 0 1px 3px rgba(0,0,0,0.04);
    --rmh-shadow-lg:  0 12px 32px rgba(0,78,53,0.10), 0 2px 6px rgba(0,0,0,0.04);
    --rmh-shadow-glow: 0 0 0 3px rgba(0,122,83,0.14);
    --rmh-transition: 0.22s ease;
    --rmh-transition-fast: 0.14s ease;
}

/* ── 2. GLOBAL TYPOGRAPHY CONSISTENCY ───────────────────── */
/* Tighten line-height on headings site-wide */
h1, h2, h3, h4, h5 {
    -webkit-font-smoothing: antialiased;
}

/* ── 3. PRODUCT CARDS — UNIFIED REDESIGN ────────────────── */
/* Consistent image container */
.rmh-product-card {
    border-radius: var(--rmh-radius-lg);
    border-color: #e5eee9;
    transition: transform var(--rmh-transition), box-shadow var(--rmh-transition), border-color var(--rmh-transition);
}

.rmh-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rmh-shadow-lg);
    border-color: rgba(0,122,83,0.22);
}

.rmh-product-card:active {
    transform: translateY(-1px);
}

/* Image area */
.rmh-product-card .rmh-product-image,
.rmh-product-card__image {
    aspect-ratio: 1 / 1;
    background: #f5faf7;
    border-radius: var(--rmh-radius-md) var(--rmh-radius-md) 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmh-product-card .rmh-product-image img,
.rmh-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
}

.rmh-product-card:hover .rmh-product-image img,
.rmh-product-card:hover .rmh-product-card__image img {
    transform: scale(1.04);
}

/* Brand pill badge — refined, less aggressive */
.rmh-loop-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rmh-green);
    text-transform: none;
    letter-spacing: 0.02em;
    margin: 6px 0 3px;
    padding: 2px 8px;
    background: rgba(0,122,83,0.07);
    border-radius: 999px;
    border: 1px solid rgba(0,122,83,0.14);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rmh-loop-brand__label {
    color: rgba(0,100,65,0.55);
    font-weight: 600;
    font-size: 0.68rem;
}

/* Pack size — subtle */
.rmh-loop-pack-size,
.rmh-product-card__meta--pack {
    font-size: 0.74rem;
    color: var(--rmh-muted);
    margin: 0 0 6px;
    font-weight: 500;
}

/* Product info padding */
.rmh-product-info {
    padding: 12px 14px 14px;
}

.rmh-product-info h3 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 2px;
    font-weight: 700;
}

/* Product footer (price + ATC button) */
.rmh-product-footer {
    padding: 10px 14px 14px;
    gap: 10px;
    border-top: 1px solid #f0f5f2;
    margin-top: auto;
}

.rmh-product-footer .button.add_to_cart_button,
.rmh-product-footer .button.ajax_add_to_cart {
    border-radius: var(--rmh-radius-md) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    transition: background var(--rmh-transition-fast), transform var(--rmh-transition-fast) !important;
    min-height: 36px;
}

.rmh-product-footer .button.add_to_cart_button:active,
.rmh-product-footer .button.ajax_add_to_cart:active {
    transform: scale(0.96) !important;
}

/* Out-of-stock badge */
.rmh-stock-badge--outofstock {
    background: #fff1f1;
    color: #b91c1c;
    font-size: 0.68rem;
    border: 1px solid #fecaca;
}

/* WooCommerce loop products — consistent with rmh cards */
.woocommerce ul.products li.product {
    border-radius: var(--rmh-radius-lg);
    transition: transform var(--rmh-transition), box-shadow var(--rmh-transition), border-color var(--rmh-transition);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--rmh-shadow-lg);
    border-color: rgba(0,122,83,0.22);
}

/* ── 4. SEARCH BAR — POLISHED ────────────────────────────── */
.rmh-site-search {
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid #d8e5df;
    transition: border-color var(--rmh-transition), box-shadow var(--rmh-transition);
}

.rmh-site-search:focus-within {
    border-color: var(--rmh-green);
    box-shadow: var(--rmh-shadow-glow);
}

.rmh-site-search input[type="search"] {
    font-size: 0.9rem;
    padding-left: 14px;
    color: var(--rmh-ink);
}

.rmh-site-search input[type="search"]::placeholder {
    color: #a0b5ab;
}

.rmh-site-search button[type="submit"] {
    border-radius: 0 10px 10px 0;
    min-width: 90px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background var(--rmh-transition-fast);
}

/* Search results dropdown — animated */
.rmh-search-results {
    border-radius: var(--rmh-radius-md);
    box-shadow: var(--rmh-shadow-lg);
    border-color: #e0ebe5;
    animation: rmh-dropdown-in 0.16s ease both;
    max-height: 360px;
}

@keyframes rmh-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rmh-search-item {
    padding: 10px 14px;
    transition: background var(--rmh-transition-fast);
    border-radius: 0;
}

.rmh-search-item:first-child {
    border-radius: var(--rmh-radius-md) var(--rmh-radius-md) 0 0;
}

.rmh-search-item:last-child {
    border-radius: 0 0 var(--rmh-radius-md) var(--rmh-radius-md);
}

.rmh-search-item:hover,
.rmh-search-item[aria-selected="true"] {
    background: #f0faf5 !important;
    border-left: 3px solid var(--rmh-green);
    padding-left: 11px;
}

.rmh-search-thumb {
    border-radius: var(--rmh-radius-sm);
    background: #f5faf7;
}

.rmh-search-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--rmh-ink);
    line-height: 1.3;
}

.rmh-search-brand {
    font-size: 0.72rem;
    color: var(--rmh-green);
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.85;
}

.rmh-search-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rmh-green);
    margin-top: 2px;
}

/* Scrollbar in search dropdown */
.rmh-search-results::-webkit-scrollbar {
    width: 4px;
}

.rmh-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.rmh-search-results::-webkit-scrollbar-thumb {
    background: rgba(0,122,83,0.25);
    border-radius: 4px;
}

/* ── 5. HERO SECTION ─────────────────────────────────────── */
.rmh-home-hero {
    border-radius: var(--rmh-radius-xl);
}

/* Tighter clamp so it doesn't jump too aggressively */
.rmh-home-hero h1 {
    font-size: clamp(1.85rem, 4.2vw, 3.1rem) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.06 !important;
}

/* Eyebrow — thinner, cleaner */
.rmh-home-hero .rmh-eyebrow {
    background: rgba(0,122,83,0.07);
    border: 1px solid rgba(0,122,83,0.2);
    color: var(--rmh-green);
    font-size: 13px !important;
    letter-spacing: 0.12em;
    padding: 0 13px;
    min-height: 26px;
}

/* Hero CTA buttons — polished */
.rmh-home-hero .rmh-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--rmh-radius-md);
    font-size: 0.9rem;
    transition: transform var(--rmh-transition), box-shadow var(--rmh-transition), background var(--rmh-transition-fast);
}

.rmh-home-hero .rmh-btn:active {
    transform: scale(0.97) !important;
}

/* Benefit checkmarks */
.rmh-home-hero__benefits b {
    background: rgba(0,122,83,0.12);
    color: var(--rmh-green);
    font-size: 0.68rem;
    border-radius: 50%;
}

/* ── 6. CATEGORY GRID — POLISH ───────────────────────────── */
.rmh-category-carousel-wrapper {
    /* Fade-out right edge on desktop to hint scrollability */
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, black 92%, transparent 100%);
}

@media (max-width: 1100px) {
    .rmh-category-carousel-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Category card hover: glow not transform to avoid layout shift */
#rmh-popular-categories .rmh-category {
    transition: box-shadow var(--rmh-transition), border-color var(--rmh-transition);
}

#rmh-popular-categories .rmh-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,78,53,0.12);
    border-color: rgba(0,122,83,0.3);
}

.rmh-category-media {
    transition: transform 0.35s ease;
}

#rmh-popular-categories .rmh-category:hover .rmh-category-media {
    transform: scale(1.04);
}

/* ── 7. MOBILE BOTTOM NAV — ENHANCED ────────────────────── */
@media (max-width: 768px) {
    .rmh-mobile-nav {
        height: 64px;
        box-shadow: 0 -2px 16px rgba(0,78,53,0.10);
    }

    .rmh-mobile-nav > a {
        font-size: 0.60rem;
        letter-spacing: 0.025em;
        transition: color var(--rmh-transition-fast);
        position: relative;
    }

    /* Active dot indicator above icon */
    .rmh-mobile-nav > a[aria-current="page"]::before {
        content: "";
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background: var(--rmh-green);
        border-radius: 0 0 3px 3px;
    }

    .rmh-mobile-nav > a svg {
        transition: transform var(--rmh-transition-fast);
    }

    .rmh-mobile-nav > a:active svg {
        transform: scale(0.88);
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── 8. ANNOUNCEMENT RIBBON — SLOW DOWN + PAUSE ─────────── */
.rmh-announcement-ribbon__track {
    animation-duration: 42s;
}

.rmh-announcement-ribbon:hover .rmh-announcement-ribbon__track,
.rmh-announcement-ribbon:focus-within .rmh-announcement-ribbon__track {
    animation-play-state: paused;
}

/* Marquee also */
.rmh-marquee-track {
    animation-duration: 36s;
}

.rmh-marquee-section:hover .rmh-marquee-track {
    animation-play-state: paused;
}

/* ── 9. FAQ — SMOOTH TOGGLE ──────────────────────────────── */
.rmh-faq-list summary::after {
    transition: transform 0.2s ease, background var(--rmh-transition-fast);
}

.rmh-faq-list details[open] summary::after {
    content: "−";
    transform: rotate(0deg); /* no spin — clean minus */
    background: rgba(0,122,83,0.12);
}

.rmh-faq-list details[open] {
    border-color: rgba(0,122,83,0.22);
}

.rmh-faq-list details p {
    border-top: 1px solid #f0f5f2;
    padding-top: 12px;
}

/* ── 10. BUTTONS — GLOBAL UNIFICATION ───────────────────── */
/* All primary action buttons: 48px, consistent radius */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button {
    min-height: 48px;
    border-radius: var(--rmh-radius-md) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background var(--rmh-transition-fast), transform var(--rmh-transition-fast), box-shadow var(--rmh-transition-fast);
}

.woocommerce a.button:active,
.woocommerce button.button:active {
    transform: scale(0.97);
}

/* Form submit */
.rmh-form-submit,
.rmh-form-button {
    min-height: 50px;
    border-radius: var(--rmh-radius-md);
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    transition: background var(--rmh-transition-fast), transform var(--rmh-transition-fast);
}

.rmh-form-submit:active,
.rmh-form-button:active {
    transform: scale(0.98);
}

/* Loading state */
.rmh-form-submit[aria-busy="true"],
.rmh-form-button[aria-busy="true"] {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
}

.rmh-form-submit[aria-busy="true"]::after,
.rmh-form-button[aria-busy="true"]::after {
    content: " ⏳";
    font-size: 0.85em;
}

/* Step links */
.rmh-step-link,
.rmh-step-btn {
    border-radius: var(--rmh-radius-md);
    min-height: 42px;
    font-size: 0.84rem;
}

/* ── 11. ACCESSIBILITY — FOCUS RING ──────────────────────── */
/* Override the per-element focus rules with one unified ring */
*:focus-visible {
    outline: 2.5px solid var(--rmh-green) !important;
    outline-offset: 3px !important;
    border-radius: 3px;
}

/* Skip link refinement */
.rmh-skip-link {
    transition: top 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 var(--rmh-radius-sm) var(--rmh-radius-sm);
    font-size: 0.88rem;
    box-shadow: var(--rmh-shadow-md);
}

/* Modal close button — bigger tap target */
.rmh-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background var(--rmh-transition-fast), color var(--rmh-transition-fast);
}

/* ── 12. SCROLLBARS — LOCATION MODAL + GLOBAL ────────────── */
.rmh-location-modal::-webkit-scrollbar,
.rmh-tab-panel::-webkit-scrollbar {
    width: 4px;
}

.rmh-location-modal::-webkit-scrollbar-thumb,
.rmh-tab-panel::-webkit-scrollbar-thumb {
    background: rgba(0,122,83,0.2);
    border-radius: 4px;
}

/* ── 13. MICRO-ANIMATIONS — CONSISTENCY ─────────────────── */
/* Unify all card hover transitions */
.rmh-step-card,
.rmh-tool-card,
.rmh-promotion-image-card,
.rmh-category,
#rmh-popular-categories .rmh-category {
    transition: transform var(--rmh-transition), box-shadow var(--rmh-transition), border-color var(--rmh-transition) !important;
}

.rmh-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rmh-shadow-md);
}

.rmh-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rmh-shadow-lg);
}

.rmh-promotion-image-card:hover,
.rmh-promotion-image-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,78,53,0.10);
}

/* Trust items */
.rmh-home-trust .rmh-trust-item {
    transition: background var(--rmh-transition-fast);
}

/* Button press feedback global */
.rmh-btn:active,
a.rmh-btn:active {
    transform: scale(0.97) !important;
}

/* ── 14. MOBILE RESPONSIVENESS GAPS ─────────────────────── */
@media (max-width: 520px) {
    /* Hero buttons go vertical earlier */
    .rmh-home-hero .rmh-hero-buttons {
        flex-direction: column;
    }

    .rmh-home-hero .rmh-btn {
        width: 100%;
        justify-content: center;
    }

    /* Search results full-width */
    .rmh-search-results {
        left: -14px;
        right: -14px;
        border-radius: var(--rmh-radius-md);
    }
}

@media (max-width: 380px) {
    /* Single column products on very small screens */
    .woocommerce ul.products,
    .rmh-product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── WooCommerce PRODUCT GRID — Better fill ──────────────── */
@media (min-width: 769px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1025px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ── WooCommerce SORT BAR ALIGNMENT ─────────────────────── */
.woocommerce .woocommerce-ordering select {
    min-height: 44px;
    border-radius: var(--rmh-radius-md);
    border: 1.5px solid var(--rmh-border);
    padding: 0 14px;
    font-size: 0.88rem;
    color: var(--rmh-ink);
    transition: border-color var(--rmh-transition-fast);
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--rmh-green);
    outline: none;
    box-shadow: var(--rmh-shadow-glow);
}

/* ── LOCATION MODAL — BUTTON POLISH ─────────────────────── */
.rmh-loc-actions .rmh-btn,
.rmh-loc-actions--dual .rmh-btn {
    min-height: 48px;
    border-radius: var(--rmh-radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background var(--rmh-transition-fast), transform var(--rmh-transition-fast);
}

.rmh-loc-actions .rmh-btn:active {
    transform: scale(0.97);
}

/* ── HEADER LOCATION BADGE HOVER ────────────────────────── */
.rmh-header-loc-badge {
    transition: border-color var(--rmh-transition-fast), background var(--rmh-transition-fast), box-shadow var(--rmh-transition-fast);
}

.rmh-header-loc-badge:hover {
    border-color: rgba(0,122,83,0.35);
    background: #f5fbf7;
    box-shadow: var(--rmh-shadow-sm);
}

/* ── WooCommerce PAGINATION — ROUNDER ───────────────────── */
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    border-radius: var(--rmh-radius-md);
    font-weight: 700;
    transition: background var(--rmh-transition-fast), color var(--rmh-transition-fast), border-color var(--rmh-transition-fast);
}

.woocommerce-pagination .page-numbers .current {
    box-shadow: 0 4px 10px rgba(0,122,83,0.18);
}

/* ── PROMOTION BANNERS REFINEMENT ───────────────────────── */
.rmh-promotion-banner {
    border-radius: var(--rmh-radius-lg);
    transition: box-shadow var(--rmh-transition), transform var(--rmh-transition);
}

.rmh-promotion-banner:hover {
    box-shadow: var(--rmh-shadow-md);
}

/* ── CART PAGE NOTICE ────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--rmh-green);
    border-radius: 0 var(--rmh-radius-md) var(--rmh-radius-md) 0;
}

/* ── PRODUCT SINGLE PAGE ─────────────────────────────────── */
.woocommerce div.product form.cart .button {
    min-height: 50px;
    padding: 0 24px;
}

/* ── CHECKOUT / CART TABLES ──────────────────────────────── */
.woocommerce table.shop_table {
    border-radius: var(--rmh-radius-lg);
    border: 1px solid var(--rmh-border);
    overflow: hidden;
}

.woocommerce table.shop_table thead th {
    background: #f8faf9;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rmh-muted);
}

/* ── SELECTION COLOUR ────────────────────────────────────── */
::selection {
    background: rgba(0,122,83,0.14);
    color: var(--rmh-ink);
}

/* ============================================================
   RMH PREMIUM E-PHARMACY STYLESHEET LAYER (v3.0.0)
   Covers: Secondary Nav, Quick Services, Pharma Brands,
   Trust Regulatory, Rx/OTC Badges, Stepper, Single Rx Box,
   Cart Rx Pills, and Mobile-First Breakpoints.
   ============================================================ */

/* ── QUICK SERVICES CARDS (HOMEPAGE) ─────────────────────── */
.rmh-quick-services-section {
    max-width: 1240px;
    margin: 24px auto 36px;
    padding: 0 16px;
}

.rmh-quick-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rmh-qs-card {
    background: #ffffff;
    border: 1.5px solid #e2ebe6;
    border-radius: var(--rmh-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--rmh-transition), box-shadow var(--rmh-transition), border-color var(--rmh-transition);
    position: relative;
}

.rmh-qs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rmh-shadow-lg);
    border-color: rgba(0, 122, 83, 0.3);
}

.rmh-qs-card__icon {
    font-size: 2rem;
    line-height: 1;
}

.rmh-qs-card__kicker {
    font-size: 0.70rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--rmh-green);
    display: block;
    margin-bottom: 4px;
}

.rmh-qs-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rmh-ink);
    margin: 0 0 6px;
    line-height: 1.3;
}

.rmh-qs-card p {
    font-size: 0.82rem;
    color: var(--rmh-muted);
    line-height: 1.45;
    margin: 0;
}

.rmh-qs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rmh-green);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.rmh-qs-card:hover .rmh-qs-btn {
    text-decoration: underline;
}

/* ── PHARMACEUTICAL BRANDS SHOWCASE ──────────────────────── */
.rmh-brands-section {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 16px;
}

.rmh-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.rmh-brand-card {
    background: #ffffff;
    border: 1px solid #e2ebe6;
    border-radius: var(--rmh-radius-md);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 140px;
    box-sizing: border-box;
    transition: transform var(--rmh-transition), box-shadow var(--rmh-transition), border-color var(--rmh-transition);
}

.rmh-brand-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rmh-shadow-md);
    border-color: var(--rmh-green);
    text-decoration: none;
}

.rmh-brand-card__logo-wrap {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
}

.rmh-brand-card__logo {
    max-height: 46px;
    max-width: 120px;
    width: 100%;
    height: 100%;
    aspect-ratio: 140 / 48;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform var(--rmh-transition, 0.2s ease);
}

.rmh-brand-card:hover .rmh-brand-card__logo {
    transform: scale(1.05);
}

.rmh-brand-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rmh-ink);
    line-height: 1.25;
    margin-top: auto;
}

.rmh-brand-card__link {
    font-size: 0.70rem;
    color: #176342;
    font-weight: 600;
    opacity: 1;
}

@media (max-width: 1024px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .rmh-brand-card {
        padding: 12px 8px;
        min-height: 120px;
    }
    .rmh-brand-card__logo-wrap {
        height: 40px;
    }
    .rmh-brand-card__logo {
        max-height: 38px;
        max-width: 90px;
    }
}

/* ── TRUST & REGULATORY CARDS ────────────────────────────── */
.rmh-trust-regulatory-section {
    max-width: 1240px;
    margin: 48px auto;
    padding: 0 16px;
}

.rmh-trust-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.rmh-trust-card {
    background: #ffffff;
    border: 1.5px solid #e1eee7;
    border-radius: var(--rmh-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--rmh-shadow-sm);
}

.rmh-trust-card__icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.rmh-trust-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--rmh-ink);
    margin: 0;
}

.rmh-trust-card p {
    font-size: 0.84rem;
    color: var(--rmh-muted);
    line-height: 1.5;
    margin: 0;
}

.rmh-trust-card__meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e1ebe6;
    font-size: 0.78rem;
}

.rmh-trust-card__meta code {
    background: #eef7f2;
    color: #005a3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-family: monospace;
}

/* ── PRODUCT CARD BADGES & STEPPER ───────────────────────── */
/* Red Rx Pill Badge */
.rmh-rx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d32f2f;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rmh-rx-badge--corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.35);
}

/* Green OTC Pill Badge */
.rmh-otc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.rmh-otc-badge--corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Inline Rx Badge in Cart/Checkout */
.rmh-rx-pill-inline {
    display: inline-block;
    background: #d32f2f;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Active Composition Meta */
.rmh-loop-comp,
.rmh-product-card__meta--comp {
    font-size: 0.74rem;
    color: #4b6b5d;
    font-style: italic;
    margin: 2px 0 4px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Quick Add Button & Stepper */
.rmh-quick-add-wrap {
    display: inline-flex;
    align-items: center;
}

.rmh-quick-add-btn {
    min-height: 36px;
    padding: 6px 14px;
    border-radius: var(--rmh-radius-md);
    background: var(--rmh-green);
    color: #ffffff;
    border: none;
    font-size: 0.80rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background var(--rmh-transition-fast), transform var(--rmh-transition-fast);
}

.rmh-quick-add-btn:hover {
    background: var(--rmh-green-dark);
}

.rmh-quick-add-btn:active {
    transform: scale(0.95);
}

.rmh-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #f0f7f3;
    border: 1.5px solid var(--rmh-green);
    border-radius: var(--rmh-radius-md);
    overflow: hidden;
    height: 36px;
}

.rmh-stepper-btn {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--rmh-green);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--rmh-transition-fast);
}

.rmh-stepper-btn:hover {
    background: rgba(0, 122, 83, 0.12);
}

.rmh-stepper-qty {
    padding: 0 10px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--rmh-ink);
    min-width: 24px;
    text-align: center;
}

.rmh-btn-card-rx {
    min-height: 36px;
    padding: 6px 12px;
    border-radius: var(--rmh-radius-md);
    background: #fff;
    color: #d32f2f;
    border: 1.5px solid #d32f2f;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--rmh-transition-fast);
}

.rmh-btn-card-rx:hover {
    background: #d32f2f;
    color: #fff;
}

.rmh-btn-card-oos {
    min-height: 36px;
    padding: 6px 12px;
    border-radius: var(--rmh-radius-md);
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: not-allowed;
}

/* ── SINGLE PRODUCT PRESCRIPTION WARNING BOX ─────────────── */
.rmh-single-rx-box {
    background: #fff8f6;
    border: 1.5px solid #fecaca;
    border-left: 4px solid #d32f2f;
    border-radius: var(--rmh-radius-md);
    padding: 16px 18px;
    margin: 18px 0 24px;
}

.rmh-single-rx-box__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rmh-single-rx-box__header strong {
    font-size: 0.95rem;
    color: #b91c1c;
}

.rmh-single-rx-box p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.45;
    margin: 0 0 12px;
}

.rmh-single-rx-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rmh-single-rx-box__actions .rmh-btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.82rem;
}

/* ── PRESCRIPTION MODAL PRIVACY & CONTROLS ───────────────── */
.rmh-rx-privacy-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f0faf5;
    border: 1px solid #c3e6d5;
    border-radius: var(--rmh-radius-md);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.rmh-rx-privacy-notice span {
    font-size: 1.4rem;
    line-height: 1;
}

.rmh-rx-privacy-notice strong {
    font-size: 0.88rem;
    color: var(--rmh-green);
    display: block;
    margin-bottom: 2px;
}

.rmh-rx-privacy-notice p {
    font-size: 0.80rem;
    color: #3e5a4e;
    margin: 0;
    line-height: 1.4;
}

.rmh-form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rmh-req {
    color: #d32f2f;
    font-weight: bold;
}

.rmh-form-feedback {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--rmh-radius-sm);
    font-size: 0.84rem;
}

.rmh-form-feedback--success {
    background: #edf7ee;
    color: #1e4620;
    border: 1px solid #c8e6c9;
}

.rmh-form-feedback--error {
    background: #fdf2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── RESPONSIVE MOBILE BREAKPOINTS ───────────────────────── */
@media (max-width: 1024px) {
    .rmh-quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rmh-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .rmh-trust-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rmh-quick-services-grid {
        grid-template-columns: 1fr;
    }
    .rmh-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rmh-form-row--2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .rmh-single-rx-box__actions {
        flex-direction: column;
    }
    .rmh-single-rx-box__actions .rmh-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rmh-prescription-file-actions {
        flex-direction: column;
    }
    .rmh-file-action {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   COMPACT RELATED PRODUCTS (PART K)
   ========================================================================= */
.single-product section.related.products,
.single-product .related.products {
    margin-top: 36px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--rmh-border-soft, #e2e8f0) !important;
}

.single-product section.related.products > h2,
.single-product .related.products > h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--rmh-text, #1e293b) !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.01em;
}

.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .related.products ul.products li.product {
    background: #ffffff !important;
    border: 1px solid var(--rmh-border-soft, #e2e8f0) !important;
    border-radius: var(--rmh-radius-md, 10px) !important;
    padding: 10px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.single-product .related.products ul.products li.product:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.single-product .related.products ul.products li.product img {
    height: 110px !important;
    max-height: 110px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto 8px auto !important;
    object-fit: contain !important;
    display: block !important;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--rmh-text, #1e293b) !important;
    margin: 4px 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.3em !important;
}

.single-product .related.products ul.products li.product .price {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--rmh-green-dark, #007a48) !important;
    margin-bottom: 8px !important;
}

.single-product .related.products ul.products li.product .button {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
    border-radius: var(--rmh-radius-sm, 6px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    background: var(--rmh-green, #00a862) !important;
    color: #ffffff !important;
    border: none !important;
    margin-top: auto !important;
}

@media (max-width: 768px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .single-product .related.products ul.products li.product img {
        height: 90px !important;
        max-height: 90px !important;
    }
}

/* =========================================================================
   ONE-HOUR DELIVERY REVIEW & FEEDBACK (PART L)
   ========================================================================= */
.rmh-delivery-feedback-card {
    background: #ffffff;
    border: 1px solid var(--rmh-border-soft, #e2e8f0);
    border-radius: var(--rmh-radius-lg, 14px);
    padding: 24px;
    margin: 24px auto 32px auto;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rmh-delivery-feedback-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rmh-text, #1e293b);
    margin: 0 0 6px 0;
}

.rmh-delivery-feedback-card p.rmh-feedback-intro {
    font-size: 0.875rem;
    color: var(--rmh-text-muted, #64748b);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.rmh-feedback-stars-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.rmh-star-btn {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #cbd5e1;
    padding: 2px 4px;
    transition: color 0.15s ease, transform 0.1s ease;
}

.rmh-star-btn.is-active,
.rmh-star-btn:hover {
    color: #f59e0b;
    transform: scale(1.15);
}

.rmh-feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .rmh-feedback-grid {
        grid-template-columns: 1fr;
    }
}

.rmh-feedback-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--rmh-border, #cbd5e1);
    border-radius: var(--rmh-radius-md, 8px);
    font-size: 0.875rem;
    color: var(--rmh-text, #1e293b);
    background: #ffffff;
}

.rmh-feedback-textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid var(--rmh-border, #cbd5e1);
    border-radius: var(--rmh-radius-md, 8px);
    font-size: 0.875rem;
    margin-bottom: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.rmh-feedback-disclaimer {
    font-size: 0.775rem;
    color: var(--rmh-text-muted, #64748b);
    line-height: 1.4;
    margin-top: 10px;
    display: block;
}

.rmh-form-feedback--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
}

.rmh-form-feedback--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
}


/* =========================================================
   PROMO CARDS — Image-topped 3-column layout
   ========================================================= */

.rmh-promo-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.rmh-promo-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 122, 72, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rmh-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 122, 72, 0.14);
}

/* ---- Image ---- */
.rmh-promo-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #edf7f2;
    flex-shrink: 0;
}

.rmh-promo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.rmh-promo-card:hover .rmh-promo-card__image {
    transform: scale(1.04);
}

/* ---- Content ---- */
.rmh-promo-card__content {
    flex: 1;
    padding: 20px 22px 8px;
}

.rmh-promo-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    background: #edf7f2;
    color: var(--rmh-green, #007a48);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rmh-promo-card__content h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--rmh-ink, #1a1a2e);
    line-height: 1.2;
}

.rmh-promo-card__content p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--rmh-muted, #5a6474);
    line-height: 1.55;
}

/* ---- CTA Button ---- */
.rmh-promo-card .rmh-btn {
    margin: 16px 22px 22px;
    display: block;
    text-align: center;
    width: calc(100% - 44px);
    box-sizing: border-box;
}

/* ---- WhatsApp button ---- */
.rmh-btn-whatsapp {
    background: #0f7a68;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
}

.rmh-btn-whatsapp:hover {
    background: #0b6557;
    color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .rmh-promo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rmh-promo-cards {
        grid-template-columns: 1fr;
    }
    .rmh-promo-card__image-wrap {
        aspect-ratio: 16 / 7;
    }
}

/* =========================================================================
   FINAL DELIVERY PASS — CONSISTENT PAGE RHYTHM & COMMERCE LAYOUT
   Kept at the end intentionally: this consolidates earlier legacy overrides.
   ========================================================================= */
:root {
    --rmh-page-width: 1400px;
    --rmh-space-1: 8px;
    --rmh-space-2: 12px;
    --rmh-space-3: 16px;
    --rmh-space-4: 24px;
    --rmh-space-5: 32px;
    --rmh-space-6: 48px;
    --rmh-radius-card: 14px;
}

.rmh-main-content,
.site-content > .ast-container,
.woocommerce-page .site-content > .ast-container {
    max-width: var(--rmh-page-width);
    margin-left: auto;
    margin-right: auto;
}

.rmh-main-content > section,
.rmh-main-content > .rmh-section,
.woocommerce-page .site-content {
    margin-bottom: var(--rmh-space-6);
}

    .rmh-main-content > section:last-child,
.rmh-main-content > .rmh-section:last-child {
    margin-bottom: var(--rmh-space-5);
}

.rmh-site-header__inner {
    max-width: var(--rmh-page-width);
    margin-left: auto;
    margin-right: auto;
}

.rmh-site-search input[type="search"],
.rmh-pharmacy-form input,
.rmh-pharmacy-form select,
.rmh-pharmacy-form textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    min-height: 46px;
    border-color: #b9d8ca;
    border-radius: 9px;
    box-shadow: none;
}

.rmh-site-search input[type="search"]:focus,
.rmh-pharmacy-form input:focus,
.rmh-pharmacy-form select:focus,
.rmh-pharmacy-form textarea:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #087a49;
    box-shadow: 0 0 0 3px rgba(8, 122, 73, .14);
    outline: 0;
}

.woocommerce ul.products,
.rmh-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--rmh-space-3);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rmh-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.woocommerce ul.products li.product,
.rmh-product-card {
    border-radius: var(--rmh-radius-card);
    border-color: #d8e8df;
    box-shadow: 0 2px 10px rgba(19, 61, 43, .05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.rmh-product-info h3 {
    line-height: 1.35;
    min-height: 2.7em;
}

.woocommerce ul.products li.product .price,
.rmh-product-footer .price {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-content {
    border: 1px solid #d8e8df;
    border-radius: var(--rmh-radius-card);
    box-shadow: 0 2px 12px rgba(19, 61, 43, .04);
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .col2-set {
    gap: var(--rmh-space-4);
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
    min-height: 50px;
    border-radius: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.rmh-footer-information {
    margin-top: 0;
}

@media (min-width: 1025px) {
    .woocommerce-cart .cart-collaterals {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
        align-items: start;
    }

    .woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
        gap: var(--rmh-space-5);
        align-items: start;
    }

    .woocommerce-checkout form.checkout > #customer_details,
    .woocommerce-checkout form.checkout > #order_review_heading,
    .woocommerce-checkout form.checkout > #order_review {
        grid-column: auto;
    }

    .woocommerce-checkout #order_review_heading {
        margin: 0;
    }
}

@media (max-width: 768px) {
    body:not(.wp-admin) {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .rmh-main-content > section,
    .rmh-main-content > .rmh-section,
    .woocommerce-page .site-content {
        margin-bottom: var(--rmh-space-5);
    }

    .rmh-site-header__inner {
        padding-left: var(--rmh-space-3);
        padding-right: var(--rmh-space-3);
    }

    .rmh-home-hero {
        width: calc(100% - 32px);
        min-height: 0;
        padding: 28px 18px !important;
    }

    .rmh-site-header__tagline,
    .rmh-header-loc-badge,
    .rmh-site-header__action--prescription,
    .rmh-site-header__action--account,
    .rmh-cart-total {
        display: none !important;
    }

    .rmh-site-search {
        order: 5;
        flex-basis: 100%;
    }

    .rmh-site-search input[type="search"] {
        min-height: 44px;
    }

    .woocommerce ul.products,
    .rmh-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--rmh-space-2);
    }

    .woocommerce ul.products li.product,
    .rmh-product-card {
        min-width: 0;
    }

    .woocommerce-cart-form,
    .cart-collaterals .cart_totals,
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout-review-order,
    .woocommerce-account .woocommerce-MyAccount-content {
        border-radius: 10px;
    }

    .woocommerce table.shop_table {
        font-size: .88rem;
    }

    .woocommerce-cart-form .product-thumbnail {
        display: none;
    }

    .woocommerce-cart-form .quantity .qty {
        min-width: 42px;
        min-height: 38px;
    }

    .rmh-mobile-nav {
        min-height: 66px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

@media (max-width: 380px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .rmh-product-info h3 {
        font-size: .82rem;
    }

    .woocommerce ul.products li.product .button,
    .rmh-product-footer .button {
        font-size: .76rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Desktop homepage geometry: keep both hero columns fluid inside one container. */
@media (min-width: 1025px) {
    .rmh-announcement-ribbon {
        min-height: 26px;
    }

    .rmh-announcement-ribbon__item {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .rmh-utility-bar__inner {
        min-height: 30px;
    }

    .rmh-site-header__nav-row {
        min-height: 42px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .home .entry-content,
    .home .rmh-main-content,
    .home .rmh-app {
        width: 100%;
        max-width: none;
    }

    .rmh-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }

    .rmh-home-hero__content,
    .rmh-hero-art {
        min-width: 0;
    }

    .rmh-home-hero h1 {
        width: auto;
        min-width: 0;
        max-width: 620px;
        word-break: normal;
        overflow-wrap: normal;
        white-space: normal;
    }

    .rmh-hero-art__frame {
        width: 100%;
        aspect-ratio: 4 / 3;
        background: #e8f5ee;
    }

    .rmh-hero-art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rmh-promotion-section,
    .rmh-quick-services-section,
    .rmh-brands-section,
    .rmh-tools-section,
    .rmh-form-section,
    .rmh-faq-section {
        width: min(calc(100% - 64px), 1400px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .rmh-promo-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .rmh-promo-card {
        min-width: 0;
    }

    .rmh-site-header__inner {
        min-height: 72px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .rmh-home-hero {
        width: calc(100% - 48px);
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        padding: 32px;
    }
}

/* =========================================================================
   CLIENT DELIVERY VISUAL SYSTEM
   One deliberately scoped source of truth for the public e-pharmacy pages.
   ========================================================================= */
:root {
    --rmh-surface: #ffffff;
    --rmh-surface-soft: #f5fbf7;
    --rmh-line: #dcebe2;
    --rmh-text-strong: #10251b;
    --rmh-text-soft: #587065;
    --rmh-accent: #087a49;
    --rmh-container: 1400px;
}

body {
    background: #fff;
    color: var(--rmh-text-strong);
}

.home .site-content > .ast-container,
.woocommerce-page .site-content > .ast-container,
.page .site-content > .ast-container {
    width: min(calc(100% - 64px), var(--rmh-container));
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.home .content-area,
.woocommerce-page .content-area {
    width: 100%;
}

/* Header stays information-dense without consuming the storefront viewport. */
@media (min-width: 1025px) {
    .rmh-site-header__inner,
    .rmh-site-header__nav-row,
    .rmh-utility-bar__inner {
        width: min(calc(100% - 64px), var(--rmh-container));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .rmh-site-header__inner {
        grid-template-columns: auto auto minmax(360px, 1fr) auto auto;
        column-gap: 18px;
    }

    .rmh-site-search {
        min-width: 0;
        width: 100%;
    }

    .rmh-site-header__nav-row {
        min-height: 40px;
    }
}

/* The hero is a two-column composition; decoration may never take grid space. */
.rmh-home-hero::before,
.rmh-home-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.rmh-home-hero::before {
    width: min(34vw, 500px);
    height: min(34vw, 500px);
    right: -11%;
    top: -28%;
    background: rgba(84, 190, 129, .10);
}

.rmh-home-hero::after {
    width: 220px;
    height: 220px;
    right: 38%;
    bottom: -150px;
    background: rgba(84, 190, 129, .08);
}

.rmh-home-hero__content,
.rmh-hero-art {
    position: relative;
    z-index: 1;
}

.rmh-home-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rmh-home-hero h1 {
    color: var(--rmh-text-strong);
}

.rmh-home-hero h1 span {
    color: var(--rmh-accent);
}

.rmh-home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 4px;
}

.rmh-home-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #365548;
    font-size: .82rem;
}

.rmh-home-hero__trust svg {
    color: var(--rmh-accent);
    flex: 0 0 auto;
}

.rmh-hero-art__frame {
    border: 1px solid rgba(8, 122, 73, .13);
    background: #eef8f2;
}

/* Sections share a dependable desktop rhythm and no internal fixed card width. */
.rmh-promotion-section,
.rmh-products-section,
.rmh-section,
.rmh-quick-services-section,
.rmh-brands-section,
.rmh-tools-section,
.rmh-form-section,
.rmh-faq-section,
.rmh-find-store,
.rmh-store-location {
    width: min(calc(100% - 64px), var(--rmh-container));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.rmh-promo-cards,
.rmh-tools-grid {
    width: 100%;
}

.rmh-promo-card,
.rmh-tool-card,
.rmh-qs-card {
    min-width: 0;
    border-color: var(--rmh-line);
}

.rmh-promo-card__image-wrap {
    aspect-ratio: 16 / 8;
    background: var(--rmh-surface-soft);
}

.rmh-promo-card__content {
    padding: 20px 22px 4px;
}

.rmh-promo-card .rmh-btn {
    min-height: 44px;
}

/* Homepage flow: each commercial step has a visual boundary, not a sea of cards. */
.rmh-products-section,
.rmh-form-section,
#rmh-delivery-section,
.rmh-store-location,
.rmh-find-store,
.rmh-how-to-order,
.rmh-faq-section,
.rmh-brands-section {
    margin-top: 0;
    margin-bottom: 56px;
}

.rmh-products-section,
.rmh-form-section,
#rmh-delivery-section {
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid #e7f0ea;
    border-bottom: 1px solid #e7f0ea;
}

.rmh-products-section {
    background: linear-gradient(180deg, #fbfefc 0%, #fff 100%);
}

.rmh-pharmacy-form,
.rmh-delivery-card,
.rmh-store-location__card,
.rmh-find-store__card {
    border-color: var(--rmh-line);
    box-shadow: 0 8px 26px rgba(18, 65, 44, .06);
}

.rmh-pharmacy-form {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.rmh-delivery-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.rmh-delivery-card__cta {
    min-height: 48px;
    white-space: nowrap;
}

.rmh-section-heading {
    margin-bottom: 24px;
}

.rmh-section-heading h2 {
    color: var(--rmh-text-strong);
}

/* Catalogue and product pages: stable proportions, readable purchase actions. */
.woocommerce ul.products li.product,
.rmh-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--rmh-surface);
}

.woocommerce ul.products li.product img,
.rmh-product-card .rmh-product-image img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.woocommerce ul.products li.product .button,
.rmh-product-footer .button {
    min-height: 42px;
    margin-top: auto;
}

.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    width: auto;
    float: none;
    margin: 0;
}

.single-product div.product .summary {
    padding: 4px 0;
}

.single-product div.product .single_add_to_cart_button {
    min-height: 48px;
    border-radius: 9px;
}

/* Cart and checkout end in intentional, contained panels. */
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout-review-order {
    background: var(--rmh-surface);
}

.woocommerce-checkout-review-order {
    padding: 24px;
}

.woocommerce-order-received .woocommerce-order,
.woocommerce-account .woocommerce-MyAccount-content {
    border: 1px solid var(--rmh-line);
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.rmh-footer-information {
    border-top: 1px solid var(--rmh-line);
    background: #f7fbf8;
}

@media (max-width: 1024px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rmh-home-hero::before {
        width: 360px;
        height: 360px;
        right: -18%;
    }

    .rmh-delivery-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .rmh-delivery-card__cta {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .home .site-content > .ast-container,
    .woocommerce-page .site-content > .ast-container,
    .page .site-content > .ast-container,
    .rmh-promotion-section,
    .rmh-products-section,
    .rmh-section,
    .rmh-quick-services-section,
    .rmh-brands-section,
    .rmh-tools-section,
    .rmh-form-section,
    .rmh-faq-section,
    .rmh-find-store,
    .rmh-store-location {
        width: calc(100% - 32px);
    }

    .rmh-home-hero::before {
        width: 250px;
        height: 250px;
        top: -120px;
        right: -110px;
    }

    .rmh-home-hero::after {
        display: none;
    }

    .rmh-home-hero__trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rmh-products-section,
    .rmh-form-section,
    #rmh-delivery-section {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .rmh-delivery-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rmh-delivery-card__cta {
        width: 100%;
        justify-content: center;
    }

    .woocommerce-checkout-review-order,
    .woocommerce-order-received .woocommerce-order,
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 18px;
    }
}

/* ========================================================================
   FINAL COMMERCE LAYOUT REPAIR
   The selectors below match WooCommerce's actual sibling structure. They
   intentionally replace earlier experimental desktop dimensions.
   ======================================================================== */
:root {
    --rmh-public-container: 1400px;
    --rmh-public-gutter: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
.site,
.site-main,
main,
.woocommerce,
.woocommerce-page {
    max-width: 100%;
}

.home .site-content > .ast-container,
.page .site-content > .ast-container,
.woocommerce-page .site-content > .ast-container {
    width: min(calc(100% - (var(--rmh-public-gutter) * 2)), var(--rmh-public-container));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.woocommerce .woocommerce-cart-form,
.woocommerce .cart-collaterals,
.woocommerce-checkout form.checkout,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.single-product div.product > * {
    min-width: 0;
}

/* The cart form and collateral panel are siblings. The outer .woocommerce
   grid supplies their desktop columns; the collateral panel must not create
   a second, narrow internal grid for its single totals child. */
.woocommerce-cart .cart-collaterals {
    display: block;
    grid-template-columns: none;
}

@media (min-width: 1101px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
        gap: 32px;
        align-items: start;
    }

    .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
    .woocommerce-cart .woocommerce > .cart-empty,
    .woocommerce-cart .woocommerce > .return-to-shop {
        grid-column: 1 / -1;
    }

    .woocommerce-cart .woocommerce > .woocommerce-cart-form,
    .woocommerce-cart .woocommerce > form.woocommerce-cart-form {
        grid-column: 1;
        width: 100%;
        margin: 0;
    }

    .woocommerce-cart .woocommerce > .cart-collaterals {
        grid-column: 2;
        width: 100%;
        margin: 0;
        float: none;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100%;
        float: none;
        margin: 0;
    }

    .woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
        gap: 32px;
        align-items: start;
    }

    .woocommerce-checkout form.checkout > #customer_details {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: auto;
        float: none;
    }

    .woocommerce-checkout form.checkout > #order_review_heading,
    .woocommerce-checkout form.checkout > #order_review {
        grid-column: 2;
        width: auto;
        float: none;
        margin: 0;
    }
}

.woocommerce-cart-form table.shop_table,
.woocommerce-cart-form .coupon,
.woocommerce-cart-form .coupon input,
.cart-collaterals .shipping-calculator-form,
.cart-collaterals .shipping-calculator-form input,
.cart-collaterals .shipping-calculator-form select,
.cart-collaterals .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout .form-row,
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    max-width: 100%;
}

.cart-collaterals .shipping-calculator-form input,
.cart-collaterals .shipping-calculator-form select,
.cart-collaterals .wc-proceed-to-checkout .checkout-button {
    width: 100%;
}

.cart-collaterals th,
.cart-collaterals td,
.woocommerce-cart-form th,
.woocommerce-cart-form td,
.single-product .summary,
.single-product .summary * {
    overflow-wrap: anywhere;
}

.rmh-brands-section,
.rmh-trust-regulatory-section,
.rmh-promotion-section,
.rmh-home-prescription-section {
    width: min(calc(100% - (var(--rmh-public-gutter) * 2)), var(--rmh-public-container));
    max-width: none;
    margin-inline: auto;
}

.rmh-brands-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
}

.rmh-brand-card {
    min-width: 0;
    min-height: 168px;
    border-radius: 8px;
}

.rmh-brand-card__name {
    overflow-wrap: normal;
    word-break: normal;
}

/* Mobile heading repair: the homepage heading markup has three direct
 * children (label, heading, description).  Keep it in one usable flow so
 * the legacy two-track mobile grid cannot collapse the label toward 0px. */
@media (max-width: 600px) {
    body.home .rmh-section-heading,
    .rmh-section-heading {
        display: block;
        grid-template-columns: none;
        min-width: 0;
    }

    .rmh-section-heading > *,
    .rmh-price,
    .rmh-brand-card__name {
        min-width: 0;
        max-width: 100%;
    }

    .rmh-section-label,
    .rmh-brand-card__name {
        overflow-wrap: break-word;
        word-break: normal;
    }
}

.rmh-promo-cards,
.rmh-trust-cards-grid {
    align-items: stretch;
}

.rmh-promo-card,
.rmh-trust-card {
    min-width: 0;
    height: 100%;
    border-radius: 8px;
}

.rmh-promo-card {
    display: flex;
    flex-direction: column;
}

.rmh-promo-card .rmh-btn {
    margin-top: auto;
}

.rmh-trust-card {
    min-height: 0;
    padding: 22px;
}

.rmh-home-prescription-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
    gap: 40px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 56px;
    padding: 40px;
    border: 1px solid #dcebe2;
    border-radius: 8px;
    background: #f7fbf8;
}

.rmh-home-prescription-section__content {
    min-width: 0;
}

.rmh-home-prescription-section__content h2 {
    margin: 8px 0 12px;
    color: var(--rmh-ink, #10251b);
}

.rmh-home-prescription-section__content p,
.rmh-home-prescription-section__content li {
    color: var(--rmh-muted, #587065);
}

.rmh-home-prescription-section__content ul {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding-left: 20px;
}

.rmh-home-prescription-section__form {
    min-width: 0;
    padding: 24px;
    border: 1px solid #dcebe2;
    border-radius: 8px;
    background: #fff;
}

.rmh-home-prescription-section__form .rmh-pharmacy-form {
    max-width: none;
}

/* Final mobile density pass: keep the public flow compact without changing
 * desktop geometry or hiding any commerce/prescription controls. */
@media (max-width: 768px) {
    .rmh-home-hero {
        gap: 20px;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-bottom: 28px !important;
    }

    .rmh-main-content > section,
    .rmh-main-content > .rmh-section,
    .woocommerce-page .site-content {
        margin-bottom: 40px;
    }

    .rmh-brands-grid {
        gap: 10px;
    }

    .rmh-brand-card {
        min-height: 128px;
        padding: 10px 8px;
        gap: 5px;
    }

    .rmh-brand-card__logo-wrap {
        height: 36px;
        margin-bottom: 2px;
    }

    .rmh-brand-card__logo {
        max-height: 34px;
        max-width: 84px;
    }

    .rmh-brand-card__name {
        font-size: 0.78rem;
    }

    .rmh-brand-card__link {
        font-size: 0.68rem;
    }

    .rmh-pharmacy-form {
        padding: 20px;
    }

    .rmh-step-card {
        padding: 18px;
    }

    .rmh-step-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
    }
}

@media (max-width: 1100px) {
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout form.checkout {
        display: block;
    }

    .woocommerce-cart .cart-collaterals,
    .woocommerce-checkout #order_review_heading {
        margin-top: 28px;
    }

    .rmh-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --rmh-public-gutter: 16px;
    }

    .rmh-home-prescription-section {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
        padding: 24px;
    }

    .rmh-home-prescription-section__form {
        padding: 18px;
    }

    .rmh-trust-cards-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce-cart-form .coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rmh-brand-card {
        min-height: 128px;
    }
}

/* Targeted mobile interaction and wrapping repair. */
@media (max-width: 768px) {
    .rmh-home-hero__content,
    .rmh-home-hero .rmh-hero-buttons,
    .rmh-home-hero .rmh-btn,
    .rmh-home-hero__trust,
    .rmh-brands-grid,
    .rmh-brand-card,
    .rmh-brand-card__logo-wrap,
    .rmh-brand-card__name,
    .rmh-brand-card__link {
        min-width: 0;
        max-width: 100%;
    }

    .rmh-home-hero__content {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .rmh-home-hero .rmh-hero-buttons {
        width: 100%;
        gap: 10px;
    }

    .rmh-home-hero .rmh-btn {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .rmh-brand-card {
        width: 100%;
        overflow: hidden;
    }

    .rmh-brand-card__logo-wrap {
        overflow: hidden;
    }

    .rmh-brand-card__logo {
        max-width: 100%;
    }

    .rmh-brand-card__name,
    .rmh-brand-card__link {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .rmh-delivery-feedback-card {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 18px;
    }

    .rmh-feedback-grid,
    .rmh-feedback-grid > *,
    .rmh-feedback-select,
    .rmh-feedback-textarea,
    .rmh-feedback-input {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .rmh-feedback-select,
    .rmh-feedback-input {
        min-height: 48px;
    }

    .rmh-feedback-textarea {
        min-height: 96px;
    }

    .rmh-star-btn,
    #rmhSubmitFeedbackBtn,
    .rmh-loc-actions .rmh-btn,
    .rmh-delivery-card__cta,
    .rmh-find-store__actions .rmh-btn,
    .rmh-catalogue-placeholder__actions .rmh-btn,
    .rmh-form-button,
    .rmh-form-submit,
    .rmh-step-btn {
        min-height: 48px;
    }

    .rmh-star-btn {
        min-width: 48px;
        padding: 8px;
    }
}

/* =========================================================================
   ALPHABETICAL MEDICINE LIST TABLE (SHOP / CATALOG REFACTOR)
   ========================================================================= */

/* ---- Reset WooCommerce default grid for the medicine table list ---- */
.woocommerce ul.products.rmh-medicine-table-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 0 36px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.woocommerce ul.products.rmh-medicine-table-list::before,
.woocommerce ul.products.rmh-medicine-table-list::after {
    display: none !important;
}

/* ---- Table Header Bar ---- */
.rmh-med-table-header {
    display: grid;
    grid-template-columns: minmax(0, 3.2fr) minmax(130px, 1.2fr) minmax(110px, 1fr) minmax(130px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f1f7f4;
    border: 1px solid var(--rmh-line, #dcebe2);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rmh-muted, #587065);
    -webkit-user-select: none;
    user-select: none;
}

.rmh-med-table-header .rmh-med-col--price {
    text-align: right;
}

.rmh-med-table-header .rmh-med-col--action {
    text-align: right;
}

/* ---- Medicine Row Item (LI) ---- */
.woocommerce ul.products.rmh-medicine-table-list li.product.rmh-medicine-row-item {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    clear: none !important;
}

/* ---- Medicine Row Card (A link element) ---- */
.rmh-medicine-row-card {
    display: grid;
    grid-template-columns: minmax(0, 3.2fr) minmax(130px, 1.2fr) minmax(110px, 1fr) minmax(130px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    min-height: 64px;
    background: #ffffff;
    border: 1px solid var(--rmh-line, #dcebe2);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(19, 61, 43, 0.04);
    text-decoration: none !important;
    color: inherit;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    position: relative;
}

/* Alternating row color */
.woocommerce ul.products.rmh-medicine-table-list li.product.rmh-medicine-row-item:nth-child(even) .rmh-medicine-row-card {
    background: #f9fbf9;
}

/* Hover & Focus state */
.rmh-medicine-row-card:hover,
.rmh-medicine-row-card:focus-visible {
    background: #ffffff !important;
    border-color: rgba(8, 122, 73, 0.4);
    box-shadow: 0 6px 20px rgba(8, 122, 73, 0.12);
    transform: translateY(-2px);
}

/* ---- Column 1: Medicine Name & Metadata ---- */
.rmh-med-col--name {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rmh-med-name {
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--rmh-ink, #10251b);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.rmh-medicine-row-card:hover .rmh-med-name {
    color: var(--rmh-green, #087a49);
}

.rmh-med-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--rmh-muted, #587065);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmh-med-comp {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmh-med-brand {
    font-weight: 600;
    color: #4a6358;
}

/* ---- Column 2: Stock Availability Badge ---- */
.rmh-med-col--status {
    display: flex;
    align-items: center;
}

.rmh-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rmh-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rmh-stock-badge--instock {
    background: #eaf6ee;
    color: #0b7a48;
    border: 1px solid rgba(11, 122, 72, 0.2);
}

.rmh-stock-badge--instock .rmh-stock-dot {
    background: #0b7a48;
    box-shadow: 0 0 0 2px rgba(11, 122, 72, 0.2);
}

.rmh-stock-badge--outofstock {
    background: #fdf1f1;
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.rmh-stock-badge--outofstock .rmh-stock-dot {
    background: #d32f2f;
}

.rmh-stock-badge--onbackorder {
    background: #fef8ec;
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.rmh-stock-badge--onbackorder .rmh-stock-dot {
    background: #b45309;
}

/* ---- Column 3: Price ---- */
.rmh-med-col--price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rmh-med-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rmh-ink, #10251b);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rmh-med-price del {
    font-size: 0.82rem;
    color: #8fa199;
    font-weight: 500;
    margin-right: 6px;
}

.rmh-med-price ins {
    text-decoration: none;
    color: var(--rmh-green, #087a49);
}

/* ---- Column 4: View Action Button ---- */
.rmh-med-col--action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rmh-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--rmh-green, #087a49);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(8, 122, 73, 0.2);
}

.rmh-medicine-row-card:hover .rmh-btn-view {
    background: #06633b;
    box-shadow: 0 4px 12px rgba(8, 122, 73, 0.35);
    transform: translateX(2px);
}

.rmh-btn-arrow {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.rmh-medicine-row-card:hover .rmh-btn-arrow {
    transform: translateX(3px);
}

/* ---- Search tools refinements ---- */
.rmh-shop-tools {
    margin: 0 0 24px;
    padding: 16px 20px;
    border: 1px solid var(--rmh-line, #dcebe2);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(19, 61, 43, 0.05);
}

.rmh-shop-tools__search {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.rmh-shop-tools__search input[type="search"] {
    min-height: 48px;
    flex: 1 1 auto;
    border: 1px solid var(--rmh-border, #b9d8ca);
    border-radius: 8px;
    padding: 0 16px;
    font-size: 0.95rem;
    background: #fdfefe;
}

.rmh-shop-tools__search button {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: var(--rmh-green, #087a49);
    color: #ffffff;
    font-weight: 750;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rmh-shop-tools__search button:hover {
    background: #06633b;
}

/* ---- Pagination Polish ---- */
.woocommerce-pagination {
    margin: 36px 0 24px !important;
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px !important;
    border: 1px solid var(--rmh-line, #dcebe2) !important;
    background: #ffffff !important;
    color: var(--rmh-ink, #10251b) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.woocommerce-pagination .page-numbers a:hover {
    border-color: var(--rmh-green, #087a49) !important;
    color: var(--rmh-green, #087a49) !important;
    background: #f2f9f5 !important;
}

.woocommerce-pagination .page-numbers .current {
    background: var(--rmh-green, #087a49) !important;
    color: #ffffff !important;
    border-color: var(--rmh-green, #087a49) !important;
    box-shadow: 0 3px 10px rgba(8, 122, 73, 0.25) !important;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 900px) {
    .rmh-med-table-header {
        grid-template-columns: minmax(0, 2.5fr) minmax(110px, 1fr) minmax(90px, 1fr) auto;
        gap: 12px;
        padding: 10px 16px;
        font-size: 0.74rem;
    }

    .rmh-medicine-row-card {
        grid-template-columns: minmax(0, 2.5fr) minmax(110px, 1fr) minmax(90px, 1fr) auto;
        gap: 12px;
        padding: 12px 16px;
    }

    .rmh-med-name {
        font-size: 0.92rem;
    }

    .rmh-btn-view {
        padding: 7px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    .rmh-med-table-header {
        display: none;
    }

    .rmh-medicine-row-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 14px 16px;
        min-height: 0;
    }

    .rmh-med-col--name {
        grid-column: 1 / -1;
    }

    .rmh-med-name {
        font-size: 0.96rem;
        white-space: normal;
    }

    .rmh-med-meta {
        white-space: normal;
    }

    .rmh-med-col--status {
        grid-column: 1 / 2;
    }

    .rmh-med-col--price {
        grid-column: 2 / 3;
        justify-content: flex-end;
    }

    .rmh-med-col--action {
        display: none;
    }

    .rmh-shop-tools__search {
        flex-direction: column;
    }

    .rmh-shop-tools__search button {
        width: 100%;
    }
}

/* =========================================================================
   ACTIVE MANUFACTURER FILTER BAR (shop page)
   ========================================================================= */
.rmh-active-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #f0faf5;
    border: 1px solid #b6e0ca;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
}

.rmh-active-filter-label {
    font-size: 0.88rem;
    color: #1e4620;
}

.rmh-clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 5px 14px;
    background: #ffffff;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c0392b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.rmh-clear-filter-btn:hover {
    background: #fef2f2;
    border-color: #f88;
    color: #991b1b;
    text-decoration: none;
}

/* =========================================================================
   BRAND CARD — COUNT BADGE & TEXT EMBLEM (no-logo fallback)
   ========================================================================= */
.rmh-brand-card__count {
    font-size: 0.72rem;
    color: var(--rmh-green, #007a48);
    background: #edf7f2;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 600;
    white-space: nowrap;
}

.rmh-brand-card__logo-wrap--text {
    background: linear-gradient(135deg, #e6f4ee 0%, #c9ead8 100%);
    border-radius: 8px;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rmh-brand-card__emblem {
    font-size: 1.1rem;
    font-weight: 800;
    color: #08754f;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

/* =========================================================================
   50 / 50 DELIVERY RATING + ORDER TRACKING GRID
   ========================================================================= */
.rmh-delivery-tracking-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.rmh-dt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.rmh-dt-col {
    min-width: 0;
}

/* Make tracking card match feedback card style */
.rmh-tracking-card {
    background: #ffffff;
    border: 1px solid var(--rmh-border-soft, #e2e8f0);
    border-radius: var(--rmh-radius-lg, 14px);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    height: 100%;
    box-sizing: border-box;
}

/* Override the standalone feedback card margin when inside grid */
.rmh-dt-col .rmh-delivery-feedback-card {
    margin: 0;
    max-width: none;
    height: 100%;
    box-sizing: border-box;
}

/* =========================================================================
   ORDER TRACKING RESULT STYLES
   ========================================================================= */
.rmh-track-result {
    margin-top: 16px;
}

.rmh-track-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.rmh-track-order-num {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.rmh-track-status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e0f2f1;
    color: #004d40;
}

/* WooCommerce status colours */
.rmh-status--pending         { background: #fff8e1; color: #7a5c00; }
.rmh-status--processing      { background: #e3f2fd; color: #0d47a1; }
.rmh-status--on-hold         { background: #fff3e0; color: #e65100; }
.rmh-status--completed       { background: #e8f5e9; color: #1b5e20; }
.rmh-status--cancelled       { background: #fce4ec; color: #880e4f; }
.rmh-status--refunded        { background: #f3e5f5; color: #4a148c; }
.rmh-status--failed          { background: #ffebee; color: #b71c1c; }
.rmh-status--out-for-delivery { background: #e0f7fa; color: #006064; }
.rmh-status--driver-assigned  { background: #e8f5e9; color: #1b5e20; }

.rmh-track-meta {
    margin-bottom: 14px;
}

.rmh-track-meta p {
    font-size: 0.875rem;
    color: #475569;
    margin: 4px 0;
    line-height: 1.5;
}

.rmh-track-total {
    font-weight: 700;
    color: var(--rmh-green, #007a48);
}

/* ---- Items ---- */
.rmh-track-items {
    margin: 14px 0;
}

.rmh-track-items h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rmh-track-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rmh-track-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.rmh-track-item-name {
    color: #1e293b;
    font-weight: 500;
}

.rmh-track-item-price {
    color: #475569;
    white-space: nowrap;
}

/* ---- Timeline ---- */
.rmh-track-timeline {
    margin: 18px 0 8px;
}

.rmh-track-timeline h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rmh-track-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rmh-track-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}

/* Vertical connector line */
.rmh-track-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.rmh-track-step.is-completed:not(:last-child)::before {
    background: #4caf50;
}

.rmh-track-step__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2.5px solid #cbd5e1;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.2s, border-color 0.2s;
}

.rmh-track-step.is-completed .rmh-track-step__icon {
    background: #4caf50;
    border-color: #4caf50;
}

/* Checkmark for completed steps */
.rmh-track-step.is-completed .rmh-track-step__icon::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.rmh-track-step.is-current .rmh-track-step__icon {
    border-color: var(--rmh-green, #007a48);
    background: #edf7f2;
    box-shadow: 0 0 0 3px rgba(0, 122, 72, 0.15);
}

.rmh-track-step.is-error .rmh-track-step__icon {
    border-color: #ef4444;
    background: #fef2f2;
}

.rmh-track-step.is-pending .rmh-track-step__icon {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.rmh-track-step__content {
    padding-top: 1px;
    min-width: 0;
}

.rmh-track-step__content strong {
    display: block;
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.rmh-track-step.is-pending .rmh-track-step__content strong {
    color: #94a3b8;
}

.rmh-track-step__content p {
    font-size: 0.80rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* =========================================================================
   HERO ART — SOFT RADIAL MASK / FADE (replaces harsh border)
   ========================================================================= */
.rmh-hero-art__frame {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.rmh-hero-art img {
    -webkit-mask-image: radial-gradient(ellipse 92% 92% at 55% 44%, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 92% at 55% 44%, black 60%, transparent 100%);
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1264 / 843;
    object-fit: cover;
    border-radius: 14px;
}

/* =========================================================================
   RESPONSIVE: DT GRID — stacks on mobile
   ========================================================================= */
@media (max-width: 768px) {
    .rmh-dt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rmh-dt-col .rmh-delivery-feedback-card,
    .rmh-tracking-card {
        height: auto;
    }
}

/* Screenshot-targeted mobile flow repair: keep manufacturer rows intrinsic and
 * make the two-column cards readable without affecting desktop geometry. */
@media (max-width: 768px) {
    .rmh-brands-section {
        height: auto;
        min-height: 0;
        margin-top: 0;
        margin-bottom: 32px;
    }

    .rmh-brands-section .rmh-section-heading {
        margin-bottom: 16px;
    }

    .rmh-brands-grid {
        height: auto;
        min-height: 0;
        grid-auto-rows: minmax(0, auto);
        align-content: start;
        align-items: start;
        gap: 12px;
    }

    .rmh-brand-card {
        min-height: 150px;
        padding: 14px 10px;
        gap: 7px;
        justify-content: flex-start;
    }

    .rmh-brand-card__logo-wrap {
        height: 44px;
        flex: 0 0 44px;
    }

    .rmh-brand-card__logo {
        max-width: 100px;
        max-height: 40px;
    }

    .rmh-brand-card__name {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .rmh-brand-card__count,
    .rmh-brand-card__link {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .rmh-product-info {
        padding: 11px 10px 10px;
    }

    .rmh-product-info h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .rmh-product-footer .button,
    .rmh-btn-card-rx,
    .rmh-btn-card-oos {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .rmh-track-items-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .rmh-track-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Pixel-style mobile containment: keep stacked information sections readable
 * and prevent desktop card sizing from collapsing their text columns. */
@media (max-width: 767px) {
    .rmh-site-header__inner,
    .rmh-site-search,
    .rmh-site-header__nav-row,
    .rmh-home-trust,
    .rmh-trust-regulatory-section,
    .rmh-delivery-tracking-section,
    .rmh-dt-grid,
    .rmh-dt-col,
    .rmh-promotion-section,
    .rmh-promo-cards,
    .rmh-promo-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .rmh-site-search {
        flex: 1 1 auto;
    }

    .rmh-site-search input[type="search"] {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .rmh-site-search button[type="submit"] {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .rmh-home-trust .rmh-trust-grid,
    .rmh-trust-cards-grid,
    .rmh-dt-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .rmh-home-trust .rmh-trust-item,
    .rmh-trust-card,
    .rmh-dt-col,
    .rmh-dt-col .rmh-delivery-feedback-card,
    .rmh-tracking-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .rmh-home-trust .rmh-trust-item strong,
    .rmh-home-trust .rmh-trust-item p,
    .rmh-trust-card h3,
    .rmh-trust-card p,
    .rmh-dt-col h2,
    .rmh-dt-col h3,
    .rmh-dt-col p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .rmh-delivery-tracking-section {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .rmh-promo-card {
        min-height: 0;
    }

    .rmh-promo-card__image-wrap,
    .rmh-promo-card__image-wrap img {
        width: 100%;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .rmh-promo-card__content {
        padding: 16px;
    }
}

/* =========================================================================
   Production mobile containment and WhatsApp order request workflow.
   This final layer corrects actual overflow sources while preserving desktop.
   ========================================================================= */
:root {
    --rmh-z-sticky: 10;
    --rmh-z-mobile-nav: 20;
    --rmh-z-dropdown: 30;
    --rmh-z-backdrop: 40;
    --rmh-z-modal: 50;
    --rmh-z-skip: 60;
}

.rmh-site-header {
    z-index: var(--rmh-z-sticky);
}

.rmh-search-results {
    z-index: var(--rmh-z-dropdown);
}

.rmh-skip-link {
    z-index: var(--rmh-z-skip);
}

.rmh-mobile-nav {
    z-index: var(--rmh-z-mobile-nav);
}

.rmh-location-modal-backdrop,
.rmh-rx-modal-backdrop,
.rmh-mobile-menu-scrim {
    z-index: var(--rmh-z-backdrop);
}

.rmh-location-modal,
.rmh-rx-modal {
    z-index: var(--rmh-z-modal);
}

.rmh-whatsapp-order-card {
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid var(--rmh-border, #dfe9e5);
    border-radius: 8px;
    background: #f7fcf9;
}

.rmh-whatsapp-order-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.rmh-whatsapp-order-card p {
    margin: 0 0 12px;
}

.rmh-whatsapp-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rmh-whatsapp-order-form .rmh-form-field {
    margin: 0;
    min-width: 0;
}

.rmh-whatsapp-order-form label {
    display: block;
    margin: 0 0 5px;
    color: var(--rmh-ink, #2d3748);
    font-size: 0.86rem;
    font-weight: 750;
}

.rmh-whatsapp-order-form input,
.rmh-whatsapp-order-form textarea,
.rmh-whatsapp-order-form select {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid var(--rmh-border, #dfe9e5);
    border-radius: 7px;
}

.rmh-whatsapp-order-form textarea {
    min-height: 80px;
    resize: vertical;
}

.rmh-whatsapp-order-form .rmh-form-field:nth-of-type(3),
.rmh-whatsapp-order-form .rmh-form-field:nth-of-type(6),
.rmh-whatsapp-order-submit {
    grid-column: 1 / -1;
}

.rmh-whatsapp-order-submit {
    min-height: 48px;
    width: 100%;
    border-radius: 7px;
    font-weight: 800;
}

@media (max-width: 767px) {
    /* 1. Root & site containment */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    .hfeed.site,
    .site,
    main,
    header,
    footer,
    .site-content,
    .ast-container,
    .content-area,
    .entry-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .hfeed.site {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        overflow-x: clip;
    }

    .hfeed.site *,
    .hfeed.site *::before,
    .hfeed.site *::after {
        box-sizing: border-box;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
        height: auto;
    }

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    a,
    span,
    strong,
    small,
    label,
    td,
    th {
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* 2. Announcement ribbon containment */
    .rmh-announcement-ribbon {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        overflow-x: clip !important;
        position: relative !important;
        contain: paint layout !important;
        font-size: 0.78rem;
    }

    .rmh-announcement-ribbon__track {
        width: max-content !important;
        max-width: none !important;
        min-width: max-content !important;
        display: flex !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        gap: 12px;
    }

    .rmh-announcement-ribbon__item {
        padding: 5px 0;
    }

    /* 3. Compact mobile header */
    .rmh-utility-bar {
        display: none !important;
    }

    .rmh-site-header {
        position: sticky;
        top: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
        contain: layout;
        z-index: var(--rmh-z-sticky, 10);
    }

    .rmh-site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-height: 54px;
        padding: 6px 12px;
        align-items: center;
        box-sizing: border-box;
    }

    .rmh-site-header__brand {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .rmh-site-header__mark {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        flex: 0 0 34px;
    }

    .rmh-site-header__name {
        max-width: 44vw;
        font-size: 0.84rem;
        line-height: 1.2;
        white-space: normal;
    }

    .rmh-site-header__tagline {
        display: none !important;
    }

    .rmh-header-loc-badge,
    .rmh-site-header__actions {
        display: none !important;
    }

    .rmh-menu-toggle {
        display: inline-flex !important;
        grid-column: 3;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .rmh-site-search {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 44px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        order: 4;
        margin: 4px 0 2px;
    }

    .rmh-site-search button[type="submit"] {
        min-width: 68px;
        min-height: 44px;
        padding: 0 12px;
    }

    .rmh-search-results {
        position: fixed;
        top: 104px;
        left: 12px;
        right: 12px;
        max-height: 55vh;
    }

    /* Mobile off-canvas drawer: fully contained & hidden when closed to prevent 715px overflow */
    .rmh-site-header__nav-row {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(86vw, 340px) !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: 100dvh !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-top: 0 !important;
        background: #ffffff !important;
        box-shadow: -16px 0 36px rgba(10, 45, 31, 0.16) !important;
        transform: translateX(105%) !important;
        transition: transform 180ms ease, visibility 180ms ease !important;
        z-index: var(--rmh-z-modal, 50) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .rmh-site-header.is-menu-open .rmh-site-header__nav-row {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .rmh-site-header__nav-row .rmh-site-nav {
        display: block;
        width: 100%;
    }

    .rmh-site-header__nav-row .rmh-site-nav__menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .rmh-site-header__nav-row .rmh-site-nav__menu a,
    .rmh-header-whatsapp {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 8px 12px;
    }

    /* 4. Hero section width & internal containment */
    .rmh-hero,
    .rmh-home-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin: 12px 0 20px !important;
        padding: 20px 16px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Prevent pseudo-element glows from creating horizontal overflow */
    .rmh-home-hero::before,
    .rmh-home-hero::after {
        display: none !important;
    }

    .rmh-home-hero__content,
    .rmh-hero-art,
    .rmh-hero-art__frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .rmh-home-hero h1 {
        max-width: 100% !important;
        font-size: clamp(1.6rem, 7.5vw, 2.2rem) !important;
        line-height: 1.12 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .rmh-home-hero p {
        max-width: 100% !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .rmh-home-hero .rmh-hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .rmh-home-hero .rmh-btn {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: center !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    .rmh-home-hero__trust,
    .rmh-home-hero__benefits {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .rmh-home-hero__trust span {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 0.85rem !important;
    }

    /* 5. Prescription form full-width rows & touch targets */
    .rmh-home-prescription-section,
    .rmh-home-prescription-section__content,
    .rmh-home-prescription-section__form,
    .rmh-prescription-form,
    #rmhPrescriptionForm,
    #rmhModalRxForm {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .form-grid,
    .rmh-form-grid,
    .form-row,
    .form-fields,
    .rmh-form-row,
    .rmh-form-row--2col {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    .rmh-prescription-file-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #rmhPrescriptionForm input,
    #rmhPrescriptionForm select,
    #rmhPrescriptionForm textarea,
    #rmhPrescriptionForm button,
    #rmhModalRxForm input,
    #rmhModalRxForm select,
    #rmhModalRxForm textarea,
    #rmhModalRxForm button,
    .rmh-form-button,
    .rmh-file-action {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
        font-size: 0.92rem !important;
    }

    .rmh-file-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 8px 12px !important;
    }

    .rmh-file-status {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 6. Manufacturer grid: contained horizontal scroll */
    .manufacturer-list,
    .manufacturer-grid,
    .rmh-brands-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 4px 14px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .manufacturer-card,
    .rmh-brand-card {
        flex: 0 0 calc(50% - 6px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    /* 7. Promotional / CTA cards responsive stacking */
    .rmh-promotion-section,
    .rmh-promotion-grid,
    .rmh-promo-cards,
    .rmh-tools-section,
    .rmh-tools-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .rmh-promotion-grid,
    .rmh-promo-cards,
    .rmh-tools-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .rmh-promotion-banner,
    .rmh-promo-card,
    .rmh-tool-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .rmh-promo-card .rmh-btn,
    .rmh-tool-card strong {
        min-height: 48px !important;
        width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* 8. Delivery feedback form & order tracking */
    .rmh-feedback-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .rmh-delivery-feedback-card input,
    .rmh-delivery-feedback-card select,
    .rmh-delivery-feedback-card textarea,
    .rmh-delivery-feedback-card button,
    .rmh-tracking-card input,
    .rmh-tracking-card button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    /* 9. Footer stacked layout & touch spacing */
    .rmh-footer-information {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .rmh-footer-information__inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
    }

    .rmh-footer-information nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px 10px !important;
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .rmh-footer-information nav a {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 6px 8px !important;
        white-space: normal !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

    .rmh-footer-business-id,
    .rmh-footer-legal {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        margin: 0 !important;
    }

    /* 10. Floating cart & fixed UI positioning */
    .moderncart-toggle-slide-out,
    #moderncart-floating-cart {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        left: auto !important;
        max-width: calc(100vw - 28px) !important;
        z-index: 15 !important;
    }

    .ast-scroll-top-icon {
        bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        left: auto !important;
        z-index: 15 !important;
    }

    /* 11. Mobile bottom navigation & page clearance */
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .rmh-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        z-index: var(--rmh-z-mobile-nav, 20) !important;
        background: #ffffff !important;
        border-top: 1px solid #dce8e2 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .rmh-mobile-nav a {
        flex: 1 1 0 !important;
        min-height: 48px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        font-size: 0.7rem !important;
        text-decoration: none !important;
    }

    .rmh-whatsapp-order-form {
        grid-template-columns: 1fr !important;
    }
}

/* Dedicated breakpoint for small screens (320px - 380px) */
@media (max-width: 380px) {
    .rmh-announcement-ribbon {
        font-size: 0.64rem !important;
    }

    .rmh-announcement-ribbon__item {
        padding: 4px 0 !important;
    }

    .rmh-site-header__inner {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .rmh-site-header__name {
        max-width: 48vw !important;
        font-size: 0.78rem !important;
    }

    .rmh-site-search button[type="submit"] {
        min-width: 58px !important;
        min-height: 44px !important;
        padding: 0 8px !important;
        font-size: 0.76rem !important;
    }

    .rmh-home-hero {
        padding: 16px 10px !important;
    }

    .rmh-home-hero h1 {
        font-size: 1.5rem !important;
    }

    .rmh-prescription-file-actions {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .manufacturer-card,
    .rmh-brand-card {
        flex: 0 0 calc(75% - 6px) !important;
    }

    .rmh-feedback-grid {
        grid-template-columns: 1fr !important;
    }

    .rmh-promotion-banner,
    .rmh-promo-card,
    .rmh-tool-card {
        padding: 12px !important;
    }

    .rmh-footer-information__inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Additional mobile fixes (post‑measurement) */
@media (max-width: 767px) {
  /* ── Announcement ribbon: horizontal marquee (flex, NOT absolute) ── */
  .rmh-announcement-ribbon {
    overflow: hidden;
    overflow-x: clip;
    position: relative;
    /* Give the ribbon enough height so items don't collapse */
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  /* Track MUST stay in flex flow — position:absolute broke the layout */
  .rmh-announcement-ribbon__track {
    position: relative !important; /* reset any earlier absolute */
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 12px !important;
    /* Use the correct keyframe name */
    animation: rmh-announcement-scroll 32s linear infinite !important;
    will-change: transform;
  }

  /* Each item stays on one horizontal line */
  .rmh-announcement-ribbon__item {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap !important;
    padding: 5px 0;
  }

  /* Separator bullet also stays inline */
  .rmh-announcement-ribbon__sep {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap !important;
  }

  /* Ensure the page wrapper does not overflow due to hidden overflow children */
  .hfeed.site {
    overflow-x: hidden; /* already but enforce */
  }
}

/* Reduce ribbon font size on very small screens */
@media (max-width: 380px) {
  .rmh-announcement-ribbon {
    font-size: 0.85rem;
    padding: 4px 0;
  }
}

/* Mobile layout fixes added per analysis */
body,
#page {
    overflow-x: hidden;
    position: relative;
}

.rmh-announcement-ribbon {
    max-width: 100vw;
    overflow: hidden;
}

button,
a.rmh-mobile-nav-link {
    min-height: 44px;
    min-width: 44px;
}

/* =========================================================================
   RMH -- FULL RESPONSIVE LAYOUT, BROKEN IMAGE FIX & CARD STRUCTURE (2026)
   RMH-FULL-RESPONSIVE-2026
   ========================================================================= */

/* ── 1. GLOBAL BASELINE & TEXT FLOW ── */
p, h1, h2, h3, h4, h5, h6, a, span, strong, small, label, td, th {
    writing-mode: horizontal-tb !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* ── 2. SECTION HEADINGS & BADGES ── */
body.home .rmh-section-heading,
.rmh-section-heading,
.rmh-faq-section__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto 20px auto !important;
    padding: 0 !important;
}

body.home .rmh-section-heading > div,
.rmh-section-heading > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

body.home .rmh-section-label,
.rmh-section-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 95% !important;
    height: auto !important;
    min-height: 24px !important;
    padding: 4px 14px !important;
    margin: 0 auto 8px auto !important;
    border-radius: 999px !important;
    background: #e8faf2 !important;
    color: #007a48 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    box-sizing: border-box !important;
}

body.home .rmh-section-heading h2,
.rmh-section-heading h2,
.rmh-faq-section__header h2 {
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto 6px auto !important;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #10251b !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

body.home .rmh-section-heading p,
.rmh-section-heading p,
.rmh-faq-section__header p {
    display: block !important;
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    color: #587065 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* ── 3. TRUSTED MANUFACTURERS: TRUE RESPONSIVE CARD GRID ── */
.rmh-brands-section {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto 32px auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

/* Default Desktop: 6 cards per row */
.manufacturer-list,
.manufacturer-grid,
.rmh-brands-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
}

/* Individual Manufacturer Card */
.manufacturer-card,
.rmh-brand-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 140px !important;
    padding: 14px 10px !important;
    background: #ffffff !important;
    border: 1px solid var(--rmh-line, #dcebe2) !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(16, 37, 27, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.rmh-brand-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(8, 122, 73, 0.1) !important;
    border-color: rgba(8, 122, 73, 0.3) !important;
}

/* Controlled Logo Area */
.manufacturer-logo-wrap,
.rmh-brand-card__logo-wrap {
    width: 100% !important;
    height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 6px auto !important;
    overflow: hidden !important;
}

.manufacturer-logo,
.rmh-brand-card__logo {
    max-height: 40px !important;
    max-width: 110px !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 140 / 48 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.rmh-brand-card__name {
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    color: #10251b !important;
    line-height: 1.25 !important;
    margin: 0 0 2px 0 !important;
    text-align: center !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    display: block !important;
}

.rmh-brand-card__count {
    font-size: 0.72rem !important;
    color: #587065 !important;
    line-height: 1.2 !important;
    margin: 0 0 6px 0 !important;
    display: block !important;
}

.rmh-brand-card__link {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #087a49 !important;
    line-height: 1.2 !important;
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

/* Tablet: 3 cards per row */
@media (max-width: 1024px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Mobile: 2 cards per row */
@media (max-width: 768px) {
    .rmh-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .rmh-brand-card {
        min-height: 128px !important;
        padding: 12px 8px !important;
    }

    .rmh-brand-card__logo-wrap {
        height: 42px !important;
        max-height: 42px !important;
    }

    .rmh-brand-card__logo {
        max-height: 36px !important;
        max-width: 95px !important;
    }
}

/* Very narrow mobile: 1 card per row */
@media (max-width: 340px) {
    .rmh-brands-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── 4. PHARMACY BENEFITS (RESPONSIVE CARDS) ── */
.rmh-promotion-section {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto 32px auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

/* Desktop: 3 cards per row */
.rmh-promo-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
}

.rmh-promo-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid var(--rmh-line, #dcebe2) !important;
    box-shadow: 0 2px 10px rgba(16, 37, 27, 0.04) !important;
    box-sizing: border-box !important;
}

.rmh-promo-card__image-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #eef8f2 !important;
    position: relative !important;
}

.rmh-promo-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.rmh-promo-card__content {
    padding: 16px 16px 18px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}

.rmh-promo-badge {
    align-self: flex-start !important;
    margin-bottom: 8px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: #e6f7ee !important;
    color: #007a48 !important;
}

.rmh-promo-card h3 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #10251b !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
}

.rmh-promo-card p {
    font-size: 0.85rem !important;
    color: #587065 !important;
    line-height: 1.45 !important;
    margin: 0 0 14px 0 !important;
}

.rmh-promo-card .rmh-btn {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
}

/* Mobile: 1 card per row with full width & comfortable padding */
@media (max-width: 768px) {
    .rmh-promo-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ── 5. PHARMACY SERVICES: "HOW CAN WE HELP YOU?" ── */
body.home .rmh-tools-section,
.rmh-tools-section {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto 32px auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

body.home .rmh-tools-grid,
.rmh-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

body.home .rmh-tool-card,
.rmh-tool-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 78px !important;
    height: auto !important;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    border: 1px solid var(--rmh-line, #dcebe2) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(16, 37, 27, 0.04) !important;
}

.rmh-tool-whatsapp {
    background: #f0fbf5 !important;
    border-color: #c9ead8 !important;
}

.rmh-tool-phone {
    background: #eff7f8 !important;
    border-color: #fbdccb !important;
}

.rmh-tool-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.rmh-tool-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    text-align: left !important;
}

.rmh-tool-content > span {
    display: block !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    color: #087a49 !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
}

.rmh-tool-content h3 {
    display: block !important;
    margin: 0 0 2px 0 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #10251b !important;
    line-height: 1.25 !important;
}

.rmh-tool-content p {
    display: block !important;
    margin: 0 0 4px 0 !important;
    font-size: 0.8rem !important;
    color: #587065 !important;
    line-height: 1.35 !important;
}

.rmh-tool-content strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #087a49 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .rmh-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .rmh-tool-card {
        padding: 12px 10px !important;
        gap: 8px !important;
        min-height: 68px !important;
    }

    .rmh-tool-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 1.15rem !important;
    }

    .rmh-tool-content h3 {
        font-size: 0.88rem !important;
    }

    .rmh-tool-content p {
        display: none !important;
    }

    .rmh-tool-content strong {
        font-size: 0.74rem !important;
    }
}

@media (max-width: 360px) {
    .rmh-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ── 6. QUICK SERVICES SECTION ── */
.rmh-quick-services-section {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto 32px auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

.rmh-quick-services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.rmh-qs-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 18px 16px !important;
    background: #ffffff !important;
    border: 1px solid var(--rmh-line, #dcebe2) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(16, 37, 27, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

@media (max-width: 1024px) {
    .rmh-quick-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* Mobile ≤768px: single column so content-heavy cards (WhatsApp, phone, hours)
   are not cramped. Cards have flex-direction:column so height auto is correct. */
@media (max-width: 768px) {
    .rmh-quick-services-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .rmh-qs-card {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* ── 7. HOW TO ORDER STEPS ── */
#rmh-how-to-order {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto 32px auto !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
}

.rmh-steps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.rmh-step-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 18px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--rmh-line, #dcebe2) !important;
    box-shadow: 0 2px 8px rgba(16, 37, 27, 0.04) !important;
    min-height: 180px !important;
    height: auto !important;
}

body.home .rmh-tool-whatsapp,
.rmh-tool-whatsapp {
    background: #f0f8f2 !important;
    border-color: #cfe8d6 !important;
}

body.home .rmh-tool-phone,
.rmh-tool-phone {
    background: #eff7f8 !important;
    border-color: #cde5e8 !important;
}

body.home .rmh-promo-card:nth-child(2) {
    background: #f0f8f2 !important;
    border-color: #cfe8d6 !important;
}

body.home .rmh-promo-card:nth-child(3) {
    background: #f1f6ef !important;
    border-color: #d4e6cf !important;
}

@media (max-width: 768px) {
    body.home .rmh-promo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.home .rmh-promo-card:first-child,
    body.home .rmh-promo-card:nth-child(n+4) {
        grid-column: 1 / -1 !important;
    }

    body.home .rmh-promo-card:nth-child(2),
    body.home .rmh-promo-card:nth-child(3) {
        min-height: 0 !important;
    }

    body.home .rmh-promo-card:nth-child(2) .rmh-promo-card__image-wrap,
    body.home .rmh-promo-card:nth-child(3) .rmh-promo-card__image-wrap {
        aspect-ratio: 16 / 8 !important;
    }

    body.home .rmh-promo-card:nth-child(2) .rmh-promo-card__content,
    body.home .rmh-promo-card:nth-child(3) .rmh-promo-card__content {
        padding: 12px !important;
    }

    body.home .rmh-promo-card:nth-child(2) h3,
    body.home .rmh-promo-card:nth-child(3) h3 {
        font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
        line-height: 1.15 !important;
    }

    body.home .rmh-promo-card:nth-child(2) p,
    body.home .rmh-promo-card:nth-child(3) p {
        display: none !important;
    }

    body.home .rmh-promo-card:nth-child(2) .rmh-btn,
    body.home .rmh-promo-card:nth-child(3) .rmh-btn {
        min-height: 38px !important;
        font-size: 0.78rem !important;
        margin-top: 10px !important;
    }
}

body.home .rmh-home-prescription-section,
body.home .rmh-step-card:nth-child(1) {
    background: #f3f1f8 !important;
    border-color: #dfd9ec !important;
}

body.home .rmh-home-trust .rmh-trust-item:nth-child(1) {
    background: #f0f8f2 !important;
    border-color: #cfe8d6 !important;
}

body.home .rmh-home-trust .rmh-trust-item:nth-child(2) {
    background: #f1f6ef !important;
    border-color: #d4e6cf !important;
}

body.home .rmh-home-trust .rmh-trust-item:nth-child(4) {
    background: #edf7f5 !important;
    border-color: #cce5df !important;
}

body.home .rmh-home-trust .rmh-trust-item:nth-child(5),
body.home .rmh-delivery-card {
    background: #f1f6ef !important;
    border-color: #d4e6cf !important;
}

body.home .rmh-find-store,
body.home .rmh-step-card:nth-child(4) {
    background: #fff8ee !important;
    border-color: #f2dfc0 !important;
}

body.home .rmh-step-card:nth-child(2) {
    background: #f0f5fa !important;
    border-color: #d3e2ef !important;
}

body.home .rmh-step-card:nth-child(3) {
    background: #edf7f5 !important;
    border-color: #cce5df !important;
}

@media (max-width: 1024px) {
    .rmh-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 360px) {
    .rmh-steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── 8. PRODUCT CARDS & PRICING ── */
.rmh-product-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 12px 12px 12px !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
}

.rmh-product-footer .rmh-price,
.rmh-price,
.rmh-mrp-label,
.woocommerce-Price-amount {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: var(--rmh-green, #007a48) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: left !important;
    line-height: 1.3 !important;
    height: auto !important;
}

.rmh-product-footer .rmh-quick-add-wrap {
    width: 100% !important;
    display: flex !important;
}

.rmh-product-footer .rmh-quick-add-btn,
.rmh-product-footer .rmh-btn-card-rx,
.rmh-product-footer .rmh-btn-card-oos,
.rmh-product-footer .button.add_to_cart_button,
.rmh-product-footer .button {
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Master performance/mobile pass: confirmed cart state and compact contact cards. */
.rmh-site-header__mark {
    width: clamp(112px, 32vw, 154px) !important;
    height: auto !important;
    max-height: 58px !important;
    flex: 0 0 auto !important;
    display: block !important;
    border-radius: 0 !important;
    overflow: visible !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rmh-tools-grid {
    align-items: stretch !important;
}

.rmh-tool-card:focus-visible,
.rmh-quick-add-btn:focus-visible,
.rmh-stepper-btn:focus-visible {
    outline: 3px solid rgba(0, 122, 83, 0.35) !important;
    outline-offset: 3px !important;
}

.rmh-tool-icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    fill: currentColor !important;
}

.rmh-tool-whatsapp {
    background: #f0fbf5 !important;
    border-color: #bfe9cf !important;
}

.rmh-tool-whatsapp .rmh-tool-icon,
.rmh-tool-whatsapp .rmh-tool-content strong {
    color: #087a49 !important;
}

.rmh-tool-phone {
    background: #f4fbf7 !important;
    border-color: #ccebdd !important;
}

.rmh-tool-phone .rmh-tool-icon,
.rmh-tool-phone .rmh-tool-content strong {
    color: #0a6f44 !important;
}

.rmh-quick-add-btn[disabled],
.rmh-stepper-btn[disabled] {
    cursor: progress !important;
    opacity: 0.72 !important;
}

.rmh-quick-add-feedback {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: #b42318;
    font-size: 0.74rem;
    line-height: 1.25;
}

@media (max-width: 480px) {
    body.home .rmh-tools-grid,
    .rmh-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.home .rmh-tool-card,
    .rmh-tool-card {
        min-height: 96px !important;
        height: 100% !important;
        padding: 12px 10px !important;
        gap: 8px !important;
        align-items: center !important;
        border-radius: 12px !important;
    }

    .rmh-tool-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
    }

    .rmh-tool-icon svg {
        width: 19px !important;
        height: 19px !important;
    }

    .rmh-tool-content > span,
    .rmh-tool-content p {
        display: none !important;
    }

    .rmh-tool-content h3 {
        font-size: clamp(0.78rem, 3.5vw, 0.92rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .rmh-tool-content strong {
        min-height: 32px !important;
        font-size: clamp(0.72rem, 3.2vw, 0.82rem) !important;
        white-space: normal !important;
        line-height: 1.15 !important;
    }
}

/* ── 9. SECTION SPACING & WHITE SPACE REDUCTION ── */
.rmh-section,
.rmh-content-section,
#rmh-delivery-section,
.rmh-find-store,
.rmh-faq-section,
.rmh-home-prescription-section,
.rmh-brands-section,
.rmh-tools-section,
.rmh-promotion-section,
.rmh-delivery-tracking-section,
.rmh-trust-regulatory-section,
#rmh-how-to-order {
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── 10. MOBILE BOTTOM NAVIGATION & FLOATING CONTROLS COORDINATION ── */
.moderncart-toggle-slide-out,
#moderncart-floating-cart {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.moderncart-toggle-slide-out::before,
.moderncart-toggle-slide-out::after,
#moderncart-floating-cart::before,
#moderncart-floating-cart::after {
    display: none !important;
    content: none !important;
}

.moderncart-toggle-slide-out a,
.moderncart-toggle-slide-out button,
#moderncart-floating-cart a,
#moderncart-floating-cart button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--rmh-green, #007a48) !important;
    border: 1px solid #dcebe2 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(16, 37, 27, 0.12) !important;
    filter: none !important;
}

.moderncart-toggle-slide-out svg,
#moderncart-floating-cart svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--rmh-green, #007a48) !important;
    fill: none !important;
    stroke: currentColor !important;
}

.moderncart-toggle-slide-out .cart-count,
.moderncart-toggle-slide-out .count,
.moderncart-toggle-slide-out [class*="count"],
#moderncart-floating-cart .cart-count,
#moderncart-floating-cart .count,
#moderncart-floating-cart [class*="count"] {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: var(--rmh-green, #007a48) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .rmh-mobile-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
        height: 60px !important;
        background: #ffffff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
    }

    .moderncart-toggle-slide-out,
    #moderncart-floating-cart {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        z-index: 95 !important;
    }

    .ast-scroll-top-icon {
        bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        z-index: 94 !important;
    }

    /* Forms */
    input:not([type='hidden']):not([type='checkbox']):not([type='radio']),
    select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        font-size: max(16px, 1rem) !important;
    }

    textarea {
        min-height: 80px !important;
        resize: vertical !important;
    }

    .rmh-btn,
    button[type='submit'] {
        max-width: 100% !important;
    }
}

/* === END OF MASTER PASS === */

/* ─────────────────────────────────────────────────────────────
   SAFE PERFORMANCE + ACCESSIBILITY PATCH  (2026-10-07)
   Append-only — does NOT touch responsive layout rules above.
   ───────────────────────────────────────────────────────────── */

/* 1. Ribbon track — GPU compositing hint
   will-change: transform is already set at line ~2088;
   backface-visibility: hidden promotes the element to its own
   compositor layer, eliminating per-frame paint during marquee. */
.rmh-announcement-ribbon__track {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Safari */
}

/* 2. Astra default skip-link focus reveal
   Astra outputs: <a class="skip-link screen-reader-text" href="#content">
   The .screen-reader-text rule clips it to 1×1px.
   Without a :focus rule the skip link is keyboard-inaccessible.
   Our custom .rmh-skip-link already has a :focus rule; this
   covers the Astra-generated one. */
.skip-link.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 100000;
    position: fixed;
    top: 10px;
    left: 10px;
    background: #ffffff;
    color: #0c4b30;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    outline: 3px solid #ffe000;
    outline-offset: 2px;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE MENU FIX  (2026-10-07)
   Targeted fix for the off-canvas nav drawer.
   Does NOT modify any grid, product, manufacturer or responsive rules.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Backdrop overlay ────────────────────────────────────────────── */
/* Sits at z-index 45 — above page content (10) but below the drawer (50).
   Intercepts clicks-outside, and prevents the open drawer from
   covering the toggle button (which is elevated to z-56 below). */
#rmh-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 27, 0.45);
    z-index: 45;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

#rmh-nav-backdrop.is-active {
    display: block;
}

/* ── Toggle button: always above the drawer ───────────────────────── */
/* Elevate only .rmh-menu-toggle (not the entire header inner) so the
   hamburger button is always clickable open or closed, while allowing
   the nav drawer to sit cleanly above brand/search elements without click interception. */
@media (max-width: 767px) {
    .rmh-menu-toggle {
        position: relative;
        z-index: 56;
    }

    /* Drawer: explicit z-index, smooth slide + fade */
    .rmh-site-header__nav-row {
        z-index: 50 !important;
        transition: transform 220ms ease, visibility 220ms ease, opacity 220ms ease !important;
        opacity: 0 !important;
    }

    .rmh-site-header.is-menu-open .rmh-site-header__nav-row {
        opacity: 1 !important;
    }

    /* Body scroll lock while drawer is open */
    body.rmh-nav-open {
        overflow: hidden;
    }
}

/* ── aria-expanded initial state guarantee ───────────────────────── */
/* If JS hasn't run yet, the toggle should not announce itself as
   expanded (it has aria-controls so AT will find the nav). */
.rmh-menu-toggle[aria-expanded="false"] {
    /* closed state — no style change needed; just ensures the attribute
       is reflected correctly for screen readers */
}

/* ── Desktop: never apply mobile-drawer rules ────────────────────── */
/* Belt-and-suspenders: above 768px the nav-row must NEVER be hidden
   by the mobile drawer styles (handled by the @media scope above,
   but reinforcing here as a safety net). */
@media (min-width: 768px) {
    #rmh-nav-backdrop {
        display: none !important;
    }

    .rmh-menu-toggle {
        position: static;
        z-index: auto;
    }

    .rmh-site-header__inner {
        position: static; /* restore desktop stacking */
        z-index: auto;
    }

    body.rmh-nav-open {
        overflow: auto; /* clear any stale lock on viewport resize */
    }
}


