/* 国际化电商平台自定义样式 */

:root {
  /* 主色调 - 使用更国际化的深蓝色调 */
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --primary-dark: #1e3a8a;
  --hov-primary: #0c4a6e;
  --soft-primary: rgba(26, 95, 122, 0.15);
  
  /* 辅助色 */
  --secondary: #64748b;
  --accent: #0ea5e9;
  
  /* 中性色调 */
  --dark: #0f172a;
  --light: #f8fafc;
  --border: #e2e8f0;
  
  /* 功能色 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  
  /* 文字颜色 */
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* 圆角样式 */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 全局样式优化 */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background-color: #f1f5f9;
  line-height: 1.6;
}

/* 容器优化 */
.container {
  max-width: 1320px;
}

/* 卡片样式优化 */
.card, .aiz-card-box {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card:hover, .aiz-card-box:hover {
  box-shadow: var(--box-shadow);
}

/* 按钮样式优化 */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-soft-primary {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.btn-soft-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-link {
  color: var(--primary);
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* 导航栏优化 */
.navbar {
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* 产品卡片优化 */
.product-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* 产品图片优化 */
.img-fit {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .img-fit {
  transform: scale(1.05);
}

/* 价格标签优化 */
.product-price {
  font-weight: 600;
  color: var(--primary);
}

/* 分类菜单优化 */
.category-menu {
  border-radius: 8px;
  overflow: hidden;
}

.category-nav-element {
  transition: all 0.3s ease;
}

.category-nav-element:hover {
  background-color: rgba(30, 58, 138, 0.05);
}

.category-nav-element .cat-name {
  font-weight: 500;
}

/* 页脚优化 */
.footer {
  background-color: var(--dark);
  color: #fff;
  border-top: 1px solid var(--border);
}

/* 轮播图优化 */
.aiz-carousel .carousel-box {
  padding: 10px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* 标题样式 */
.section-title {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 600;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

/* 响应式优化 */
@media (min-width: 992px) {
  .product-card .product-title {
    font-size: 1rem;
  }
}

/* 国际化元素 */
.currency-symbol {
  font-weight: 500;
}

/* 产品标签 */
.product-label {
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 搜索框优化 */
.search-box {
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-box input {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* 语言选择器 */
.language-selector {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.1);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* 修复商品悬浮功能按钮 */
.aiz-p-hov-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.aiz-p-hov-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.aiz-p-hov-icon a:hover {
  transform: scale(1.1);
  opacity: 1;
  background-color: var(--primary);
  color: #fff;
}

.aiz-p-hov-icon a i {
  font-size: 16px;
}

.aiz-card-box:hover .aiz-p-hov-icon {
  visibility: visible;
  opacity: 1;
}

/* 商品详情页功能图标 */
.product-details-icons {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.product-details-icons .icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-details-icons .icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-details-icons .icon-btn i {
  font-size: 20px;
}

/* 购物车图标特殊样式 */
.product-details-icons .icon-btn.cart-btn {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.product-details-icons .icon-btn.cart-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* 移动端优化 */
@media (max-width: 767px) {
  .aiz-p-hov-icon {
    position: fixed;
    bottom: 1rem;
    top: auto;
    right: 1rem;
    flex-direction: row;
    z-index: 100;
  }
  
  .aiz-p-hov-icon a {
    margin-right: 8px;
    margin-bottom: 0;
  }
  
  .aiz-p-hov-icon a i {
    font-size: 14px;
  }
  
  /* 移动端产品详情页悬浮按钮 */
  .product-details-icons {
    position: fixed;
    right: 10px;
    bottom: 70px;
    top: auto;
    transform: none;
    z-index: 100;
  }
  
  .product-details-icons .icon-btn {
    width: 40px;
    height: 40px;
    margin: 5px 0;
  }
  
  .product-details-icons .icon-btn i {
    font-size: 18px;
  }
  
  /* 移动端显示悬浮按钮 */
  .d-none.d-lg-flex.product-details-icons {
    display: flex !important;
  }
}

/* 国际化风格字体 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
}

/* 圆角样式 */
.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* 卡片样式 */
.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 表单样式 */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* 产品卡片样式 */
.aiz-card-box {
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aiz-card-box:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-5px);
}

.aiz-card-box .card-body {
  padding: 1.5rem;
}

.aiz-card-box .card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.aiz-card-box .card-text {
  color: var(--secondary);
}

/* 产品卡片悬浮按钮 */
.product-box-2:hover .product-btns {
  opacity: 1;
  transform: translateY(0);
}

.product-box-2 .product-btns {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  color: var(--primary);
}

.icon-btn:hover {
  background-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.cart-btn {
  background-color: var(--primary);
  color: #fff;
}

.cart-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* 页脚样式 */
.footer-widget {
  background-color: #1a202c;
}

.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-3px);
}

.transition-all {
  transition: all 0.3s ease;
}

/* 社交图标样式 */
.social.colored .facebook.rounded-circle,
.social.colored .twitter.rounded-circle,
.social.colored .instagram.rounded-circle,
.social.colored .youtube.rounded-circle,
.social.colored .linkedin.rounded-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social.colored .facebook.rounded-circle:hover,
.social.colored .twitter.rounded-circle:hover,
.social.colored .instagram.rounded-circle:hover,
.social.colored .youtube.rounded-circle:hover,
.social.colored .linkedin.rounded-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 购物车样式 */
.aiz-steps {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aiz-steps .col.active .text-primary {
  color: var(--primary) !important;
}

/* 搜索框样式 */
.search-box .form-control {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.search-box .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 产品详情页样式 */
.product-gallery img {
  border-radius: var(--border-radius);
}

.product-gallery-thumb .carousel-box {
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-gallery-thumb .carousel-box:hover {
  border-color: var(--primary);
}

/* 标签样式 */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

.badge-primary {
  background-color: var(--primary);
}

.badge-soft-primary {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

/* 列表样式 */
.list-group-item {
  border-color: rgba(0, 0, 0, 0.05);
}

/* 模态框样式 */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* 下拉菜单样式 */
.dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: rgba(30, 58, 138, 0.05);
  color: var(--primary);
}

/* 国际化风格的面包屑 */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: middle;
}

/* 分页样式 */
.pagination .page-item .page-link {
  border-radius: var(--border-radius);
  margin: 0 0.2rem;
  color: var(--primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 加载动画 */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* 工具提示样式 */
.tooltip .tooltip-inner {
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

/* 进度条样式 */
.progress {
  height: 0.5rem;
  border-radius: var(--border-radius);
}

.progress-bar {
  background-color: var(--primary);
}

/* 表格样式 */
.table th {
  font-weight: 600;
  border-top: none;
}

.table td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(30, 58, 138, 0.05);
}

/* 评论区样式 */
.review-box {
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-box:hover {
  box-shadow: var(--box-shadow);
}

.review-author {
  font-weight: 600;
}

.review-date {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* 首页分类图标样式 */
.category-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: 100%;
  transition: all 0.3s ease;
}

.category-icon-box img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.category-icon-box .cat-name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  color: #333;
}

.category-icon-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* 响应式调整 */
@media (max-width: 767px) {
  .category-icon-box img {
    height: 40px;
  }
  
  .category-icon-box .cat-name {
    font-size: 11px;
  }
}

/* 隐藏"查看所有类别"按钮 */
section.mb-4 .row.gutters-10 .col-lg-6:first-of-type .btn.ml-auto {
    display: none !important;
}