:root {
    --brand-dark: #002F34;
    --brand-dark-2: #005C63;
    --brand-accent: #FFD166;
    --brand-bg: #F6F8FB;
    --brand-border: #E5E7EB;
    --brand-text: #1f2937;
    --brand-soft: #64748B;
    --brand-white: #ffffff;
    --brand-success: #16a34a;
    --brand-danger: #dc2626;

    --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.09);

    --pwa-bg: #F6F8FB;
    --pwa-card: #ffffff;
    --pwa-top-height: 138px;
    --pwa-bottom-height: 82px;
}

html,
body {
    height: 100%;
}

body {
    background: var(--brand-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--brand-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
}

/* =========================================================
   NAVBAR WEB
========================================================= */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1035;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.site-navbar .container {
    min-height: 76px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.18rem;
    color: var(--brand-dark) !important;
    letter-spacing: -0.02em;
}

.navbar-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    gap: 6px;
}

.desktop-nav .nav-link {
    position: relative;
    font-weight: 700;
    color: #4b5563;
    padding: 10px 14px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background: #f2f7f8;
    color: var(--brand-dark);
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sell-free {
    border: 0;
    border-radius: 14px;
    min-height: 44px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FFD166, #FFE39A);
    color: var(--brand-dark);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(255, 209, 102, 0.28);
}

.btn-sell-free:hover {
    color: var(--brand-dark);
    background: linear-gradient(135deg, #FFE39A, #FFD166);
    transform: translateY(-1px);
}

.navbar-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafb;
    border: 1px solid #e8edf1;
    padding: 6px 12px;
    border-radius: 999px;
}

.navbar-user-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-outline,
.btn-nav-primary,
.btn-nav-danger {
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 16px;
    min-height: 44px;
}

.btn-nav-outline {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid #d8e1e7;
}

.btn-nav-outline:hover {
    background: #f7fafb;
    color: var(--brand-dark);
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-2));
    border: none;
    color: #fff;
}

.btn-nav-primary:hover {
    color: #fff;
    opacity: 0.97;
}

.btn-nav-danger {
    background: #fff0f0;
    border: 1px solid #ffd5d5;
    color: #b42318;
}

.btn-nav-danger:hover {
    background: #ffe7e7;
    color: #b42318;
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    border: 1px solid #d9e2e8;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    background: #fff;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.mobile-menu-icon {
    font-size: 1.1rem;
}

/* =========================================================
   NOTIFICAÇÕES
========================================================= */

.notification-dropdown {
    position: relative;
}

.notification-bell-btn {
    width: 46px;
    height: 46px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    transition: 0.2s ease;
    padding: 0;
}

.notification-bell-btn:hover,
.notification-bell-btn:focus {
    background: #f8f9fa;
    color: var(--brand-dark);
    border-color: #cfd4da;
    box-shadow: none;
}

.favorites-badge,
.notification-badge {
    min-width: 20px;
}

.notification-menu {
    width: 360px;
    min-width: 360px;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 12px !important;
}

.notification-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
    background: #fff;
}

.notification-menu__body {
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f5;
    color: #212529;
    transition: 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--brand-dark);
}

.notification-item__text {
    font-size: 0.9rem;
    color: #5c6770;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-item__time {
    color: #8b949e;
    font-size: 0.78rem;
}

.notification-empty {
    padding: 18px 16px;
    color: #6c757d;
    text-align: center;
}

/* =========================================================
   FLASH MESSAGES
========================================================= */

.flash-wrap {
    padding-top: 14px;
}

.flash-wrap .alert {
    border-radius: 16px;
    border: none;
}

/* =========================================================
   MOBILE MENU WEB
========================================================= */

.mobile-drawer {
    border-right: 1px solid #e8edf1;
    max-width: 340px;
}

.mobile-drawer-header {
    padding: 18px;
    border-bottom: 1px solid #eef2f4;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1.05rem;
}

.mobile-brand img {
    height: 38px;
    object-fit: contain;
}

.mobile-drawer-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-user-card {
    background: linear-gradient(135deg, #f7fbfc, #eef7f8);
    border: 1px solid #e2ecef;
    border-radius: 18px;
    padding: 16px;
}

.mobile-user-name {
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.mobile-user-subtitle {
    font-size: 0.88rem;
    color: var(--brand-soft);
    margin-bottom: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
    color: #334155;
    background: #fff;
    border: 1px solid #e8edf1;
    transition: 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand-dark);
    background: #f5fbfb;
    border-color: #d9eaec;
}

.mobile-nav-link i {
    width: 18px;
    text-align: center;
}

.mobile-actions {
    display: grid;
    gap: 10px;
}

.mobile-notification-box {
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 16px;
    padding: 14px;
}

.mobile-notification-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.mobile-notification-text {
    font-size: 0.86rem;
    color: var(--brand-soft);
    margin-bottom: 0;
}

/* =========================================================
   COMPONENTES GERAIS ANTIGOS
========================================================= */

.btn-warning {
    background: #ffb703;
    border: none;
}

.btn-warning:hover {
    background: #fca311;
}

.hero {
    background: linear-gradient(135deg, #002F34, #005C63);
    color: white;
    padding: 60px 0;
}

.search-box,
.card-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    padding: 20px;
}

.category-card,
.product-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: .3s ease;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.price {
    color: #002F34;
    font-size: 1.2rem;
    font-weight: 800;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background:
        radial-gradient(circle at top left, rgba(255, 209, 102, 0.12), transparent 28%),
        linear-gradient(180deg, #002F34 0%, #01262a 100%);
    color: #fff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 22px;
    position: relative;
    z-index: 1;
}

.footer-bottom-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}

.footer-site-link {
    color: #FFD166;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-site-link:hover {
    color: #fff;
}

/* =========================================================
   PWA BASE
========================================================= */

.pwa-app-bar,
.pwa-bottom-nav {
    display: none;
}

.is-pwa body {
    background:
        radial-gradient(circle at top, rgba(255, 209, 102, 0.14), transparent 30%),
        var(--pwa-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.is-pwa .site-navbar,
.is-pwa .site-footer {
    display: none !important;
}

.is-pwa main {
    padding-top: calc(var(--pwa-top-height) + env(safe-area-inset-top));
    padding-bottom: calc(var(--pwa-bottom-height) + env(safe-area-inset-bottom) + 18px);
    min-height: 100vh;
}

.is-pwa .container {
    max-width: 680px;
    padding-left: 14px;
    padding-right: 14px;
}

.is-pwa [data-pwa-install] {
    display: none !important;
}

.is-pwa .pwa-floating-install {
    display: none !important;
}

/* =========================================================
   PWA APP BAR
========================================================= */

.is-pwa .pwa-app-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    padding-top: env(safe-area-inset-top);
    background:
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.20), transparent 34%),
        linear-gradient(135deg, #002F34 0%, #005C63 62%, #003F45 100%);
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 47, 52, 0.22);
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}

.pwa-app-bar__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
}

.pwa-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    min-width: 0;
}

.pwa-brand:hover {
    color: #fff;
}

.pwa-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    flex: 0 0 auto;
}

.pwa-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwa-brand__text {
    min-width: 0;
}

.pwa-brand__title {
    display: block;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.pwa-brand__subtitle {
    display: block;
    margin-top: 3px;
    max-width: 190px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.74);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   PWA BOTTOM NAV
========================================================= */

.is-pwa .pwa-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1060;
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.pwa-bottom-nav__item {
    min-width: 0;
    min-height: 56px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #64748B;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    transition: 0.2s ease;
}

.pwa-bottom-nav__item i {
    font-size: 1.08rem;
}

.pwa-bottom-nav__item.active {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 47, 52, 0.24);
}

.pwa-bottom-nav__item--create {
    color: var(--brand-dark);
}

.pwa-bottom-nav__button {
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
}

.pwa-bottom-nav__create-icon {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFD166, #FFE39A);
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(255, 209, 102, 0.38);
    border: 3px solid #fff;
}

.pwa-bottom-nav__badge {
    position: absolute;
    top: 3px;
    right: 14px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* =========================================================
   PWA OVERRIDES GERAIS
========================================================= */

.is-pwa .flash-wrap {
    padding-top: 10px;
}

.is-pwa .flash-wrap .alert {
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.is-pwa .hero {
    margin: 12px 14px 18px;
    padding: 32px 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.20), transparent 34%),
        linear-gradient(135deg, #002F34 0%, #005C63 100%);
    box-shadow: 0 20px 42px rgba(0, 47, 52, 0.18);
}

.is-pwa .search-box,
.is-pwa .card-box,
.is-pwa .category-card,
.is-pwa .product-card {
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.is-pwa .category-card:hover,
.is-pwa .product-card:hover {
    transform: none;
}

.is-pwa .product-card img {
    height: 170px;
}

.is-pwa .btn,
.is-pwa .form-control,
.is-pwa .form-select {
    border-radius: 16px;
}

.is-pwa .btn-primary,
.is-pwa .btn-success {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.is-pwa .btn-primary:hover,
.is-pwa .btn-success:hover {
    background: var(--brand-dark-2);
    border-color: var(--brand-dark-2);
}

.is-pwa .btn-warning {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.is-pwa .notification-dropdown {
    position: static;
}

.is-pwa .notification-menu {
    position: fixed !important;
    top: calc(92px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    transform: none !important;
    margin-top: 0 !important;
    border-radius: 22px;
    z-index: 1090;
}

.is-pwa .notification-menu__body {
    max-height: 58vh;
}

/* =========================================================
   PWA ACCOUNT / SETTINGS PANELS
========================================================= */

.pwa-account-canvas,
.pwa-settings-canvas {
    height: min(96vh, 880px) !important;
    border: 0;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    background: #F6F8FB;
    overflow: hidden;
}

.pwa-account-shell,
.pwa-settings-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #F6F8FB;
}

.pwa-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #CBD5E1;
    margin: 12px auto 10px;
}

.pwa-account-header,
.pwa-settings-header {
    padding: 0 16px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pwa-account-title {
    margin: 0;
    color: #002F34;
    font-size: 1.65rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.pwa-account-subtitle {
    margin: 4px 0 0;
    color: #64748B;
    font-size: 0.86rem;
    font-weight: 700;
}

.pwa-sheet-close {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pwa-account-body,
.pwa-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px calc(var(--pwa-bottom-height) + 52px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}

.pwa-profile-card {
    padding: 18px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.22), transparent 36%),
        linear-gradient(135deg, #002F34, #005C63);
    box-shadow: 0 18px 38px rgba(0, 47, 52, 0.22);
}

.pwa-profile-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-profile-avatar {
    width: 66px;
    height: 66px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 950;
    color: #fff;
    flex: 0 0 auto;
}

.pwa-profile-info {
    min-width: 0;
}

.pwa-profile-name {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-profile-status {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-guest-card {
    padding: 20px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.pwa-guest-icon {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: rgba(0, 47, 52, 0.10);
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.pwa-guest-title {
    color: #002F34;
    font-size: 1.35rem;
    font-weight: 950;
    margin-bottom: 6px;
}

.pwa-guest-text {
    color: #64748B;
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 650;
    margin-bottom: 18px;
}

.pwa-account-section-title {
    color: #002F34;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    margin: 24px 0 10px;
}

.pwa-menu-group {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.pwa-menu-row {
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    background: transparent;
    border: 0;
    text-align: left;
    text-decoration: none;
}

.pwa-menu-row:hover {
    background: #F8FAFC;
    color: inherit;
}

.pwa-menu-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(0, 47, 52, 0.08);
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.pwa-menu-icon.danger {
    background: #FFF1F1;
    color: #EF4444;
}

.pwa-menu-text {
    min-width: 0;
    flex: 1;
}

.pwa-menu-title {
    display: block;
    color: #002F34;
    font-size: 0.94rem;
    font-weight: 950;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-menu-title.danger {
    color: #EF4444;
}

.pwa-menu-subtitle {
    display: block;
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 650;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-menu-chevron {
    color: #94A3B8;
    flex: 0 0 auto;
}

.pwa-menu-divider {
    height: 1px;
    background: #E5E7EB;
    margin-left: 74px;
    margin-right: 14px;
}

.pwa-primary-action {
    min-height: 50px;
    border-radius: 17px;
    background: #FFD166;
    color: #002F34;
    border: 0;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.pwa-primary-action:hover {
    color: #002F34;
    background: #FFE39A;
}

.pwa-secondary-action {
    min-height: 50px;
    border-radius: 17px;
    background: #002F34;
    color: #fff;
    border: 0;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.pwa-secondary-action:hover {
    color: #fff;
    background: #005C63;
}

/* =========================================================
   PWA PUSH / SETTINGS
========================================================= */

html:not(.is-pwa) [data-pwa-enable-push] {
    display: none !important;
}

[data-pwa-enable-push].is-active .pwa-menu-icon,
[data-pwa-enable-push].is-active .pwa-settings-icon {
    background: rgba(22, 163, 74, 0.12);
    color: #16A34A;
}

[data-pwa-enable-push].is-active .pwa-menu-title,
[data-pwa-enable-push].is-active .pwa-settings-title {
    color: #16A34A;
}

[data-pwa-enable-push]:disabled {
    opacity: .78;
    pointer-events: none;
}

.pwa-push-status {
    display: none;
    margin: 12px 0 0;
    padding: 11px 13px;
    border-radius: 18px;
    background: #ECFDF3;
    border: 1px solid #BBF7D0;
    color: #166534;
    font-size: .82rem;
    font-weight: 800;
}

.pwa-push-status.show {
    display: block;
}

.pwa-settings-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.pwa-settings-row {
    width: 100%;
    border-radius: 20px;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    text-align: left;
    color: inherit;
}

.pwa-settings-row:last-child {
    margin-bottom: 0;
}

.pwa-settings-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(0, 47, 52, 0.08);
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pwa-settings-text {
    flex: 1;
    min-width: 0;
}

.pwa-settings-title {
    display: block;
    color: #002F34;
    font-size: 0.94rem;
    font-weight: 950;
}

.pwa-settings-subtitle {
    display: block;
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 650;
}

/* =========================================================
   PWA MODALS
========================================================= */

.pwa-logout-modal .modal-content,
.pwa-push-modal .modal-content {
    border: 0;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}

.pwa-logout-modal .modal-title,
.pwa-push-modal .modal-title {
    color: #002F34;
    font-weight: 950;
}

.pwa-about-box,
.pwa-push-box {
    text-align: center;
    padding: 22px 16px;
}

.pwa-about-logo,
.pwa-push-logo {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background: rgba(0, 47, 52, 0.10);
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 14px;
}

.pwa-push-logo {
    background: #FFF4D6;
    color: #002F34;
}

.pwa-about-title,
.pwa-push-title {
    color: #002F34;
    font-size: 1.3rem;
    font-weight: 950;
    margin-bottom: 6px;
}

.pwa-about-version {
    color: #64748B;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pwa-about-text,
.pwa-push-text {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 650;
}

/* =========================================================
   PWA BOTÃO FLUTUANTE INSTALAR
========================================================= */

.pwa-floating-install {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 1085;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 28px);
    animation: pwaInstallFloatIn .35s ease both;
}

.pwa-floating-install[hidden] {
    display: none !important;
}

.pwa-floating-install__button {
    border: 0;
    min-height: 62px;
    padding: 9px 16px 9px 10px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 209, 102, .36), transparent 36%),
        linear-gradient(135deg, #002F34, #005C63);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 45px rgba(0, 47, 52, .28);
    border: 1px solid rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: .22s ease;
}

.pwa-floating-install__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(0, 47, 52, .34);
}

.pwa-floating-install__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
    background: #FFD166;
    color: #002F34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    box-shadow: 0 10px 22px rgba(255, 209, 102, .28);
}

.pwa-floating-install__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    min-width: 0;
}

.pwa-floating-install__text strong {
    font-size: .92rem;
    font-weight: 950;
    color: #fff;
    white-space: nowrap;
}

.pwa-floating-install__text small {
    margin-top: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .76);
    white-space: nowrap;
}

.pwa-floating-install__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #002F34;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes pwaInstallFloatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   PWA MODAL AJUDA INSTALAÇÃO IOS
========================================================= */

.pwa-install-help-modal {
    border: 0;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .25);
}

.pwa-install-help {
    text-align: center;
    padding: 10px 8px 18px;
}

.pwa-install-help__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 26px;
    background: #FFF4D6;
    color: #002F34;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
}

.pwa-install-help h3 {
    color: #002F34;
    font-size: 1.35rem;
    font-weight: 950;
    margin-bottom: 8px;
}

.pwa-install-help p {
    color: #64748B;
    font-size: .92rem;
    line-height: 1.5;
    font-weight: 650;
    margin-bottom: 16px;
}

.pwa-install-help__steps {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    text-align: left;
}

.pwa-install-help__steps div {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 12px;
    color: #334155;
    font-size: .88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-install-help__steps span {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: #002F34;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 950;
}

.pwa-install-help__btn {
    width: 100%;
    min-height: 50px;
    border-radius: 17px;
    background: #002F34;
    color: #fff;
    font-weight: 950;
}

.pwa-install-help__btn:hover {
    background: #005C63;
    color: #fff;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 991.98px) {
    .site-navbar .container {
        min-height: 70px;
    }

    .navbar-logo {
        height: 38px;
    }

    .navbar-brand {
        font-size: 1.06rem;
    }

    .notification-dropdown {
        position: static;
    }

    .notification-menu {
        position: fixed !important;
        top: 76px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        transform: none !important;
        margin-top: 0 !important;
        border-radius: 16px;
        z-index: 1080;
    }

    .notification-menu__body {
        max-height: 60vh;
    }
}

@media (max-width: 767.98px) {
    .flash-wrap {
        padding-top: 12px;
    }

    .site-footer {
        margin-top: 40px;
    }

    .footer-bottom-wrap {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-logo {
        height: 34px;
    }

    .navbar-toggler {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .notification-bell-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .notification-menu {
        top: 68px !important;
        right: 10px !important;
        left: 10px !important;
    }

    .notification-menu__header {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-menu__header .btn {
        width: 100%;
    }

    .mobile-drawer-body {
        padding: 16px;
    }

    .footer-copy {
        font-size: 0.84rem;
    }

    .footer-site-link {
        font-size: 0.9rem;
    }

    .is-pwa main {
        padding-top: calc(136px + env(safe-area-inset-top));
    }

    .is-pwa .pwa-bottom-nav {
        left: 8px;
        right: 8px;
        border-radius: 24px;
    }

    .pwa-bottom-nav__item {
        font-size: 0.64rem;
    }

    .pwa-brand__subtitle {
        max-width: 165px;
    }

    .pwa-floating-install {
        left: 12px;
        right: 12px;
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .pwa-floating-install__button {
        flex: 1;
        justify-content: flex-start;
        min-height: 60px;
    }

    .pwa-floating-install__text strong {
        font-size: .88rem;
    }

    .pwa-floating-install__text small {
        font-size: .68rem;
    }
}
/* =========================================================
   STP MARKET - NAVBAR WEB PROFISSIONAL
========================================================= */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1035;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--brand-border, #E5E7EB);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.site-navbar .container {
    min-height: 76px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.18rem;
    color: var(--brand-dark, #002F34) !important;
    letter-spacing: -0.025em;
}

.navbar-brand:hover {
    color: var(--brand-dark, #002F34) !important;
}

.navbar-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    gap: 6px;
}

.desktop-nav .nav-link {
    position: relative;
    font-weight: 800;
    color: #475569;
    padding: 10px 14px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background: #F1F7F8;
    color: var(--brand-dark, #002F34);
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sell-free {
    border: 0;
    border-radius: 15px;
    min-height: 44px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #FFD166, #FFE39A);
    color: var(--brand-dark, #002F34);
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(255, 209, 102, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sell-free:hover {
    color: var(--brand-dark, #002F34);
    background: linear-gradient(135deg, #FFE39A, #FFD166);
    transform: translateY(-1px);
}

.navbar-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFB;
    border: 1px solid #E8EDF1;
    padding: 6px 12px;
    border-radius: 999px;
}

.navbar-user-pill i {
    color: var(--brand-dark, #002F34);
}

.navbar-user-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand-dark, #002F34);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-outline,
.btn-nav-primary,
.btn-nav-danger {
    border-radius: 13px;
    font-weight: 850;
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-outline {
    background: #FFFFFF;
    color: var(--brand-dark, #002F34);
    border: 1px solid #D8E1E7;
}

.btn-nav-outline:hover {
    background: #F7FAFB;
    color: var(--brand-dark, #002F34);
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--brand-dark, #002F34), var(--brand-dark-2, #005C63));
    border: none;
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(0, 47, 52, 0.16);
}

.btn-nav-primary:hover {
    color: #FFFFFF;
    opacity: 0.97;
}

.btn-nav-danger {
    background: #FFF0F0;
    border: 1px solid #FFD5D5;
    color: #B42318;
}

.btn-nav-danger:hover {
    background: #FFE7E7;
    color: #B42318;
}

/* Botão menu mobile */
.navbar-toggler {
    width: 44px;
    height: 44px;
    border: 1px solid #D9E2E8;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark, #002F34);
    background: #FFFFFF;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.mobile-menu-icon {
    font-size: 1.1rem;
}

/* Botões de ícones: favoritos, notificações, instalar */
.notification-dropdown {
    position: relative;
}

.notification-bell-btn {
    width: 46px;
    height: 46px;
    border: 1px solid #DEE2E6;
    background: #FFFFFF;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark, #002F34);
    transition: 0.2s ease;
    padding: 0;
}

.notification-bell-btn:hover,
.notification-bell-btn:focus {
    background: #F8FAFC;
    color: var(--brand-dark, #002F34);
    border-color: #CFD4DA;
    box-shadow: none;
}

.favorites-badge,
.notification-badge {
    min-width: 20px;
    font-size: 0.68rem;
}

/* Dropdown notificações */
.notification-menu {
    width: 360px;
    min-width: 360px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 12px !important;
    border: 1px solid #E8EDF1 !important;
}

.notification-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #EEF1F4;
    background: #FFFFFF;
}

.notification-menu__body {
    max-height: 420px;
    overflow-y: auto;
    background: #FFFFFF;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F3F5;
    color: #212529;
    transition: 0.2s ease;
}

.notification-item:hover {
    background: #F8FAFC;
}

.notification-item__title {
    font-weight: 850;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--brand-dark, #002F34);
}

.notification-item__text {
    font-size: 0.9rem;
    color: #5C6770;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-item__time {
    color: #8B949E;
    font-size: 0.78rem;
}

.notification-empty {
    padding: 18px 16px;
    color: #6C757D;
    text-align: center;
}

/* =========================================================
   MOBILE DRAWER
========================================================= */

.mobile-drawer {
    border-right: 1px solid #E8EDF1;
    max-width: 340px;
}

.mobile-drawer-header {
    padding: 18px;
    border-bottom: 1px solid #EEF2F4;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--brand-dark, #002F34);
    font-size: 1.05rem;
}

.mobile-brand img {
    height: 38px;
    object-fit: contain;
}

.mobile-drawer-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-user-card {
    background: linear-gradient(135deg, #F7FBFC, #EEF7F8);
    border: 1px solid #E2ECEF;
    border-radius: 20px;
    padding: 16px;
}

.mobile-user-name {
    font-weight: 900;
    color: var(--brand-dark, #002F34);
    margin-bottom: 4px;
}

.mobile-user-subtitle {
    font-size: 0.88rem;
    color: var(--brand-soft, #64748B);
    margin-bottom: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    border-radius: 15px;
    padding: 12px 14px;
    font-weight: 800;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #E8EDF1;
    transition: 0.2s ease;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand-dark, #002F34);
    background: #F5FBFB;
    border-color: #D9EAEC;
}

.mobile-nav-link i {
    width: 18px;
    text-align: center;
}

.mobile-actions {
    display: grid;
    gap: 10px;
}

.mobile-notification-box {
    background: #FFFFFF;
    border: 1px solid #E8EDF1;
    border-radius: 17px;
    padding: 14px;
}

.mobile-notification-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: var(--brand-dark, #002F34);
    margin-bottom: 6px;
}

.mobile-notification-text {
    font-size: 0.86rem;
    color: var(--brand-soft, #64748B);
    margin-bottom: 0;
}

/* =========================================================
   RESPONSIVO NAVBAR
========================================================= */

@media (max-width: 991.98px) {
    .site-navbar .container {
        min-height: 70px;
    }

    .navbar-logo {
        height: 38px;
    }

    .navbar-brand {
        font-size: 1.06rem;
    }

    .notification-dropdown {
        position: static;
    }

    .notification-menu {
        position: fixed !important;
        top: 76px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        transform: none !important;
        margin-top: 0 !important;
        border-radius: 18px;
        z-index: 1080;
    }

    .notification-menu__body {
        max-height: 60vh;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-logo {
        height: 34px;
    }

    .navbar-toggler {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .notification-bell-btn {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .notification-menu {
        top: 68px !important;
        right: 10px !important;
        left: 10px !important;
    }

    .notification-menu__header {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-menu__header .btn {
        width: 100%;
    }

    .mobile-drawer-body {
        padding: 16px;
    }
}

/* =========================================================
   PWA: esconder navbar web no modo app
========================================================= */

html.is-pwa .site-navbar {
    display: none !important;
}