﻿/*html::before {
    content: "site.css LOADED";
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    padding: 4px 6px;
    z-index: 999999;
}
*/
@font-face {
    font-family: "Traveling Typewriter"; /* must match what you use later */
    src: url("/fonts/TravelingTypewriter.otf") format("opentype"), url("/fonts/TravelingTypewriter.ttf") format("truetype");
    font-display: swap;
}

.mud-popover {
    z-index: 1000;
}

    /* Fix tiny MudMenu dropdown with scrollbars */
    .mud-popover .mud-list {
        max-height: none !important;
    }

    .mud-popover .mud-paper {
        overflow: visible !important;
    }

    /* Make items readable / clickable */
    .mud-popover .mud-list-item {
        min-height: 36px; /* default-ish */
        padding-top: 6px;
        padding-bottom: 6px;
    }


:root {
    /* Core palette (light mode) */
    --rp-bg: #f8f5e7;
    --rp-bg: #000000;
    --rp-surface: #1a1a1a;
    --rp-text: #f3efe7;
    --rp-muted: #bdb6a8;
    --rp-primary: #164a52;
    --rp-primary-contrast: #1a0e0d;
    --rp-secondary: #0793a9;
    --rp-accent: #d8bd6a;
    --rp-link: var(--rp-primary);
    --rp-link-hover: #02a08;
    --rp-border: #2a2926;
    --rp-shadow: 0 10px 26px rgba(0,0,0,.45);
    /* Radii & rhythm */
    --rp-radius: 14px;
    --rp-gap: 12px;
    /* Typography scale */
    --rp-font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    --rp-font-heading: "Traveling Typewriter", var(--rp-font-sans);
    --rp-h1: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
    --rp-h2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
    --rp-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
    --rp-h4: clamp(1.125rem, 1.02rem + 0.50vw, 1.45rem);
    --rp-h5: clamp(1.0625rem, 0.99rem + 0.35vw, 1.25rem);
    --rp-h6: clamp(1rem, 1rem + 0vw, 1rem);
}

/* headings inside your app area */
.rp-root .mud-typography.mud-typography-h1,
.rp-root .mud-typography.mud-typography-h2,
.rp-root .mud-typography.mud-typography-h3,
.rp-root .mud-typography.mud-typography-h4,
.rp-root .mud-typography.mud-typography-h5,
.rp-root .mud-typography.mud-typography-h6 {
    font-family: "Traveling Typewriter", "Courier New", system-ui;
    color: var(--rp-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--rp-secondary);
    font-family: "Traveling Typewriter", "Courier New", system-ui;
}

.rp-root .mud-typography-body1 {
    margin-bottom: 15px;
}

.rp-root .mud-typography-body2 {
    margin-bottom: 15px;
}

/* default: show desktop, hide mobile */
.rp-appbar--desktop {
    background-color: #164a52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: .5rem;
    width: 100%;
    height: 50px;
    padding: 0 40px;
    position: relative;
}


.rp-appbar--mobile {
    display: none;
}

/* kill underline from links in the top bar */
.rp-appbar--desktop .mud-nav-link,
.rp-appbar--desktop .mud-nav-link span,
.rp-appbar--desktop a.mud-nav-link {
    text-decoration: none !important;
    border-bottom: none !important;
    text-align: center !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-size: .875rem !important;
}

/* kill underline if your global 'a' style is hitting MudMenu label */
.rp-appbar--desktop .mud-menu button,
.rp-appbar--desktop .mud-menu .mud-button-root {
    text-decoration: none !important;
    border-bottom: none !important;
}

    /* if you also want menus to have no hover bg on the label */
    .rp-appbar--desktop .mud-menu .mud-button-root,
    .rp-appbar--desktop .mud-menu .mud-button-root:hover,
    .rp-appbar--desktop .mud-menu .mud-button-root:focus {
        background: transparent !important;
        box-shadow: none !important;
    }

/* the popover wrapper (lets you adjust paper, shadow, z-index, etc.) */
.rp-menu-pop .mud-paper {
    background-color: var(--rp-primary);
    color: var(--rp-primary); /* default text color inside */
    font-weight: 600;
}

/* the list inside the menu */
.rp-menu-list {
    background-color: var(--rp-primary);
    color: #fff; /* default text color inside */
    font-weight: 700;
}

    /* items */
    .rp-menu-list .mud-list-item {
        font-weight: 700;
        color: #fff;
    }

        /* hover/active for items */
        .rp-menu-list .mud-list-item:hover,
        .rp-menu-list .mud-list-item.mud-selected {
            background-color: var(--rp-primary);
            color: #fff !important; /* your teal, or any color */
            font-weight: 700;
        }

    /* optional: remove menu’s inner padding to make it tighter */
    .rp-menu-list .mud-list {
        padding: 4px 0;
    }

/* Mobile drawer – match EVENTS dropdown colors */
.rp-mobile-drawer {
    background-color: var(--rp-primary);
    color: #fff;
}

    /* Make sure the inner area uses same bg */
    .rp-mobile-drawer .mud-drawer-content,
    .rp-mobile-drawer .mud-drawer-inner,
    .rp-mobile-drawer .mud-navmenu {
        background-color: var(--rp-primary);
        color: #fff;
    }

    /* Nav links inside the drawer */
    .rp-mobile-drawer .mud-nav-link {
        color: #fff !important;
        font-weight: 700;
        text-decoration: none !important;
    }

        /* Hover / active states like your menu items */
        .rp-mobile-drawer .mud-nav-link:hover,
        .rp-mobile-drawer .mud-nav-link.mud-selected {
            background-color: var(--rp-primary); /* same teal block */
            color: #fff !important;
        }
    .rp-mobile-drawer a:hover {
        color: #fff !important;
        text-decoration:underline;
    }

.rp-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e; /* dark gray - change as needed */
    color: white;
    text-align: right;
    padding: 6px 0;
    font-size: 0.8rem;
    z-index: 1100; /* above content */
    box-shadow: 0 -2px 4px rgba(0,0,0,0.2);
}

.mud-main-content {
    padding-bottom: 40px; /* height of footer */
}


/* match Mud md breakpoint (<= 959.98px): show mobile, hide desktop */
@media (max-width: 959.98px) {
    .rp-appbar--desktop {
        display: none;
    }

    .rp-appbar--mobile {
        display: flex;
        align-items: center;
        gap: .5rem;
        width: 100%;
    }
}



/* Dark mode */
/*@media (prefers-color-scheme: dark) {
    :root {
        --rp-bg: #000000;
        --rp-surface: #1a1a1a;
        --rp-text: #f3efe7;
        --rp-muted: #bdb6a8;
        --rp-primary: #164a52;
        --rp-primary-contrast: #1a0e0d;
        --rp-secondary: #8fa2b7;
        --rp-accent: #d8bd6a;
        --rp-link: var(--rp-primary);
        --rp-link-hover: #02a0a8;
        --rp-border: #2a2926;
        --rp-shadow: 0 10px 26px rgba(0,0,0,.45);
    }
}
*/
/* Base */
html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--rp-bg);
    color: var(--rp-text);
    font-family: var(--rp-font-sans);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

/* Headings pick up the typewriter feel */
h1, h2, h3, .rp-heading {
    font-family: var(--rp-font-heading);
    letter-spacing: .5px;
    margin: 0 0 .4em 0;
}

h1 {
    font-size: var(--rp-h1);
}

h2 {
    font-size: var(--rp-h2);
}

h3 {
    font-size: var(--rp-h3);
}

/* site.css */
.mud-typography-h3 {
    font-family: "Traveling Typewriter", ui-sans-serif, system-ui;
}

.appbar-nav {
    display: flex; /* force horizontal row */
    flex-wrap: wrap; /* wrap on smaller widths */
    align-items: center;
    justify-content: space-between; /* spread across */
    gap: .5rem;
    width: 100%;
}


/* Links */
a, .link {
    color: var(--rp-secondary);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

    a:hover, .link:hover,
    .mud-button-root:hover,
    .mud-button-root[aria-expanded="true"] {
        color: var(--rp-link-hover);
    }

/* Buttons (vanilla) */
.button, .btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: var(--rp-radius);
    padding: .6rem 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    box-shadow: var(--rp-shadow);
    cursor: pointer;
    background: var(--rp-primary);
    color: var(--rp-primary-contrast);
    transition: transform .04s ease, filter .15s ease, background .15s ease;
}

    .button:hover {
        filter: brightness(1.05);
    }

    .button:active {
        transform: translateY(1px);
    }

    .button.secondary {
        background: var(--rp-secondary);
        color: #fff;
    }

    .button.ghost {
        background: transparent;
        border-color: var(--rp-primary);
        color: var(--rp-primary);
    }

/* Cards / panels */
.card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 1rem;
    box-shadow: var(--rp-shadow);
}

/* Nav header */
.rp-navbar {
    position: sticky;
    top: 0;
    background: var(--rp-surface);
    border-bottom: 1px solid var(--rp-border);
    z-index: 20;
}

    .rp-navbar .brand {
        font-family: var(--rp-font-heading);
        font-size: clamp(1.4rem, 1.1rem + .8vw, 2rem);
    }

/* Utility */
.rp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

.rp-grid {
    display: grid;
    gap: var(--rp-gap);
}

    .rp-grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

@media (max-width: 900px) {
    .rp-grid.cols-2, .rp-grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 959.95px) {
    .rp-logo-strip .rp-logo-col {
        display: none !important; /* force it off */
    }

    /* make sure the right side still hugs the right */
    .rp-logo-strip .rp-logo-copy {
        justify-content: flex-end;
        text-align: right;
    }
}

/* 2) make the right-hand text a bit smaller */
.rp-logo-strip .rp-logo-text {
    font-size: 0.9rem; /* tweak as you like: 0.85rem, 0.95rem, etc. */
    line-height: 1.3;
}

.qty-select {
    width: 66px; /* narrow but clickable */
}

    .qty-select .mud-input-control,
    .qty-select .mud-input-root {
        height: 28px;
        min-height: 28px;
        font-size: 0.9rem;
    }

.qty-native {
    width: 66px;
    height: 28px;
    border подтверж: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #fff;
    color: #000;
    padding: 0 4px;
    font-size: 0.9rem;
}
.qty-native,
.qty-select {
    position: relative;
    z-index: 20; /* bring select above the flex siblings */
}

.icon-btn,
.icon-btn * {
    position: relative;
    z-index: 1; /* lower than the select */
}

.add-to-cart-btn {
    height: 26px !important; /* match dropdown */
    min-height: 26px !important;
    line-height: 26px !important; /* center text vertically */
    padding: 0 10px !important; /* compact horizontal padding */
    font-size: 0.85rem !important; /* match dropdown text size */
    min-width: unset !important;
    border-radius: 4px !important;
    margin-bottom: 6px; /* match dropdown bottom spacing */
}

    /* keep clicks clean */
    .add-to-cart-btn * {
        pointer-events: none;
    }

/* --- Sticky checkout bar --- */
.checkout-bar {
    position: fixed;
    left: 0;
    right: 0;
    /* If you still have the copyright rp-footer fixed at bottom,
       this lifts the checkout bar ABOVE it.
       Adjust 32px if your footer is taller/shorter. */
    bottom: 32px;
    background: var(--mud-palette-background);
    border-top: 1px solid rgba(0,0,0,0.12);
    padding: 8px 12px;
    z-index: 1200;
}

.checkout-bar-content {
    max-width: 1200px; /* match large container feel */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-summary {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.checkout-count {
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout-total {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Make button feel tappable but not huge */
.checkout-bar-btn {
    height: 32px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 6px;
}

/* Ensure content doesn’t hide behind sticky bars */
.rp-root {
    padding-bottom: 96px; /* checkout bar + footer clearance */
}
