/* ==========================================================================
   Fonts (self-hosted variable fonts, downloaded once — no runtime CDN)
   ========================================================================== */

@font-face {
    font-family: 'Teko';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/teko-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/inter-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-variable.woff2') format('woff2');
}

/* ==========================================================================
   NorthSteelKnives theme — "forge and blade"
   ========================================================================== */

:root {
    --forge-black: #121210;
    --iron: #1b1c1e;
    --gunmetal: #24252a;
    --steel: #c7ccd1;
    --ember: #c6601f;
    --ember-hover: #a84f18;
    --ember-active: #93430f;
    --ash: #8b8e93;
    --bone: #f1ede4;

    --font-display: 'Teko', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Re-theme Bootstrap on top of its own dark color mode */
    --bs-body-bg: var(--forge-black);
    --bs-body-color: var(--steel);
    --bs-body-font-family: var(--font-body);
    --bs-border-color: #3a3b40;
    --bs-link-color: var(--ember);
    --bs-link-hover-color: var(--ember-hover);
    --bs-primary: var(--ember);
    --bs-primary-rgb: 198, 96, 31;
    --bs-emphasis-color: var(--bone);
    --bs-secondary-color: var(--ash);
}

body {
    font-family: var(--font-body);
}

/* Scrollbar — themed to match the forge palette instead of the OS default. */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--ember) var(--forge-black);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--forge-black);
}

::-webkit-scrollbar-thumb {
    background-color: var(--gunmetal);
    border: 3px solid var(--forge-black);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--ember);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--bone);
}

code, .font-mono {
    font-family: var(--font-mono);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.navbar-brand img {
    height: 2rem;
    width: auto;
    display: block;
}

.auth-brand .navbar-brand img {
    height: 2.5rem;
    margin: 0 auto;
}

/* Buttons: retint primary from Bootstrap blue to ember */
.btn-primary {
    --bs-btn-bg: var(--ember);
    --bs-btn-border-color: var(--ember);
    --bs-btn-hover-bg: var(--ember-hover);
    --bs-btn-hover-border-color: var(--ember-hover);
    --bs-btn-active-bg: var(--ember-active);
    --bs-btn-active-border-color: var(--ember-active);
    --bs-btn-disabled-bg: var(--ember);
    --bs-btn-disabled-border-color: var(--ember);
    --bs-btn-focus-shadow-rgb: 198, 96, 31;
}

.bg-gunmetal {
    background-color: var(--gunmetal);
}

/* Bone surface — used inside product image cards so photography reads
   true instead of disappearing into the dark page. */
.bg-bone {
    background-color: var(--bone);
}

.bg-forge-black {
    background-color: var(--forge-black);
}

.bg-iron {
    background-color: var(--iron);
}

.text-bone {
    color: var(--bone);
}

/* Signature divider: a blade edge cooling from forge-hot to steel-grey. */
.quench-line {
    height: 2px;
    border: 0;
    margin: 2rem 0;
    background: linear-gradient(90deg, var(--ember) 0%, transparent 75%);
}

/* Breadcrumb trail: quiet uppercase steps, ember on hover/current. */
.site-breadcrumb {
    --bs-breadcrumb-divider: '/';
}

.site-breadcrumb .breadcrumb-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ash);
}

.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ash);
    opacity: 0.6;
}

.site-breadcrumb .breadcrumb-item a {
    color: var(--ash);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-breadcrumb .breadcrumb-item a:hover,
.site-breadcrumb .breadcrumb-item a:focus {
    color: var(--ember);
}

.site-breadcrumb .breadcrumb-item.active {
    color: var(--bone);
}

/* ==========================================================================
   Motion — one reveal system reused everywhere, plus hover micro-interactions.
   Respects prefers-reduced-motion throughout.
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Quench-line draws left-to-right instead of just fading, like a blade
   edge cooling under the water. */
.quench-line.reveal {
    transform: scaleX(0);
    transform-origin: left;
}

.quench-line.reveal.is-visible {
    transform: scaleX(1);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

@keyframes forge-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow, .hero-title, .hero-lead, .hero-cta {
    animation: forge-rise 0.7s ease both;
}

.hero-eyebrow { animation-delay: 0s; }
.hero-title { animation-delay: 0.1s; }
.hero-lead { animation-delay: 0.25s; }
.hero-cta { animation-delay: 0.4s; }

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(198, 96, 31, 0.16);
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(198, 96, 31, 0.55);
    box-shadow: 0 18px 34px -18px rgba(198, 96, 31, 0.35), 0 14px 26px -16px rgba(0, 0, 0, 0.75);
}

.product-card .product-card-img {
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
}

.product-card-eyebrow {
    letter-spacing: 0.06em;
}

/* Title carries a hairline "quench" edge that grows in on hover — a
   smaller echo of the .quench-line divider used site-wide. */
.product-card-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.product-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 1.5rem;
    background: var(--ember);
    transition: width 0.3s ease;
}

.product-card:hover .product-card-title::after,
.product-card:focus-within .product-card-title::after {
    width: 100%;
}

.product-card-price {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--bone);
}

.btn-primary {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(198, 96, 31, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .quench-line.reveal,
    .hero-eyebrow, .hero-title, .hero-lead, .hero-cta, .hero-featured,
    .product-card, .product-card .product-card-img,
    .btn-primary {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Home hero + featured-category tiles
   ========================================================================== */

.hero-band {
    position: relative;
    overflow: hidden;
    padding-block: 0.5rem 1rem;
}

.hero-band::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 60%;
    background: radial-gradient(ellipse at top, rgba(198, 96, 31, 0.18), transparent 70%);
    pointer-events: none;
}

.hero-band > * {
    position: relative;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
}

@media (max-width: 767.98px) {
    .hero-band {
        padding-block: 1.5rem 0.5rem;
    }
}

.hero-featured {
    animation: forge-rise 0.7s ease both;
    animation-delay: 0.5s;
}

.category-tile {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--gunmetal);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-tile:hover img,
.category-tile:focus-visible img {
    transform: scale(1.05);
}

.category-tile-label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(18, 18, 16, 0.92), transparent);
}

.category-tile-label h3 {
    margin: 0;
}

.scroll-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-block: 0.75rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--ember) transparent;
}

.scroll-row::-webkit-scrollbar {
    height: 8px;
}

.scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-row::-webkit-scrollbar-thumb {
    background-color: var(--gunmetal);
    border-radius: 4px;
}

.scroll-row::-webkit-scrollbar-thumb:hover {
    background-color: var(--ember);
}

/* "View all" links: mono/uppercase like the breadcrumb + eyebrow labels,
   with an arrow that nudges forward on hover instead of a plain text link. */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ember);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover,
.view-all-link:focus {
    color: var(--ember-hover);
}

.view-all-link-arrow {
    transition: transform 0.2s ease;
}

.view-all-link:hover .view-all-link-arrow,
.view-all-link:focus .view-all-link-arrow {
    transform: translateX(3px);
}

.scroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.scroll-item-category {
    width: min(75vw, 100px);
}

.scroll-item-product {
    width: min(75vw, 260px);
}

@media (min-width: 576px) {
    .scroll-item-category {
        width: 150px;
    }

    .scroll-item-product {
        width: 260px;
    }
}

/* ==========================================================================
   Home — featured products carousel (coverflow-style, center emphasis)
   ========================================================================== */

.featured-carousel {
    position: relative;
    padding-block: 0.5rem 0;
}

.featured-carousel-viewport {
    position: relative;
    height: clamp(380px, 46vw, 460px);
    overflow: hidden;
}

.featured-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(78%, 250px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
}

.featured-carousel-slide .product-card {
    transition: box-shadow 0.4s ease;
}

.featured-carousel-slide.is-active .product-card {
    box-shadow: 0 0 45px -18px rgba(198, 96, 31, 0.55), 0 0 0 1px rgba(198, 96, 31, 0.35);
}

.featured-carousel-slide:not(.is-active) .product-card:hover,
.featured-carousel-slide:not(.is-active) .product-card:focus-within {
    transform: none;
    box-shadow: none;
}

.featured-carousel-arrow {
    position: absolute;
    top: 50%;
    left: 0.25rem;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    background-color: rgba(36, 37, 42, 0.85);
    color: var(--bone);
    backdrop-filter: blur(2px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.featured-carousel-arrow:hover,
.featured-carousel-arrow:focus-visible {
    background-color: var(--ember);
    border-color: var(--ember);
    color: var(--bone);
}

.featured-carousel-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.featured-carousel-arrow-next {
    left: auto;
    right: 0.25rem;
}

@media (min-width: 768px) {
    .featured-carousel-arrow {
        left: 0.5rem;
    }

    .featured-carousel-arrow-next {
        left: auto;
        right: 0.5rem;
    }
}

.featured-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
}

.featured-carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background-color: var(--bs-border-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.featured-carousel-dot.is-active {
    background-color: var(--ember);
    transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
    .featured-carousel-slide {
        transition: none !important;
    }
}

/* ==========================================================================
   Product gallery (product detail page) — carousel controls
   Same visual language as .featured-carousel-arrow on the home page.
   ========================================================================== */

#productGallery .product-gallery-arrow {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    background-color: rgba(36, 37, 42, 0.85);
    color: var(--bone);
    backdrop-filter: blur(2px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#productGallery .product-gallery-arrow-next {
    left: auto;
    right: 0.75rem;
}

#productGallery .product-gallery-arrow:hover,
#productGallery .product-gallery-arrow:focus-visible {
    background-color: var(--ember);
    border-color: var(--ember);
    color: var(--bone);
}

#productGallery .product-gallery-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

#productGallery .product-gallery-dots {
    position: absolute;
    z-index: 5;
    bottom: 0.85rem;
    left: 0;
    right: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#productGallery .product-gallery-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(241, 237, 228, 0.4);
    opacity: 1;
    text-indent: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#productGallery .product-gallery-dot.active {
    background-color: var(--ember);
    transform: scale(1.3);
}

/* ==========================================================================
   Product gallery — cursor lens zoom
   Desktop-only magnifier that follows the cursor over the active image and
   shows a magnified crop inside itself. Element and positioning are handled
   by app.js; #productGallery has wire:ignore so this survives re-renders.
   ========================================================================== */

.image-zoom-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    border: 2px solid var(--ember);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    background-color: var(--iron);
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.15s ease;
}

/* ==========================================================================
   Auth card (guest layout)
   ========================================================================== */

.auth-brand,
.auth-card {
    animation: forge-rise 0.6s ease both;
}

.auth-card {
    animation-delay: 0.12s;
}

.auth-close {
    position: absolute;
    top: 2.4rem;
    right: 2rem;
    z-index: 2;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 50%;
    opacity: 0.65;
    transition: opacity 0.15s ease, background-color 0.15s ease;

    width: 0 !important;
    height: 0 !important;
}

.auth-close:hover,
.auth-close:focus-visible {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand, .auth-card {
        animation: none;
    }
}

/* ==========================================================================
   Navbar — ember underline accent on the active/hovered link
   ========================================================================== */

.site-navbar {
    border-bottom: 2px solid var(--ember);
}

.site-navbar .nav-link {
    position: relative;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.site-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    height: 2px;
    background: var(--ember);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible,
.site-navbar .nav-link.active {
    color: var(--bone);
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link:focus-visible::after,
.site-navbar .nav-link.active::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .site-navbar .nav-link::after {
        transition: none;
    }
}

/* ==========================================================================
   Admin panel — sidebar, topbar, cards, stat tiles
   ========================================================================== */

.admin-body {
    background-color: var(--forge-black);
}

.admin-shell {
    min-height: 100vh;
}

/* This Bootstrap build has no .min-w-0 utility — define it so the flex item can shrink below its content's width. */
.admin-shell > .flex-grow-1 {
    min-width: 0;
}

.admin-sidebar {
    --bs-offcanvas-width: 240px;
    background-color: var(--gunmetal);
    color: var(--steel);
    border-right: 1px solid var(--bs-border-color);
    padding: 1.25rem 1rem;
}

@media (min-width: 768px) {
    .admin-sidebar {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
    }
}

.admin-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--ember) var(--forge-black);
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--steel);
    border: none;
    border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--ember);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bone);
    padding: 0.25rem 0.5rem 1.5rem;
}

.admin-brand img {
    height: 1.6rem;
    width: auto;
}

.offcanvas-header .admin-brand {
    padding: 0;
}

.admin-nav-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ash);
    padding: 0 0.5rem;
    margin: 0 0 0.5rem;
}

.admin-nav {
    gap: 0.15rem;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    color: var(--steel);
    text-decoration: none;
    font-size: 0.925rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bone);
}

.admin-nav-link.active {
    background-color: rgba(198, 96, 31, 0.16);
    color: var(--bone);
    box-shadow: inset 3px 0 0 var(--ember);
}

.admin-nav-link-danger:hover {
    background-color: rgba(220, 53, 69, 0.12);
    color: #f2a4ac;
}

.admin-nav-icon {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.admin-nav-icon svg {
    width: 100%;
    height: 100%;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.5rem;
    margin: 0.5rem 0;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background-color: rgba(198, 96, 31, 0.2);
    color: var(--ember);
    font-family: var(--font-display);
    font-weight: 700;
    flex-shrink: 0;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-user-name {
    color: var(--bone);
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-user-email {
    color: var(--ash);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--forge-black);
    border-bottom: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-topbar-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ember);
    margin: 0;
}

.admin-topbar-title {
    margin: 0;
    font-size: 1.4rem;
    color: var(--bone);
}

.admin-content {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .admin-content {
        padding: 2rem;
    }
}

.admin-card {
    background-color: var(--gunmetal);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.admin-table-card {
    background-color: var(--gunmetal);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.admin-table-card .table {
    margin-bottom: 0;
}

.admin-table-card .table > :not(caption) > * > * {
    background-color: transparent;
}

.admin-thumb-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--forge-black);
    border: 1px solid var(--bs-border-color);
    color: var(--ash);
}

.admin-thumb-placeholder-sm {
    width: 40px;
    height: 40px;
}

.stat-card {
    background-color: var(--gunmetal);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
}

.stat-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(198, 96, 31, 0.16);
    color: var(--ember);
    margin-bottom: 0.5rem;
}

.stat-card-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.stat-card-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--bone);
    line-height: 1;
}

/* Cart page: item rows, quantity stepper, order summary */
.cart-item {
    background-color: var(--gunmetal);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
}

.cart-item-thumb {
    width: 84px;
    height: 84px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.qty-stepper button {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ash);
    font-size: 1.1rem;
    line-height: 1;
    transition: color .15s ease, background-color .15s ease;
}

.qty-stepper button:hover:not(:disabled) {
    color: var(--bone);
    background-color: rgba(198, 96, 31, 0.16);
}

.qty-stepper button:disabled {
    opacity: 0.35;
}

.qty-stepper input {
    width: 2.75rem;
    height: 2.25rem;
    border: 0;
    border-left: 1px solid var(--bs-border-color);
    border-right: 1px solid var(--bs-border-color);
    background: transparent;
    color: var(--bone);
    text-align: center;
    font-family: var(--font-mono);
    -moz-appearance: textfield;
}

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

.qty-stepper input:focus {
    outline: none;
    box-shadow: none;
}

.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    color: var(--ash);
    background: transparent;
    border: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.cart-remove-btn:hover {
    color: #e15757;
    background-color: rgba(225, 87, 87, 0.12);
    border-color: rgba(225, 87, 87, 0.3);
}

.cart-remove-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* PayPal's Smart Buttons render inside a cross-origin iframe we can't
   restyle — the "Debit or Credit Card" button in particular always keeps
   a light face no matter what style options we pass. Rather than fight
   that and end up with a seam between our tray and the iframe's own
   white canvas, this is plain white (not the off-white --bone token) so
   the tray and the iframe content read as one continuous surface. */
.paypal-panel {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(198, 96, 31, 0.35);
}

/* Footer "we accept" strip. Each badge is a small self-drawn SVG chip
   (not a vendored brand asset) so the payment network stays recognizable
   without pulling in a CDN or an image library. */
.payment-badge svg {
    width: 2.75rem;
    height: 1.75rem;
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(241, 237, 228, 0.15);
}

/* Navbar action links (Cart/My Account/Admin/Logout) — small icon in front
   of the label, colored via currentColor so it follows the same
   ash → ember (hover) → bone (active) states as the text next to it. */
.nav-link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link-svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.social-link {
    line-height: 0;
    display: inline-block;
    transition: transform 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-2px) scale(1.06);
}

.social-link svg {
    width: 1.8rem;
    height: 1.8rem;
    display: block;
    border-radius: 8px;
}

.cart-summary {
    background-color: var(--gunmetal);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

/* pagination */

.page-item.active .page-link {
    background-color: var(--ember);
    border-color: var(--ember);
}
