/* Site-wide theme (navy blue + charcoal grey + white + light grey), shared by
   the transactional layout (_Layout.cshtml) and the marketing layout
   (_MarketingLayout.cshtml) via the common header/footer partials. */
:root {
    --client-navy: #17202d;
    --client-navy-light: #232f42;
    --client-charcoal: #3a3f45;
    --client-charcoal-dark: #24282c;
    --client-light-grey: #f1f3f5;
    --client-primary: #17202d;
    --client-secondary: #3a3f45;
    --client-bg: #f5f7fb;
}

body.client-body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--client-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Wide Bootstrap gutters (e.g. .g-5) on a .row nested in .container can
       bleed a few pixels past the viewport on narrow screens; clip it here
       rather than chasing every row's gutter individually. */
    overflow-x: hidden;
}

.client-body h1,
.client-body h2,
.client-body h3,
.client-body h4,
.client-body h5,
.client-body h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
}

/* Site-wide button retheme (navy blue + charcoal grey, ACS-inspired).
   site.css sets .btn-primary background-color directly (via --app-primary),
   which otherwise wins the cascade over Bootstrap's --bs-btn-bg custom
   property, so the color must be set directly here too. */
.btn-primary {
    color: #fff;
    background-color: var(--client-charcoal);
    border-color: var(--client-charcoal);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--client-charcoal-dark);
    border-color: var(--client-charcoal-dark);
}

.btn-outline-primary {
    color: var(--client-navy);
    border-color: var(--client-navy);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--client-navy);
    border-color: var(--client-navy);
    color: #fff;
}

/* Utility bar above the main nav */
.site-header-utility {
    background: #0e1420;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.site-header-utility .utility-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-header-utility .utility-link:hover {
    color: #fff;
}

/* Main navbar */
.client-hero-nav {
    background: var(--client-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.site-brand-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 0.6rem;
    background: #fff;
    color: var(--client-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.site-brand-text small {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-hero-nav .site-nav-links .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    padding: 0.6rem 1rem;
}

.client-hero-nav .site-nav-links .nav-link:hover,
.client-hero-nav .site-nav-links .nav-link:focus,
.client-hero-nav .site-nav-links .nav-link.active {
    color: #fff;
}

.client-hero-nav .site-nav-links .nav-link-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 2rem;
    margin-left: 0.25rem;
}

.client-hero-nav .site-nav-links .nav-link-pill:hover {
    background: #fff;
    color: var(--client-navy);
}

.client-hero-nav .dropdown-menu {
    border: none;
    border-radius: 0.65rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    padding: 0.5rem;
}

.client-hero-nav .dropdown-item {
    border-radius: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
}

.client-hero-nav .dropdown-item:hover,
.client-hero-nav .dropdown-item:focus {
    background: var(--client-light-grey);
    color: var(--client-charcoal-dark);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#categoryNav[v-cloak] {
    display: none;
}

.header-category-pill {
    border: none;
    background: transparent;
    padding: 0.45rem 0.95rem;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-category-pill:hover {
    color: var(--client-charcoal-dark);
    background: rgba(58, 63, 69, 0.08);
}

.header-category-pill.active {
    background: rgba(58, 63, 69, 0.12);
    color: var(--client-charcoal-dark);
    box-shadow: inset 0 0 0 1px rgba(58, 63, 69, 0.3);
}

.client-main {
    flex: 1;
}

/* Footer */
.client-footer {
    background: linear-gradient(120deg, var(--client-navy), #0c121b);
    color: rgba(255, 255, 255, 0.72);
}

.client-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.client-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.client-footer .footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.client-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.client-footer .site-brand-text small {
    color: rgba(255, 255, 255, 0.45);
}

.client-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart offcanvas (transactional layout only) */
.offcanvas-cart-summary {
    background: linear-gradient(120deg, rgba(0, 76, 170, 0.06), rgba(13, 110, 253, 0.06));
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.offcanvas-cart-metric {
    background: #fff;
    padding: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
}

.cart-offcanvas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-offcanvas-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.cart-offcanvas-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #eef2ff;
}

.cart-offcanvas-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}

.cart-offcanvas-controls {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-input {
    width: 80px;
}

.cart-offcanvas-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}
