/* =========================================================
   RIVER BROOK — HEADER & FOOTER v2
   Scoped under the `rb-` prefix so nothing here collides
   with the legacy rules in frontend.css.

   Colour choices are contrast-checked against their own
   background (WCAG AA, 4.5:1 for normal text).
   ========================================================= */

:root {
    /* Brand */
    --rb-brand:        #C90606;
    --rb-brand-dark:   #8B0000;
    --rb-brand-soft:   #FDECEC;
    --rb-amber:        #F59E0B;

    /* Light surfaces */
    --rb-ink:          #1a1512;
    --rb-ink-soft:     #525252;   /* 7.81:1 on white */
    --rb-ink-faint:    #8a807c;
    --rb-line:         #E9E4E4;
    --rb-surface:      #F7F5F5;

    /* Dark footer surfaces — every token below is AA on --rb-foot-bg */
    --rb-foot-bg:      #0d1b2a;
    --rb-foot-bg-2:    #0a1521;
    --rb-foot-head:    #ffffff;   /* 17.39:1 */
    --rb-foot-text:    #cbd5e1;   /* 11.72:1 */
    --rb-foot-muted:   #94a3b8;   /*  6.78:1 */
    --rb-foot-accent:  #ff6b6b;   /*  6.27:1 — brand red is only 2.91:1 here */
    --rb-foot-amber:   #ffd166;   /* 12.06:1 */
    --rb-foot-line:    rgba(255, 255, 255, .09);
    --rb-foot-card:    rgba(255, 255, 255, .045);

    --rb-whatsapp:     #075E54;   /* AA with white text; #128C7E is not */

    --rb-shadow-nav:   0 8px 28px rgba(15, 23, 42, .10);
    --rb-shadow-pop:   0 24px 48px rgba(15, 23, 42, .16);
}

/* =========================================================
   1. TOP BAR
   ========================================================= */
.rb-topbar {
    background: linear-gradient(90deg, var(--rb-brand-dark) 0%, var(--rb-brand) 55%, var(--green-light) 100%);
    color: #fff;
    font-size: 13px;
    position: relative;
    z-index: 950;
}
.rb-topbar[hidden] { display: none; }

.rb-topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 38px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.rb-topbar-aside {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.rb-topbar-link {
    color: rgba(255, 255, 255, .93);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: color .2s ease;
}
.rb-topbar-link:hover { color: #fff; text-decoration: underline; }
.rb-topbar-link i { font-size: 12px; opacity: .9; }

/* Rotating ticker */
.rb-ticker {
    flex: 1;
    position: relative;
    height: 20px;
    min-width: 0;
}
.rb-ticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .45s ease, transform .45s ease;
}
.rb-ticker-item.is-active { opacity: 1; transform: translateY(0); }
.rb-ticker-item i { color: var(--rb-foot-amber); flex-shrink: 0; }

.rb-topbar-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease, color .2s ease;
}
.rb-topbar-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* =========================================================
   2. HEADER SHELL
   ========================================================= */
.rb-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid var(--rb-line);
    transition: box-shadow .25s ease;
}
.rb-header.is-stuck { box-shadow: var(--rb-shadow-nav); }

.rb-header-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    transition: padding .25s ease;
}
.rb-header.is-stuck .rb-header-main { padding-top: 9px; padding-bottom: 9px; }

/* Burger */
.rb-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--rb-ink);
    font-size: 21px;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease;
}
.rb-burger:hover { background: var(--rb-surface); }

/* Logo */
.rb-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.rb-logo img {
    height: 56px;
    width: auto;
    transition: height .25s ease;
}
.rb-header.is-stuck .rb-logo img { height: 44px; }

/* =========================================================
   3. SEARCH — persistent, not hidden behind an icon
   ========================================================= */
.rb-search {
    flex: 1;
    max-width: 620px;
    display: flex;
    align-items: stretch;
    background: var(--rb-surface);
    border: 1.5px solid var(--rb-line);
    border-radius: 100px;
    min-width: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.rb-search:focus-within {
    background: #fff;
    border-color: var(--rb-brand);
    box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), .10);
}

.rb-search-scope {
    border: none;
    background: transparent;
    padding: 0 10px 0 20px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rb-ink);
    cursor: pointer;
    outline: none;
    max-width: 160px;
    flex-shrink: 0;
}
.rb-search-sep {
    width: 1px;
    background: var(--rb-line);
    margin: 10px 0;
    flex-shrink: 0;
}
.rb-search-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: none;
    background: transparent;
    padding: 0 8px 0 16px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--rb-ink);
    outline: none;
}
.rb-search-input::placeholder { color: var(--rb-ink-faint); }

.rb-search-btn {
    width: 40px;
    height: 40px;
    margin: 3px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--rb-brand);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.rb-search-btn:hover { background: var(--rb-brand-dark); transform: scale(1.06); }

/* =========================================================
   4. HEADER ACTIONS
   ========================================================= */
.rb-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.rb-icon-btn {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 14px;
    color: var(--rb-ink-soft);
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.rb-icon-btn:hover,
.rb-icon-btn:focus-visible,
.rb-icon-btn:active {
    background: var(--rb-brand-soft);
    color: var(--rb-brand);
    transform: translateY(-1px);
}
.rb-icon-btn:focus-visible {
    outline: 2px solid var(--rb-brand);
    outline-offset: 2px;
}

/* Cart badge — brand red, and it hides itself at zero */
.rb-cart-badge {
    position: absolute;
    top: 5px;
    right: 4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 100px;
    background: var(--rb-brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.rb-cart-badge[hidden] { display: none; }
.rb-cart-badge.is-bumped { transform: scale(1.35); }

/* ---- Account ---- */
.rb-account { position: relative; }

.rb-account-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 14px 0 5px;
    background: #fff;
    border: 1.5px solid var(--rb-line);
    border-radius: 100px;
    cursor: pointer;
    color: var(--rb-ink);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rb-account-btn:hover {
    border-color: var(--rb-brand);
    box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb), .14);
    transform: translateY(-1px);
    color: var(--rb-ink);
}

.rb-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--rb-brand-dark), var(--rb-brand) 60%, var(--green-light));
    flex-shrink: 0;
}
.rb-avatar.is-guest { background: linear-gradient(135deg, #9aa1a8, #6f767c); }

.rb-account-name {
    font-weight: 700;
    font-size: 13.5px;
    max-width: 92px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rb-account-caret { font-size: 10px; color: var(--rb-ink-faint); transition: transform .25s ease; }
.rb-account.is-open .rb-account-caret { transform: rotate(180deg); color: var(--rb-brand); }

.rb-account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 268px;
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: 18px;
    box-shadow: var(--rb-shadow-pop);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 60;
}
.rb-account.is-open .rb-account-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.rb-account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: linear-gradient(135deg, var(--rb-brand-soft), var(--pf-red-tint-2));
    border-radius: 13px;
    margin-bottom: 8px;
}
.rb-account-head .rb-avatar { width: 44px; height: 44px; font-size: 17px; }
.rb-account-head p { margin: 0; min-width: 0; }
.rb-account-head .rb-am-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--rb-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rb-account-head .rb-am-mail {
    font-size: 11.5px;
    color: #7d7370;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-account-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.rb-account-menu a i { width: 16px; text-align: center; color: var(--rb-brand); }
.rb-account-menu a:hover {
    background: var(--rb-brand-soft);
    color: var(--rb-brand-dark);
    transform: translateX(2px);
}

.rb-account-divider { height: 1px; background: var(--rb-line); margin: 7px 4px; }

.rb-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 12px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--rb-brand-dark), var(--rb-brand));
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}
.rb-logout-btn:hover { filter: brightness(1.09); transform: translateY(-1px); }

/* Guest Login button - match main red CTA style */
a.rb-account-btn {
    height: 40px;
    padding: 0 16px;
    gap: 8px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--rb-brand-dark), var(--rb-brand));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(var(--theme-primary-rgb), .22);
}

a.rb-account-btn .rb-avatar.is-guest {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: none;
    box-shadow: none;
    font-size: 12px;
}

a.rb-account-btn .rb-account-name {
    color: #fff;
}

a.rb-account-btn:hover {
    background: linear-gradient(135deg, var(--rb-brand), var(--rb-brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), .32);
    transform: translateY(-2px);
}

a.rb-account-btn:hover .rb-account-name {
    color: #fff;
}

/* =========================================================
   5. NAV ROW + MEGA MENU
   ========================================================= */
.rb-header-nav {
    border-top: 1px solid var(--rb-line);
    background: #fff;
}
.rb-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rb-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 100px;
    background: var(--rb-brand);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease;
}
.rb-mega-trigger:hover { background: var(--rb-brand-dark); }
.rb-mega-trigger .rb-mega-caret { font-size: 10px; transition: transform .25s ease; }
.rb-mega-trigger[aria-expanded="true"] .rb-mega-caret { transform: rotate(180deg); }

.rb-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}
.rb-nav-link {
    position: relative;
    padding: 9px 15px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--rb-ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.rb-nav-link:hover { background: var(--rb-surface); color: var(--rb-brand); }
.rb-nav-link.is-active { color: var(--rb-brand); background: var(--rb-brand-soft); }

/* Right side of the nav row */
.rb-nav-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.rb-emergency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rb-ink);
}
.rb-emergency-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rb-brand-soft);
    color: var(--rb-brand);
    font-size: 14px;
    flex-shrink: 0;
}
.rb-emergency:hover .rb-emergency-ico { animation: rb-ring 1s ease-in-out infinite; }
.rb-emergency-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rb-ink-faint);
    line-height: 1.2;
}
.rb-emergency-num {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--rb-ink);
    line-height: 1.3;
}
@keyframes rb-ring {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-14deg); }
    75%      { transform: rotate(14deg); }
}

.rb-btn-vet {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--rb-brand-dark), var(--rb-brand));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(var(--theme-primary-rgb), .26);
    transition: transform .25s ease, box-shadow .25s ease, color .2s ease;
}
.rb-btn-vet:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--theme-primary-rgb), .36);
}

/* ---- Mega menu ---- */
.rb-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--rb-line);
    box-shadow: var(--rb-shadow-pop);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
    z-index: 70;
    max-height: min(70vh, 620px);
    overflow-y: auto;
}
.rb-mega.is-open { opacity: 1; visibility: visible; transform: none; }

.rb-mega-grid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 24px 34px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 30px;
}

.rb-mega-col { min-width: 0; }

.rb-mega-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rb-line);
    text-decoration: none;
}
.rb-mega-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--rb-surface);
    flex-shrink: 0;
}
.rb-mega-head span {
    font-weight: 800;
    font-size: 14.5px;
    color: var(--rb-ink);
    transition: color .2s ease;
}
.rb-mega-head:hover span { color: var(--rb-brand); }

.rb-mega-sub { display: flex; flex-direction: column; gap: 3px; }
.rb-mega-sub a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rb-ink-soft);
    text-decoration: none;
    padding: 5px 0;
    transition: color .2s ease, transform .2s ease;
}
.rb-mega-sub a:hover { color: var(--rb-brand); transform: translateX(4px); }
.rb-mega-empty { font-size: 13px; color: var(--rb-ink-faint); font-weight: 600; }

.rb-mega-foot {
    border-top: 1px solid var(--rb-line);
    background: var(--rb-surface);
    padding: 14px 24px;
    text-align: center;
}
.rb-mega-foot a {
    font-weight: 800;
    font-size: 14px;
    color: var(--rb-brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: gap .25s ease;
}
.rb-mega-foot a:hover { gap: 14px; }

/* =========================================================
   6. MOBILE DRAWER
   ========================================================= */
.rb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 28, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    z-index: 1100;
}
.rb-overlay.is-open { opacity: 1; visibility: visible; }

.rb-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 348px);
    background: #fff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .34s cubic-bezier(.22, .9, .32, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.rb-drawer.is-open { transform: none; }

.rb-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--rb-line);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.rb-drawer-top img { height: 44px; width: auto; }
.rb-drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--rb-surface);
    border-radius: 12px;
    font-size: 18px;
    color: var(--rb-ink);
    cursor: pointer;
}

.rb-drawer-body { padding: 18px; }

.rb-drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--rb-brand-soft), var(--pf-red-tint-2));
    margin-bottom: 16px;
}
.rb-drawer-profile .rb-avatar { width: 44px; height: 44px; font-size: 17px; }
.rb-drawer-profile p { margin: 0; min-width: 0; }
.rb-dp-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--rb-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rb-dp-mail {
    font-size: 11.5px;
    color: #7d7370;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-drawer-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--rb-brand-dark), var(--rb-brand));
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
    margin-bottom: 16px;
}
.rb-drawer-login:hover { color: #fff; }

.rb-drawer-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rb-ink-faint);
    margin: 20px 0 8px;
}

.rb-drawer-links { display: flex; flex-direction: column; }
.rb-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--rb-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rb-line);
}
.rb-drawer-links a i { width: 18px; text-align: center; color: var(--rb-brand); }
.rb-drawer-links a.is-active { color: var(--rb-brand); }

/* Category accordion */
.rb-acc-item { border-bottom: 1px solid var(--rb-line); }
.rb-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 4px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--rb-ink);
    text-align: left;
    cursor: pointer;
}
.rb-acc-btn i { font-size: 11px; color: var(--rb-ink-faint); transition: transform .25s ease; }
.rb-acc-btn[aria-expanded="true"] i { transform: rotate(180deg); color: var(--rb-brand); }
.rb-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.rb-acc-panel > div { overflow: hidden; }
.rb-acc-item.is-open .rb-acc-panel { grid-template-rows: 1fr; }
.rb-acc-panel a {
    display: block;
    padding: 9px 4px 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rb-ink-soft);
    text-decoration: none;
}
.rb-acc-panel a:hover { color: var(--rb-brand); }
.rb-acc-link {
    display: block;
    padding: 13px 4px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--rb-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rb-line);
}

.rb-drawer-foot {
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid var(--rb-line);
    background: var(--rb-surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rb-drawer-foot a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rb-ink);
    text-decoration: none;
}
.rb-drawer-foot a i { color: var(--rb-brand); width: 16px; text-align: center; }

/* =========================================================
   7. FOOTER
   ========================================================= */
.rb-footer {
    position: relative;
    margin-top: 110px;
    background: var(--rb-foot-bg);
    color: var(--rb-foot-text);
    font-size: 14px;
}

/* ---- Emergency card (replaces the old SVG wave, which had a
       colour seam because --footer-wave-fill was never defined) ---- */
.rb-foot-cta {
    max-width: 1180px;
    margin: -56px auto 0;
    padding: 30px 40px;
    border-radius: 24px;
    background: linear-gradient(120deg, var(--rb-brand-dark) 0%, var(--rb-brand) 100%);
    box-shadow: 0 26px 54px rgba(var(--theme-primary-rgb), .30);
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.rb-foot-cta::after {
    content: "\f1b0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 24px;
    bottom: -46px;
    font-size: 170px;
    color: rgba(255, 255, 255, .10);
    pointer-events: none;
}
.rb-foot-cta-copy { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.rb-foot-cta-copy h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}
.rb-foot-cta-copy p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 14px; }
.rb-foot-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.rb-foot-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease;
}
.rb-foot-btn:hover { transform: translateY(-3px); }
.rb-foot-btn-white { background: #fff; color: var(--rb-brand-dark); }
.rb-foot-btn-white:hover { color: var(--rb-brand-dark); box-shadow: 0 14px 26px rgba(0, 0, 0, .24); }
.rb-foot-btn-wa { background: var(--rb-whatsapp); color: #fff; }
.rb-foot-btn-wa:hover { color: #fff; box-shadow: 0 14px 26px rgba(7, 94, 84, .5); }

/* ---- Body ---- */
.rb-foot-body { padding: 62px 0 44px; }

.rb-foot-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.rb-foot-logo img { height: 54px; width: auto; }
.rb-foot-logo span { font-size: 21px; font-weight: 800; color: var(--rb-foot-head); }
.rb-foot-logo em { font-style: normal; color: var(--rb-foot-accent); }

.rb-foot-tagline {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--rb-foot-muted);
    margin: 0 0 22px;
    max-width: 340px;
}

/* Contact — real tel:/mailto: links, Font Awesome not emoji */
.rb-foot-contact { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.rb-foot-contact li { display: flex; align-items: flex-start; gap: 12px; }
.rb-foot-contact i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--rb-foot-card);
    border: 1px solid var(--rb-foot-line);
    color: var(--rb-foot-accent);
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}
.rb-foot-contact a,
.rb-foot-contact span {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rb-foot-text);
    text-decoration: none;
    transition: color .2s ease;
}
.rb-foot-contact a:hover { color: var(--rb-foot-accent); text-decoration: underline; }

.rb-foot-socials { display: flex; gap: 10px; }
.rb-soc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rb-foot-card);
    border: 1px solid var(--rb-foot-line);
    color: var(--rb-foot-text);
    display: grid;
    place-items: center;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.rb-soc:hover { background: var(--rb-brand); color: #fff; transform: translateY(-3px); }

/* Headings + link columns */
.rb-foot-head {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--rb-foot-head);
    margin: 0 0 20px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--rb-foot-line);
    position: relative;
}
.rb-foot-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 2px;
    background: var(--rb-foot-accent);
}

.rb-foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.rb-foot-links a {
    color: var(--rb-foot-muted);
    text-decoration: none;
    font-size: 13.5px;
    display: inline-block;
    /* translateX instead of padding-left: composited, no layout thrash */
    transition: color .2s ease, transform .2s ease;
}
.rb-foot-links a:hover { color: var(--rb-foot-accent); transform: translateX(4px); }

/* Hours + open-now */
.rb-foot-hours { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.rb-foot-hours li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--rb-foot-muted);
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--rb-foot-line);
}
.rb-foot-hours li:last-child { border-bottom: none; padding-bottom: 0; }
.rb-foot-hours strong { color: var(--rb-foot-text); font-weight: 700; }

.rb-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 800;
    border: 1px solid var(--rb-foot-line);
}
.rb-status.is-open { background: rgba(34, 197, 94, .13); color: #86efac; }
.rb-status.is-closed { background: rgba(148, 163, 184, .12); color: var(--rb-foot-muted); }
.rb-status .rb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.rb-status.is-open .rb-dot { animation: rb-pulse 1.8s ease-out infinite; }
@keyframes rb-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(134, 239, 172, .7); }
    100% { box-shadow: 0 0 0 9px rgba(134, 239, 172, 0); }
}

/* New arrivals mini grid */
.rb-foot-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rb-fp {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: var(--rb-foot-card);
    border: 1px solid var(--rb-foot-line);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.rb-fp:hover { background: rgba(255, 255, 255, .09); border-color: var(--rb-foot-accent); transform: translateY(-3px); }
.rb-fp-img {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    object-fit: cover;
    background: rgba(255, 255, 255, .06);
    flex-shrink: 0;
}
.rb-fp-info { min-width: 0; }
.rb-fp-name {
    margin: 0 0 3px;
    font-size: 12px;
    color: var(--rb-foot-text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rb-fp-price { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--rb-foot-accent); }

/* Trust / payment strip */
.rb-foot-trust {
    border-top: 1px solid var(--rb-foot-line);
    border-bottom: 1px solid var(--rb-foot-line);
    background: var(--rb-foot-bg-2);
    padding: 20px 0;
}
.rb-foot-trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}
.rb-trust-items { display: flex; gap: 26px; flex-wrap: wrap; }
.rb-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rb-foot-text);
}
.rb-trust-item i { color: var(--rb-foot-accent); font-size: 16px; }

.rb-pay { display: flex; align-items: center; gap: 10px; }
.rb-pay span { font-size: 12px; color: var(--rb-foot-muted); font-weight: 700; }
.rb-pay i {
    font-size: 26px;
    color: var(--rb-foot-muted);
    transition: color .2s ease;
}
.rb-pay i:hover { color: var(--rb-foot-text); }

/* Bottom bar — old copy was #4a5568 on #0d1b2a = 2.31:1 (unreadable) */
.rb-foot-bottom { padding: 20px 0; }
.rb-foot-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--rb-foot-muted);
}
.rb-foot-bottom-inner em { font-style: normal; color: var(--rb-foot-text); font-weight: 700; }
.rb-foot-bottom-links { display: flex; gap: 22px; }
.rb-foot-bottom a { color: var(--rb-foot-muted); text-decoration: none; transition: color .2s ease; }
.rb-foot-bottom a:hover { color: var(--rb-foot-accent); text-decoration: underline; }

/* =========================================================
   8. RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
    .rb-nav-links { gap: 0; margin-left: 6px; }
    .rb-nav-link { padding: 9px 11px; font-size: 14px; }
    .rb-emergency-label, .rb-emergency-num { display: none; }
}

/* Collapse the desktop nav row into the drawer */
@media (max-width: 1099px) {
    .rb-header-nav { display: none; }
    .rb-burger { display: grid; place-items: center; }
    .rb-header-main { gap: 14px; }
    .rb-search { max-width: none; }
}

@media (max-width: 991px) {
    .rb-topbar-aside { display: none; }
    .rb-foot-cta { margin-left: 16px; margin-right: 16px; padding: 26px 28px; }
    .rb-foot-cta::after { display: none; }
}

/* Search drops to its own row */
@media (max-width: 767px) {
    .rb-header-main { flex-wrap: wrap; padding: 10px 16px 12px; row-gap: 10px; }
    .rb-logo img { height: 46px; }
    .rb-header.is-stuck .rb-logo img { height: 40px; }
    .rb-search { order: 3; flex-basis: 100%; max-width: none; }
    .rb-search-scope, .rb-search-sep { display: none; }
    .rb-search-input { padding-left: 20px; height: 44px; }
    .rb-account-name, .rb-account-caret { display: none; }
    .rb-account-btn { padding: 0 5px; }
    .rb-account-menu { right: -6px; width: min(90vw, 268px); }
    .rb-icon-btn { width: 42px; height: 42px; }

    .rb-foot-body { padding: 46px 0 32px; }
    .rb-foot-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .rb-foot-cta-actions { justify-content: center; }
    .rb-foot-bottom-inner { flex-direction: column; text-align: center; }
    .rb-foot-trust-inner { justify-content: center; }
    .rb-trust-items { justify-content: center; gap: 18px; }
}

@media (max-width: 575px) {
    .rb-foot-cta-copy h3 { font-size: 1.25rem; }
    .rb-foot-btn { width: 100%; justify-content: center; }
    .rb-foot-products { grid-template-columns: 1fr; }
    .rb-foot-bottom-links { gap: 16px; }
}

/* =========================================================
   9. MOTION / FOCUS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .rb-topbar, .rb-header, .rb-drawer, .rb-overlay, .rb-mega,
    .rb-account-menu, .rb-ticker-item, .rb-acc-panel,
    .rb-foot-btn, .rb-soc, .rb-fp, .rb-foot-links a, .rb-icon-btn {
        transition: none !important;
        animation: none !important;
    }
}

.rb-nav-link:focus-visible,
.rb-mega-trigger:focus-visible,
.rb-account-btn:focus-visible,
.rb-topbar-link:focus-visible,
.rb-foot-links a:focus-visible,
.rb-soc:focus-visible,
.rb-drawer a:focus-visible,
.rb-acc-btn:focus-visible {
    outline: 2px solid var(--rb-brand);
    outline-offset: 3px;
    border-radius: 6px;
}
.rb-footer a:focus-visible { outline-color: var(--rb-foot-accent); }

/* Screen-reader-only helper (cart count, icon-button labels) */
.rb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lock scroll while the drawer / mega menu is open */
body.rb-no-scroll { overflow: hidden; }

.rb-fly-dot{
    position: fixed;
    z-index: 99999;
    border-radius: 50%;
    pointer-events: none;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    transition: left .7s cubic-bezier(.17,.67,.32,1.02),
                top .7s cubic-bezier(.17,.67,.32,1.02),
                width .7s ease, height .7s ease,
                opacity .7s ease;
}

.rb-cart-badge.is-bumped{
    animation: rbCartBump .35s ease;
}
@keyframes rbCartBump{
    0%   { transform: scale(1); }
    40%  { transform: scale(1.55); }
    100% { transform: scale(1); }
}

.rb-icon-btn.rb-cart-shake{
    animation: rbCartShake .45s ease;
}
@keyframes rbCartShake{
    0%,100% { transform: rotate(0); }
    20%     { transform: rotate(-14deg); }
    45%     { transform: rotate(11deg); }
    70%     { transform: rotate(-7deg); }
    90%     { transform: rotate(4deg); }
}

/* =========================================================
   RIVER BROOK - WISHLIST PAGE
   ========================================================= */

.rb-wishlist-page {
    min-height: 65vh;
    padding: 40px 0 80px;
    background: #fff;
}

/* Match the header content bounds without resizing the wishlist product grid. */
.rb-wishlist-heading-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.rb-wishlist-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.rb-wishlist-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--rb-ink) ;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rb-wishlist-head h1 {
    margin: 0 0 .5rem;
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--green-dark);
}

.rb-wishlist-head p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.rb-wishlist-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 100px;
    background: var(--rb-brand);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.rb-wishlist-shop-btn:hover {
    background: var(--rb-brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.rb-wishlist-empty {
    max-width: 620px;
    margin: 70px auto 0;
    padding: 55px 30px;
    text-align: center;
    border: 1px solid var(--rb-line);
    border-radius: 22px;
    background: var(--rb-surface);
}

.rb-wishlist-empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rb-brand-soft);
    color: var(--rb-brand);
    font-size: 27px;
}

.rb-wishlist-empty h2 {
    margin-bottom: 8px;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    color: var(--rb-ink);
}

.rb-wishlist-empty p {
    margin-bottom: 22px;
    color: var(--rb-ink-soft);
}

.rb-wishlist-empty > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 100px;
    background: var(--rb-brand);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.rb-wishlist-empty > a:hover {
    background: var(--rb-brand-dark);
    color: #fff;
}

@media (max-width: 767px) {
    .rb-wishlist-page {
        padding: 40px 0 60px;
    }

    .rb-wishlist-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}

/* Cart + Wishlist icons same visual size */
.rb-actions .rb-icon-btn > i {
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rb-actions .rb-icon-btn .fa-cart-shopping,
.rb-actions .rb-icon-btn .fa-heart {
    font-size: 18px;
}
button.rb-account-btn {
    background: transparent;
    border-color: transparent;
    border-radius: 14px;
    color: var(--rb-ink-soft);
    box-shadow: none;
}
button.rb-account-btn:hover,
button.rb-account-btn:focus-visible,
button.rb-account-btn:active {
    background: var(--rb-brand-soft);
    border-color: transparent;
    color: var(--rb-brand);
    box-shadow: none;
}
button.rb-account-btn:focus-visible {
    outline: 2px solid var(--rb-brand);
    outline-offset: 2px;
    border-radius: 14px;
}
button.rb-account-btn .rb-avatar {
    background: var(--rb-brand-soft);
    color: var(--rb-brand);
}
button.rb-account-btn:hover .rb-avatar,
button.rb-account-btn:focus-visible .rb-avatar,
button.rb-account-btn:active .rb-avatar {
    background: var(--rb-brand);
    color: #fff;
}
