/* ============================================
   ОПАВЧЕ PET SHOP - WARM PLAYFUL THEME
   Palette: Orange · Yellow · Brown · Mint · Teal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Primary – Teal */
    --brand: #40BFA2;
    --brand-dark: #2FA08A;
    --brand-light: #C5EDE3;
    --brand-50: #EBF5F3;

    /* Accent – Orange */
    --accent: #F4A259;
    --accent-dark: #E08B3D;
    --accent-light: #FDF0E2;

    /* Brown – Warm earthy */
    --brown: #8B5E34;
    --brown-dark: #6B4423;
    --brown-light: #B88B60;

    /* Yellow – Sunshine */
    --yellow: #F2CC5D;
    --yellow-light: #FBF3DA;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #F2CC5D;
    --info: #40BFA2;

    /* Surfaces */
    --bg: #EBF5F3;
    --surface: #ffffff;
    --border: var(--gray-200);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 20px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brown-dark);
}

img { max-width: 100%; height: auto; }

a { transition: color .2s ease; }

/* ---------- Utility Bar ---------- */
.utility-bar {
    background: var(--brown-dark);
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    padding: .4rem 0;
    text-align: center;
    letter-spacing: .02em;
}

.utility-bar strong { color: var(--yellow); }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar::before, .navbar::after { content: none; }

.navbar-brand {
    font-family: 'Nunito', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 800;
    color: var(--brown) !important;
    letter-spacing: -.02em;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.navbar-brand:hover { color: var(--brown-dark) !important; transform: none; }

.navbar-nav { font-size: .95rem; }

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 600;
    padding: .5rem .85rem !important;
    border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
}

.nav-link::before { content: none; }

.nav-link:hover, .nav-link:focus {
    background: var(--brand-50);
    color: var(--brand-dark) !important;
    transform: none;
}

.navbar-toggler {
    border: 1px solid var(--gray-300);
    padding: .35rem .6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* On mobile the collapse panel drops down as an overlay instead of
   pushing page content — this prevents the "hamburger covering the page" issue. */
@media (max-width: 991.98px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
        padding: .5rem 1.25rem .85rem;
        z-index: 1049;
    }
}

/* Cart link */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 38px;
}

.cart-label { font-weight: 600; }

.cart-count {
    position: absolute;
    top: -2px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg) !important;
    background: var(--surface) !important;
    z-index: 9999 !important;
    position: absolute !important;
    margin-top: .35rem;
    font-size: .92rem;
}

.dropdown-menu.show { display: block; z-index: 9999 !important; }

.dropdown-item {
    padding: .55rem 1.2rem;
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: background .15s, padding-left .15s;
}

.dropdown-item:hover, .dropdown-item:focus, .dropdown-item:active {
    background: var(--brand-50);
    color: var(--brand-dark) !important;
    padding-left: 1.4rem;
}

.dropdown-divider { border-color: var(--gray-200); }

/* Dropdown form buttons (logout) */
.dropdown-item button {
    background: none;
    border: none;
    color: inherit;
    width: 100%;
    text-align: left;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    cursor: pointer;
}

/* ---------- Navbar Search Bar ---------- */
.navbar-search-wrapper {
    flex: 1;
    max-width: 480px;
    padding: 0 1.5rem;
}

.navbar-search-input {
    background: var(--gray-100) !important;
    border: 1.5px solid var(--gray-200) !important;
    color: var(--gray-800) !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    padding: .5rem 1rem !important;
    font-size: .9rem;
    font-family: 'Nunito', sans-serif;
    transition: background .25s, border-color .25s;
}

.navbar-search-input::placeholder { color: var(--gray-400) !important; }

.navbar-search-input:focus {
    background: #fff !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(64, 191, 162, .15) !important;
    color: var(--gray-800) !important;
    outline: none;
}

.navbar-search-btn {
    background: var(--brown) !important;
    border: 1.5px solid var(--brown) !important;
    color: #fff !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    padding: .5rem .95rem !important;
    font-size: 1rem;
    transition: background .2s;
}

.navbar-search-btn:hover {
    background: var(--brown-dark) !important;
    border-color: var(--brown-dark) !important;
    transform: none;
}

@media (max-width: 991.98px) {
    .navbar-search-wrapper {
        max-width: 100%;
        padding: .65rem 0;
        order: 3;
    }
}

/* ---------- Buttons ---------- */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: .55rem 1.3rem;
    font-size: .92rem;
    border: none;
    transition: transform .15s, box-shadow .15s, background .2s;
    box-shadow: var(--shadow-xs);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--yellow); color: var(--brown-dark); }
.btn-info { background: var(--brand); color: #fff; }
.btn-info:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--gray-500); color: #fff; }

.btn-outline-primary {
    border: 2px solid var(--brand);
    color: var(--brand-dark);
    background: transparent;
    box-shadow: none;
}
.btn-outline-primary:hover {
    background: var(--brand);
    color: #fff;
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
    box-shadow: none;
}
.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-outline-success {
    border: 2px solid var(--success);
    color: var(--success);
    background: transparent;
    box-shadow: none;
}
.btn-outline-success:hover {
    background: var(--success);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--brown);
    border: 1px solid var(--gray-200);
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-img-top {
    border-radius: 0;
    transition: transform .3s ease;
}

.card:hover .card-img-top { transform: scale(1.03); }

.card-header {
    background: var(--brand-50);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    padding: .9rem 1.25rem;
}

.card-body { padding: 1.25rem; }

.card-title {
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: .5rem;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: .6rem .9rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(64, 191, 162, .2);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .4rem;
    font-size: .9rem;
}

/* ---------- Tables ---------- */
.table {
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .8rem;
}

.table thead {
    background: var(--brand-50);
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-600);
}

.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--brand-50); }

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--radius);
    border: none;
    font-weight: 500;
    padding: .9rem 1.25rem;
}

.alert-success {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.alert-info {
    background: var(--brand-50);
    border-left: 4px solid var(--brand);
    color: var(--brown-dark);
}

.alert-warning {
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow);
    color: var(--brown-dark);
}

/* ============================================
   FLOATING TOAST NOTIFICATIONS
   Bottom-right, max 3 visible
   ============================================ */
.notification-stack {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1090;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    pointer-events: none;
    max-height: calc(100vh - 2.5rem);
    overflow: hidden;
}

.notification-stack .app-toast {
    width: min(360px, calc(100vw - 2.5rem));
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(24px);
    opacity: 0;
}

.notification-stack .app-toast.show {
    animation: slideInToast 0.35s ease-out forwards;
}

.notification-stack .app-toast.hide {
    animation: slideOutToast 0.25s ease-in forwards;
}

.notification-stack .toast-header,
.notification-stack .toast-body {
    font-family: 'Nunito', sans-serif;
}

.notification-stack .toast-header {
    border-bottom: none;
}

.app-toast-success {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
}

.app-toast-success .toast-header {
    background: rgba(22, 163, 74, .08);
    color: #166534;
}

.app-toast-error {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
}

.app-toast-error .toast-header {
    background: rgba(220, 38, 38, .08);
    color: #991b1b;
}

@keyframes slideInToast {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutToast {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

@media (max-width: 767px) {
    .notification-stack {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }
    .notification-stack .app-toast { width: 100%; }
}

/* ---------- Badges ---------- */
.badge {
    font-size: .75rem;
    padding: .35rem .7rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.bg-primary { background: var(--brand) !important; }
.bg-success { background: var(--success) !important; }
.bg-danger { background: var(--danger) !important; }
.bg-warning { background: var(--yellow) !important; color: var(--brown-dark) !important; }
.bg-info { background: var(--brand) !important; }
.bg-secondary { background: var(--gray-500) !important; }

/* ============================================
   HOMEPAGE - HERO SLIDESHOW
   ============================================ */
.hero-slideshow {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-slide {
    position: relative;
    height: 420px;
}

.hero-slide > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 2.5rem;
    background: linear-gradient(0deg, rgba(107,68,35,.85) 0%, rgba(107,68,35,.3) 50%, rgba(0,0,0,.05) 100%);
    color: #fff;
}

.hero-slide__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: .3rem .8rem;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.hero-slide__overlay h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    color: #fff;
}

.hero-slide__overlay p {
    margin: 0 0 .6rem;
    font-size: .95rem;
    opacity: .9;
    max-width: 55ch;
}

.hero-slide__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .5rem;
}

.hero-slide__price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--yellow);
}

.carousel-control-prev, .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .25s;
    margin: 0 1rem;
}

.hero-slideshow:hover .carousel-control-prev,
.hero-slideshow:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(1) brightness(.3);
    width: 18px;
    height: 18px;
}

.carousel-indicators {
    margin-bottom: .8rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    opacity: .6;
    transition: all .2s;
}

.carousel-indicators button.active {
    background: var(--yellow);
    border-color: var(--yellow);
    opacity: 1;
    transform: scale(1.15);
}

/* ============================================
   HOMEPAGE - POPULAR PRODUCTS
   ============================================ */
.section-heading {
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--brown-dark);
}

.section-heading p {
    margin: .25rem 0 0;
    color: var(--gray-500);
    font-size: .92rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    transition: box-shadow .25s, transform .25s;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card .card-img-top {
    height: 190px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem 1.15rem;
}

.product-card .card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.product-card .product-category {
    font-size: .8rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.product-card .product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-dark);
}

/* ============================================
   HOMEPAGE - CATEGORY STRIP
   ============================================ */
.category-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 700;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.category-chip:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    color: var(--brand-dark);
}

.category-chip__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.category-chip__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.category-chip__text span:first-child {
    font-size: .95rem;
}

.category-chip__text span:last-child {
    font-size: .78rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ============================================
   HOMEPAGE - PROMO BANNER ROW
   ============================================ */
.promo-banner-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 200px;
    text-decoration: none;
    display: block;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.promo-banner:hover img { transform: scale(1.05); }

.promo-banner__content {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(107,68,35,.75) 0%, rgba(107,68,35,.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    color: #fff;
}

.promo-banner__content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 .2rem;
    color: #fff;
}

.promo-banner__content p {
    font-size: .85rem;
    margin: 0;
    opacity: .85;
}

/* ============================================
   HOMEPAGE - TRUST / SERVICE STRIP
   ============================================ */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.trust-item__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
}

.trust-item__text { display: flex; flex-direction: column; }

.trust-item__text strong {
    font-size: .92rem;
    color: var(--brown-dark);
}

.trust-item__text span {
    font-size: .82rem;
    color: var(--gray-500);
}

/* ============================================
   HOMEPAGE - CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-banner h2 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 .3rem;
}

.cta-banner p {
    margin: 0;
    opacity: .85;
    font-size: .95rem;
}

.cta-banner .btn {
    white-space: nowrap;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    padding: .65rem 1.8rem;
}

.cta-banner .btn:hover {
    background: var(--accent-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--brown-dark) !important;
    color: rgba(255,255,255,.65) !important;
    border-top: none !important;
    margin-top: 3rem;
    position: static;
}

.footer::before { content: none; }

.footer h5 {
    font-family: 'Nunito', sans-serif;
    color: var(--yellow) !important;
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.footer p { color: rgba(255,255,255,.65) !important; }

.footer a {
    color: rgba(255,255,255,.65) !important;
    text-decoration: none;
    transition: color .2s;
    display: inline-block;
}

.footer a:hover {
    color: var(--yellow) !important;
    padding-left: 0;
    transform: none;
}

.footer .list-unstyled li { margin-bottom: .4rem; }

.footer strong { color: rgba(255,255,255,.8) !important; }

.footer.text-muted,
.footer .text-muted,
.footer .text-center { color: rgba(255,255,255,.45) !important; }

.footer hr { border-color: rgba(255,255,255,.1); }

/* ============================================
   DASHBOARD / ADMIN
   ============================================ */
.dashboard-card {
    border-left: 4px solid;
    border-radius: var(--radius-lg);
}

.dashboard-card.primary { border-left-color: var(--brand); }
.dashboard-card.success { border-left-color: var(--success); }
.dashboard-card.warning { border-left-color: var(--yellow); }
.dashboard-card.info { border-left-color: var(--brand); }

/* ---------- Status Picker Dropdown (Admin Order Details) ---------- */
.status-picker-btn {
    background: var(--surface);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-800);
    font-weight: 600;
    padding: .55rem .85rem;
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.status-picker-btn:hover,
.status-picker-btn:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(64, 191, 162, .15);
    color: var(--gray-800);
    background: var(--surface);
}
.status-picker-btn[aria-expanded="true"] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(64, 191, 162, .15);
}
.status-picker-chevron {
    font-size: .8rem;
    color: var(--gray-400);
    transition: transform .2s ease;
}
.status-picker-btn[aria-expanded="true"] .status-picker-chevron {
    transform: rotate(180deg);
}
.status-picker-menu {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    animation: fadeInDown .12s ease;
    max-height: 280px;
    overflow-y: auto;
}
.status-picker-option {
    border-radius: 6px;
    padding: .5rem .75rem;
    font-weight: 500;
    font-size: .9rem;
    color: var(--gray-700);
    transition: background .12s;
}
.status-picker-option.active {
    background: var(--brand-50);
    color: var(--gray-900);
}
.status-picker-option:hover:not(.active) {
    background: var(--gray-50);
}

/* Colored dots used in the status picker */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    display: inline-block;
}
.status-dot--warning  { background: var(--yellow); }
.status-dot--info     { background: var(--brand); }
.status-dot--primary  { background: var(--brand); }
.status-dot--secondary { background: var(--gray-500); }
.status-dot--success  { background: var(--success); }
.status-dot--danger   { background: var(--danger); }
.status-dot--dark     { background: var(--gray-800); }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Admin stat cards */
.card.bg-primary { background: var(--brand) !important; border-color: var(--brand) !important; }
.card.bg-success { background: var(--success) !important; border-color: var(--success) !important; }
.card.bg-warning { background: var(--yellow) !important; border-color: var(--yellow) !important; }
.card.bg-warning .card-title,
.card.bg-warning h2 { color: var(--brown-dark) !important; }
.card.bg-info { background: var(--accent) !important; border-color: var(--accent) !important; }

/* ---------- Utilities ---------- */
.text-orange { color: var(--accent) !important; }
.bg-light-orange { background: var(--accent-light) !important; }
.text-shadow { text-shadow: 1px 1px 3px rgba(0,0,0,.15); }

/* ---------- Focus / A11y ---------- */
*:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
    background: var(--brand-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============================================
   CART PAGE - MOBILE RESPONSIVE
   ============================================ */
.cart-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile cart: card-based layout */
@media (max-width: 767px) {
    .cart-mobile-cards .cart-item-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        margin-bottom: .75rem;
    }

    .cart-item-card__top {
        display: flex;
        gap: .75rem;
        align-items: center;
        margin-bottom: .75rem;
    }

    .cart-item-card__img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }

    .cart-item-card__info {
        flex: 1;
        min-width: 0;
    }

    .cart-item-card__name {
        font-weight: 700;
        font-size: .95rem;
        color: var(--brown-dark);
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-item-card__price {
        font-size: .85rem;
        color: var(--gray-500);
    }

    .cart-item-card__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
    }

    .cart-item-card__qty {
        width: 70px;
    }

    .cart-item-card__subtotal {
        font-weight: 800;
        color: var(--brand-dark);
        font-size: 1rem;
    }

    .cart-total-bar {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .cart-total-bar__label {
        font-weight: 700;
        color: var(--brown-dark);
    }

    .cart-total-bar__amount {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--brand-dark);
    }

    .cart-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .cart-actions-mobile .btn {
        width: 100%;
    }

    /* Hide desktop table on mobile */
    .cart-desktop-table { display: none !important; }
    .cart-mobile-cards { display: block !important; }
}

@media (min-width: 768px) {
    .cart-mobile-cards { display: none !important; }
    .cart-desktop-table { display: block !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .category-strip { grid-template-columns: repeat(2, 1fr); }
    .promo-banner-row { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .hero-slide, .hero-slide > img { height: 320px; }
}

@media (max-width: 768px) {
    .category-strip { grid-template-columns: 1fr; }
    .hero-slide, .hero-slide > img { height: 260px; }
    .hero-slide__overlay { padding: 1.2rem 1.5rem; }
    .hero-slide__overlay h3 { font-size: 1.3rem; }
    .hero-slide__price { font-size: 1.1rem; }
    .navbar-brand { font-size: 1.3rem !important; }
}

/* ============================================
   SHOP PAGE PRODUCT GRID
   ============================================ */
.shop-grid .card { border: 1px solid var(--border); }

.shop-grid .card-img-top {
    height: 200px;
    object-fit: cover;
}

.shop-grid .card-body h5 {
    font-size: 1rem;
    font-weight: 700;
}

/* Image placeholder */
.img-placeholder {
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-weight: 600;
}

/* ============================================
   MOBILE NAVBAR — icon buttons (cart & profile)
   Always visible next to hamburger on mobile.
   ============================================ */
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .18s, color .18s;
    text-decoration: none;
    padding: 0;
}

.nav-icon-btn:hover,
.nav-icon-btn:focus {
    background: var(--brand-50);
    color: var(--brand-dark);
}

/* ============================================
   MOBILE PROFILE BOTTOM DRAWER
   Offcanvas slides up from the bottom — modern
   "bottom sheet" pattern used by top-tier apps.
   ============================================ */
.mobile-profile-drawer {
    height: auto;
    min-height: 55dvh;          /* always takes up meaningful screen space */
    max-height: 92dvh;          /* dynamic viewport height for notched phones */
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: none;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
}

.mobile-profile-drawer .offcanvas-body {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Drag handle */
.mobile-drawer-handle-wrap {
    display: flex;
    justify-content: center;
    padding: .75rem 0 .5rem;
}

.mobile-drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

/* User info row */
.mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .75rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
}

.mobile-drawer-avatar--guest {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.mobile-drawer-user-info { display: flex; flex-direction: column; gap: .1rem; }

.mobile-drawer-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brown-dark);
}

.mobile-drawer-role {
    font-size: .8rem;
    color: var(--gray-500);
}

/* Section label */
.mobile-drawer-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    padding: .9rem 1.25rem .3rem;
}

/* Menu container */
.mobile-drawer-menu {
    padding: .25rem 0 .5rem;
}

/* Individual menu item */
.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background .15s;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:focus {
    background: var(--brand-50);
    color: var(--brand-dark);
    outline: none;
}

/* Colored icon box */
.mobile-drawer-item__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brown);
    flex-shrink: 0;
    transition: background .15s;
}

.mobile-drawer-item:hover .mobile-drawer-item__icon {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.mobile-drawer-item__arrow {
    margin-left: auto;
    color: var(--gray-300);
    font-size: .8rem;
}

/* Danger variant (logout) */
.mobile-drawer-item--danger {
    color: var(--danger);
}

.mobile-drawer-item--danger .mobile-drawer-item__icon {
    background: #fef2f2;
    color: var(--danger);
}

.mobile-drawer-item--danger:hover {
    background: #fef2f2;
    color: var(--danger);
}

.mobile-drawer-item--danger:hover .mobile-drawer-item__icon {
    background: #fecaca;
    color: var(--danger);
}

/* Thin divider line */
.mobile-drawer-divider {
    height: 1px;
    background: var(--border);
    margin: .4rem 1.25rem;
}

/* Safe-area spacer for notched phones (iPhone, etc.) */
.mobile-drawer-safe-area {
    height: env(safe-area-inset-bottom, 1rem);
}

/* ============================================
   CART — QUANTITY STEPPER  (mobile)
   +/− buttons for a touch-friendly quantity control
   ============================================ */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 38px;
    height: 100%;
    flex-shrink: 0;
    background: var(--gray-100);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    padding: 0;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.qty-btn:hover,
.qty-btn:focus {
    background: var(--brand-light);
    color: var(--brand-dark);
    outline: none;
}

.qty-btn:active { background: var(--brand); color: #fff; }

.qty-input {
    width: 44px;
    height: 100%;
    border: none;
    border-left: 1.5px solid var(--gray-200);
    border-right: 1.5px solid var(--gray-200);
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    color: var(--brown-dark);
    font-family: 'Nunito', sans-serif;
    background: #fff;
    padding: 0 2px;
    /* hide browser spin arrows */
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    background: var(--brand-50);
}

/* Trash/remove button — ghost style, turns red on hover */
.btn-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    padding: .45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}

.btn-remove:hover,
.btn-remove:focus {
    color: var(--danger);
    background: #fef2f2;
    outline: none;
}

/* ============================================
   ADMIN RIGHT-SIDE OFFCANVAS PANELS
   Offset below the sticky navbar so the drawer
   never overlaps / slides behind the header.
   72 px matches the scroll-padding-top set in
   _AdminLayout.cshtml for the same navbar.
   ============================================ */
.offcanvas-below-navbar {
    top: 72px !important;
    height: calc(100dvh - 72px) !important;
}
