/* 讓首頁視覺更貼近既有 eshop 頁面（簡潔、扁平） */
.eshop-slide { position:relative; }
.eshop-slide img { width:100%; height:var(--eshop-slide-h, 280px); object-fit:cover; border-radius:8px; }
.eshop-slide .caption { position:absolute; left:12px; bottom:10px; background:rgba(0,0,0,.45); color:#fff; padding:.2rem .5rem; border-radius:4px; font-size:.9rem; }
/* 行動裝置下的保底高度（若 JS 未能計算時避免過高） */
@media (max-width: 576px){ .eshop-slide img{ height:var(--eshop-slide-h, 200px); } }

/* 低解析度桌機（例如 1366x768）時，提高輪播最小高度並允許頁面出現捲動條 */
@media (max-height: 820px){
  .eshop-slide img{ height:var(--eshop-slide-h, 560px); }
  body{ overflow-y: auto; }
}
.eshop-actions a.btn { padding:.375rem .75rem; }

/* 首頁 Modal 樣式 - 黑白灰配色 */
.eshop-welcome-modal .modal-content {
  border-radius: 24px;
  border: none;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
}
.eshop-welcome-modal .modal-body {
  padding: 3.5rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.eshop-welcome-modal .btn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background-color: #4a4a4a;
  opacity: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}
.eshop-welcome-modal .btn-close:hover {
  background-color: #1a1a1a;
  transform: scale(1.05);
}
/* 裝飾圓圈 - 黑白灰配色 */
.eshop-welcome-modal .deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
}
.eshop-welcome-modal .deco-circle-1 {
  width: 90px;
  height: 90px;
  background: #2d2d2d;
  top: 28%;
  left: 12%;
}
.eshop-welcome-modal .deco-circle-2 {
  width: 150px;
  height: 150px;
  background: #6b6b6b;
  top: 18%;
  left: 6%;
}
.eshop-welcome-modal .deco-circle-3 {
  width: 45px;
  height: 45px;
  background: #1a1a1a;
  top: 38%;
  left: 6%;
}
.eshop-welcome-modal .deco-circle-4 {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, #4a4a4a 0%, #6b6b6b 100%);
  bottom: -60px;
  left: -40px;
}
.eshop-welcome-modal .deco-circle-5 {
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  top: -45px;
  right: -25px;
}
.eshop-welcome-modal .modal-text {
  position: relative;
  z-index: 5;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #1a1a1a;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.eshop-welcome-modal .modal-footer {
  border-top: none;
  padding: 0 2.5rem 2.5rem;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 5;
}
.eshop-welcome-modal .btn-confirm {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: #fff;
  border: none;
  padding: 0.65rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.eshop-welcome-modal .btn-confirm:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.eshop-welcome-modal .btn-confirm:active {
  transform: translateY(0);
}
.eshop-welcome-modal .btn-leave {
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  padding: 0.65rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.eshop-welcome-modal .btn-leave:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.eshop-welcome-modal .btn-leave:active {
  transform: translateY(0);
}

/* Mobile 響應式調整 */
@media (max-width: 576px) {
  .eshop-welcome-modal .modal-body {
    padding: 3rem 1.5rem 1.5rem;
    min-height: 300px;
  }
  .eshop-welcome-modal .modal-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }
  .eshop-welcome-modal .modal-footer {
    padding: 0 1.5rem 2rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .eshop-welcome-modal .btn-confirm,
  .eshop-welcome-modal .btn-leave {
    padding: 0.6rem 2rem;
    font-size: 1rem;
    width: 100%;
  }
  .eshop-welcome-modal .deco-circle-1 {
    width: 65px;
    height: 65px;
    top: 25%;
    left: 8%;
  }
  .eshop-welcome-modal .deco-circle-2 {
    width: 110px;
    height: 110px;
    top: 15%;
    left: 4%;
  }
  .eshop-welcome-modal .deco-circle-3 {
    width: 35px;
    height: 35px;
    top: 35%;
    left: 4%;
  }
  .eshop-welcome-modal .deco-circle-4 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: -25px;
  }
  .eshop-welcome-modal .deco-circle-5 {
    width: 130px;
    height: 130px;
    top: -35px;
    right: -20px;
  }
  .eshop-welcome-modal .btn-close {
    width: 34px;
    height: 34px;
    top: 14px;
    right: 14px;
  }
}

/* 側邊欄「產品清單」強調樣式（顯目顯示） */
.eshop-side .product-strong{
  position: relative;
  background: linear-gradient(135deg, var(--bs-primary), #4e9cff);
  color: #fff !important;
  font-weight: 700;
  border: 0;
  box-shadow: 0 6px 14px rgba(13,110,253,.25);
}
.eshop-side .product-strong i{ color:#fff; }
.eshop-side .product-strong:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13,110,253,.35);
}
/* 個人專屬優惠卡片 */
.personal-offer-card{
  border: 2px solid #ff6f6f;
  border-radius: 10px;
  overflow: hidden;
  background: #fff5f5;
}
.personal-offer-card .header{
  background: #ff6f6f;
  color: #fff;
  padding: .6rem .9rem;
  font-weight: 700;
  display: flex; align-items:center; gap:.5rem;
}
.personal-offer-card .body{
  padding: 1rem .9rem;
  color: #ff6f6f;
  font-weight: 700;
  display:flex; align-items:center; justify-content:space-between;
}
.personal-offer-card .body .cta{ color:#ff6f6f; text-decoration:none; }
.personal-offer-card .body .cta:hover{ text-decoration:underline; }

/* 頁面導引區塊 - 麵包屑風格 */
.page-guide-section {
  margin-bottom: 1.5rem;
}
.page-breadcrumb {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-item a {
  color: #0d6efd;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: #0a58ca;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 600;
}
.breadcrumb-separator {
  color: #adb5bd;
  font-weight: 400;
  user-select: none;
}
.breadcrumb-item i {
  font-size: 1rem;
}
@media (max-width: 991.98px) {
  .page-breadcrumb {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  .breadcrumb-item i {
    font-size: 0.9rem;
  }
}

/* E-Shop index utility classes extracted from the template */
.eshop-terms-link {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 600;
}

.eshop-nav-toggle-link {
  text-decoration: none;
  color: #1a1a1a;
}

.eshop-inherit-link {
  color: inherit;
}

.eshop-collapse-btn {
  background: transparent;
}

.eshop-subcategory-item {
  padding-left: 2.25rem;
}

.eshop-group-buy-link {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-left: 3px solid #667eea;
}

.eshop-disabled-link {
  pointer-events: none;
  opacity: 0.5;
}

.eshop-hidden {
  display: none;
}

.eshop-auth-btn {
  font-size: 1.1rem;
  font-weight: 600;
}

.eshop-icon-lg {
  font-size: 1.25rem;
}

.eshop-first-order-card {
  border: 2px solid #0d6efd;
  border-radius: 10px;
  overflow: hidden;
  background: #e7f1ff;
}

.eshop-first-order-card-header {
  background: #0d6efd;
  color: #fff;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eshop-first-order-card-body {
  padding: 1rem 0.9rem;
  color: #0d6efd;
  font-weight: 600;
}

.eshop-first-order-note {
  font-size: 0.95rem;
}

.eshop-first-order-strong {
  font-size: 1.15rem;
}
