/**
 * RadiantDevX mWatch — widget styles (.rdx- scoped only).
 * Never styles the owner's plugin areas.
 *
 * @author RadiantDevX
 */

/* Menu */
.rdx-menu__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.rdx-menu--vertical .rdx-menu__list { flex-direction: column; flex-wrap: nowrap; gap: 2px !important; }
.rdx-menu--vertical .rdx-menu__list a { padding: 5px 0; text-transform: none; }
.rdx-menu__list li { position: relative; }
.rdx-menu__list a { display: block; padding: 12px 4px; text-decoration: none; text-transform: uppercase; transition: color .25s ease; }
.rdx-menu__list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px 0; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.rdx-menu__list li:hover > .sub-menu, .rdx-menu__list li:focus-within > .sub-menu { display: block; }
.rdx-menu__list .sub-menu a { text-transform: none; padding: 8px 16px; }

/* Search */
.rdx-search { display: flex; width: 100%; }
.rdx-search__input { flex: 1; border: 1px solid #e5b4b4; padding: 10px 14px; min-width: 0; }
.rdx-search__button { border: 0; padding: 0 18px; cursor: pointer; }

/* Cart icon */
.rdx-cart { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.rdx-cart__icon-wrap { position: relative; display: inline-flex; }
.rdx-cart__count { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 18px; text-align: center; }

/* Account */
.rdx-account { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: color .25s ease; }

/* Mobile menu */
.rdx-mobile-menu__toggle { background: none; border: 0; cursor: pointer; padding: 6px; }
.rdx-mobile-menu__panel { position: fixed; top: 0; left: 0; width: 300px; max-width: 85vw; height: 100vh; z-index: 9999; padding: 20px; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.18); }
.rdx-mobile-menu__panel[hidden] { display: none; }
.rdx-mobile-menu__close { background: none; border: 0; font-size: 28px; cursor: pointer; float: right; }
.rdx-mobile-menu__list { list-style: none; margin: 24px 0 0; padding: 0; }
.rdx-mobile-menu__list a { display: block; padding: 10px 0; text-decoration: none; }

/* Bottom tab bar */
.rdx-tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); }
.rdx-tab-bar__item { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 12px; }
.rdx-tab-bar__icon { position: relative; font-size: 20px; }
.rdx-tab-bar__count { position: absolute; top: -6px; right: -10px; background: #db1b20; color: #fff; min-width: 16px; height: 16px; border-radius: 50%; font-size: 10px; line-height: 16px; text-align: center; }
@media (min-width: 768px) { .rdx-tab-bar { display: none; } }

/* Sticky header helper */
.rdx-header-sticky { position: sticky; top: 0; z-index: 9997; }
