/* === American Catalog .us === */
:root {
    --am-red: #B22234;
    --am-red-dark: #8B1A29;
    --am-blue: #3C3B6E;
    --am-blue-light: #4E4D8A;
    --am-white: #FFFFFF;
    --am-gold: #C9A84C;
    --am-cream: #FFFDF7;
    --am-light: #F0F1F5;
    --am-dark: #1A1A2E;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    margin-bottom: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--am-cream);
    color: #333;
}

/* ===== Stars & Stripes Banner (top of page) ===== */
.stripe-bar {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--am-red) 0px, var(--am-red) 60px,
        var(--am-white) 60px, var(--am-white) 120px
    );
}

/* ===== Navbar ===== */
.navbar-am {
    background: var(--am-blue);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--am-red);
}
.navbar-am .navbar-brand {
    color: var(--am-white) !important;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.25rem 0;
}
.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
}
@media (max-width: 575px) {
    .navbar-logo { height: 36px; }
}
.navbar-am .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.navbar-am .nav-link:hover { color: var(--am-gold) !important; }
.navbar-am .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-am .navbar-toggler-icon { filter: invert(1); }
.navbar-am .btn-outline-light { border-color: rgba(255,255,255,0.4); }

/* ===== Hero Banner ===== */
.hero-banner {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='12' y='40' font-size='28' fill='rgba(255,255,255,0.04)'%3E%E2%98%85%3C/text%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--am-blue) 0%, var(--am-red-dark) 100%);
    color: white;
    padding: 0.5rem 0 .5rem 0 ;
    margin-bottom: 0;
    text-align: center;
    border-bottom: 3px solid var(--am-gold);
    position: relative;
}
.hero-banner h1 {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 0.1rem;
}
.hero-banner .lead { opacity: 0.9; font-size: 1rem; margin-bottom: 0; }
.hero-banner .hero-stars { display: none; }

/* ===== One-time dismissible disclaimer notice ===== */
.disclaimer-notice {
    background: rgba(60,59,110,0.92);
    color: rgba(255,255,255,0.88);
    font-size: 0.78rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid var(--am-gold);
}
.disclaimer-notice a { color: var(--am-gold); text-decoration: underline; }

/* ===== Star Divider ===== */
.star-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--am-red);
    font-size: 0.9rem;
    letter-spacing: 6px;
    opacity: 0.5;
}

/* ===== Category Sidebar ===== */
.category-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e8e8ee;
}
.category-menu .menu-header {
    background: var(--am-blue);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--am-red);
}
.category-menu .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.category-menu .list-group-item:hover {
    background: var(--am-light);
    border-left-color: var(--am-red);
}
.category-menu .list-group-item.active {
    background: var(--am-red);
    border-color: var(--am-red);
    border-left-color: var(--am-gold);
    color: white;
}
.category-menu .sub-item {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    color: #555;
    background-color: #fafafa;
}
.category-menu .sub-item.active { color: white; }
.sub-arrow {
    margin-right: 0.35rem;
    opacity: 0.4;
    font-size: 0.75rem;
}

/* ===== Mobile category offcanvas ===== */
.offcanvas-category {
    background: var(--am-blue);
    color: white;
    width: 280px !important;
}
.offcanvas-category .offcanvas-header {
    background: var(--am-blue);
    border-bottom: 3px solid var(--am-red);
    color: white;
}
.offcanvas-category .offcanvas-title { color: white; }
.offcanvas-category .offcanvas-body {
    padding: 0;
    background: white;
}
.offcanvas-category .category-menu {
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 0 !important;
}

/* ===== Product Cards ===== */
.product-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background: white;
    border-top: 1px solid var(--am-blue);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top-color: var(--am-red);
}
.product-card .card-img-top {
    height: 180px;
    object-fit: contain;
    background: white;
    padding: 8px;
}
.product-card .badge-usa {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--am-red);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.product-card .card-body { padding: 1rem; }
.product-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--am-dark);
}
.product-card .card-title a {
    color: inherit;
    text-decoration: none;
}
.product-card .card-title a:hover { color: var(--am-red); }
.product-card .price {
    color: var(--am-red);
    font-weight: 800;
    font-size: 1.15rem;
}
.product-card .category-badge,
.category-badge {
    font-size: 0.75rem;
    background: var(--am-light);
    color: var(--am-blue);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}
.product-card .keyword-tag,
.keyword-tag {
    font-size: 0.7rem;
    background: #e8eaf6;
    color: var(--am-blue);
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    margin: 1px;
    transition: background 0.15s;
}
.keyword-tag:hover {
    background: var(--am-blue);
    color: white;
}

/* ===== Buy Buttons ===== */
.btn-amazon {
    background: #FF9900;
    color: #111;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
}
.btn-amazon:hover { background: #e88b00; color: #111; }
.btn-walmart {
    background: #0071DC;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
}
.btn-walmart:hover { background: #005bb5; color: white; }
.btn-direct {
    background: var(--am-blue);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
}
.btn-direct:hover { background: var(--am-blue-light); color: white; }

/* ===== Disclaimer Box ===== */
.disclaimer-box {
    background: #FFF8F0;
    border: 1px solid #F0DCC8;
    border-left: 4px solid var(--am-gold);
    border-radius: 6px;
    padding: 1rem;
}

/* ===== Search Bar ===== */
.search-bar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e8e8ee;
}
.search-bar .form-control { border-radius: 20px; }
.search-bar .btn-search {
    background: var(--am-red);
    color: white;
    border-radius: 20px;
    padding: 0.375rem 1.5rem;
    font-weight: 600;
}
.search-bar .btn-search:hover { background: var(--am-red-dark); color: white; }

/* ===== Article Cards ===== */
.article-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background: white;
    border-top: 3px solid var(--am-red);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--am-red), var(--am-blue));
}
.article-content img { max-width: 100%; height: auto; }

/* ===== Article inline product card ===== */
.product-inline-card {
    border-left: 4px solid var(--am-red) !important;
    transition: box-shadow 0.2s;
}
.product-inline-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* ===== Article content typography ===== */
.article-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--am-blue);
    border-bottom: 2px solid var(--am-light);
    padding-bottom: 0.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-section p {
    line-height: 1.8;
    color: #444;
}

/* ===== Footer ===== */
.footer-am {
    background: var(--am-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 1.5rem;
    border-top: 4px solid var(--am-red);
}
.footer-am a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-am a:hover { color: var(--am-gold); }
.footer-am .footer-heading {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-disclaimer {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ===== Cookie Consent ===== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--am-dark);
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    border-top: 2px solid var(--am-red);
}
.cookie-banner .btn-accept {
    background: var(--am-gold);
    color: var(--am-dark);
    border: none;
    font-weight: 700;
}

/* ===== Admin ===== */
.admin-bar {
    background: #222;
    color: #ffd700;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    text-align: center;
    border-bottom: 2px solid var(--am-gold);
}

/* Admin pages: bigger tap targets + easier scanning on phones */
@media (max-width: 767px) {
    .admin-actions .btn,
    .admin-header-actions .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .admin-header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .admin-header-actions .btn {
        flex: 1 1 auto;
    }
}

/* ===== Responsive admin tables: stack into cards below 768px ===== */
@media (max-width: 767px) {
    .table-admin-responsive thead {
        display: none;
    }
    .table-admin-responsive,
    .table-admin-responsive tbody,
    .table-admin-responsive tr,
    .table-admin-responsive td {
        display: block;
        width: 100%;
    }
    .table-admin-responsive {
        border: none;
    }
    .table-admin-responsive tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow: hidden;
        background: white;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .table-admin-responsive td {
        text-align: right;
        padding: 0.5rem 0.75rem;
        padding-left: 42%;
        border-bottom: 1px solid #eee;
        border-top: none;
        position: relative;
        min-height: 2.25rem;
    }
    .table-admin-responsive tr td:first-child {
        padding-top: 0.75rem;
    }
    .table-admin-responsive td:last-child {
        border-bottom: none;
        padding-bottom: 0.75rem;
    }
    .table-admin-responsive td:empty {
        display: none;
    }
    .table-admin-responsive td[data-label]::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        top: 0.5rem;
        width: 38%;
        font-weight: 700;
        text-align: left;
        color: var(--am-blue);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .table-admin-responsive td.text-end,
    .table-admin-responsive td.text-nowrap {
        text-align: left;
    }
    .table-admin-responsive td.admin-thumb-cell {
        padding-left: 0.75rem;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .table-admin-responsive td.admin-thumb-cell::before {
        content: none;
    }
    .table-admin-responsive .btn.d-inline,
    .table-admin-responsive form.d-inline {
        margin-bottom: 0.25rem;
    }
}

/* ===== Utility ===== */
.text-am-red { color: var(--am-red); }
.text-am-blue { color: var(--am-blue); }
.bg-am-red { background-color: var(--am-red); }
.bg-am-blue { background-color: var(--am-blue); }

/* ===== Product detail: back-to-results navigation ===== */
.back-to-results {
    font-weight: 600;
}
@media (max-width: 767px) {
    .back-to-results {
        display: flex;
        width: 100%;
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        justify-content: center;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--am-blue);
}

@media (max-width: 767px) {
    .category-menu { margin-bottom: 1rem; }
    .hero-banner { padding: 0.5rem 0 0.5rem 0; }
    .hero-banner h1 { font-size: 1.1rem; letter-spacing: 0; }
}
.navbar-am .navbar-toggler,
.navbar-am .catalog-btn {
    padding: 0.25rem 0.45rem;   /* same padding */
    height: 32px;               /* same height */
    width: 32px;                /* square buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;         /* consistent rounding */
}

.mobile-hr{
    width:100% !important;
    color:white !important;
}