/* =============================================
   NS16 - Custom Styles（Wolmart 酒红色系）
   ============================================= */

/* --- 全站美化滚动条 --- */
/* Webkit 浏览器 (Chrome, Safari, Edge) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.35);
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }
/* 暗色背景区域（导航栏、侧栏等）使用浅色滚动条 */
.navbar ::-webkit-scrollbar-thumb,
.bg-dark ::-webkit-scrollbar-thumb,
.admin-sidebar ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.navbar ::-webkit-scrollbar-thumb:hover,
.bg-dark ::-webkit-scrollbar-thumb:hover,
.admin-sidebar ::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.45);
    border: 2px solid transparent;
    background-clip: padding-box;
}
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }
.navbar *, .bg-dark *, .admin-sidebar * { scrollbar-color: rgba(255,255,255,0.25) transparent; }
/* 下拉面板/弹窗内使用更窄的滚动条 */
.dropdown-menu::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.mini-cart-dropdown::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.table-responsive-custom::-webkit-scrollbar { width: 5px; height: 5px; }
.dropdown-menu::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.mini-cart-dropdown::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.table-responsive-custom::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.mini-cart-dropdown::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.table-responsive-custom::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

/* AJAX 搜索用的可滚动下拉面板 */
.dropdown-menu-scroll { max-height: 250px; overflow-y: auto; }

/* --- Global（Wolmart 酒红色系变量） --- */
:root {
    --primary: #9A2948;
    --primary-dark: #7A1F38;
    --primary-light: #C44D6E;
    --secondary: #FF9933;
    --accent: #9A2948;
    --bg-warm: #ffffff;
    --bg-light: #f5f5f5;
    --bg-card: #fff;
    --text-dark: #333333;
    --text-muted: #999999;
    --border-color: #eeeeee;
    --border-light: #eeeeee;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
    --radius-card: 6px;
    --radius-sm: 4px;
    --radius-pill: 20px;
}

body {
    font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-warm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover {
    color: var(--primary-dark);
}

/* Wolmart 主按钮 */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* 价格标签 */
.price-tag { color: var(--accent) !important; font-weight: 700; }

/* --- Navbar --- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}
.navbar .nav-link {
    font-weight: 500;
}
.navbar .badge-cart {
    position: absolute;
    top: 0;
    right: -5px;
    font-size: 0.65rem;
    padding: 2px 5px;
}

/* --- Hero / Banner --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* --- Blogger Card --- */
.blogger-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
    background: var(--bg-card);
}
.blogger-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(154,41,72,0.12);
}
.blogger-card .card-img-top {
    height: 180px;
    object-fit: cover;
}
.blogger-card .card-body { padding: 16px; }
.blogger-card .card-title { color: var(--text-dark); font-weight: 600; }

/* --- Product Card --- */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
    background: var(--bg-card);
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(154,41,72,0.12);
}
.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}
@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 180px;
    }
}
.product-card .product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}
.product-card .product-title {
    font-size: 0.95rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card .badge-stock {
    font-size: 0.7rem;
}
.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
}
.product-card .btn-quick-add {
    transition: all 0.2s;
}
.product-card .btn-quick-add:hover {
    transform: translateY(-2px);
}
.product-card .btn-quick-add.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* --- Homepage Category Section --- */
.homepage-category-section {
    padding: 20px 0;
}
.category-products-block {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}
.category-products-block:last-child {
    border-bottom: none;
}
.category-products-block h4 {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-left: 12px;
}
.category-products-block h4::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--primary-light);
}
.category-products-block h4 small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- Product Detail --- */
.product-gallery {
    position: relative;
}
.product-gallery .main-image {
    width: 100%;
    border-radius: var(--radius-card);
    object-fit: cover;
    max-height: 500px;
    border: 1px solid var(--border-color);
}
.product-gallery .thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.product-gallery .thumb-item {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.product-gallery .thumb-item.active,
.product-gallery .thumb-item:hover {
    border-color: var(--primary-light);
}
.product-options .option-btn {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-card);
}
.product-options .option-btn.active,
.product-options .option-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--bg-light);
}
.product-options .option-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--primary);
    transition: background 0.15s;
}
.qty-control button:hover {
    background: var(--border-color);
}
.qty-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
}

/* --- Cart（Wolmart 酒红色风格） --- */
.cart-page { background: #f5f5f5; min-height: 80vh; }
.cart-page h3 { color: #7A1F38; letter-spacing: -0.5px; }

.cart-blogger-wrap {
    margin-bottom: 24px;
}
.cart-blogger-section {
    background: #fff;
    border: 1px solid #eeeeee;
    border-left: 4px solid #9A2948;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(154,41,72,0.06);
    overflow: hidden;
}
.cart-blogger-section .blogger-check-all {
    width: 18px; height: 18px; cursor: pointer;
    border-color: #f0e0e5;
}
.cart-blogger-section .blogger-check-all:checked {
    background-color: #9A2948; border-color: #9A2948;
}
.cart-blogger-section a.fw-semibold {
    color: #7A1F38 !important;
    transition: color 0.2s;
}
.cart-blogger-section a.fw-semibold:hover { color: #9A2948 !important; }

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    border-bottom: 1px solid #ede4df;
    gap: 14px;
    background: #fff;
    transition: background 0.15s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #f9f2f4; }

.cart-item .form-check-input {
    width: 18px; height: 18px;
    margin-top: 26px;
    cursor: pointer;
    flex-shrink: 0;
    border-color: #f0e0e5;
}
.cart-item .form-check-input:checked {
    background-color: #9A2948; border-color: #9A2948;
}
.cart-item img {
    width: 84px; height: 84px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #eeeeee;
}
.cart-item .price-tag {
    font-size: 1.05rem;
    font-weight: 700;
    color: #9A2948;
}
.cart-item .fw-bold { color: #7A1F38; }

.cart-item-wrapper {
    position: relative;
    transition: background 0.2s;
}

/* PWP 子项目样式 */
.cart-pwp-child {
    background: #f0e0e5;
    border-left: 4px solid #C44D6E !important;
    border-radius: 16px 0 0 16px !important;
}

/* 博主小计区域 */

/* 订单摘要卡片 */
.cart-summary-card {
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(154,41,72,0.06);
    border-left: 4px solid #9A2948;
}
.cart-summary-card .card-body { padding: 28px 24px; }
.cart-summary-card h5 { color: #7A1F38; }
.cart-summary-card hr {
    border-color: #eeeeee;
    opacity: 1;
}
.cart-summary-card .checkout-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: #9A2948;
}
/* 结账主按钮 */
.cart-summary-card .btn-primary-custom {
    background: #9A2948;
    border-color: #9A2948;
    color: #fff;
}
.cart-summary-card .btn-primary-custom:hover {
    background: #7A1F38;
    border-color: #7A1F38;
}
.cart-summary-card .btn-outline-secondary {
    border-color: #f0e0e5;
    color: #9A2948;
}
.cart-summary-card .btn-outline-secondary:hover {
    background: #ffffff;
    border-color: #9A2948;
    color: #9A2948;
}

/* 全部包邮横幅 */
.free-ship-banner {
    background: linear-gradient(90deg, #9A2948, #C44D6E, #9A2948);
    background-size: 200% 100%;
    animation: cart-shimmer 3s ease infinite;
    padding: 10px 20px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.free-ship-banner i { font-size: 1.1rem; }
@keyframes cart-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 数量控制（Wolmart 酒红色调） */
.cart-item .qty-control {
    border-color: #eeeeee;
    border-radius: 10px;
}
.cart-item .qty-control button {
    background: #ffffff;
    color: #9A2948;
}
.cart-item .qty-control button:hover {
    background: #eeeeee;
    color: #7A1F38;
}

/* badge Wolmart 酒红色适配 */
.cart-item .badge.bg-light {
    background: #ffffff !important;
    color: #9A2948 !important;
    border-color: #eeeeee !important;
}

/* 空购物车 */
.cart-empty-icon {
    width: 100px; height: 100px;
    margin: 0 auto 20px;
    background: #f0e0e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-empty-icon i {
    font-size: 2.5rem;
    color: #9A2948;
}

@media (max-width: 767.98px) {
    .cart-page h3 { font-size: 1.1rem; }
    .cart-blogger-section { border-radius: 10px !important; margin-bottom: 10px; }
    .cart-blogger-section a.fw-semibold { font-size: 0.85rem !important; }
    .cart-item {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
        font-size: 0.82rem;
    }
    .cart-item img { width: 56px; height: 56px; border-radius: 6px; }
    .cart-item .form-check-input { width: 16px; height: 16px; margin-top: 16px; }
    .cart-item .fw-semibold { font-size: 0.82rem; }
    .cart-item .text-muted { font-size: 0.75rem; }
    .cart-item .price-tag, .cart-item .fw-bold { font-size: 0.85rem; }
    .cart-item .btn-sm { font-size: 0.72rem; padding: 2px 6px; }
    /* 数量控制缩小 */
    .qty-control { transform: scale(0.85); transform-origin: left center; }
    /* 小计区域 */
    .cart-blogger-section .price-tag.fs-5 { font-size: 1rem !important; }
    /* PWP 子项 */
    .cart-item[style*="dashed"] { margin-left: 30px !important; font-size: 0.78rem; }
    /* 订单摘要 */
    .cart-summary-card .card-body { padding: 16px 14px; }
    .cart-summary-card h5 { font-size: 0.95rem; }
    .cart-summary-card .checkout-total { font-size: 1.1rem; }
    .cart-summary-card .btn { font-size: 0.88rem; }
}
@media (max-width: 576px) {
    .cart-item img { width: 48px; height: 48px; }
    .cart-item { padding: 8px 10px; font-size: 0.78rem; }
    .cart-item .price-tag, .cart-item .fw-bold { font-size: 0.8rem; }
}

/* --- Checkout --- */
.checkout-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.checkout-step .step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.checkout-step .step.active {
    color: var(--primary);
    font-weight: 600;
}
.checkout-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.checkout-step .step.active .step-num {
    background: var(--primary);
}

/* --- Order --- */
.order-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.order-card-header {
    background: var(--bg-light);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* --- Category Sidebar --- */
.category-tree .list-group-item {
    border: none;
    padding: 8px 12px;
}
.category-tree .list-group-item.active {
    background-color: #f0e0e5;
    color: var(--primary);
    font-weight: 600;
}
.category-tree .sub-list {
    padding-left: 20px;
}

/* --- Member Center --- */
.member-sidebar .list-group-item {
    border-radius: 0 !important;
}
.member-sidebar .list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- Language Switch --- */
.lang-switch {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.lang-switch:hover {
    background: rgba(0,0,0,0.05);
}

/* --- Utilities --- */
.text-primary-custom {
    color: var(--primary) !important;
}
.bg-primary-custom {
    background-color: var(--primary) !important;
}
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.btn-outline-primary-custom {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: #fff;
}
.price-tag {
    color: var(--primary);
    font-weight: 700;
}
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* --- Admin Sidebar --- */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: #1a1a2e;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s;
}
.admin-sidebar .sidebar-brand {
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}
/* admin-content 的 margin-left 已由 admin.ejs 的 .admin-main 处理，此处不再重复设置 */
.admin-content {
    background: var(--bg-light);
    padding-bottom: 120px;  /* 为右下角浮动按钮留出底部空间 */
}

/* 表格行 cursor */
.table tbody tr {
    cursor: pointer;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
        display: none;
    }
    .admin-overlay.show {
        display: block;
    }
}

/* --- Clickable Table Row (列表页整行可点击) --- */
.table tr.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s;
}
.table tr.clickable-row:hover {
    background-color: rgba(0,0,0,0.04) !important;
}
/* 防止 toggle 开关和按钮触发行点击 */
.table tr.clickable-row .toggle-switch,
.table tr.clickable-row .btn,
.table tr.clickable-row form {
    position: relative;
    z-index: 2;
}

/* --- Toggle Switch (iOS 风格状态开关，参考 church 设计) --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    border-radius: 24px;
    transition: background-color 0.2s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #6366f1;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}
.toggle-switch.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Responsive Table --- */
.table-responsive-custom {
    overflow-x: auto;
}
.table-responsive-custom table {
    min-width: 600px;
}

/* --- Toast / Alert --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* =============================================
   Homepage Modern Design
   ============================================= */

/* --- Hero Carousel --- */
.hero-carousel-section {
    margin-bottom: 3rem;
}
.hero-banner-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
@media (max-width: 992px) {
    .hero-banner-img {
        height: 400px;
    }
}
@media (max-width: 768px) {
    .hero-banner-img {
        height: 300px;
    }
}
.banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    padding: 30px;
    border-radius: 10px;
}
.carousel-item a {
    display: block;
    text-decoration: none;
}
.carousel-item a:hover .hero-banner-img {
    opacity: 0.95;
    transition: opacity 0.3s;
}
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}
.animate-slide-up {
    animation: slideUp 1s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Header --- */
.section-header h2 {
    color: var(--text-dark);
    position: relative;
}
.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin-top: 15px;
}

/* --- Blogger Modern Card --- */
.blogger-section-wrapper {
    margin-bottom: 3rem;
}
.blogger-card-modern {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}
.blogger-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}
.blogger-logo-modern {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.blogger-logo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.social-links a {
    font-size: 1.2rem;
    transition: transform 0.2s;
    display: inline-block;
}
.social-links a:hover {
    transform: translateY(-3px);
}
.btn-modern {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-modern:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hover-primary:hover {
    color: var(--primary) !important;
}

/* --- Blogger Update Card --- */
.blogger-update-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}
.blogger-update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.update-content {
    line-height: 1.8;
    color: var(--text-dark);
}
.update-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
.update-content p {
    margin-bottom: 1rem;
}
.update-content h1,
.update-content h2,
.update-content h3,
.update-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.update-content ul,
.update-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}
.update-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* --- Featured Categories Showcase --- */
.featured-categories h4 {
    color: var(--text-dark);
    font-weight: 700;
}
.category-showcase {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.category-showcase:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.category-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.category-showcase .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* --- Product Mini Card --- */
.product-card-mini {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.product-card-mini:hover {
    transform: translateY(-5px);
}
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-light);
    aspect-ratio: 1;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card-mini:hover .product-img {
    transform: scale(1.1);
}
.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    font-size: 2rem;
}
.product-title-mini {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price-mini {
    font-size: 1rem;
    font-weight: 700;
}
.stock-badge {
    margin-top: 6px;
}
.badge.bg-success-soft {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
}

/* --- Responsive Grid for Products --- */
@media (min-width: 1200px) {
    .product-card-mini .product-title-mini {
        font-size: 0.8rem;
    }
    .product-card-mini .product-price-mini {
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {
    .blogger-logo-modern,
    .blogger-logo-placeholder {
        width: 90px;
        height: 90px;
    }
    .featured-categories h4 {
        font-size: 1.2rem;
    }
}
@media (max-width: 576px) {
    .product-image-wrapper {
        aspect-ratio: 1;
    }
    .product-title-mini {
        font-size: 0.9rem;
    }
    .blogger-section-wrapper {
        margin-bottom: 2rem;
    }
}

/* --- Blogger Status Content --- */
.blogger-status-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.blogger-status-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.blogger-status-content h1,
.blogger-status-content h2,
.blogger-status-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blogger-status-content p {
    margin-bottom: 1rem;
}

.blogger-status-content ul,
.blogger-status-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blogger-status-content a {
    color: var(--primary);
    text-decoration: underline;
}

.blogger-status-content a:hover {
    color: var(--primary-dark);
}

.blogger-status-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blogger-status-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.blogger-status-content table th,
.blogger-status-content table td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
}

.blogger-status-content table th {
    background-color: var(--bg-light);
    font-weight: 600;
}
