/*
 * Bemidji Woolen Mills - modern storefront layer.
 * Loaded after bootstrap.min.css and custom.css; keeps the original cream,
 * black and buffalo-plaid look with cleaner type, spacing and cards.
 */

:root {
    --bwm-cream: #f3f0e9;
    --bwm-paper: #fffdf9;
    --bwm-ink: #1c1915;
    --bwm-ink-soft: #3a352e;
    --bwm-muted: #6f675b;
    --bwm-line: #e3dccd;
    --bwm-red: #b0141c;
    --bwm-red-dark: #8a0f15;
    --bwm-forest: #2f5a3b;
    --bwm-night: #151310;
    --bwm-radius: 12px;
    --bwm-radius-sm: 8px;
    --bwm-shadow: 0 1px 2px rgba(28, 25, 21, .06), 0 4px 14px rgba(28, 25, 21, .06);
    --bwm-shadow-lift: 0 2px 4px rgba(28, 25, 21, .08), 0 12px 28px rgba(28, 25, 21, .12);
    --bwm-serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --bwm-sans: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bwm-cream);
    color: var(--bwm-ink);
    font-family: var(--bwm-sans) !important;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bwm-red);
}

a:hover,
a:focus {
    color: var(--bwm-red-dark);
}

h1, h2, h3, .modal-title {
    font-family: var(--bwm-serif);
    font-weight: 600;
    color: var(--bwm-ink);
    letter-spacing: .005em;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-size: 26px;
}

h4, h5 {
    font-weight: 700;
}

@media (max-width: 992px) {
    h1 {
        font-size: 26px !important;
        font-weight: 600;
    }
}

hr {
    border-top-color: var(--bwm-line);
}

::selection {
    background: rgba(176, 20, 28, .18);
}

:focus-visible {
    outline: 2px solid var(--bwm-red);
    outline-offset: 2px;
}

.site-main {
    display: block;
    padding: 28px 0 56px;
}

/* ---------- Top bar ---------- */

.topbar {
    background: var(--bwm-night);
    color: #d9d1c3;
    font-size: 12.5px;
    letter-spacing: .02em;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
}

.topbar .container::before,
.topbar .container::after {
    display: none;
}

.topbar-note {
    font-family: var(--bwm-serif);
    font-style: italic;
    font-size: 14px;
    color: #efe8da;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a {
    color: #efe8da;
}

.topbar a:hover {
    color: #fff;
    text-decoration: none;
}

.topbar .glyphicon {
    font-size: 11px;
    margin-right: 3px;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--bwm-paper);
    border-bottom: 1px solid var(--bwm-line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 0;
}

.site-logo {
    flex: 0 0 auto;
    display: block;
}

.site-logo img {
    display: block;
    height: 84px;
    width: auto;
}

.site-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0 auto;
}

.site-search .form-control {
    height: 46px;
    padding: 10px 52px 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--bwm-line);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(28, 25, 21, .04);
    font-size: 15px;
}

.site-search .form-control:focus {
    border-color: var(--bwm-ink-soft);
    box-shadow: 0 0 0 3px rgba(176, 20, 28, .12);
}

.site-search button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--bwm-ink);
    color: #fff;
    transition: background-color .15s ease;
}

.site-search button:hover {
    background: var(--bwm-red);
}

.site-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 58px;
    padding: 6px 8px;
    border: 0;
    border-radius: var(--bwm-radius-sm);
    background: transparent;
    color: var(--bwm-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-action .glyphicon {
    font-size: 20px;
}

.site-action:hover,
.site-action:focus {
    color: var(--bwm-red);
    background: rgba(28, 25, 21, .04);
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 8px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bwm-red);
    color: #fff;
    font-size: 11px;
    line-height: 19px;
    text-align: center;
    letter-spacing: 0;
}

.mobile-only {
    display: none !important;
}

/* ---------- Main navigation ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #000000;
}

/* Original buffalo plaid on the right of the menu bar */
.site-nav > .container {
    background-image: url("/images/checker.png");
    background-position: top right;
    background-repeat: no-repeat;
}

.site-nav .navbar-collapse {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.site-nav .navbar-nav {
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
}

.site-nav .navbar-nav > li > a {
    position: relative;
    padding: 15px 18px;
    color: #e9e2d4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: transparent;
    text-shadow: 3px 3px 6px #000000;
}

.site-nav .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 9px;
    height: 2px;
    background: var(--bwm-red);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.site-nav .navbar-nav > li > a:hover,
.site-nav .navbar-nav > li > a:focus,
.site-nav .navbar-nav > .open > a,
.site-nav .navbar-nav > .open > a:hover,
.site-nav .navbar-nav > .open > a:focus {
    color: #fff;
    background: transparent;
}

.site-nav .navbar-nav > li > a:hover::after,
.site-nav .navbar-nav > .open > a::after {
    transform: scaleX(1);
}

.site-nav .caret {
    margin-left: 4px;
    opacity: .7;
}

.site-nav .dropdown-menu {
    min-width: 230px;
    margin-top: 0;
    padding: 8px;
    border: 1px solid var(--bwm-line);
    border-radius: 0 0 var(--bwm-radius) var(--bwm-radius);
    box-shadow: var(--bwm-shadow-lift);
    background: var(--bwm-paper);
}

.site-nav .dropdown-menu > li > a {
    padding: 7px 12px;
    border-radius: 6px;
    color: var(--bwm-ink);
    font-size: 14px;
}

.site-nav .dropdown-menu > li > a:hover,
.site-nav .dropdown-menu > li > a:focus {
    background: rgba(176, 20, 28, .08);
    color: var(--bwm-red-dark);
}

.site-nav .dropdown-header-link > a {
    margin-top: 4px;
    font-weight: 700;
}

.site-nav .dropdown-sub > a {
    padding-left: 26px !important;
    color: var(--bwm-muted) !important;
    font-size: 13.5px !important;
}

/* ---------- Bootstrap components ---------- */

.panel,
.well {
    border: 1px solid var(--bwm-line);
    border-radius: var(--bwm-radius);
    background: var(--bwm-paper);
    box-shadow: var(--bwm-shadow);
}

.panel-body {
    padding: 22px 24px;
}

.panel-heading {
    border-top-left-radius: var(--bwm-radius);
    border-top-right-radius: var(--bwm-radius);
}

.panel-default > .panel-heading {
    background: #f7f3ea;
    border-color: var(--bwm-line);
    font-weight: 700;
}

.faded {
    background: var(--bwm-paper);
    filter: none;
}

.panel-body > h1:only-child,
.panel-body > .row > h1 {
    margin: 4px 0;
}

.btn {
    border-radius: var(--bwm-radius-sm);
    font-weight: 700;
    letter-spacing: .02em;
    padding: 9px 18px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-sm {
    padding: 6px 12px;
}

.btn-lg {
    padding: 12px 24px;
}

.btn-primary {
    background: var(--bwm-red);
    border-color: var(--bwm-red);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background: var(--bwm-red-dark);
    border-color: var(--bwm-red-dark);
    color: #fff;
}

.btn-default {
    background: #fff;
    border-color: #cfc6b4;
    color: var(--bwm-ink);
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background: #f7f3ea;
    border-color: var(--bwm-ink-soft);
    color: var(--bwm-ink);
}

.btn-success {
    background: var(--bwm-forest);
    border-color: var(--bwm-forest);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: #244a2f;
    border-color: #244a2f;
}

.form-control {
    height: 42px;
    border-radius: var(--bwm-radius-sm);
    border-color: #d8d0bf;
    box-shadow: none;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: var(--bwm-ink-soft);
    box-shadow: 0 0 0 3px rgba(176, 20, 28, .12);
}

.form-control[readonly] {
    background: #f7f3ea;
}

.input-group-addon {
    border-color: #d8d0bf;
    background: #f7f3ea;
    border-radius: var(--bwm-radius-sm);
}

.control-label,
label {
    font-weight: 700;
    color: var(--bwm-ink-soft);
}

.breadcrumb {
    padding: 0 2px 14px;
    margin: 0;
    background: transparent;
    font-size: 13px;
}

.breadcrumb > li + li::before {
    color: #b9b0a0;
    content: "\203A\00a0";
}

.breadcrumb a {
    color: var(--bwm-muted);
}

.breadcrumb > .active {
    color: var(--bwm-ink);
}

.pagination > li > a,
.pagination > li > span {
    margin: 0 3px;
    border: 1px solid var(--bwm-line);
    border-radius: var(--bwm-radius-sm) !important;
    background: var(--bwm-paper);
    color: var(--bwm-ink);
}

.pagination > li > a:hover {
    background: #f7f3ea;
    color: var(--bwm-red);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus {
    background: var(--bwm-ink);
    border-color: var(--bwm-ink);
    color: #fff;
}

.alert {
    border-radius: var(--bwm-radius-sm);
}

.modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.modal-header {
    position: relative;
    padding: 20px 24px 12px;
    border-bottom: 0;
}


.modal-title {
    font-size: 24px;
}

.modal-body {
    padding: 8px 24px 16px;
}

.modal-footer {
    padding: 14px 24px 20px;
    background: #f7f3ea;
    border-top: 1px solid var(--bwm-line);
}

.modal-backdrop.in {
    opacity: .6;
}

.table > thead > tr > th,
.table > tbody > tr > td {
    border-color: var(--bwm-line);
}

.img-rounded {
    border-radius: var(--bwm-radius-sm);
}

/* ---------- Home ---------- */

.flexslider {
    margin: 0 0 8px;
    border: 0;
    border-radius: var(--bwm-radius);
    overflow: hidden;
    background: var(--bwm-paper);
    box-shadow: var(--bwm-shadow);
}

.flexslider .slides img {
    border-radius: 0;
}

.flex-control-nav {
    bottom: 14px;
    z-index: 2;
}

.flex-control-paging li a {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .6);
    box-shadow: none;
}

.flex-control-paging li a.flex-active {
    background: #fff;
}

.section-heading {
    max-width: 680px;
    margin: 40px auto 26px;
    text-align: center;
}

.section-heading h1,
.section-heading h2 {
    margin: 6px 0 8px;
    font-family: var(--bwm-serif);
    font-size: 38px !important;
    font-weight: 600;
    text-align: center;
}

.section-heading p {
    margin: 0;
    color: var(--bwm-muted);
    font-size: 16px;
}

.eyebrow {
    display: inline-block;
    color: var(--bwm-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.home-section {
    margin-top: 24px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--bwm-line);
    border-radius: var(--bwm-radius);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.brand-tile img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

.brand-tile:hover,
.brand-tile:focus {
    transform: translateY(-2px);
    border-color: #cfc6b4;
    box-shadow: var(--bwm-shadow-lift);
}

.about-card {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 12px 48px 36px;
    border: 1px solid var(--bwm-line);
    border-radius: var(--bwm-radius);
    background: var(--bwm-paper);
    box-shadow: var(--bwm-shadow);
    overflow: hidden;
    font-family: var(--bwm-sans);
}


.about-card .section-heading {
    margin: 28px auto 18px;
}

.about-card p {
    font-family: var(--bwm-serif);
    font-size: 20px;
    line-height: 1.6;
    color: var(--bwm-ink-soft);
}

.about-card .about-signature {
    margin-top: 20px;
    font-family: var(--bwm-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--bwm-muted);
}

.about-card .about-signature strong {
    font-family: var(--bwm-serif);
    font-size: 20px;
    color: var(--bwm-ink);
}

/* ---------- Product grid ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bwm-line);
    border-radius: var(--bwm-radius);
    background: var(--bwm-paper);
    box-shadow: var(--bwm-shadow);
    overflow: hidden;
    color: var(--bwm-ink);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover,
.product-card:focus {
    transform: translateY(-3px);
    box-shadow: var(--bwm-shadow-lift);
    color: var(--bwm-ink);
    text-decoration: none;
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-bottom: 1px solid var(--bwm-line);
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain;
    transition: transform .35s ease;
}

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

.product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.product-brand {
    margin-bottom: 4px;
    color: var(--bwm-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.product-card .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-family: var(--bwm-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    color: var(--bwm-ink);
}

.product-price {
    margin-top: auto;
    font-family: var(--bwm-serif);
    font-size: 21px;
    font-weight: 600;
    color: var(--bwm-ink);
}

/* Brand / department page header */
#brandlogo img {
    border-radius: var(--bwm-radius-sm);
    background: #fff;
}

.catmenu .btn,
.catmenu a {
    margin: 2px;
}

/* Product details */
#imgPlaceholder img {
    border-radius: var(--bwm-radius);
    background: #fff;
}

.item_title {
    height: auto;
}

.item_title h1 {
    text-align: left;
    margin-bottom: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bwm-night);
    color: #cfc6b6;
    font-size: 14px;
}

.site-footer .container {
    padding-top: 44px;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--bwm-serif);
    font-size: 20px;
    font-weight: 600;
}

.site-footer a {
    color: #efe8da;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer address {
    margin: 0;
}

.footer-grid > div {
    margin-bottom: 28px;
}

.footer-logo {
    display: block;
    height: 70px;
    width: auto;
    margin-bottom: 14px;
    border-radius: 6px;
}

.footer-brand p {
    max-width: 320px;
}

.footer-social a {
    display: inline-block;
    margin-right: 6px;
    opacity: .9;
    transition: opacity .15s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #9d9484;
    font-size: 13px;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .site-logo img {
        height: 74px;
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .site-nav .navbar-nav > li > a {
        padding: 14px 12px;
        letter-spacing: .06em;
    }

    .site-nav .navbar-nav > li > a::after {
        left: 12px;
        right: 12px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .site-header-inner {
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 10px 0 12px;
    }

    .site-logo img {
        height: 56px;
    }

    .site-actions {
        margin-left: auto;
    }

    .site-action {
        min-width: 48px;
        padding: 6px 4px;
        font-size: 10.5px;
    }

    .site-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .site-search .form-control {
        height: 44px;
    }

    .site-nav {
        position: static;
    }

    .site-nav .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .site-nav .navbar-nav {
        display: block;
        padding: 6px 0 10px;
    }

    .site-nav .navbar-nav > li > a {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .site-nav .navbar-nav > li > a::after {
        display: none;
    }

    .site-nav .navbar-nav .open .dropdown-menu {
        padding: 4px 0 8px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .site-nav .navbar-nav .open .dropdown-menu > li > a {
        padding: 9px 16px;
        color: #d9d1c3;
    }

    .site-nav .navbar-nav .open .dropdown-menu > li > a:hover,
    .site-nav .navbar-nav .open .dropdown-menu > li > a:focus {
        background: rgba(255, 255, 255, .06);
        color: #fff;
    }

    .site-nav .dropdown-sub > a {
        color: #a99f8e !important;
    }

    .site-main {
        padding-top: 18px;
    }

    .panel-body {
        padding: 18px 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-media img {
        padding: 8px;
    }

    .product-body {
        padding: 10px 12px 12px;
    }

    .product-card .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 18px;
    }

    .section-heading {
        margin: 28px auto 18px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 28px !important;
    }

    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .brand-tile {
        padding: 10px;
    }

    .about-card {
        padding: 6px 20px 24px;
    }

    .about-card p {
        font-size: 18px;
    }

    .site-footer .container {
        padding-top: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* ---------- Original content in the new layout ---------- */

.topbar .container {
    justify-content: flex-end;
}


.site-footer strong {
    color: #fff;
}



@media (max-width: 767px) {
    .banner_bg {
        background-image: none;
    }

}
