/* WestShop24 自定义样式 - 日本风格电商网站 */

:root {
    --primary-color: #c62828; /* 日式朱红色 */
    --primary-dark: #8e0000;
    --primary-light: #ff5f52;
    --secondary-color: #1a237e; /* 辅助深蓝 */
    --accent-color: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --bg-light: #fafafa;
}

/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* 460px 及以下 - 产品卡片两列紧凑布局 */
@media (max-width: 460px) {
    :root {
        --bs-gutter-y: 1rem;
    }
    /* 单数列 - 减少右边距 */
    .row .col-6:nth-child(odd) {
        padding-left: 10px;
        padding-right: 6px;
    }
    
    /* 双数列 - 减少左边距 */
    .row .col-6:nth-child(even) {
        padding-left: 6px;
        padding-right: 10px;
    }

    .row .card-body .product-title {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        max-height: calc(1.4em * 3);  /* 1.4行高 × 3行 */
        word-break: break-word;
    }

    .list-unstyled {
        display: flex;
        flex-wrap: wrap;
    }
    .list-unstyled li {
        width: 50%;
        padding: 3px;
    }

}

#navMobile .offcanvas-body .quick-links {
    display: flex;
    flex-wrap: wrap;
}
#navMobile .offcanvas-body .quick-links a {
    width: 50%;
    padding: 8px;
    box-sizing: border-box;
}

/* 导航栏样式 */

.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 语言切换器 */
.language-switcher .btn {
    margin-left: 0.25rem;
    border-width: 2px;
}

.language-switcher .btn.active {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* ========================
   桌面端导航栏样式
   ======================== */
.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}
.navbar-brand small {
  letter-spacing: 1px;
}

/* 导航链接 */
.nav-link-modern {
  color: rgba(255,255,255,0.9) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.nav-link-modern:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* 搜索框 */
.search-box-nav {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2px;
}
.search-box-nav input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}
.search-box-nav input::placeholder {
  color: rgba(255,255,255,0.6) !important;
}
.search-box-nav input:focus {
  box-shadow: none !important;
}
.search-box-nav button {
  background: #ffc107 !important;
  border: none !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #333;
}

/* 用户按钮 */
.btn-user-nav {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  transition: all 0.3s ease;
}
.btn-user-nav:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* 购物车按钮 */
.btn-cart-nav {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  border: none;
  color: #333;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(255,152,0,0.4);
}
.btn-cart-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,152,0,0.5);
}

/* ========================
   移动端侧边菜单样式
   ======================== */
.category-nav {
  border-bottom: 1px solid #eee;
}
.category-header {
  padding: 12px 15px;
  font-weight: bold;
  color: #1a237e;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}
.category-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.category-link {
  flex: 1;
  padding: 14px 15px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.category-link:hover {
  background: #f8f9fa;
  color: #1a237e;
}
.sub-toggle {
  padding: 14px 15px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}
.sub-toggle:hover {
  color: #1a237e;
}
.sub-list {
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.sub-link {
  display: block;
  padding: 10px 15px 10px 35px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}
.sub-link:hover {
  background: #f0f0f0;
  color: #1a237e;
}
.quick-links {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.quick-link {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}
.quick-link:hover {
  background: #f8f9fa;
  color: #1a237e;
}
.mobile-actions {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-btn {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}
.action-member {
  background: #e3f2fd;
  color: #1565c0;
}
.action-cart {
  background: #fff3e0;
  color: #e65100;
  position: relative;
}
.action-cart .badge {
  margin-left: auto;
}

/* 首页横幅 */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
    color: white;
    text-align: center;
    border-radius: 10px;
}

.jumbotron h1 {
    font-weight: 300;
    margin-bottom: 1rem;
}

.jumbotron .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 产品卡片样式 */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
}

/* 桌面端产品网格间距 */
@media (min-width: 992px) {
    .products-grid.row {
        --bs-gutter-y: 1.5rem;
    }
    .products-grid .product-card {
        margin-bottom: 0;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.product-card .card-body {
    padding: 0.75rem;
}

.product-title {
    font-size: 0.925rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #c62828;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.stock-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #283593;
    border-color: #283593;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 新闻卡片样式 */
.news-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-image {
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 购物车样式 */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.cart-summary {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 手机端隐藏快速查看按钮 */
    .quick-view-overlay {
        display: none !important;
    }
    
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .language-switcher {
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    /* Hero区域紧凑版 - 移动端适配 */
    .hero-compact .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .hero-compact .hero-title-compact {
        font-size: 1.35rem;
    }
    .hero-compact .hero-desc-compact {
        font-size: 0.85rem;
    }
    .hero-compact .btn-hero-compact {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    .hero-compact .hero-stats-compact {
        gap: 1rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    .hero-compact .hero-stats-compact strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .news-image {
        height: 150px;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip-inner {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary-color);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #283593;
}

/* 产品详情页样式 - Swiper 轮播 */
.product-gallery .swiper {
    width: 100%;
}

.product-gallery .mySwiper2 {
    max-height: 500px;
}

.product-gallery .mySwiper2 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-gallery .mySwiper2 img {
    max-height: 500px;
    object-fit: contain;
}

.product-gallery .ThumbsSwiper {
    height: auto;
    padding: 10px 0;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-gallery .ThumbsSwiper::-webkit-scrollbar {
    display: none;
}

.product-gallery .ThumbsSwiper .swiper-wrapper {
    display: flex;
    gap: 12.5px;
}

.product-gallery .ThumbsSwiper .swiper-slide {
    width: 80px !important;
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.product-gallery .ThumbsSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid transparent;
    background-color: #f5f5f5;
}

.product-gallery .swiper-button-next,
.product-gallery .swiper-button-prev {
    color: #c62828;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.product-gallery .swiper-button-next:after,
.product-gallery .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.product-gallery .swiper-button-next:hover,
.product-gallery .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 移动端优化 */
@media (max-width: 991px) {
    .product-gallery-wrapper {
        position: static;
    }
    
    .main-image-container img {
        max-height: 400px;
    }
    
    .product-gallery .mySwiper2 {
        max-height: 400px;
    }
    
    .product-gallery .mySwiper2 img {
        max-height: 400px;
    }
    

}

.product-info {
    padding-left: 2rem;
}

.product-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: #c62828;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.variant-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    min-width: 140px;
}
.variant-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s;
}
.variant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 126, 234, 0.2);
    border-color: transparent;
}
.variant-btn.selected {
    border-color: transparent;
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.35);
}
.variant-btn.selected::before {
    opacity: 1;
}
.variant-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.variant-btn.selected .variant-name {
    color: #fff;
}
.variant-price {
    font-weight: 700;
    color: #c62828;
    font-size: 1rem;
    margin-left: 12px;
}
.variant-btn.selected .variant-price {
    color: #fff;
}

/* 颜色按钮显示产品图片缩略图 */
.color-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 4px;
}

#display-price {
    display: block;
    margin-top: 18px;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c62828 0%, #8e0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--accent-color);
}

.quantity-input-large {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* 评分样式 */
.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-average {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* 评论样式 */
.review-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
}

.review-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 响应式表格图片 - 强制不超出窗口 */
.table img {
    max-width: 100% !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
}
.table {
    table-layout: fixed;
    word-wrap: break-word;
    text-align: left;
}
.table td, .table th {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
}

.product-description img {
  max-width: 100%;
}

.product-description table {
  max-width: 100%;
}

/* 分类侧边栏现代样式 */
.category-sidebar .filter-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.category-sidebar .filter-card-header {
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    padding: 16px 20px;
    border: none;
}
.category-sidebar .filter-card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.category-sidebar .filter-card-header h5 i {
    color: #fff;
}
.category-sidebar .filter-card-body {
    padding: 0;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list-item {
    border-bottom: 1px solid #f0f0f0;
}
.category-list-item:last-child {
    border-bottom: none;
}
.category-list-item a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}
.category-list-item a:hover {
    background: #fff5f5;
    color: #c62828;
}
.category-list-item.active > a {
    background: linear-gradient(90deg, #ffebee 0%, transparent 100%);
    color: #c62828;
    font-weight: 600;
}
.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #c62828;
    transition: all 0.2s ease;
}
.category-list-item a:hover .category-icon,
.category-list-item.active .category-icon {
    background: #c62828;
    color: #fff;
}
.category-name {
    flex: 1;
}
.category-toggle-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
    cursor: pointer;
}
.category-toggle-btn:hover {
    background: #e0e0e0;
    color: #333;
}
.category-toggle-btn.expanded {
    transform: rotate(180deg);
}
/* 子分类样式 */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.subcategory-list.show {
    max-height: 500px;
}
.subcategory-list-item a {
    padding: 10px 20px 10px 68px !important;
    color: #666;
}
.subcategory-list-item a:hover {
    color: #c62828;
}
.subcategory-list-item.active a {
    color: #c62828;
    font-weight: 500;
}
/* 价格筛选样式 */
.price-filter-card {
    margin-top: 20px;
}
.price-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-input-group input {
    width: 0;
    min-width: 0;
}
.price-input-group input {
    flex: 1;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 12px 14px;
    text-align: center;
    font-size: 15px;
    background: #fff;
    color: #333;
    transition: all 0.2s ease;
}
.price-input-group input:focus {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
    outline: none;
}
.price-input-group input::placeholder {
    color: #999;
}
.price-input-group .text-muted {
    color: #666 !important;
    font-weight: 500;
}
.price-btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}
.btn-apply {
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    color: #fff;
    border: none;
}
.btn-apply:hover {
    background: linear-gradient(135deg, #8e0000 0%, #c62828 100%);
    color: #fff;
}

/* 购物车页面样式 - 移动优先 Div 布局 */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 商品主信息区域 */
.cart-item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    min-width: 280px;
}

.cart-item-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.cart-item-img:hover img {
    transform: scale(1.05);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    word-break: break-word;
}

.cart-item-name:hover {
    color: var(--primary-color);
}

/* 购物车选项标签美化 */
.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.cart-option-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
}
.cart-option-quality {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.cart-option-quality i {
    color: #c62828;
}
.cart-option-color {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    color: #ad1457;
    border: 1px solid #f48fb1;
}
.cart-option-color i {
    color: #ad1457;
}
.cart-option-price {
    opacity: 0.8;
}

/* 操作区域 */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-item-price {
    font-size: 1rem;
    color: var(--text-dark);
    min-width: 80px;
    text-align: center;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-item-qty .form-control {
    width: 50px;
    padding: 0.375rem 0.25rem;
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    min-width: 90px;
    text-align: center;
}

/* 桌面端优化 */
@media (min-width: 768px) {
    .cart-item {
        padding: 1.25rem;
    }
    
    .cart-item-main {
        min-width: 300px;
    }
    
    .cart-item-actions {
        flex-wrap: nowrap;
    }
}

/* 移动端优化 */
@media (max-width: 767.98px) {
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-item-main {
        min-width: 0;
        flex: 1 1 100%;
    }
    
    .cart-item-img {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-name {
        -webkit-line-clamp: 2;
    }
    
    .cart-item-actions {
        flex: 1 1 100%;
        justify-content: space-between;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }
    
    .cart-item-subtotal {
        font-size: 1rem;
    }
    
    .cart-summary {
        margin-top: 1rem;
    }
}

/* 小屏幕手机 */
@media (max-width: 400px) {
    .cart-item-qty {
        gap: 0;
    }
    
    .cart-item-qty .form-control {
        width: 45px;
    }
}

/* ========== 分页样式 ========== */
.pagination-lg .page-link {
    font-size: 1.1rem;
    padding: 0.6rem 1.1rem;
    min-width: 48px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}
.pagination-lg .page-link:hover {
    border-color: #c62828;
    background-color: #fff5f5;
}
.pagination-lg .page-item.active .page-link {
    font-weight: bold;
    background-color: #c62828;
    border-color: #c62828;
}
.pagination-lg .page-item.disabled .page-link {
    border-color: #e0e0e0;
    color: #999;
}

.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #0d1b4a 100%);
    min-height: 580px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.watch-showcase {
    font-size: 200px;
    opacity: 0.12;
    line-height: 1;
}
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border-color: #c62828;
}
.banner-strip {
    background: linear-gradient(90deg, #c62828, #1a237e);
}
.feature-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========================
   桌面端导航栏样式
   ======================== */
.main-navbar {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  box-shadow: 0 2px 15px rgba(26, 35, 126, 0.3);
  transition: transform 0.3s ease-in-out;
  position: relative;
  z-index: 1030;
}
.my-5{ margin-top: 1rem !important;}

/* 移动端头部菜单隐藏效果 */
@media (max-width: 991.98px) {
  .main-navbar.navbar-visible {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(26, 35, 126, 0.3);
  }
  
  .main-navbar.navbar-hidden {
    transform: translateY(-100%);
    box-shadow: none;
  }
  
  .main-navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: transform 0.3s ease-in-out;
  }
}

/* ========== 颜色选择样式 ========== */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.color-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    font-size: 0.9rem;
    user-select: none;
    min-width: 90px;
    text-align: center;
}
.color-btn:hover {
    border-color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.15);
}
.color-btn.selected {
    border-color: #c62828;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.25);
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
    display: block;
}
.color-name {
    font-weight: 500;
    color: #333;
    font-size: 0.88rem;
}
.color-btn.selected .color-name {
    color: #c62828;
    font-weight: 600;
}

/* ===================================
   二级分类展示区域样式 - 图2样式
   =================================== */
.sub-category-card {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
}

.sub-category-card:hover {
    border-color: #c62828;
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.1);
}

.sub-category-card.active {
    border-color: #c62828;
    background: #ffebee;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.15);
}

/* 图片容器 - 圆形，固定大小 */
.sub-category-img-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

/* 图片样式 */
.sub-category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sub-category-card:hover .sub-category-img {
    transform: scale(1.05);
}

/* 占位符样式 */
.sub-category-placeholder {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-category-placeholder i {
    color: #adb5bd;
}

/* 分类名称 - 蓝色链接样式 */
.sub-category-name {
    flex: 1;
    padding: 0;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #c62828;
    line-height: 1.4;
    min-height: auto;
    display: flex;
    align-items: center;
    word-break: break-word;
    background: transparent;
    transition: all 0.3s ease;
}

.sub-category-card.active .sub-category-name {
    color: #c62828;
    font-weight: 600;
}

/* 响应式断点优化 */
/* 移动端 (<576px): 2列 */
@media (max-width: 575.98px) {
    .sub-category-img-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .sub-category-name {
        font-size: 12px;
    }
}

/* 平板 (576px-767px): 2列 */
@media (min-width: 576px) and (max-width: 767.98px) {
    .sub-category-img-wrapper {
        width: 65px;
        height: 65px;
    }
    
    .sub-category-name {
        font-size: 13px;
    }
}

/* 桌面端 (768px+): 3列 */
@media (min-width: 768px) {
    .sub-category-img-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .sub-category-name {
        font-size: 14px;
    }
}

/* 大桌面端 (992px+): 3列，更大图片 */
@media (min-width: 992px) {
    .sub-category-img-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .sub-category-name {
        font-size: 15px;
    }
}

/* 超大屏幕 (1200px+): 3列 */
@media (min-width: 1200px) {
    .sub-category-img-wrapper {
        width: 85px;
        height: 85px;
    }
}

/* 分类底部描述样式 */
.category-bottom-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-color);
}

.category-bottom-description .category-description-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.category-bottom-description .category-description-content h1,
.category-bottom-description .category-description-content h2,
.category-bottom-description .category-description-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.category-bottom-description .category-description-content h1 {
    font-size: 1.75rem;
}

.category-bottom-description .category-description-content h2 {
    font-size: 1.5rem;
}

.category-bottom-description .category-description-content h3 {
    font-size: 1.25rem;
}

.category-bottom-description .category-description-content p {
    margin-bottom: 1rem;
}

.category-bottom-description .category-description-content ul,
.category-bottom-description .category-description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.category-bottom-description .category-description-content li {
    margin-bottom: 0.5rem;
}

.category-bottom-description .category-description-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.category-bottom-description .category-description-content a:hover {
    color: var(--secondary-color);
}

.category-bottom-description .category-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* ===================================
   日式电商风格新增样式
   =================================== */

/* 日式导航栏 - 重新设计 */
.navbar-japanese {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 3px solid #c62828;
    padding: 0.5rem 0;
}

/* Logo区域 */
.navbar-japanese .navbar-brand {
    padding: 0.25rem 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(198,40,40,0.3);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    transform: rotate(-5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #c62828;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-slogan {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

/* 导航链接 */
.navbar-japanese .navbar-nav {
    gap: 0.25rem;
}

.navbar-japanese .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-japanese .nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.navbar-japanese .nav-link:hover {
    color: #c62828 !important;
    background: rgba(198,40,40,0.08);
}

.navbar-japanese .nav-link:hover i {
    opacity: 1;
}

/* 导航分隔线 */
.nav-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 0.5rem !important;
}

/* 日式搜索框 */
.search-box-japanese {
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 320px;
}

.search-box-japanese:focus-within {
    border-color: #c62828;
    box-shadow: 0 4px 12px rgba(198,40,40,0.15);
}

.search-box-japanese input {
    border: none !important;
    padding: 10px 16px;
    font-size: 0.9rem;
    background: transparent;
}

.search-box-japanese input:focus {
    box-shadow: none !important;
}

.search-box-japanese input::placeholder {
    color: #999;
}

.search-box-japanese button {
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 0 24px 24px 0 !important;
    transition: all 0.3s ease;
}

.search-box-japanese button:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%) !important;
}

/* 日式购物车按钮 */
.btn-cart-japanese {
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    color: #fff !important;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(198,40,40,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-cart-japanese:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(198,40,40,0.4);
    background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
}

.btn-cart-japanese .cart-text {
    font-weight: 600;
}

.btn-cart-japanese .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border: 2px solid #c62828;
}

/* 移动端购物车按钮 */
.mobile-cart-btn {
    color: #c62828;
    font-size: 1.3rem;
}

/* 日式 Hero Banner */
/* Hero区域 - 紧凑版 */
.hero-compact {
    background: linear-gradient(135deg, #c62828 0%, #8e0000 50%, #5c0000 100%);
    position: relative;
    overflow: hidden;
}
.hero-compact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero-compact::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero-compact .hero-badge-compact {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-compact .hero-badge-compact i {
    margin-right: 6px;
    color: #ffd700;
}
.hero-compact .hero-title-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}
.hero-compact .hero-desc-compact {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.hero-compact .btn-hero-compact {
    background: #fff;
    color: #c62828;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.hero-compact .btn-hero-compact:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-compact .btn-hero-compact i {
    font-size: 0.85rem;
}
.hero-compact .hero-stats-compact {
    display: flex;
    gap: 1.5rem;
    color: #fff;
    font-size: 0.85rem;
}
.hero-compact .hero-stats-compact span {
    white-space: nowrap;
}
.hero-compact .hero-stats-compact strong {
    font-size: 1rem;
    margin-right: 4px;
}

/* Hero区域 - 旧版（保留以防其他地方引用） */
.hero-japanese {
    background: linear-gradient(135deg, #c62828 0%, #8e0000 50%, #5c0000 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}
.hero-japanese::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero-japanese::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero-japanese h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}
.hero-japanese .hero-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}
.hero-japanese .hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.hero-japanese .hero-stats div {
    text-align: center;
}
.hero-japanese .hero-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.hero-japanese .hero-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* 日式特色功能区 */
.features-japanese .feature-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
}
.features-japanese .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(198,40,40,0.15);
}
.features-japanese .feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #c62828, #ff5f52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* 日式分类卡片 */
.category-card-japanese {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
    padding: 20px;
}
.category-card-japanese:hover {
    border-color: #c62828;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(198,40,40,0.12);
}
.category-logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    overflow: hidden;
}
.category-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 日式产品卡片 */
.product-card-japanese {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    height: 100%;
}
.product-card-japanese:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* 快速查看按钮样式 */
.product-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.quick-view-card {
    position: relative;
    overflow: hidden;
}

.quick-view-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* 悬停图片链接时显示按钮 */
.product-image-link:hover .quick-view-overlay,
.quick-view-overlay:hover {
    transform: translateY(0);
    pointer-events: auto;
}

.quick-view-btn {
    background: transparent;
    color: #333;
    border: none;
    border-radius: 0;
    padding: 5px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
}

.quick-view-btn:hover {
    color: #c62828;
    background: transparent;
}

/* 快速查看模态框样式 */
.quick-view-modal .modal-dialog {
    max-width: 1200px;
}

.quick-view-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.quick-view-modal .modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
    background: transparent;
}

.quick-view-modal .modal-header .btn-close {
    opacity: 1 !important;
    filter: none !important;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-view-modal .modal-header .btn-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.quick-view-modal .modal-body {
    padding: 1.5rem;
}

/* 图片区域 */
.quick-view-gallery {
    position: relative;
}

.quick-view-thumbnails-column {
    width: 105px !important;
    padding-left: 0;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 缩略图导航按钮 */
.thumbnail-nav-btn {
    width: 100%;
    height: 32px;
    border: none;
    background: transparent;
    color: #adb5bd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-nav-btn:hover {
    color: #e53935;
    background: #f8f9fa;
}

.thumbnail-nav-btn:active {
    transform: scale(0.95);
}

.quick-view-thumbnails {
    gap: 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 3px !important;
    padding-left: 3px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    scroll-behavior: smooth;
    scrollbar-width: none !important; /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none !important; /* IE/Edge 隐藏滚动条 */
}

/* Chrome/Safari 隐藏滚动条 */
.quick-view-thumbnails::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.quick-view-thumbnail {
    width: 75px !important;
    height: 75px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.2s;
}

.quick-view-thumbnail:hover {
    border-color: #e53935 !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
}

.quick-view-thumbnail.active {
    border-color: #e53935 !important;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.quick-view-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
}

.quick-view-main-image {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.quick-view-info {
    max-height: 500px;
    overflow-y: auto;
}

.quick-view-info::-webkit-scrollbar {
    width: 2px;
}

.quick-view-info::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.quick-view-info::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 2px;
}

.quick-view-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.quick-view-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 1rem;
}

.quick-view-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-view-add-cart {
    flex: 1;
    background: linear-gradient(135deg, #c62828 0%, #ff5f52 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-view-add-cart:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
    color: #fff;
}

.quick-view-detail-link {
    flex: 1;
    background: #fff;
    color: #c62828;
    border: 2px solid #c62828;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-view-detail-link:hover {
    background: #fff5f5;
    color: #c62828;
    text-decoration: none;
}

/* 颜色和尺寸选项样式 */
.quick-view-color-options button,
.quick-view-size-options button {
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.quick-view-color-options button:hover,
.quick-view-size-options button:hover {
    transform: translateY(-1px);
}

.quick-view-color-options .btn-primary,
.quick-view-size-options .btn-primary {
    background-color: #e53935 !important;
    border-color: #e53935 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3) !important;
}

.quick-view-color-options .btn-outline-secondary,
.quick-view-size-options .btn-outline-secondary {
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}

.quick-view-color-options .btn-outline-secondary:hover,
.quick-view-size-options .btn-outline-secondary:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
}

.product-card-japanese .product-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: calc(1.5em * 2);
}
.product-card-japanese .product-price {
    color: #c62828;
    font-size: 1.1rem;
    font-weight: 700;
}
.discount-badge-japanese {
    background: #c62828;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 日式页脚 */
.footer-japanese {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}
.footer-japanese h5,
.footer-japanese h6 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-japanese h5 {
    font-size: 1.5rem;
}
.footer-japanese a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-japanese a:hover {
    color: #c62828;
}
.footer-japanese ul {
    list-style: none;
    padding: 0;
}
.footer-japanese ul li {
    margin-bottom: 8px;
}
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #888;
}

/* 日式移动端侧边栏 */
.offcanvas-japanese {
    border-left: 3px solid #c62828;
}
.offcanvas-japanese .offcanvas-header {
    background: #c62828;
    color: #fff;
}
.offcanvas-japanese .category-link {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}
.offcanvas-japanese .category-link:hover {
    background: #fff5f5;
    color: #c62828;
}

/* 移动端分类紧凑网格布局 - 一行两列 */
.category-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
}

.category-tile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 36px;
    overflow: hidden;
}

.category-tile:hover {
    background: #fff5f5;
    border-color: #c62828;
    color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(198,40,40,0.12);
}

.category-tile > i:first-child {
    color: #c62828;
    font-size: 13px;
    flex-shrink: 0;
}

.category-tile .tile-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* 移动端分类紧凑列表布局 */
.category-list-compact {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.category-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-item-compact:hover {
    background: #fff5f5;
    color: #c62828;
}

.category-item-compact > i:first-child {
    color: #c62828;
    font-size: 14px;
    flex-shrink: 0;
}

.category-item-compact .category-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.category-item-compact > i.ms-auto {
    color: #ccc;
    font-size: 12px;
    flex-shrink: 0;
}

.category-item-compact:hover > i.ms-auto {
    color: #c62828;
}

/* 移动端分类网格布局 */
.category-link-mobile {
    display: block;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.category-link-mobile:hover {
    background: #fff5f5;
    border-color: #c62828;
    color: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198,40,40,0.15);
}

.category-link-mobile i {
    color: #c62828;
    margin-right: 6px;
}

.offcanvas-japanese .sub-link {
    padding: 10px 20px 10px 40px;
    display: block;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}
.offcanvas-japanese .sub-link:hover {
    background: #fff5f5;
    color: #c62828;
}

/* 日式新闻卡片样式 */
.news-card-japanese {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
}
.news-card-japanese:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(198,40,40,0.12);
    border-color: #c62828;
}

/* 响应式优化 */
@media (max-width: 575.98px) {
    .hero-japanese {
        min-height: 350px;
        padding: 40px 0;
    }
    .hero-japanese h1 {
        font-size: 1.8rem;
    }
    .hero-japanese .hero-stats {
        gap: 1rem;
    }
    .hero-japanese .hero-stats .stat-number {
        font-size: 1.2rem;
    }
    .product-card-japanese {
        margin-bottom: 1rem;
    }
    .features-japanese .feature-item {
        padding: 16px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-japanese {
        min-height: 400px;
    }
    .footer-japanese .col-lg-4,
    .footer-japanese .col-lg-2,
    .footer-japanese .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
  .footer-link {
    transition: all 0.3s ease;
    display: inline-block;
  }
  .footer-link:hover {
    color: #c62828 !important;
    transform: translateX(3px);
  }
  .footer-japanese a {
    transition: all 0.3s ease;
  }
  .footer-japanese a:hover {
    color: #c62828 !important;
  }