/* ============================================================
   BlackGold Dark Overrides
   黑金高端风 · 深色主题覆盖层
   追加在 stylesheet.css 之后加载，把内容区整体转为深黑 + 金色
   ============================================================ */

/* 页面主体：大面积深黑 */
body {
    background-color: #141414;
    color: #b5b5b5;
}
h1, h2, h3, h4, h5, h6 {
    color: #f2c9c5;
}
a {
    color: #e74c3c;
}
a:hover, a:focus {
    color: #ef5350;
}

/* 顶部条 */
#top {
    background-color: #0d0d0d;
    border-bottom: 1px solid #2a2a2a;
}
#top .btn-link, #top-links li, #top-links a {
    color: #b5b5b5;
    text-shadow: none;
}
#top .btn-link:hover, #top-links a:hover {
    color: #e74c3c;
}

/* 主导航 */
#menu {
    background-color: #0d0d0d;
    border-color: #2a2a2a #2a2a2a #000;
}
#menu .nav > li > a {
    color: #f2c9c5;
}
#menu .nav > li > a:hover, #menu .nav > li.open > a {
    background-color: #c0392b;
    color: #fff;
}

/* 下拉菜单 */
.dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
}
.dropdown-menu li > a {
    color: #ccc;
}
.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus {
    color: #fff;
    background-color: #c0392b;
    background-image: none;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background-color: #c0392b;
    color: #fff;
}

/* 输入控件：深色底、浅色字、金色聚焦 */
.form-control,
select.form-control,
textarea.form-control,
input[type="text"].form-control,
input[type="password"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
input[type="search"].form-control,
input[type="number"].form-control,
input[type="url"].form-control,
input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="month"].form-control,
input[type="week"].form-control,
input[type="time"].form-control,
.input-group-addon {
    background-color: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}
.form-control:focus {
    border-color: #e74c3c;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(231,76,60,.4);
}
.input-group-addon {
    color: #ccc;
}

/* 按钮 */
.btn {
    color: #ccc;
}
.btn-default {
    color: #ccc;
    text-shadow: none;
    background-color: #2a2a2a;
    background-image: linear-gradient(to bottom, #333333, #222222);
    border-color: #444 #444 #333 #333;
}
.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-default.active, .open > .dropdown-toggle.btn-default {
    color: #fff;
    background-color: #3a3a3a;
    background-image: linear-gradient(to bottom, #444444, #2a2a2a);
    border-color: #555;
}
.btn-primary {
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    background-color: #c0392b;
    background-image: linear-gradient(to bottom, #e74c3c, #a93226);
    border-color: #a93226 #a93226 #7f1d1d;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary.active, .open > .dropdown-toggle.btn-primary {
    background-color: #a93226;
    background-image: linear-gradient(to bottom, #c0392b, #8c2b22);
    border-color: #7f1d1d;
    color: #fff;
}
.btn-inverse {
    color: #fff;
    background-color: #2a2a2a;
    background-image: linear-gradient(to bottom, #333333, #1a1a1a);
    border-color: #333 #333 #000;
}

/* 面包屑 */
.breadcrumb {
    background-color: #1a1a1a;
    border: 1px solid #333;
}
.breadcrumb > li {
    color: #ccc;
    text-shadow: none;
}
.breadcrumb > li a {
    color: #e74c3c;
}
.breadcrumb > li + li:before {
    color: #555;
}
.breadcrumb > li:after {
    border-color: #444;
}

/* 面板 / 模块容器 */
.panel {
    background-color: #1a1a1a;
    border-color: #333;
}
.panel-default {
    border-color: #333;
}
.panel-default > .panel-heading {
    background-color: #0d0d0d;
    border-color: #333;
    color: #f2c9c5;
}
.panel-default > .panel-heading + .panel-collapse > .panel-body {
    border-top-color: #333;
}
.panel-body {
    color: #b5b5b5;
}
.panel-title {
    color: #f2c9c5;
}

/* 产品卡片 */
.product-thumb {
    background-color: #1a1a1a;
    border: 1px solid #333;
}
.product-thumb .caption {
    color: #ccc;
}
.product-thumb .caption h4 a {
    color: #f2c9c5;
}
.product-thumb .caption h4 a:hover {
    color: #e74c3c;
}
.product-thumb .price {
    color: #e74c3c;
}
.product-thumb .price-old {
    color: #777;
}
.product-thumb .price-tax {
    color: #888;
}
.product-thumb .rating .fa-star-o {
    color: #666;
}
.product-thumb .rating .fa-star {
    color: #d4af37;
}
.product-thumb .button-group {
    border-top: 1px solid #333;
    background-color: #0d0d0d;
}
.product-thumb .button-group button {
    background-color: #0d0d0d;
    color: #ccc;
}
.product-thumb .button-group button:hover {
    color: #fff;
    background-color: #c0392b;
}
.product-thumb .button-group button + button {
    border-left: 1px solid #333;
}

/* 列表组（侧边栏分类 / 信息列表） */
.list-group {
    box-shadow: none;
}
.list-group a {
    border: 1px solid #333;
    color: #ccc;
    background-color: #1a1a1a;
    text-shadow: none;
}
.list-group a.active, .list-group a.active:hover,
.list-group a.active:focus, .list-group a:hover {
    color: #fff;
    background: #c0392b;
    border-color: #c0392b;
    text-shadow: none;
}

/* 表格 */
.table {
    color: #ccc;
}
.table > thead > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-color: #333;
}
.table > thead > tr > th {
    color: #f2c9c5;
    background-color: #0d0d0d;
}
.table-bordered {
    border-color: #333;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #161616;
}

/* 通用容器 / 辅助框 */
.well, .well-sm, .well-lg, .jumbotron {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
}
.alert {
    background-color: #222;
    border-color: #444;
    color: #ccc;
}
.alert-success { background-color: #1f3a22; border-color: #2c542e; color: #c9e8c9; }
.alert-info    { background-color: #1f2f3a; border-color: #2c4856; color: #c9dbe8; }
.alert-warning { background-color: #3a2f1f; border-color: #54432c; color: #e8dcc9; }
.alert-danger  { background-color: #3a1f1f; border-color: #542c2c; color: #e8c9c9; }

/* 分页 */
.pagination > li > a, .pagination > li > span {
    background-color: #1a1a1a;
    border-color: #333;
    color: #ccc;
}
.pagination > li > a:hover, .pagination > li > span:hover,
.pagination > li > a:focus, .pagination > li > span:focus {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > span:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
.pagination > .disabled > a, .pagination > .disabled > span {
    background-color: #1a1a1a;
    border-color: #333;
    color: #555;
}

/* 标签页 */
.nav-tabs {
    border-bottom-color: #333;
}
.nav-tabs > li > a {
    background-color: #1a1a1a;
    border-color: #333;
    color: #ccc;
}
.nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: #0d0d0d;
    border-color: #333 #333 #0d0d0d;
    color: #f2c9c5;
}
.nav-pills > li > a {
    background-color: #1a1a1a;
    border-color: #333;
    color: #ccc;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: #c0392b;
    color: #fff;
}

/* 购物车下拉 */
#cart .dropdown-menu {
    background-color: #1a1a1a;
}
#cart .dropdown-menu td, #cart .dropdown-menu li p {
    color: #ccc;
}
#cart .dropdown-menu table {
    margin-bottom: 10px;
}

/* 侧边栏 box（OpenCart box 组件） */
.box .box-heading, .box h3 {
    color: #f2c9c5;
}

/* 文本辅助色（深色底上的适配） */
.text-muted { color: #777; }
.text-danger { color: #e07b7b; }
.text-success { color: #7bc97b; }
.text-warning { color: #e0b85b; }
.text-info { color: #7bb5e0; }

/* 标签 */
.label-primary, .label-info { background-color: #c0392b; }
.label-success { background-color: #4a7c4a; }
.label-warning { background-color: #a93226; }
.label-danger { background-color: #8c3a3a; }

/* 评分星星 */
.rating .fa-star { color: #d4af37; }
.rating .fa-star-o { color: #666; }

/* 模态框 */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
}
.modal-header {
    border-bottom-color: #333;
}
.modal-footer {
    border-top-color: #333;
}
.modal-title { color: #f2c9c5; }
.close { color: #ccc; text-shadow: none; opacity: .8; }
.close:hover { color: #fff; }

/* 轮播 */
.carousel-caption h4 { color: #fff; }

/* 页脚 */
footer {
    background-color: #0d0d0d;
    border-top: 1px solid #2a2a2a;
    color: #b5b5b5;
}
footer a {
    color: #e74c3c;
}
footer a:hover {
    color: #ef5350;
}

/* 移动端菜单展开 */
@media (max-width: 767px) {
    #menu { background-color: #0d0d0d; }
    #menu div.dropdown-menu { background-color: rgba(0,0,0,.4); }
    #menu .dropdown-inner a { color: #ccc; }
    #menu .see-all { color: #e74c3c; border-color: #333; }
}

/* ============================================================
   BlackGold 高级质感增强（Premium Polish）
   ============================================================ */

/* 字体：更商务的中英混排 */
body {
    font-family: 'Open Sans', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .2px;
}
a { transition: color .2s ease; }

/* 主菜单：更精致的导航项 + 金色 hover 下划线 */
#menu .nav > li > a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    position: relative;
    transition: background .25s ease;
}
#menu .nav > li > a::after {
    content: '';
    position: absolute;
    left: 15px; right: 15px; bottom: 6px;
    height: 2px;
    background: transparent;
    transition: background .25s ease;
}
#menu .nav > li > a:hover::after,
#menu .nav > li.open > a::after {
    background: #e74c3c;
}
#menu #category {
    font-size: 14px;
    letter-spacing: 1px;
}

/* 产品卡片：圆角 + 阴影 + hover 上浮 + 金色描边 */
.product-thumb {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(231,76,60,.25);
}
.product-thumb .image { overflow: hidden; }
.product-thumb .image img { transition: transform .4s ease; }
.product-thumb:hover .image img { transform: scale(1.05); }
.product-thumb h4 { margin-top: 12px; }
.product-thumb .caption h4 a { transition: color .2s ease; }
.product-thumb .caption h4 a:hover { color: #e74c3c; }

/* 价格：金色加粗 */
.product-thumb .price {
    font-weight: 700;
    font-size: 15px;
    color: #e74c3c;
}

/* 主按钮：金色渐变 + 扫光特效 */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.btn-primary:hover::after { left: 120%; }

/* 购物车按钮：金色渐变 */
#cart > .btn {
    background: linear-gradient(to bottom, #e74c3c, #a93226);
    border-color: #a93226;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}
#cart > .btn:hover {
    background: linear-gradient(to bottom, #c0392b, #8c2b22);
}

/* 面包屑：圆角 + 链接加粗 */
.breadcrumb { border-radius: 4px; }
.breadcrumb > li a { font-weight: 600; }

/* 面板标题：金色下边线 */
.panel-default > .panel-heading {
    border-bottom: 2px solid #c0392b;
}
.panel-heading h3, .panel-title { letter-spacing: .5px; }

/* 侧边栏列表：圆角 + hover 缩进 */
.list-group a {
    border-radius: 3px;
    margin-bottom: 3px;
    border: 1px solid #2a2a2a;
}
.list-group a:hover {
    padding-left: 16px;
    transition: padding-left .2s ease;
}

/* 页脚：更透气 */
footer { padding-top: 40px; }
footer h5 {
    color: #e74c3c;
    margin-bottom: 15px;
    letter-spacing: .5px;
}

/* 搜索框圆角 */
#search .input-lg { border-radius: 4px 0 0 4px; }
#search .btn-lg { border-radius: 0 4px 4px 0; }

/* 轮播容器：圆角 + 阴影 */
.swiper-viewport {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.5);
}

/* 输入框聚焦金色边框 */
.form-control:focus {
    border-color: #e74c3c;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(231,76,60,.35);
}

/* 分页 active 金色 */
.pagination > .active > a, .pagination > .active > span {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* 自定义滚动条（WebKit） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #141414; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #c0392b; }

/* 产品卡片按钮组 hover 金色 */
.product-thumb .button-group button:hover {
    background-color: #c0392b;
    color: #fff;
}

/* 品牌 Logo：透明背景，无发光 */
#logo img {
    max-height: 70px;
    width: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* 品牌轮播(Manufacturers)：图片深色化处理 */
.carousel .swiper-slide img {
    padding: 12px 8px;
    opacity: .85;
    filter: grayscale(30%);
    transition: opacity .25s ease, filter .25s ease;
}
.carousel .swiper-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* 品牌名文字 */
#logo .brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
#logo .site-name { font-size: 26px; font-weight: 700; letter-spacing: 4px; margin-left: 12px; color: #e74c3c; text-shadow: 0 0 12px rgba(231,76,60,.4); }

/* 商品图缩略图容器适配红黑深色（覆盖 Bootstrap .thumbnail 白底） */
.thumbnail {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 4px;
}
.thumbnail:hover, .thumbnail:focus, .thumbnail.active {
    border-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231,76,60,.35);
}
.image-additional a {
    background-color: #1a1a1a;
    border: 1px solid #333;
}
.image-additional a:hover {
    border-color: #e74c3c;
}

/* ===== 手机端适配：详情描述图片响应式 ===== */
#tab-description img,
.product-info .tab-content img,
.tab-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
.thumbnails img { max-width: 100%; height: auto; }

/* ===== 手机端页脚：2 列网格，压缩高度 ===== */
@media (max-width: 767px) {
    footer { padding-top: 25px; }
    footer .row {
        display: flex;
        flex-wrap: wrap;
    }
    footer .row > div {
        flex: 0 0 50%;
        max-width: 50%;
        float: none;
        margin-bottom: 18px;
    }
    footer h5 {
        font-size: 13px;
        margin: 0 0 8px;
        letter-spacing: .5px;
    }
    footer .list-unstyled { margin-bottom: 0; }
    footer .list-unstyled li { margin-bottom: 2px; line-height: 1.5; }
    footer .list-unstyled a { font-size: 12px; }
    footer hr { margin: 5px 0 10px; }
    footer p { font-size: 12px; }
}

/* ===== 商品图库：拼多多式轮播（深色适配） ===== */
.gallery-main {
    background: #1a1a1a;
    border-color: #444;
}
.product-gallery .thumbnails li.active .thumbnail {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231,76,60,.4);
}

/* ===== 手机端底部悬浮购买条（深色适配） ===== */
.mobile-buy-bar { display: none; }
@media (max-width: 767px) {
    body { padding-bottom: 68px; }
    .mobile-buy-bar {
        display: flex;
        align-items: center;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1050;
        background: #141414;
        border-top: 1px solid #333;
        padding: 8px 12px;
        gap: 8px;
        box-shadow: 0 -2px 12px rgba(0,0,0,.5);
    }
    .mobile-buy-bar .mb-btn {
        flex: 1;
        height: 44px;
        border: none;
        border-radius: 22px;
        font-size: 15px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
    }
    .mobile-buy-bar .mb-wishlist {
        flex: 0 0 auto;
        width: 54px;
        flex-direction: column;
        gap: 0;
        background: #2a2a2a;
        color: #ccc;
        border: 1px solid #444;
        font-size: 11px;
        height: 44px;
        line-height: 1;
    }
    .mobile-buy-bar .mb-wishlist i { font-size: 16px; margin-bottom: 2px; }
    .mobile-buy-bar .mb-cart { background: #e74c3c; color: #fff; }
    .mobile-buy-bar .mb-cart:active { opacity: .9; }
    .mobile-buy-bar .mb-spec {
        flex: 0 0 auto;
        max-width: 112px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: #2a2a2a;
        border: 1px solid #444;
        border-radius: 22px;
        color: #ccc;
        font-size: 12px;
        padding: 0 12px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        cursor: pointer;
    }
    .mobile-buy-bar .mb-spec i { color: #999; }
}

/* ===== 手机端规格选择弹窗（深色适配） ===== */
.mb-spec-popup { display: none; }
@media (max-width: 767px) {
    .mb-spec-popup.open { display: block; }
    .mb-popup-mask {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,.6);
        z-index: 1060;
    }
    .mb-popup-sheet {
        position: fixed; left: 0; right: 0; bottom: 0;
        z-index: 1061;
        background: #1a1a1a;
        border-radius: 16px 16px 0 0;
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 24px rgba(0,0,0,.5);
        animation: mbSheetUp .25s ease;
        max-height: 80vh;
        overflow-y: auto;
    }
    @keyframes mbSheetUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .mb-popup-head { display: flex; gap: 12px; position: relative; margin-bottom: 14px; }
    .mb-popup-head img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid #444; }
    .mb-popup-meta { flex: 1; min-width: 0; padding-right: 30px; }
    .mb-popup-price { font-size: 22px; font-weight: 700; color: #e74c3c; line-height: 1.2; }
    .mb-popup-name { font-size: 13px; color: #b5b5b5; margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .mb-popup-close { position: absolute; right: 0; top: 0; border: none; background: #2a2a2a; color: #aaa; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
    .mb-popup-label { font-size: 14px; font-weight: 600; color: #e8dcb8; margin: 12px 0 8px; }
    .mb-popup-options { display: flex; flex-wrap: wrap; gap: 8px; }
    .mb-option { position: relative; }
    .mb-option input { position: absolute; opacity: 0; }
    .mb-option span {
        display: inline-block;
        padding: 9px 16px;
        border: 1px solid #444;
        border-radius: 20px;
        font-size: 13px;
        color: #ccc;
        background: #242424;
        cursor: pointer;
    }
    .mb-option input:checked + span {
        border-color: #e74c3c;
        color: #e74c3c;
        background: rgba(231,76,60,.15);
    }
    .mb-option.has-error span { border-color: #d9534f; color: #d9534f; }
    .mb-qty { display: flex; align-items: center; gap: 12px; }
    .mb-qty-btn {
        width: 34px; height: 34px;
        border: 1px solid #444;
        border-radius: 50%;
        background: #2a2a2a;
        font-size: 17px;
        color: #ccc;
        cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        padding: 0;
    }
    .mb-qty input {
        width: 58px; height: 34px;
        text-align: center;
        border: 1px solid #444;
        border-radius: 6px;
        font-size: 14px;
        background: #1a1a1a;
        color: #e0e0e0;
    }
    .mb-popup-confirm {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 24px;
        background: #e74c3c;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        margin-top: 18px;
        cursor: pointer;
    }
    .mb-popup-confirm:active { opacity: .9; }
    .mb-cart-toast {
        position: fixed;
        left: 50%; bottom: 90px;
        transform: translateX(-50%);
        background: rgba(0,0,0,.8);
        color: #fff;
        padding: 10px 22px;
        border-radius: 20px;
        font-size: 13px;
        z-index: 1070;
        white-space: nowrap;
    }
}

/* ===== 手机端：购物车 + 分类菜单按钮合并一行 ===== */
.mobile-cart-row { display: flex; align-items: flex-start; gap: 6px; }
.mobile-cart-row #cart { flex: 1 1 auto; min-width: 0; height: 40px; }
.mobile-cart-row #cart .btn {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #c0392b, #a93226);
    border-color: #a93226;
    color: #fff;
    font-weight: 600;
}
.mobile-cart-row #cart .btn:hover { background: linear-gradient(to bottom, #a93226, #922b21); }
.mobile-menu-btn {
    flex: 0 0 46px;
    width: 46px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: #e74c3c;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn:active { opacity: .9; }
@media (max-width: 767px) {
    .mobile-cart-row { display: flex; }
    .mobile-menu-btn { display: inline-flex; }
}
@media (min-width: 768px) {
    .mobile-cart-row { display: block; }
    .mobile-cart-row #cart .btn { border-radius: 0; }
    .mobile-menu-btn { display: none; }
}
/* 手机端隐藏菜单栏自身的汉堡按钮和分类文字，只用 header 里的小按钮 */
@media (max-width: 767px) {
    #menu .navbar-toggle, #menu #category, #menu .navbar-header { display: none !important; }
    #menu.navbar { min-height: 0; margin: 0; border: 0; padding: 0; }
}

/* 修复 alert-dismissible 关闭按钮：绝对定位右上角 */
.alert-dismissible {
    padding-right: 35px !important;
    position: relative;
}
.alert-dismissible .close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

