/* 雋熙食品貿易官方網站自定義樣式 */

/* 主色調定義 */
:root {
  --primary-red: #DC3545;
  --primary-yellow: #FFC107;
  --white: #FFFFFF;
  --black: #000000;
  --light-gray: #F8F9FA;
  --dark-gray: #6C757D;
}

/* 全域樣式 */
body {
  font-family: 'Microsoft JhengHei', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--black);
}

/* 導航列樣式 */
.navbar-custom {
  background-color: var(--primary-red) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
  color: var(--white) !important;
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-custom .navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover {
  background-color: var(--primary-yellow);
  color: var(--black) !important;
  border-radius: 5px;
}

.navbar-toggler {
  border-color: var(--white);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 輪播圖片樣式 */
.hero-carousel {
  margin-top: 66px; /* 導航列高度 */
}

.carousel-slide {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  width: 100%;
}

.carousel-content .row {
  align-items: center;
  justify-content: center;
}

.carousel-content .col-lg-6:first-child {
  text-align: center;
}

@media (min-width: 992px) {
  .carousel-content .col-lg-6:first-child {
    text-align: left;
  }
}

.carousel-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-subtitle {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  opacity: 0.9;
}

.carousel-image {
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* 輪播指示器樣式 */
.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid var(--white);
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--primary-yellow);
}

/* 輪播控制按鈕樣式 */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
  background-size: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* 品牌橫幅樣式 (保留作為備用) */
.hero-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-yellow) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-yellow);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 按鈕樣式 */
.btn-custom-primary {
  background-color: var(--primary-yellow);
  border-color: var(--primary-yellow);
  color: var(--black);
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-custom-primary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-custom-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-custom-secondary:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

/* 卡片樣式 */
.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-custom .card-header {
  background-color: var(--primary-red);
  color: var(--white);
  border-bottom: none;
  font-weight: bold;
  text-align: center;
}

.card-custom .card-body {
  padding: 2rem;
}

.card-custom .card-title {
  color: var(--primary-red);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* 產品卡片樣式 */
.product-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* 區塊標題樣式 */
.section-title {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-yellow) 100%);
  border-radius: 2px;
}

/* 頁尾樣式 */
.footer-custom {
  background-color: var(--black);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-custom h5 {
  color: var(--primary-yellow);
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-custom a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: var(--primary-yellow);
}

.footer-bottom {
  border-top: 1px solid var(--dark-gray);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--dark-gray);
}

/* 分類篩選樣式 */
.filter-buttons {
  margin-bottom: 2rem;
  text-align: center;
}

.filter-btn {
  background-color: var(--light-gray);
  border: 2px solid var(--light-gray);
  color: var(--dark-gray);
  padding: 8px 20px;
  margin: 0 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .carousel-title {
    font-size: 2.5rem;
  }
  
  .carousel-subtitle {
    font-size: 1.1rem;
  }
  
  .carousel-slide {
    min-height: 400px;
  }
  
  .carousel-image {
    max-height: 250px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .product-card .card-img-top {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .carousel-title {
    font-size: 2rem;
  }
  
  .carousel-subtitle {
    font-size: 1rem;
  }
  
  .carousel-slide {
    min-height: 350px;
  }
  
  .carousel-content {
    padding: 40px 0;
  }
  
  .carousel-image {
    max-height: 200px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-custom .card-body {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* 動畫效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 載入動畫 */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 圖片懶載入 */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}