/* Remedius Rx header: top bar, logo + search + actions, menu bar.
   Markup: resources/views/header/header3.blade.php. Mobile first. */
.rxh-top, .rxh { --h-ink:#0b2c3a; --h-teal:#135b78; --h-teal-ink:#0e4a62; --h-orange:#f9a01c; --h-orange-hover:#ffb13f;
    --h-line:#e4eaec; --h-soft:#f3f6f7; --h-muted:#5d7079; }

/* ---------- Top bar ---------- */
.rxh-top{background:#0b3b4f;color:#fff;font-size:13px;font-weight:500}
.rxh-top-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px;padding-top:6px;padding-bottom:6px}
.rxh-announce{display:flex;align-items:center;gap:10px;min-width:0}
.rxh-announce-ico{flex:none;color:var(--h-orange)}
.rxh-announce-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rxh-announce-link{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--h-orange)!important;font-weight:600;white-space:nowrap}
.rxh-announce-link:hover{color:var(--h-orange-hover)!important}
.rxh-announce-link svg{transition:transform .2s ease}
.rxh-announce-link:hover svg{transform:translateX(3px)}
.rxh-sep{width:1px;height:20px;background:rgba(255,255,255,.35);margin:0 6px}
.rxh-trust{list-style:none;margin:0;padding:0;align-items:center}
.rxh-trust > li{display:flex;align-items:center;gap:8px;padding:0 18px;white-space:nowrap;position:relative}
.rxh-trust > li + li::before{content:"";position:absolute;left:0;top:50%;width:1px;height:20px;margin-top:-10px;background:rgba(255,255,255,.3)}
.rxh-trust > li:last-child{padding-right:0}
.rxh-trust > li > svg{color:#fff}
.rxh-trust a{color:#fff!important;display:inline-flex;align-items:center;gap:8px}
.rxh-trust a:hover{color:var(--h-orange)!important}
.rxh-trust .dropdown-menu{font-size:13px}
.rxh-scroll-menu{max-height:320px;overflow-y:auto}

/* ---------- Main bar ---------- */
.rxh{background:#fff}
.rxh-main{background:#fff;border-bottom:1px solid var(--h-line)}
.rxh-main-inner{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"burger logo actions" "search search search";
    align-items:center;column-gap:12px;row-gap:12px;padding:12px 0 14px}
.rxh-burger{grid-area:burger}
.rxh-logo{grid-area:logo;display:flex;align-items:center;min-width:0}
.rxh-logo img{height:34px;width:auto;max-width:100%}
.rxh-search{grid-area:search;position:relative;min-width:0}
.rxh-actions{grid-area:actions;display:flex;align-items:center;gap:8px}

.rxh-search-form{display:flex;align-items:center;height:50px;padding:4px 4px 4px 16px;background:#fff;border:1.5px solid #d9e2e6;
    transition:border-color .2s ease, box-shadow .2s ease}
.rxh-search-form:focus-within{border-color:var(--h-teal);box-shadow:0 0 0 4px rgba(19,91,120,.1)}
.rxh-search-ico{flex:none;color:var(--h-ink);margin-right:10px}
.rxh-search-form input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--h-ink)}
.rxh-search-form input::placeholder{color:#7d8f97}
.rxh-search-btn{flex:none;height:100%;padding:0 18px;border:0;background:var(--h-orange);color:var(--h-ink);font:inherit;font-size:15px;font-weight:600;
    cursor:pointer;transition:background-color .2s ease}
.rxh-search-btn:hover{background:var(--h-orange-hover)}
.rxh-search .typed-search-box{margin-top:8px;z-index:5}

.rxh-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;
    background:var(--h-soft);border:1px solid var(--h-line);color:var(--h-ink)!important;cursor:pointer;
    transition:background-color .2s ease, border-color .2s ease, color .2s ease}
.rxh-icon-btn:hover,.rxh-account:hover .rxh-icon-btn{background:#e6f0f3;border-color:#cfe0e6;color:var(--h-teal)!important}
.rxh-icon-btn svg{width:22px;height:22px}
.rxh-avatar{overflow:hidden}
.rxh-avatar img{width:100%;height:100%;object-fit:cover}
.rxh-count{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;
    background:var(--h-orange);color:var(--h-ink);font-size:11px;font-weight:700;line-height:1;border:2px solid #fff}
.rxh-account{display:flex;align-items:center;gap:14px;color:var(--h-ink)!important;text-decoration:none!important}
.rxh-hello{flex-direction:column;line-height:1.25;padding-left:16px;border-left:1px solid var(--h-line);white-space:nowrap}
.rxh-hello small{font-size:13px;color:var(--h-muted)}
.rxh-hello strong{font-size:15px;font-weight:600;color:var(--h-ink)}
a.rxh-account:hover .rxh-hello strong{color:var(--h-teal)}
.rxh-auth-links{display:flex;align-items:center;gap:10px}
.rxh-auth-links a{font-size:15px;font-weight:600;color:var(--h-ink)!important;text-decoration:none!important;transition:color .2s ease}
.rxh-auth-links a:hover{color:var(--h-teal)!important;text-decoration:underline!important;text-underline-offset:3px}
.rxh-auth-sep{width:1px;height:14px;background:#c9d3d7}

/* ---------- Menu bar ---------- */
.rxh-nav{background:#fff;box-shadow:0 8px 20px rgba(11,44,58,.05);border-bottom:1px solid var(--h-line)}
.rxh-nav-inner{display:flex;align-items:center;height:66px}
.rxh-browse-wrap{flex:none;padding-right:20px;margin-right:4px;border-right:1px solid var(--h-line);height:34px;display:flex;align-items:center}
.rxh-browse{display:inline-flex;align-items:center;gap:12px;height:48px;padding:0 20px;border:0;background:var(--h-orange);color:var(--h-ink);
    font:inherit;font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap;box-shadow:0 8px 18px rgba(249,160,28,.25);transition:background-color .2s ease}
.rxh-browse:hover{background:var(--h-orange-hover)}
#category-menu-bar-icon.show{transform:rotate(180deg)}
.rxh-menu{display:flex;align-items:center;justify-content:center;list-style:none;margin:0;padding:0;height:100%;min-width:0;flex:1;white-space:nowrap}
/* Keep the links centred on the page, not just in the space beside Browse Categories */
@media (min-width:1200px){
    .rxh-nav-inner{display:grid;grid-template-columns:1fr auto 1fr}
    .rxh-browse-wrap{justify-self:start;border-right:0}
    .rxh-menu{flex:none}
}
.rxh-menu > li{position:relative;height:100%;display:flex;align-items:center}
.rxh-menu > li + li::before{content:"";position:absolute;left:0;top:50%;width:1px;height:28px;margin-top:-14px;background:var(--h-line)}
.rxh-menu-link{position:relative;display:flex;align-items:center;gap:9px;height:100%;padding:0 16px;color:var(--h-ink)!important;font-size:15px;font-weight:500;
    text-decoration:none!important;background:transparent!important;transition:color .2s ease}
.rxh-menu-ico{display:inline-flex;color:var(--h-teal);transition:color .2s ease}
.rxh-menu-link::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;background:var(--h-orange);transform:scaleX(0);transition:transform .25s ease}
.rxh-menu-link:hover{color:var(--h-teal)!important}
.rxh-menu-link:hover::after{transform:scaleX(.5)}
.rxh .rxh-menu-link.active{color:var(--h-teal-ink)!important;font-weight:600;background:transparent!important}
.rxh-menu-link.active .rxh-menu-ico{color:var(--h-orange)}
.rxh-menu-link.active::after{transform:scaleX(1)}
#click-category-menu{z-index:30}

/* ---------- Larger screens ---------- */
@media (min-width:768px){
    .rxh-top{font-size:14px}
    .rxh-logo img{height:40px}
}
@media (min-width:992px){
    .rxh-main-inner{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"logo search actions";column-gap:28px;padding:18px 0}
    .rxh-logo img{height:46px}
    .rxh-search-form{height:56px;padding-left:20px}
    .rxh-search-btn{padding:0 28px;font-size:16px}
    .rxh-icon-btn{width:50px;height:50px}
    .rxh-actions{gap:12px}
}
@media (min-width:1200px){
    .rxh-search{max-width:640px;width:100%;justify-self:center}
    .rxh-menu-link{padding:0 18px}
}
@media (min-width:1400px){
    .rxh-wide{max-width:1360px}
}
@media (max-width:1399.98px){
    .rxh-menu-link{padding:0 14px}
}
@media (max-width:1199.98px){
    /* Small laptops and tablets: tighter links and an icon-only Browse button so the bar fits */
    .rxh-menu-link{padding:0 11px;font-size:14px}
    .rxh-browse span{display:none}
    .rxh-browse{padding:0 16px}
}

/* ---------- Account dropdown (signed in) ---------- */
#nav-user-info{position:relative}
/* Invisible bridge from the account button down to the dropdown so it stays open while the pointer moves */
#nav-user-info::after{content:"";position:absolute;left:-40px;right:-20px;top:100%;height:34px}
.hover-user-top-menu .aiz-user-top-menu{overflow:hidden;border:1px solid var(--h-line,#e4eaec)!important;box-shadow:0 18px 40px rgba(11,44,58,.14)!important;margin-top:4px}
.hover-user-top-menu .user-top-nav-element{border:0!important;border-radius:0!important}
.hover-user-top-menu .user-top-nav-element + .user-top-nav-element{border-top:1px solid #eef2f3!important}

/* ---------- Footer (loaded on every storefront page with this file) ---------- */
.rx-seller-btns{display:flex;flex-direction:column;gap:10px;max-width:260px;margin:0 auto 16px}
@media (min-width:576px){.rx-seller-btns{margin-left:0}}
.rx-fbtn{display:flex;align-items:center;justify-content:center;height:46px;padding:0 18px;font-size:14px;font-weight:600;text-decoration:none!important;
    transition:background-color .2s ease, border-color .2s ease, color .2s ease}
.rx-fbtn-primary{background:#f9a01c;color:#0b2c3a!important;border:1px solid #f9a01c}
.rx-fbtn-primary:hover{background:#ffb13f;border-color:#ffb13f}
.rx-fbtn-outline{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.45)}
.rx-fbtn-outline:hover{background:rgba(255,255,255,.08);border-color:#fff}
footer.pt-3, .rx-credits-bar{background-color:#0b3b4f!important}
.rx-credits{background:transparent!important}
.rx-credits.fs-14, .rx-credits .fs-14{color:rgba(255,255,255,.85)!important}

/* ---------- One site width for every storefront section (matches the header) ----------
   The theme's .layout-container is full width (up to 2560px) and its .container grows to 1400px,
   so product grids and the footer ran past the header. Everything now shares these widths. */
body .layout-container{margin-left:auto!important;margin-right:auto!important}
@media (min-width:576px){ body .layout-container{max-width:540px} }
@media (min-width:768px){ body .layout-container{max-width:720px} }
@media (min-width:992px){ body .layout-container{max-width:960px} }
@media (min-width:1200px){ body .layout-container{max-width:1140px} }
@media (min-width:1400px){ body .container, body .layout-container{max-width:1360px} }
@media (min-width:1920px){ body .layout-container{padding-left:16px!important;padding-right:16px!important} }
/* Homepage product grid: fixed columns inside the site width (6 on desktop, 4 on small laptops) */
@media (min-width:992px){ body .products-wrapper-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important} }
@media (min-width:1200px){ body .products-wrapper-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important} }
