.marquee-container {
  width: 100%;
  background-color: var(--color-primary-500); /* #BE1F48 Naily 品牌紅 */
  margin: 0;
  padding: 0;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-ui-sticky);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
}

.marquee-item {
  font-weight: bold;
  color: var(--color-white);
  cursor: default;
  transition: opacity 1s ease-in-out; /* 延長淡入淡出過渡時間從 0.5s 到 1s */
  opacity: 1;
  text-align: center;
  padding: 0 15px;
  font-size: 14px !important; /* 覆蓋 .h18 的 18px，適配 36px 高度 */
}

.marquee-item.fade-in {
  opacity: 1;
  animation: fadeInMarquee 1s ease-in-out; /* 添加淡入動畫 */
}

.marquee-item.fade-out {
  opacity: 0;
  animation: fadeOutMarquee 1s ease-in-out; /* 添加淡出動畫 */
}

/* 跑馬燈淡入動畫 */
@keyframes fadeInMarquee {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 跑馬燈淡出動畫 */
@keyframes fadeOutMarquee {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(5px);
  }
}

.marquee-item.clickable {
  cursor: pointer;
  text-decoration: none;
}

.marquee-item.clickable:hover {
  opacity: 0.8;
}

/* 載入骨架屏樣式 */
.marquee-container.marquee-loading {
  background-color: #fef2f2;
  background-color: var(--skeleton-bg-primary, #fef2f2); /* 淡粉色底，與全站骨架屏一致 */
}

.marquee-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.skeleton-text {
  background: linear-gradient(90deg, #fef2f2 25%, #fee2e2 50%, #fef2f2 75%);
  background: linear-gradient(90deg, var(--skeleton-bg-primary, #fef2f2) 25%, var(--skeleton-bg-highlight, #fee2e2) 50%, var(--skeleton-bg-primary, #fef2f2) 75%);
  background-size: 200% 100%;
  animation: marquee-skeleton-shimmer 2s infinite;
  height: 12px;
  border-radius: 4px;
  width: 250px;
}

@keyframes marquee-skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 錯誤狀態樣式 */
.marquee-container.error-state {
  background-color: #d32f2f;
}

.marquee-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 5px 20px;
  color: var(--color-white);
  font-size: 14px;
}

.retry-button {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  padding: 2px 8px;
  margin-left: 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background: rgba(255,255,255,0.3);
}

/* 更新中指示器 */
.marquee-updating {
  position: absolute;
  top: 2px;
  right: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  animation: naily-pulse 1.5s infinite;
}

@keyframes naily-pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* 螢幕閱讀器專用樣式 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RWD 響應式設計 */
@media (max-width: 768px) {
  .marquee-container {
    height: 40px;
  }
  
  .marquee-item {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .marquee-container {
    height: 46px;
  }
  
  .marquee-item {
    font-size: 12px !important;
  }

  .h18 {
    font-size: 12px !important;
  }
}

/* SearchComponent 自定義樣式 */
.custom-search-input-wrapper {
  position: relative;
  display: inline-block;
}

.custom-search-input {
  transition: all 0.3s ease;
  outline: none;
}

.custom-search-input.no-border {
  border: none;
  box-shadow: none;
}

.custom-search-input.no-border:hover {
  border: none;
  box-shadow: none;
}

.custom-search-input.no-border:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.custom-search-input.no-border:active {
  border: none;
  box-shadow: none;
  outline: none;
}

.search-icon-prefix {
  pointer-events: none;
}

.btn-clear {
  outline: none;
}

.btn-clear:focus {
  outline: none;
  box-shadow: none;
} 
/* 商品飛入購物車動畫 */
.flying-product.fly-to-cart {
  animation: flyToCart 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyToCart {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translate(calc(-50% + var(--delta-x) * 0.3), calc(-50% + var(--delta-y) * 0.1)) scale(0.8) rotate(10deg);
    opacity: 1;
  }
  70% {
    transform: translate(calc(-50% + var(--delta-x) * 0.8), calc(-50% + var(--delta-y) * 0.6)) scale(0.5) rotate(20deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(calc(-50% + var(--delta-x)), calc(-50% + var(--delta-y))) scale(0.2) rotate(30deg);
    opacity: 0;
  }
}

/* 購物車震動動畫 */
.cart-shake {
  animation: cartShake 0.6s ease-in-out;
}

@keyframes cartShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* 結帳成功慶祝動畫 */
.checkout-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-emergency);
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.9), rgba(0, 242, 195, 0.9));
  -webkit-backdrop-filter: blur(10px);

  backdrop-filter: blur(10px);
  animation: backgroundFadeIn 0.5s ease-out;
}

.success-message-container {
  position: relative;
  text-align: center;
  color: white;
  animation: successMessageSlideUp 1s ease-out;
}

.success-icon-wrapper {
  margin-bottom: 30px;
}

.success-checkmark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-color);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
  animation: checkmarkBounce 1s ease-out 0.5s backwards;
}

.check-icon {
  position: relative;
  width: 40px;
  height: 20px;
}

.icon-line {
  display: block;
  position: absolute;
  background: white;
  border-radius: 2px;
}

.line-tip {
  width: 15px;
  height: 4px;
  top: 12px;
  left: 8px;
  transform: rotate(45deg);
  animation: lineTipAnimation 0.8s ease-out 1s backwards;
}

.line-long {
  width: 30px;
  height: 4px;
  top: 16px;
  left: 12px;
  transform: rotate(-45deg);
  animation: lineLongAnimation 0.8s ease-out 1.2s backwards;
}

.success-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.success-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.success-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  animation: statItemFloat 2s ease-in-out infinite;
}

.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 1s; }

.stat-number {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 慶祝粒子效果 */
.celebration-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.celebration-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: particleFall 3s linear infinite;
}

@keyframes particleFall {
  0% {
    top: -10px;
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: scale(0.5) rotate(360deg);
  }
}

/* 煙花效果 */
.fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fireworkExplode 2s ease-out infinite;
}

.firework1 {
  top: 20%;
  left: 20%;
  background: #FFD700;
  animation-delay: 0.5s;
}

.firework2 {
  top: 30%;
  right: 20%;
  background: #FF6B6B;
  animation-delay: 1.5s;
}

.firework3 {
  bottom: 30%;
  left: 30%;
  background: #4ECDC4;
  animation-delay: 2.5s;
}

@keyframes fireworkExplode {
  0% {
    box-shadow: 
      0 0 0 0 currentColor,
      0 0 0 0 currentColor,
      0 0 0 0 currentColor,
      0 0 0 0 currentColor;
    opacity: 1;
  }
  50% {
    box-shadow: 
      -30px -30px 0 0 currentColor,
      30px -30px 0 0 currentColor,
      -30px 30px 0 0 currentColor,
      30px 30px 0 0 currentColor;
    opacity: 1;
  }
  100% {
    box-shadow: 
      -50px -50px 0 0 transparent,
      50px -50px 0 0 transparent,
      -50px 50px 0 0 transparent,
      50px 50px 0 0 transparent;
    opacity: 0;
  }
}

/* 結帳進度動畫 */
.checkout-progress-container {
  padding: 20px;
  background: var(--naily-gray-50);
  border-radius: 12px;
  margin-bottom: 20px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.progress-step-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.5s ease;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.5s ease;
  border: 3px solid var(--naily-gray-300);
  background: white;
  color: var(--naily-gray-500);
}

.progress-step.active .step-icon {
  background: var(--primary-color);
  color: white;
  border-color: #007bff;
  animation: stepPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.progress-step.completed .step-icon {
  background: var(--primary-color);
  color: white;
  border-color: #28a745;
  animation: completedBounce 0.6s ease-out;
}

.step-label {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--naily-gray-500);
  transition: color 0.3s ease;
}

.progress-step.active .step-label {
  color: #007bff;
  font-weight: 600;
}

.progress-step.completed .step-label {
  color: #28a745;
  font-weight: 600;
}

.progress-line {
  width: 60px;
  height: 3px;
  background: var(--naily-gray-300);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.progress-line.completed {
  background: #28a745;
  animation: lineComplete 0.8s ease-out;
}

.progress-line.completed::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: lineShine 1s ease-out;
}

/* 結帳載入動畫 */
.checkout-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.loading-spinner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spinnerRotate 1s linear infinite;
}

.loading-text {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #495057;
  animation: textPulse 1.5s ease-in-out infinite;
}

/* 優惠驚喜動畫 */
.discount-surprise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-emergency);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(5px);

  backdrop-filter: blur(5px);
}

.surprise-content {
  position: relative;
  text-align: center;
  color: white;
  animation: surprisePopIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.surprise-explosion {
  position: relative;
  margin-bottom: 30px;
}

.explosion-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  margin: 0 auto;
  animation: explosionPulse 1s ease-out;
  box-shadow: 0 0 50px #FFD700;
}

.explosion-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ray {
  position: absolute;
  width: 4px;
  height: 40px;
  background: linear-gradient(to top, transparent, #FFD700);
  transform-origin: bottom center;
  animation: rayExpand 1s ease-out;
}

.discount-amount-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.discount-icon {
  font-size: 3rem;
  animation: iconBounce 1s ease-out infinite;
}

.discount-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.surprise-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 5px;
}

.discount-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.surprise-message {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
}

.surprise-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.surprise-star {
  position: absolute;
  font-size: 1.5rem;
  animation: starTwinkle 2s ease-in-out infinite;
}

/* 付款載入動畫 */
.payment-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-emergency);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(5px);

  backdrop-filter: blur(5px);
}

.payment-loading-content {
  text-align: center;
  color: white;
  background: rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px);

  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.credit-card-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.credit-card-animation .card {
  width: 200px;
  height: 120px;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: cardFloat 2s ease-in-out infinite;
}

.card-chip {
  width: 30px;
  height: 25px;
  background: #FFD700;
  border-radius: 4px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: cardWave 2s ease-in-out infinite;
}

.processing-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.processing-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4CAF50;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.processing-dots span:nth-child(2) { animation-delay: 0.3s; }
.processing-dots span:nth-child(3) { animation-delay: 0.6s; }

.loading-text-container h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.loading-text-container p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.security-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.security-icon {
  font-size: 1.2rem;
}

/* 動畫關鍵幀 */
@keyframes backgroundFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes successMessageSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes checkmarkBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineTipAnimation {
  from {
    width: 0;
    left: 8px;
    top: 12px;
  }
  to {
    width: 15px;
    left: 8px;
    top: 12px;
  }
}

@keyframes lineLongAnimation {
  from {
    width: 0;
    left: 12px;
    top: 16px;
  }
  to {
    width: 30px;
    left: 12px;
    top: 16px;
  }
}

@keyframes titleGlow {
  from {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  to {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 0 20px rgba(255,255,255,0.3);
  }
}

@keyframes statItemFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes stepPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
  }
}

@keyframes completedBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes lineComplete {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes lineShine {
  from {
    left: -100%;
  }
  to {
    left: 100%;
  }
}

@keyframes spinnerRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes surprisePopIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes explosionPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rayExpand {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 60px;
    opacity: 1;
  }
  100% {
    height: 40px;
    opacity: 0.8;
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cardWave {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .success-title {
    font-size: 2rem;
  }
  
  .success-stats {
    gap: 20px;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 15px;
  }
  
  .progress-line {
    width: 3px;
    height: 30px;
  }
  
  .discount-amount-display {
    flex-direction: column;
    gap: 10px;
  }
  
  .credit-card-animation .card {
    width: 150px;
    height: 90px;
  }
}
/* src/components/Layout/FloatingIslandMenu.module.css */

@keyframes floating-island-menu_fadeIn__fVZJL {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-island-menu_panel__jjWVo {
  min-width: 320px;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: floating-island-menu_fadeIn__fVZJL 0.3s ease-out;
  transform-origin: top right;
}

.floating-island-menu_header__WI1BR {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-island-menu_avatar__Mw2eY {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.floating-island-menu_userInfo__fHaKZ {
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.floating-island-menu_userName__4VhAg {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.floating-island-menu_userEmail__ynwjb {
  font-size: 13px;
  color: #555;
  margin: 0;
  opacity: 0.8;
}

.floating-island-menu_bentoGrid__Mi44E {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 8px;
  gap: 8px;
  padding: 16px;
}

.floating-island-menu_bentoItem__t17r2 {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  text-decoration: none;
  color: #333;
}

.floating-island-menu_bentoItem__t17r2:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
}

.floating-island-menu_bentoIcon__Y\+EyP {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.floating-island-menu_bentoItem__t17r2:hover .floating-island-menu_bentoIcon__Y\+EyP {
  color: var(--primary-dark);
}

.floating-island-menu_bentoTitle__OCnTO {
  font-size: 14px;
  font-weight: 500;
}

.floating-island-menu_listSection__DnYBG {
  padding: 0 16px 16px;
}

.floating-island-menu_divider__K-HRL {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 0 16px;
  border: none;
}

.floating-island-menu_listItem__VoE-d {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  color: #333;
}

.floating-island-menu_listItem__VoE-d:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.floating-island-menu_listIcon__HLc0m {
  font-size: 18px;
  color: #555;
  width: 20px;
  text-align: center;
}

.floating-island-menu_listTitle__1jfLD {
  font-size: 15px;
  font-weight: 500;
}

.floating-island-menu_logoutButton__64Uxr {
  color: #d9534f;
}

.floating-island-menu_logoutButton__64Uxr:hover {
  background-color: rgba(217, 83, 79, 0.1);
  color: #c9302c;
}

.floating-island-menu_logoutButton__64Uxr .floating-island-menu_listIcon__HLc0m {
  color: #d9534f;
}

.floating-island-menu_logoutButton__64Uxr:hover .floating-island-menu_listIcon__HLc0m {
  color: #c9302c;
}

/* ========================================
   分類下拉選單樣式
   支援多層子分類的 hover 效果
   ======================================== */

/* 分類項目 hover 增強效果 */
.category-item-with-hover {
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.category-item-with-hover:hover {
  background-color: rgba(190, 31, 72, 0.06);
}

/* 子分類選單容器 */
.subcategory-menu {
  animation: slideInFromRight 0.2s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 子分類選單陰影效果 */
.subcategory-menu > div {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 確保子分類選單在最上層 */
.subcategory-menu {
  z-index: var(--z-select-options) !important;
}

/* 子分類項目樣式 */
.subcategory-menu .listItem {
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.subcategory-menu .listItem:hover {
  background-color: rgba(190, 31, 72, 0.06);
}

/* 分類圖標樣式 */
.category-item-with-hover .listIcon {
  color: #666;
  transition: color 0.2s ease;
}

.category-item-with-hover:hover .listIcon {
  color: #1a1a1a;
}

/* 子分類數量提示 */
.category-item-with-hover .userEmail {
  color: #999;
  font-size: 12px;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .subcategory-menu {
    display: none; /* 手機版不顯示子分類浮動選單 */
  }
}

/* 防止選單被裁切 */
.enhanced-nav-dropdown-content {
  overflow: visible !important;
}

.subcategory-menu > div {
  overflow: visible !important;
}

/* 選單箭頭圖示旋轉動畫 */
.category-item-with-hover svg:last-child {
  transition: transform 0.2s ease;
}

.category-item-with-hover:hover svg:last-child {
  transform: translateX(3px);
}

/* ========================================
   Mega Menu — 商品下拉
   ======================================== */
.mega-menu-panel {
  display: flex;
  min-width: 560px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  animation: megaFadeIn 0.22s ease-out;
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 左側 — 分類清單 */
.mega-menu-left {
  flex: 1 1;
  padding: 20px 0 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.mega-menu-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #999;
  padding: 0 20px 8px;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.18s ease;
  text-decoration: none;
  color: #1a1a1a;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.mega-menu-item:hover {
  background-color: rgba(190, 31, 72, 0.06);
}

.mega-menu-item-icon {
  font-size: 15px;
  color: #aaa;
  width: 18px;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.mega-menu-item:hover .mega-menu-item-icon {
  color: #BE1F48;
  color: var(--naily-primary, #BE1F48);
}

.mega-menu-item-body {
  flex: 1 1;
  min-width: 0;
}

.mega-menu-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
}

.mega-menu-item-subtitle {
  font-size: 12px;
  color: #888;
  line-height: 1.2;
  margin-top: 1px;
}

.mega-menu-item-arrow {
  font-size: 11px;
  color: #ccc;
  transition: color 0.18s ease, transform 0.18s ease;
}

.mega-menu-item:hover .mega-menu-item-arrow {
  color: #aaa;
  transform: translateX(2px);
}

.mega-menu-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.07);
  margin: 8px 20px;
}

/* 右側 — 主打商品卡片 */
.mega-menu-right {
  width: 180px;
  flex-shrink: 0;
  background: #fafafa;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu-promo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.mega-menu-promo-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.2s ease;
}

.mega-menu-promo-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mega-menu-promo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background-color: #f0f0f0;
}

.mega-menu-promo-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.mega-menu-promo-body {
  padding: 10px 10px 8px;
  background: white;
}

.mega-menu-promo-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 2px;
}

.mega-menu-promo-sub {
  font-size: 11px;
  color: #888;
  margin: 0;
}

.mega-menu-view-all {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #BE1F48;
  color: var(--naily-primary, #BE1F48);
  text-decoration: none;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(190, 31, 72, 0.25);
  transition: background-color 0.18s ease;
  margin-top: auto;
}

.mega-menu-view-all:hover {
  background-color: rgba(190, 31, 72, 0.07);
  color: #BE1F48;
  color: var(--naily-primary, #BE1F48);
}

/**
 * Mobile Cart Drawer - Prada Luxury Edition
 * 高端精品風格購物車側邊抽屜
 *
 * 設計理念：Prada 極簡奢華美學
 * - 乾淨的白色背景搭配品牌色系裝飾線
 * - 大尺寸商品圖片，完整顯示產品名稱
 * - 優雅的字體排版與充裕的留白
 * - 精緻的動畫過場效果
 *
 * @version 2.0.0 - Prada Redesign
 */

/* ========================================
   Offcanvas 容器
   ======================================== */

.mobile-cart-drawer .offcanvas {
  width: 92%;
  max-width: 420px;
  border-left: none;
  background-color: #ffffff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Header - 品牌風格標頭
   ======================================== */

.prada-drawer-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
  position: relative;
}

.prada-drawer-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 24px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.prada-drawer-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prada-drawer-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prada-drawer-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.3;
}

.prada-drawer-subtitle {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin: 0;
}

.prada-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.prada-drawer-close:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ========================================
   免運費進度指示
   ======================================== */

.prada-shipping-bar {
  margin: 0;
  padding: 14px 24px;
  background-color: #faf9f8;
  border-bottom: 1px solid #f0eeec;
}

.prada-shipping-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.prada-shipping-icon {
  color: var(--primary-color);
  font-size: 18px;
  flex-shrink: 0;
}

.prada-shipping-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.3px;
}

.prada-shipping-text--success {
  color: var(--primary-color);
  font-weight: 600;
}

.prada-progress-track {
  width: 100%;
  height: 3px;
  background-color: #e5e7eb;
  border-radius: 0;
  overflow: hidden;
}

.prada-progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

/* ========================================
   購物車內容區
   ======================================== */

.prada-cart-body {
  flex: 1 1;
  overflow-y: auto;
  position: relative;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* 自訂捲軸 */
.prada-cart-body::-webkit-scrollbar {
  width: 3px;
}

.prada-cart-body::-webkit-scrollbar-track {
  background: transparent;
}

.prada-cart-body::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 0;
}

.prada-cart-body::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

/* ========================================
   商品項目卡片
   ======================================== */

.prada-cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.prada-cart-item:hover {
  background-color: #faf9f8;
}

.prada-cart-item:last-child {
  border-bottom: none;
}

/* 商品圖片 - 加大尺寸確保完整呈現 */
.prada-item-image-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background-color: #f9fafb;
  border: 1px solid #f0eeec;
  position: relative;
}

.prada-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

/* 刪除按鈕 - 精緻小巧 */
.prada-item-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  padding: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
  opacity: 0;
}

.prada-cart-item:hover .prada-item-remove {
  opacity: 1;
}

.prada-item-remove:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 1);
}

/* 商品資訊區 */
.prada-item-details {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 商品名稱 - 完整顯示不截斷 */
.prada-item-name {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
  letter-spacing: 0.3px;
  margin: 0 0 6px;
  /* 不設定 line-clamp，確保完整顯示 */
  word-break: break-word;
}

/* 單價顯示 */
.prada-item-unit-price {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* 底部操作列 */
.prada-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 數量控制 - 精品風 */
.prada-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
}

.prada-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  font-size: 16px;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.prada-qty-btn:hover:not(:disabled) {
  background-color: #f3f4f6;
}

.prada-qty-btn:disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.prada-qty-value {
  min-width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

/* 小計金額 */
.prada-item-subtotal {
  text-align: right;
}

.prada-subtotal-label {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.prada-subtotal-price {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.3px;
}

/* ========================================
   空購物車狀態
   ======================================== */

.prada-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 65vh;
  padding: 40px 32px;
  text-align: center;
}

.prada-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #d1d5db;
  font-size: 48px;
}

.prada-empty-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.prada-empty-desc {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.prada-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.prada-empty-btn:hover {
  background-color: #9A1A3A;
  box-shadow: 0 4px 15px rgba(190, 31, 72, 0.3);
}

/* ========================================
   底部 Footer - 總計與結帳
   ======================================== */

.prada-drawer-footer {
  padding: 20px 24px 24px;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  position: relative;
}

.prada-drawer-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.prada-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.prada-total-label {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 1px;
}

.prada-total-price {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.5px;
}

.prada-checkout-btn {
  width: 100%;
  padding: 14px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.prada-checkout-btn:hover:not(:disabled) {
  background-color: #9A1A3A;
  box-shadow: 0 6px 20px rgba(190, 31, 72, 0.3);
  transform: translateY(-1px);
}

.prada-checkout-btn:active:not(:disabled) {
  transform: translateY(0);
}

.prada-checkout-btn:disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.prada-checkout-count {
  font-weight: 400;
  opacity: 0.85;
  margin-left: 4px;
}

/* ========================================
   回到頂部按鈕
   ======================================== */

.prada-scroll-top {
  position: -webkit-sticky;
  position: sticky;
  bottom: 16px;
  float: right;
  margin-right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.prada-scroll-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ========================================
   骨架屏載入效果
   ======================================== */

.prada-skeleton-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
}

.prada-skeleton-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: prada-shimmer 1.8s ease-in-out infinite;
}

.prada-skeleton-lines {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.prada-skeleton-line {
  height: 14px;
  border-radius: 0;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: prada-shimmer 1.8s ease-in-out infinite;
}

.prada-skeleton-line--short {
  width: 60%;
}

.prada-skeleton-line--medium {
  width: 80%;
}

.prada-skeleton-line--long {
  width: 95%;
}

@keyframes prada-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   響應式設計
   ======================================== */

/* 小型手機 (< 375px) */
@media (max-width: 374px) {
  .mobile-cart-drawer .offcanvas {
    width: 100%;
    max-width: 100%;
  }

  .prada-drawer-header,
  .prada-drawer-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prada-drawer-header::after,
  .prada-drawer-footer::before {
    left: 16px;
  }

  .prada-shipping-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prada-cart-item {
    padding: 16px;
    gap: 12px;
  }

  .prada-item-image-wrap {
    width: 85px;
    height: 85px;
  }

  .prada-item-name {
    font-size: 13px;
  }
}

/* 標準手機 (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
  .prada-item-image-wrap {
    width: 95px;
    height: 95px;
  }
}

/* 大螢幕手機 / 小平板 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .prada-item-image-wrap {
    width: 110px;
    height: 110px;
  }

  .prada-item-name {
    font-size: 15px;
  }
}

/* 平板 (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .mobile-cart-drawer .offcanvas {
    max-width: 440px;
  }

  .prada-item-image-wrap {
    width: 110px;
    height: 110px;
  }

  .prada-item-name {
    font-size: 15px;
  }

  .prada-drawer-title {
    font-size: 22px;
  }
}

/* ========================================
   SEO 優化樣式 - 提升網站效能分數
   ======================================== */

/* 
 * SEO 優化原則：
 * 1. 減少動畫使用，僅保留關鍵交互
 * 2. 使用 prefers-reduced-motion 尊重用戶偏好
 * 3. 優化首次內容繪製 (FCP)
 * 4. 減少累積版面配置位移 (CLS)
 * 5. 改善最大內容繪製 (LCP)
 */

/* ===== 全域效能優化 ===== */

/* 禁用非必要的動畫 */
@media (prefers-reduced-motion: no-preference) {
  /* 只在用戶允許動畫時才啟用簡單過渡 */
  .transition-opacity {
    transition: opacity 0.2s ease;
  }
  
  .transition-transform {
    transition: transform 0.2s ease;
  }
  
  .transition-colors {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

/* 強制減少動畫模式 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

/* ===== 產品卡片優化 ===== */

/* 移除產品卡片的進場動畫 */
.product-card {
  animation: none;
  opacity: 1;
  transform: none;
}

.product-card:nth-child(odd),
.product-card:nth-child(even) {
  animation: none;
}

/* 簡單的 hover 效果取代複雜動畫 */
.product-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== 圖片優化 ===== */

/* 預設圖片尺寸，避免 CLS */
img {
  max-width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* 圖片載入占位符 */
.img-placeholder {
  background: linear-gradient(90deg, #fef2f2 25%, #fee2e2 50%, #fef2f2 75%);
  background-size: 200% 100%;
  animation: none; /* 移除 skeleton 動畫 */
}

/* ===== 輪播器優化 ===== */

/* 簡化輪播動畫 */
.carousel-fade .carousel-item {
  transition: opacity 0.3s ease;
}

/* 移除不必要的輪播動畫 */
.carousel-item {
  animation: none;
}

/* 優化輪播載入動畫 */
@keyframes seo-spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  animation: seo-spin 1s linear infinite;
}

/* ===== 字體優化 ===== */

/* 使用 font-display: swap 避免 FOIT */
@font-face {
  font-family: 'Noto Sans TC';
  font-display: swap;
}

/* ===== 按鈕和連結優化 ===== */

/* 簡單的按鈕效果 */
.btn,
button,
a {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
button:hover {
  transform: none; /* 移除 hover 時的 transform */
}

/* ===== 導航列優化 ===== */

/* 固定導航列高度，避免 CLS */
.navbar {
  min-height: 60px;
}

/* 下拉選單簡化 */
.dropdown-menu {
  animation: none;
  transition: opacity 0.2s ease;
}

/* ===== 模態框優化 ===== */

/* 簡化模態框動畫 */
.modal.fade .modal-dialog {
  transition: transform 0.2s ease-out;
}

.modal.fade.show .modal-dialog {
  transform: none;
}

/* ===== 頁面載入優化 ===== */

/* 關鍵內容優先顯示 */
.above-the-fold {
  /* 首屏內容不使用動畫 */
  animation: none;
  transition: none;
  opacity: 1;
  transform: none;
}

/* ===== 滾動優化 ===== */

/* 平滑滾動但不影響效能 */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== 表單優化 ===== */

/* 表單元素不使用動畫 */
input,
textarea,
select {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ===== 卡片和容器優化 ===== */

/* 移除卡片進場動畫 */
.card,
.container,
.row,
.col {
  animation: none;
}

/* ===== 文字內容優化 ===== */

/* 確保文字可讀性 */
body {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}


/* ===== 移除不必要的動畫類別 ===== */

.fadeIn,
.fadeOut,
.fadeInUp,
.fadeInDown,
.slideInLeft,
.slideInRight,
.zoomIn,
.zoomOut {
  animation: none;
  opacity: 1;
  transform: none;
}

/* ===== 效能提示 ===== */

/* 使用 contain 提升渲染效能 */
.product-grid,
.card-container {
  contain: layout style paint;
}

/* 使用 will-change 謹慎 */
.interactive-element:hover {
  will-change: transform;
}

.interactive-element:not(:hover) {
  will-change: auto;
}

/* ===== 響應式圖片 ===== */

/* 為不同螢幕尺寸優化圖片 */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== 骨架屏優化 ===== */

/* 簡單的骨架屏，不使用動畫 */
.skeleton {
  background-color: #e0e0e0;
  border-radius: 4px;
}

/* ===== 無障礙性優化 ===== */

/* 確保聚焦時的可見性 */
:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* 跳至主要內容連結 */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 300;
  z-index: var(--z-content-popup, 300);
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
}

/* ===== 列印優化 ===== */

@media print {
  /* 列印時移除所有動畫和背景 */
  * {
    animation: none;
    transition: none;
    background: white;
    color: black;
  }
}
/* ========================================
   RWD 置中工具類別
   用於各種響應式置中需求
   ======================================== */

/* ===== 通用置中工具類別 ===== */

/* 水平置中 */
.center-horizontal {
  display: flex;
  justify-content: center;
}

.center-horizontal-margin {
  margin-left: auto;
  margin-right: auto;
}

.center-text {
  text-align: center;
}

/* 垂直置中 */
.center-vertical {
  display: flex;
  align-items: center;
}

/* 完全置中 (水平 + 垂直) */
.center-both {
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-both-grid {
  display: grid;
  place-items: center;
}

/* ===== 響應式置中工具類別 ===== */

/* 手機版置中 (768px 以下) */
@media (max-width: 767px) {
  .mobile-center-horizontal {
    display: flex;
    justify-content: center;
  }
  
  .mobile-center-vertical {
    display: flex;
    align-items: center;
  }
  
  .mobile-center-both {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-center-text {
    text-align: center;
  }
  
  .mobile-center-margin {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* 手機版內容容器置中 */
  .mobile-center-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
  }
  
  /* 手機版卡片置中 */
  .mobile-center-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
  }
  
  /* 手機版按鈕置中 */
  .mobile-center-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .mobile-center-buttons .ant-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* 平板版置中 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .tablet-center-horizontal {
    display: flex;
    justify-content: center;
  }
  
  .tablet-center-vertical {
    display: flex;
    align-items: center;
  }
  
  .tablet-center-both {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .tablet-center-text {
    text-align: center;
  }
  
  .tablet-center-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
  }
}

/* 桌面版置中 (992px 以上) */
@media (min-width: 992px) {
  .desktop-center-horizontal {
    display: flex;
    justify-content: center;
  }
  
  .desktop-center-vertical {
    display: flex;
    align-items: center;
  }
  
  .desktop-center-both {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .desktop-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
  }
}

/* ===== 特殊置中場景 ===== */

/* 內容區域置中 */
.content-center {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 767px) {
  .content-center {
    max-width: 100%;
    padding: 16px;
  }
}

/* 表單置中 */
.form-center {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 767px) {
  .form-center {
    max-width: 100%;
    padding: 16px;
  }
}

/* 圖片置中 */
.image-center {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* 載入中置中 */
.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

@media (max-width: 767px) {
  .loading-center {
    min-height: 150px;
  }
}

/* Modal 內容置中 */
.modal-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== 彈性置中系統 ===== */

/* 可變寬度置中容器 */
.flex-center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100px;
}

@media (max-width: 767px) {
  .flex-center-container {
    flex-direction: column;
    padding: 16px;
  }
}

/* Grid 置中系統 */
.grid-center-container {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100px;
}

/* ===== 頁面級別置中 ===== */

/* 整頁置中 (用於錯誤頁面等) */
.page-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

@media (max-width: 767px) {
  .page-center {
    padding: 16px;
    min-height: calc(100vh - 120px);
  }
}

/* 主要內容區域置中 */
.main-content-center {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .main-content-center {
    padding: 0 16px;
  }
}

/* ===== 工具輔助類別 ===== */

/* 清除浮動並置中 */
.clearfix-center::after {
  content: "";
  display: table;
  clear: both;
  margin: 0 auto;
}

/* 強制置中 (最高優先級) */
.force-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 僅手機強制置中 */
@media (max-width: 767px) {
  .force-mobile-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* ===== 特定組件置中 ===== */

/* Ant Design 組件置中 */
.ant-center .ant-card {
  max-width: 600px;
  margin: 0 auto;
}

.ant-center .ant-form {
  max-width: 400px;
  margin: 0 auto;
}

.ant-center .ant-table-wrapper {
  margin: 0 auto;
}

@media (max-width: 767px) {
  .ant-center .ant-card,
  .ant-center .ant-form {
    max-width: 100%;
    margin: 0;
  }
}

/* 按鈕群組置中 */
.button-group-center {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .button-group-center {
    flex-direction: column;
    align-items: center;
  }
  
  .button-group-center .ant-btn {
    width: 100%;
    max-width: 280px;
  }
}
/* 全局樣式 - 使用更精確的選擇器避免衝突 */

.app-container {
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
  background-color: #FFFFFF;
}

/* Bootstrap Container 響應式寬度調整 */
/* 行動裝置：使用 100% 寬度（類似 container-fluid） */
.container {
  max-width: 100% !important;
  padding-left: 15px;
  padding-right: 15px;
}

/* 平板以上：保持 100% 寬度 */
@media (min-width: 576px) {
  .container {
    max-width: 100% !important;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 100% !important;
  }
}

/* 桌面版：使用 80% 寬度 */
@media (min-width: 992px) {
  .container {
    max-width: 80% !important;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 80% !important;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 80% !important;
  }
}

/* 針對特定容器的樣式設定 */
.main-content-wrapper {
  margin: 0;
  padding: 0;
}

/* 字體大小 */
.h20{
  font-size:20px;
}
.h20bold{
  font-size:20px;
  font-weight: bold;
}
.h18{
  font-size:18px;
}
.h18bold{
  font-size:18px;
  font-weight: bold;
}

.h16{
  font-size:16px;
}
.h16bold{
  font-size:16px;
  font-weight: bold;
}

.h14{
  font-size:14px;
}
.h14bold{
  font-size:14px;
  font-weight: bold;
}

.h12{
  font-size:12px;
}
.h12bold{
  font-size:12px;
  font-weight: bold;
}

.h10{
  font-size:10px;
}
.h10bold{
  font-size:10px;
  font-weight: bold;
}


/* Ant Design - TO BE REMOVED */
/* .ant-tree,
.ant-tree *,
.ant-card,
.ant-card *,
.ant-modal,
.ant-modal *,
.ant-form,
.ant-form *,
.ant-btn,
.ant-btn *,
.ant-input,
.ant-input *,
.ant-select,
.ant-select *,
.ant-switch,
.ant-switch *,
.ant-space,
.ant-space *
{
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
} */

/* CSS 隔離和衝突避免 */
.css-conflict-prevention {
  /* 使用 CSS containment 來隔離樣式 */
  contain: layout style;
}

/* 確保樣式不會意外影響其他元素 */
.scoped-styles {
  isolation: isolate;
}

/* ===== 全域按鈕樣式覆蓋 - 強制移除所有漸層 ===== */
.btn-primary,
.btn.btn-primary,
button.btn-primary,
/* .ant-btn-primary, - Ant Design - TO BE REMOVED */
[class*="btn-primary"],
[class*="primary-btn"],
[class*="primary-button"] {
  background: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  background-image: none !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
button.btn-primary:hover,
/* .ant-btn-primary:hover, - Ant Design - TO BE REMOVED */
[class*="btn-primary"]:hover,
[class*="primary-btn"]:hover,
[class*="primary-button"]:hover {
  background: var(--primary-dark) !important;
  background-color: var(--primary-dark) !important;
  background-image: none !important;
  border-color: var(--primary-dark) !important;
  color: white !important;
}

.btn-primary:focus,
.btn.btn-primary:focus,
button.btn-primary:focus,
/* .ant-btn-primary:focus, - Ant Design - TO BE REMOVED */
[class*="btn-primary"]:focus,
[class*="primary-btn"]:focus,
[class*="primary-button"]:focus {
  background: var(--primary-color) !important;
  background-color: var(--primary-color) !important;
  background-image: none !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 0 0 3px rgba(190, 31, 72, 0.25) !important;
}

.btn-primary:active,
.btn.btn-primary:active,
button.btn-primary:active,
/* .ant-btn-primary:active, - Ant Design - TO BE REMOVED */
[class*="btn-primary"]:active,
[class*="primary-btn"]:active,
[class*="primary-button"]:active {
  background: var(--naily-primary-700) !important;
  background-color: var(--naily-primary-700) !important;
  background-image: none !important;
  border-color: var(--naily-primary-700) !important;
  color: white !important;
}

/* ===== 額外的框架覆蓋 ===== */
/* Bootstrap 5+ 覆蓋 - CSS變數已移至 consolidated-variables.css 統一管理 */

/* ===== CSS 變數覆蓋 - 已移至 consolidated-variables.css 統一管理 ===== */
/* :root 變數定義已移除，現在使用 consolidated-variables.css 中的統一變數 */

/* 移除所有可能的漸層背景 */
*[class*="btn"]:not(.btn-outline):not(.btn-link):not(.btn-ghost),
*[class*="button"]:not(.button-outline):not(.button-link):not(.button-ghost) {
  /* background-image: none !important; */
}

/* 覆蓋任何使用 CSS 變數的漸層 */
*[style*="--gradient-primary"],
*[style*="linear-gradient"] {
  background-image: none !important;
}

/* 針對可能的第三方框架 */
.primary-button,
.btn-primary,
.button-primary,
.primary-btn {
  background: var(--primary-color) !important;
  background-image: none !important;
  border-color: var(--primary-color) !important;
}

.primary-button:hover,
.btn-primary:hover,
.button-primary:hover,
.primary-btn:hover {
  background: var(--primary-dark) !important;
  background-image: none !important;
  border-color: var(--primary-dark) !important;
}

/* ===== 強制覆蓋所有可能的漸層樣式 ===== */
*[class*="gradient"],
*[style*="linear-gradient"],
*[style*="radial-gradient"] {
  background: var(--primary-color) !important;
  background-image: none !important;
}

/* 針對特定的 primary 相關選擇器 */
[class*="primary"][class*="gradient"],
[class*="gradient"][class*="primary"],
.gradient-primary,
.primary-gradient {
  background: var(--primary-color) !important;
  background-image: none !important;
  border-color: var(--primary-color) !important;
}

/* ===== 覆蓋 Bootstrap 5 下拉選單的紫色，改為品牌深紅色 ===== */
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.dropdown-item:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* 覆蓋 Bootstrap primary 顏色變數 */
:root {
  --bs-primary: var(--primary-color) !important;
  --bs-primary-rgb: 190, 31, 72 !important;
}
/* ========================================
   導航欄核心樣式 - CSS 隔離版本
   作用域限制: .naily-navbar-container
   ======================================== */

/* Z-index 系統 - 確保 Navbar 相關元素始終在最頂層 */
/* Navbar相關的z-index由unified-z-index-system.css統一管理 */
/* 色彩系統由 consolidated-variables.css 和 tokens.css 統一管理 */

/* ========================================
   登出確認 Modal 樣式 - 限制作用域
   ======================================== */

/* 登出確認模態框樣式 - 限制在 navbar 容器內 */
.naily-navbar-container .logout-confirmation-modal {
  z-index: var(--navbar-z-modal) !important;
}

.naily-navbar-container .logout-confirmation-modal .modal-backdrop {
  z-index: calc(var(--navbar-z-modal) - 1) !important;
}

.naily-navbar-container .logout-confirmation-modal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.naily-navbar-container .logout-confirmation-modal .modal-header {
  border-bottom: 1px solid var(--naily-accent);
  padding: 1.5rem;
  background-color: var(--naily-gray-light) !important;
  border-radius: 15px 15px 0 0;
  /* 強制覆蓋通用 modal-header 樣式 */
  background-image: none !important;
  background: var(--naily-gray-light) !important;
}

.naily-navbar-container .logout-confirmation-modal .modal-title {
  font-weight: 600;
  color: var(--naily-gray-dark);
  font-size: 1.25rem;
}

.naily-navbar-container .logout-confirmation-modal .modal-body {
  padding: 2rem 1.5rem;
  text-align: center;
}

.naily-navbar-container .logout-confirmation-modal .modal-body p {
  color: var(--naily-gray);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.logout-confirmation-modal .modal-footer {
  border-top: 1px solid var(--naily-accent);
  padding: 1rem 1.5rem;
  justify-content: center;
  gap: 1rem;
}

.logout-confirmation-modal .btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-width: 100px;
}

.logout-confirmation-modal .btn-secondary {
  background-color: var(--naily-gray-light);
  border: 2px solid var(--naily-gray-500);
  color: var(--naily-gray);
}

.logout-confirmation-modal .btn-secondary:hover {
  background-color: var(--naily-gray-500);
  border-color: var(--naily-gray-500);
  color: var(--color-white);
  transform: translateY(-1px);
}

.logout-confirmation-modal .btn-danger {
  background-color: var(--color-error-500);
  border: 2px solid var(--color-error-500);
  color: var(--color-white);
}

.logout-confirmation-modal .btn-danger:hover {
  background-color: var(--color-error-600);
  border-color: var(--color-error-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.logout-confirmation-modal .btn:active {
  transform: translateY(0);
}

/* 響應式設計 */
@media (max-width: 576px) {
  .logout-confirmation-modal .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .logout-confirmation-modal .btn {
    width: 100%;
  }
}

/* 導航欄定位 - 確保在跑馬燈下方且無空隙 */
.navbar-below-marquee {
  top: 36px;
  width: 100%;
  position: fixed !important;
  z-index: var(--z-ui-sticky);
  height: auto !important;
  min-height: auto;
  transition: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  margin: 0 !important;
  border: none !important;
  background-color: var(--color-white) !important;
}

/* 配合 marquee 高度變化 - 確保無縫垂直合併 */
@media (max-width: 768px) {
  .navbar-below-marquee {
    top: 40px !important; /* 配合 marquee 40px 高度 */
    padding: 8px 10px !important;
    background-color: var(--color-white) !important;
  }
}

/* 確保導航欄緊貼跑馬燈 */
.navbar-below-marquee.navbar {
  position: fixed !important;
  top: 36px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: var(--z-ui-sticky) !important;
  min-height: auto; /* 覆蓋全域 .navbar 的 min-height */
}

/* 禁用任何可能的間距 */
.navbar-below-marquee .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* 基本導航欄樣式 */
.navbar-nav .nav-link {
  color: var(--color-black);
  font-weight: 500;
  margin: 0 4px;
  padding: 8px 12px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-nav .nav-link:hover {
  color: var(--color-white) !important;
  background-color: var(--naily-primary) !important;
  box-shadow: 0 2px 8px rgba(190, 31, 72, 0.3);
}

/* Logo 樣式 */
.navbar-brand img {
  transition: all 0.3s ease;
}

.logo-desktop {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: clamp(80px, 15vw, 200px); /* 響應式最大寬度 */
  object-fit: contain;
  display: block;
}

.logo-mobile {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: clamp(180px, 35vw, 220px); /* 響應式最大寬度 */
  object-fit: contain;
  display: block;
}


/* 禁用導航欄的任何滾動動畫或行為 */
.navbar.fixed-top,
.navbar.navbar-fixed-top {
  animation: none !important;
  -webkit-animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* 確保導航欄內容不會被壓縮 */
.navbar-collapse {
  display: flex !important;
  flex-basis: auto !important;
  flex-grow: 1 !important;
}

/* 確保導航項目不會被壓縮 */
.navbar-nav {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

/* 隱藏滾動條 */
.navbar-nav::-webkit-scrollbar {
  display: none !important;
}

/* 桌面版導航項目自動調整 */
@media (min-width: 992px) {
  .navbar-collapse {
    justify-content: space-between;
  }
  
  .navbar-nav {
    flex: 1 1;
    justify-content: space-around;
    max-width: 100%;
    overflow: visible !important;
  }
  
  .navbar-nav .nav-item {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .navbar-nav .nav-link {
    font-size: clamp(12px, 1.2vw, 16px); /* 響應式字體大小 */
    padding: 8px clamp(4px, 0.8vw, 16px) !important; /* 響應式內距 */
  }
}

/* 載入狀態樣式 */
.mobile-menu-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: var(--color-gray-500);
  font-size: 14px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-gray-100);
  border-top: 2px solid var(--naily-primary);
  border-radius: 50%;
  animation: naily-spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes naily-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-item {
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.loading-item .loading-spinner {
  margin-right: 8px;
}

/* 移動端分類樣式 */
.mobile-category-container {
  margin-bottom: 8px;
}

.mobile-category-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-gray-200);
  background-color: var(--naily-gray-light);
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-category-header:hover {
  background-color: var(--naily-gray-200);
  transform: translateY(-1px);
}

.mobile-category-title {
  font-weight: 700;
  color: var(--naily-gray-800);
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Noto Sans TC', 'Noto Sans', sans-serif;
}

.mobile-category-icon {
  color: var(--naily-primary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.mobile-category-header:hover .mobile-category-icon {
  color: var(--naily-primary-light);
  transform: scale(1.1);
}

.mobile-subcategory-container {
  background-color: var(--color-gray-50);
  border-radius: 0 0 8px 8px;
  margin-top: 1px;
  border-left: 2px solid var(--naily-primary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-subcategory-item {
  border-bottom: 1px solid var(--color-gray-200);
  position: relative;
}

.mobile-subcategory-item:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.mobile-subcategory-item:first-child .mobile-subcategory-button {
  border-radius: 6px 6px 0 0;
}

.mobile-subcategory-button {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mobile-subcategory-button:hover {
  background-color: var(--naily-gray-light);
  transform: translateX(4px);
}

.mobile-subcategory-button:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--naily-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}

.mobile-subcategory-button:hover:before {
  transform: scaleX(1);
}

.navbar .dropdown-toggle::after {
  display: none !important;   /* 隱藏預設倒三角 */
}

.navbar-nav .nav-link {
  margin: 0 4px; /* 減少左右間距 */
  color: var(--color-black);
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
  padding: 8px 12px !important;
  font-weight: 500;
  white-space: nowrap; /* 防止文字換行 */
  flex-shrink: 0; /* 防止文字被壓縮 */
}

.navbar-nav .nav-link:hover {
  color: var(--color-white) !important;
  background-color: var(--naily-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 31, 72, 0.3);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-white);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0;
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
  opacity: 1;
}

/* 導覽列的 Logo 置中 */
.navbar-brand {
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.navbar-brand img {
    transition: all 0.3s ease;
}

/* 導覽列按鈕 */
.navbar .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

/* 側邊固定按鈕 */
.sidebar-buttons {
    position: fixed !important;
    right: 20px !important;
    bottom: max(80px, calc(80px + env(safe-area-inset-bottom))) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;  /* 增加按鈕間距 */
    z-index: var(--z-ui-sidebar) !important;
    pointer-events: auto !important;
    /* 確保不受父容器影響 */
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    /* 確保定位基準是視窗 */
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    /* 強制覆蓋任何可能的 display 樣式 */
    display: flex !important;
  }

/* 確保在桌面版顯示 */
@media (min-width: 992px) {
  .sidebar-buttons.d-none.d-lg-flex {
    display: flex !important;
  }
  
  /* 強制在桌面版顯示 */
  .naily-navbar-container .sidebar-buttons.d-none.d-lg-flex {
    display: flex !important;
  }
}

/* 確保在手機版隱藏 */
@media (max-width: 1023px) {
  .sidebar-buttons.d-none.d-lg-flex {
    display: none !important;
  }
}

/* 強制覆蓋所有可能的樣式衝突 - 限制在 navbar 容器內 */
.naily-navbar-container .sidebar-buttons,
.css-isolation-container .sidebar-buttons {
  position: fixed !important;
  right: 20px !important;
  bottom: max(80px, calc(80px + env(safe-area-inset-bottom))) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: var(--z-ui-sidebar) !important;
  pointer-events: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  top: auto !important;
  left: auto !important;
}

  .sidebar-buttons button {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; /* 添加陰影提高可見度 */
    position: relative !important;
    z-index: var(--z-ui-sidebar) !important;
    margin: 2px 0 !important;  /* 增加上下間距 */
  }

/* 強制覆蓋按鈕樣式 */
.naily-navbar-container .sidebar-buttons button,
.css-isolation-container .sidebar-buttons button {
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
  position: relative !important;
  z-index: var(--z-ui-sidebar) !important;
}

/* 移除下拉按鈕預設的 caret */
.no-caret::after {
    display: none !important;
  }

/* Material-UI 購物車圖標按鈕樣式 */
.shopping-cart-icon {
  margin: 0 10px;
}

.shopping-cart-icon svg {
 color: var(--color-gray-900);
 transition: all 0.2s ease;
}

.shopping-cart-icon:hover svg {
  color: var(--naily-primary);
  transform: scale(1.1);
}

.shopping-cart-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 修復購物車 badge 被切掉的問題 */
.navbar-cart-icon {
  position: relative;
  overflow: visible;
  padding: 8px;
  margin: 0 8px;
}

/* 確保 badge 本身有正確的定位和大小 */
.navbar-cart-icon .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  z-index: var(--z-normal);
  transform: none;
}

/* 確保所有父級容器都允許 badge 顯示 */
.d-flex.align-items-center,
.d-flex.d-lg-none > div:last-child {
  overflow: visible;
}

/* 桌面版特殊處理 */
@media (min-width: 992px) {
  .navbar-cart-icon {
    margin: 0 12px;
    padding: 10px;
  }
}

/* 手機版特殊處理 */
@media (max-width: 991px) {
  .navbar-cart-icon {
    margin: 0 6px;
    padding: 8px;
  }
}

/* Material-UI 用戶圖標按鈕樣式 */
.user-icon {
  margin: 0 5px !important;
}

.user-icon svg {
  color: var(--naily-gray-dark);
  transition: all 0.2s ease;
}

.user-icon:hover svg {
  color: var(--naily-primary);
  transform: scale(1.1);
}

.user-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 語言切換按鈕樣式 */
.language-icon {
  margin: 0 5px !important;
}

.language-icon svg {
  color: var(--naily-gray-dark);
}

.language-icon:hover svg {
  color: #000;
}




/* 子選單hover - 強化版本 */
.navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 確保子選單本身被 hover 時保持顯示 */
.navbar-nav .dropdown-menu:hover {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 避免原本 bootstrap 會加的 margin-top 太大 */
.navbar-nav .nav-item.dropdown > .dropdown-menu {
  width: 280px;
  margin: 0;
  border: none;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  background: var(--color-white);
  -webkit-backdrop-filter: blur(10px);

  backdrop-filter: blur(10px);
}

.navbar-nav .nav-item.dropdown > .dropdown-menu .dropdown-item {
  height: 44px;
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
  padding: 12px 20px;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 8px;
  color: var(--naily-gray-800);
  font-weight: 500;
  display: flex;
  align-items: center;
  width: calc(100% - 16px);
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-item.dropdown > .dropdown-menu .dropdown-item:hover {
  background: var(--naily-primary);
  color: var(--color-white);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 107, 152, 0.3);
}

/* 確保子選單項目也有相同的填充效果 */
.dropdown-submenu .dropdown-menu .dropdown-item {
  height: 44px;
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
  padding: 12px 20px;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 8px;
  color: var(--naily-gray-800);
  font-weight: 500;
  display: flex;
  align-items: center;
  width: calc(100% - 16px);
  position: relative;
  overflow: hidden;
}

.dropdown-submenu .dropdown-menu .dropdown-item:hover {
  background: var(--naily-primary);
  color: var(--color-white);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 107, 152, 0.3);
}

/* 由上面的樣式取代 */
/* 手機版側邊選單樣式 */
.mobile-sidebar {
  width: 280px !important;
}

.mobile-sidebar .offcanvas-header {
  padding: 15px;
  border-bottom: 1px solid var(--color-gray-200);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
}

.mobile-menu-section {
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0;
}

.mobile-menu-title {
  font-weight: bold;
  padding: 15px;
  margin: 0;
  color: var(--naily-gray-dark);
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-list li {
  margin: 0;
  padding: 0;
}

.mobile-menu-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px; /* 增加觸控目標大小 */
  background: transparent;
  border: none;
  color: var(--naily-gray-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px; /* 更好的可讀性 */
  min-height: 48px; /* 符合無障礙指南 */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mobile-menu-list button:hover {
  background-color: #f0f8ff;
  transform: translateX(2px);
  border-left: 3px solid var(--naily-primary);
}

.mobile-menu-list button:active {
  transform: scale(0.98);
  background-color: #e6f3ff;
}

.mobile-menu-list button.active {
  color: var(--naily-primary); /* 2025極簡黑色 */
}

/* 子選單樣式 */
.submenu-toggle {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.submenu-toggle .rotated {
  transform: rotate(90deg);
  transition: transform 0.3s;
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--color-gray-50);
}

.mobile-submenu li button {
  padding-left: 30px;
}

/* 社交媒体图标 */
.mobile-social-icons {
  display: flex;
  justify-content: center;
  padding: 25px 0;
  gap: 20px; /* 增加間距 */
}

.social-icon {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 48px; /* 增加觸控目標大小 */
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  background-color: var(--color-gray-100);
  color: var(--naily-primary);
}

/* 底部APP下载 */
.mobile-app-download {
  margin: 10px 15px;
  padding: 15px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  background-color: var(--color-gray-50);
}

.app-icon-placeholder {
  width: 30px;
  height: 30px;
  background-color: var(--color-gray-300);
  border-radius: 8px;
}

/* 手機版搜索框样式 */
.mobile-search-offcanvas {
  height: 100vh !important;
  background-color: transparent !important;
  transition: all 0.3s ease-in-out;
}

.mobile-search-icon {
  transition: all 0.2s ease;
  position: relative;
}

.mobile-search-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.mobile-search-icon:active {
  transform: scale(0.95);
}

/* 手機版搜尋圖標顏色 - 設定為黑色 */
.naily-navbar-container .mobile-search-icon svg,
.mobile-search-icon .MuiSvgIcon-root,
.mobile-search-icon svg {
  color: var(--color-black) !important;
  fill: var(--color-black) !important;
}

.naily-navbar-container .mobile-search-icon:hover svg,
.mobile-search-icon:hover .MuiSvgIcon-root,
.mobile-search-icon:hover svg {
  color: var(--color-black) !important;
  fill: var(--color-black) !important;
}

/* 確保 Material-UI 圖標在所有狀態下都是黑色 */
.d-flex.d-lg-none .mobile-search-icon svg,
.d-flex.d-lg-none .mobile-search-icon .MuiSvgIcon-root {
  color: var(--color-black) !important;
  fill: var(--color-black) !important;
}

.search-top-container {
  padding: 15px;
  width: 100%;
  height: auto;
  background: var(--naily-primary);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.search-backdrop {
  opacity: 0.7 !important;
  -webkit-backdrop-filter: blur(2px);

  backdrop-filter: blur(2px);
}

.search-backdrop-click-area {
  height: calc(100% - 66px);
  width: 100%;
  cursor: pointer;
}

/* 響應式調整 */
@media (max-width: 1199.98px) {
  /* 中等螢幕調整 - 優化導航頁目間距 */
  .navbar-nav .nav-link {
    margin: 0 2px;
    padding: 8px 8px !important;
    font-size: 14px;
  }
  
  .navbar-nav .dropdown .dropdown-toggle {
    font-size: 14px;
  }
  
  /* 確保導航欄有白色背景 */
  .navbar-below-marquee {
    background-color: var(--color-white) !important;
    min-height: auto !important;
    padding: 8px 15px !important;
  }
  
  .navbar-below-marquee.navbar {
    background-color: var(--color-white) !important;
    min-height: auto !important;
  }
}

/* 針對 1024px - 1199px 螢幕特別處理 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .navbar-below-marquee {
    background-color: var(--color-white) !important;
    min-height: auto !important;
    padding: 8px 15px !important;
  }
  
  .navbar-below-marquee.navbar {
    background-color: var(--color-white) !important;
    min-height: auto !important;
  }
}

/* 已移至統一的 @media (max-width: 768px) 斷點 */

/* 極小螢幕特殊處理 */
@media (max-width: 480px) {
  .navbar-below-marquee {
    top: 46px !important; /* 配合極小螢幕跑馬燈 46px 高度 */
  }
}
  
  /* Logo尺寸调整 - 手機版自適應 */
  .navbar-brand img {
    height: auto !important;
    max-height: 45px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* 汉堡按钮调整 */
  .navbar-toggler {
    border: none;
    padding: 0;
    margin-right: 10px;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* 移动版导航内容布局 */
  .navbar-below-marquee .container-fluid {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  /* 右侧图标间距调整 */
  .d-flex.d-lg-none .shopping-cart-icon,
  .d-flex.d-lg-none .user-icon,
  .d-flex.d-lg-none .mobile-search-icon {
    margin: 0 4px !important;  /* 減少按鈕間距 */
    min-width: 40px; /* 縮小最小觸控大小 */
    min-height: 40px;
    flex-shrink: 0; /* 防止按鈕被壓縮 */
  }
  
  /* 確保手機版按鈕的可觸控性 */
  .d-flex.d-lg-none .MuiIconButton-root {
    padding: 12px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  /* 移动端 LOGO 居中 - 使用 flexbox 布局 */
  .navbar-below-marquee .navbar-brand.d-lg-none {
    position: relative !important;
    left: auto !important;
    transform: none !important;
  }
  
  /* 確保手機版布局的三欄結構 */
  .d-flex.d-lg-none > div:first-child {
    flex-shrink: 0;
    min-width: 40px;
  }
  
  .d-flex.d-lg-none > div:nth-child(2) {
    flex: 1 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .d-flex.d-lg-none > div:last-child {
    flex-shrink: 0;
    min-width: 120px;
  }

/* 小螢幕手機版 Logo 調整 */
@media (max-width: 576px) {
  .logo-mobile {
    max-height: 58px !important;
    max-width: clamp(170px, 30vw, 190px) !important; /* 響應式寬度 */
  }
  
  .navbar-brand img {
    max-height: 40px !important;
    max-width: clamp(60px, 18vw, 120px) !important; /* 響應式寬度 */
  }
  
  /* 調整右側按鈕的最小寬度 */
  .d-flex.d-lg-none > div:last-child {
    min-width: 100px !important;
  }
}

/* 超小螢幕手機版 Logo 調整 */
@media (max-width: 375px) {
  .logo-mobile {
    max-height: 56px !important;
    max-width: clamp(160px, 28vw, 180px) !important; /* 響應式寬度 */
  }
  
  .navbar-brand img {
    max-height: 38px !important;
    max-width: clamp(55px, 16vw, 110px) !important; /* 響應式寬度 */
  }
  
  /* 調整右側按鈕的最小寬度 */
  .d-flex.d-lg-none > div:last-child {
    min-width: 90px !important;
  }
}

/* 極小螢幕手機版 Logo 調整 */
@media (max-width: 320px) {
  .logo-mobile {
    max-height: 54px !important;
    max-width: clamp(150px, 26vw, 170px) !important; /* 響應式寬度 */
  }
  
  .navbar-brand img {
    max-height: 35px !important;
    max-width: clamp(50px, 15vw, 100px) !important; /* 響應式寬度 */
  }
  
  /* 調整右側按鈕的最小寬度 */
  .d-flex.d-lg-none > div:last-child {
    min-width: 80px !important;
  }
}

/* 確保 Logo 在各種螢幕尺寸下都能正確顯示 */
@media (min-width: 992px) {
  .logo-desktop {
    max-height: 60px !important;
    max-width: clamp(120px, 18vw, 200px) !important; /* 響應式寬度 */
  }
}

/* 平板尺寸 Logo 調整 */
@media (min-width: 768px) and (max-width: 1023px) {
  .logo-mobile {
    max-height: 58px !important;
    max-width: clamp(180px, 32vw, 200px) !important; /* 響應式寬度 */
  }
}

/* 側邊欄 Logo 響應式調整 */
@media (max-width: 576px) {
  .logo-sidebar {
    max-height: 45px !important;
    max-width: 110px !important;
  }
}

@media (max-width: 375px) {
  .logo-sidebar {
    max-height: 42px !important;
    max-width: 100px !important;
  }
}

/* 移動端底部固定按鈕 */
.mobile-bottom-buttons {
  position: fixed !important;
  right: 20px !important;
  bottom: max(20px, calc(20px + env(safe-area-inset-bottom))) !important;
  z-index: var(--z-modal) !important;
  pointer-events: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
}

.mobile-bottom-buttons .btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: none;
  transition: all 0.3s ease;
  margin: 4px 0;
}

.mobile-bottom-buttons .btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.mobile-bottom-buttons .btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* 抽屜動畫 */
.mobile-sidebar {
  transition: transform 0.3s ease-in-out;
}

.mobile-sidebar.show {
  transform: translateX(0);
}

.mobile-sidebar:not(.show) {
  transform: translateX(-100%);
}

/* 確保移動端底部按鈕不受任何父容器影響 */
.mobile-bottom-buttons {
  position: fixed !important;
  right: 20px !important;
  bottom: max(20px, calc(20px + env(safe-area-inset-bottom))) !important;
  z-index: var(--z-modal) !important;
  pointer-events: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  /* 確保不受父容器影響 */
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

/* 更強制的樣式覆蓋 */
.naily-navbar-container .mobile-bottom-buttons,
#root .mobile-bottom-buttons,
* .mobile-bottom-buttons {
  position: fixed !important;
  right: 20px !important;
  bottom: max(20px, calc(20px + env(safe-area-inset-bottom))) !important;
  z-index: var(--z-ui-floating-button) !important; /* 統一 z-index 系統：UI 浮動按鈕層級 */
  pointer-events: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

/* 購物車側邊欄動畫 */
.mobile-cart-sidebar {
  transition: transform 0.3s ease-in-out;
}

.mobile-cart-sidebar.show {
  transform: translateX(0);
}

.mobile-cart-sidebar:not(.show) {
  transform: translateX(-100%);
}

/* 移動端底部按鈕 - 強制定位 */
@media (max-width: 1023px) {
  .mobile-bottom-buttons.d-lg-none {
    position: fixed !important;
    right: 20px !important;
    bottom: max(20px, calc(20px + env(safe-area-inset-bottom))) !important;
    z-index: var(--z-ui-sidebar) !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
  }
}

/* 搜索側邊欄動畫 */
.mobile-search-offcanvas {
  transition: transform 0.3s ease-in-out;
}

.mobile-search-offcanvas.show {
  transform: translateY(0);
}

.mobile-search-offcanvas:not(.show) {
  transform: translateY(-100%);
}

/* 移動端底部展開菜單 */
.mobile-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-ui-fixed);
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-bottom-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.mobile-bottom-menu-content {
  background-color: var(--color-white);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 15px;
  padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-menu .menu-item {
  width: 80px;
  cursor: pointer;
  transition: transform 0.2s;
}

.mobile-bottom-menu .menu-item:hover {
  transform: translateY(-3px);
}

.mobile-bottom-menu .menu-icon {
  background-color: var(--color-gray-50);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.mobile-bottom-menu .menu-text {
  color: var(--naily-gray-dark);
}

/* 移动端购物车侧边栏 */
.mobile-cart-sidebar {
  width: 85% !important;
}

.mobile-cart-sidebar .offcanvas-header {
  padding: 15px;
  background-color: var(--color-white);
}

.mobile-cart-sidebar .offcanvas-body {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 0 !important;
}

.mobile-cart-sidebar .mobile-cart-items {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
}

.mobile-cart-sidebar .mobile-cart-footer {
  position: relative !important;
  bottom: 0 !important;
  width: 100%;
}

.cart-item {
  background-color: var(--color-white);
  overflow: visible;
}

.mobile-cart-footer {
  background-color: var(--color-gray-50);
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding-bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
}

/* 购物车删除按钮相关样式 */
.cart-item-container {
  position: relative;
  overflow: visible;
}

/* 购物车商品名称样式 */
.cart-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  display: block;
  font-size: 16px;
}

.cart-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  position: relative;
  overflow: visible;
}

.mobile-cart-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  position: relative;
  overflow: visible;
}

.delete-button-wrapper {
  position: absolute;
  top: -15px;
  left: -15px;
  padding: 0;
  z-index: var(--z-normal);
}

.delete-button-wrapper svg {
  color: var(--accent-color);
  background-color: var(--color-white);
  border-radius: 50%;
}

.delete-button {
  padding: 0;
}

/* Logo 自適應樣式 - 已在上方定義，這裡移除重複 */

.logo-sidebar {
  height: auto;
  max-height: 50px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}



.cart-header {
  padding: 5px 20px 0 20px;
}

.cart-divider {
  height: 1px;
  border: none;
  background-color: var(--color-black);
}

.view-cart-button {
  padding: 5px 20px;
  color: var(--color-white);
  background-color: var(--naily-primary);
  border: none;
}

.view-cart-button:hover {
  background-color: var(--naily-primary-dark);
  color: var(--color-white);
  border: none;
}



/* Material UI組件樣式 */
.menu-item-align-start {
  align-items: flex-start;
}

.menu-item-space-between {
  justify-content: space-between;
}

/* 購物車菜單項目水平布局 */
.cart-menu-item {
  width: 100% !important;
  overflow: visible !important;
}

.cart-item-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.cart-item-name-col {
  flex: 1 1;
  min-width: 0;
}

.cart-item-quantity-col {
  flex-shrink: 0;
  text-align: center;
  min-width: 40px;
}

.cart-item-price-col {
  flex-shrink: 0;
  text-align: right;
  min-width: 60px;
}

.cart-item-price {
  color: var(--naily-gray-dark);
}

.cart-total {
  margin-left: auto;
  font-weight: bold;
  text-align: right;
  white-space: nowrap;
}

/* 內容區域佔位符 - 縮小空間 */
.content-spacer {
  height: calc(var(--navbar-height) - 10px); /* 減少 10px 空間 */
  min-height: 96px; /* 設置最小高度確保不會過小 */
}

/* Material UI 下拉選單樣式 */
.menu-dropdown-popup .MuiPaper-root {
  overflow: visible;
  filter: drop-shadow(0px 2px 8px rgba(0,0,0,0.32));
  margin-top: 12px;
}

.menu-dropdown-popup .MuiPaper-root::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 14px;
  width: 10px;
  height: 10px;
  background-color: #fff;
  transform: translateY(-50%) rotate(45deg);
  z-index: var(--z-base);
}

/* 购物车下拉菜单样式 */
#cart-menu .MuiPaper-root {
  width: 400px;
  filter: drop-shadow(0px 2px 8px rgba(0,0,0,0.32));
  overflow: visible;
}

/* 确保桌面版购物车弹窗样式保持不变 */
@media (min-width: 992px) {
  .mobile-cart-sidebar {
    display: none;
  }
}

/* 固定在桌面版側邊的按鈕背景色與邊框色 - 2025極簡黑色 */
/* 限制範圍到側邊按鈕，避免污染 modal */
.sidebar-buttons .btn:not(.modal .btn):not(.modal-content .btn):not(.modal-body .btn):not(.modal-footer .btn):not(.modal-header .btn) {
  background-color: var(--naily-gray-dark) !important;
  border-color: var(--naily-gray-dark) !important;
  color: #fff !important;
  position: relative !important;
  z-index: var(--z-ui-sidebar) !important;
  transition: all 0.2s ease !important;
}

.sidebar-buttons .btn:not(.modal .btn):hover {
  background-color: var(--naily-primary-dark) !important;
  border-color: var(--naily-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* 強制覆蓋按鈕背景色和邊框色 */
/* 強制覆蓋按鈕背景色和邊框色，但排除 modal 內的按鈕 */
.naily-navbar-container .sidebar-buttons .btn:not(.modal .btn):not(.modal-content .btn):not(.modal-body .btn):not(.modal-footer .btn):not(.modal-header .btn) {
  background-color: var(--naily-gray-dark) !important;
  border-color: var(--naily-gray-dark) !important;
  color: #fff !important;
  position: relative !important;
  z-index: var(--z-ui-sidebar) !important;
}
.sidebar-buttons .btn svg {
  color: #fff !important;
}

/* 強制覆蓋圖標顏色 */
.naily-navbar-container .sidebar-buttons .btn svg,
.css-isolation-container .sidebar-buttons .btn svg {
  color: #fff !important;
}

/* 強制覆蓋圖片樣式 */
.naily-navbar-container .sidebar-buttons .btn img,
.css-isolation-container .sidebar-buttons .btn img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* 側邊按鈕 SVG 圖標大小調整 */
.sidebar-buttons .btn svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
  display: block !important;
  overflow: visible !important;
}

/* 修復 SVG 渐变和填充 */
.sidebar-buttons .btn svg rect,
.sidebar-buttons .btn svg path {
  shape-rendering: crispEdges;
}

/* 確保 SVG defs 元素正確渲染 */
.sidebar-buttons .btn svg defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 修復 Instagram SVG 渐变顯示 */
.sidebar-buttons .btn svg radialGradient {
  r: 150% !important;
}

/* 強制所有 SVG 元素可見 */
.sidebar-buttons .btn svg * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* 強制覆蓋 SVG 樣式 */
.naily-navbar-container .sidebar-buttons .btn svg,
.css-isolation-container .sidebar-buttons .btn svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
  display: block !important;
  overflow: visible !important;
}

/* 保持 FontAwesome 圖標為白色 */
.sidebar-buttons .btn .fa-arrow-up,
.sidebar-buttons .btn .fa-store,
.sidebar-buttons .btn .fa-crown {
  color: #fff !important;
}

/* 修復側邊按鈕內嵌 SVG 渲染問題 */
.sidebar-buttons button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* 確保 SVG 圖標正確顯示 */
.sidebar-buttons button svg {
  display: inline-block !important;
  vertical-align: middle !important;
  pointer-events: none !important;
  shape-rendering: geometricPrecision !important;
  text-rendering: geometricPrecision !important;
}

/* 修復 Instagram 漸變 ID 衝突問題 */
.sidebar-buttons button:nth-child(4) svg defs {
  display: block !important;
}

/* 修復 Facebook 和 Instagram SVG 路徑渲染 */
.sidebar-buttons button svg path,
.sidebar-buttons button svg rect {
  vector-effect: non-scaling-stroke !important;
}

/* 防止 SVG 被裁剪 */
.sidebar-buttons button svg {
  overflow: visible !important;
  transform: scale(1) !important;
  -webkit-transform: scale(1) !important;
}

/* 修復手機版底部菜單和側邊欄的社交媒體圖標 */
.mobile-bottom-menu .menu-item img,
.mobile-social-icons .social-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* 確保手機版 SVG 圖標正確顯示 */
.mobile-bottom-menu .menu-icon img[src*=".svg"],
.mobile-social-icons img[src*=".svg"] {
  shape-rendering: crispEdges !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}

/* 手機版購物車側欄商品內容 - 允許刪除按鈕溢出 */
.mobile-cart-sidebar .cart-item {
  overflow: visible;
}

.mobile-cart-sidebar .cart-item-details {
  min-width: 0;
  overflow: hidden;
}

.mobile-cart-sidebar .cart-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.mobile-cart-sidebar .cart-item-price {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

/* Modal 居中樣式 */
.modal {
  z-index: var(--z-modal); /* Modal base - 使用統一層級系統 */
}

.modal.fade.show {
  z-index: var(--z-modal); /* Modal base - 統一層級系統 */
  pointer-events: auto; /* 確保可以交互 */
}


.modal-dialog {
  z-index: var(--z-modal-dialog); /* Modal content - 高於 Modal base */
}

.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  min-height: calc(100vh - 1rem) !important;
}

.modal-content {
  position: relative !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: auto !important;
  z-index: var(--z-modal-stacked-3) !important; /* 確保內容在最上層 */
  pointer-events: auto !important; /* 確保可以點擊和輸入 */
}

/* 確保 modal backdrop 覆蓋整個視窗 */
.modal-backdrop {
  z-index: var(--z-modal-stacked);
  pointer-events: auto !important; /* 確保背景可以點擊關閉 */
}

/* 響應式調整 - 手機版 modal */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.25rem !important;
  }
  
  .modal-dialog-centered {
    min-height: calc(100vh - 0.5rem) !important;
  }
  
  .modal-content {
    max-width: calc(100vw - 0.5rem) !important;
  }
}

/* 智能 hamburger 切換點 - 在 1000px 以下才使用漢堡選單 */
@media (max-width: 999px) {
  .navbar-expand-sm .navbar-collapse {
    display: none !important;
  }
  
  .navbar-expand-sm .navbar-toggler {
    display: block !important;
  }
}

/* 1000px - 1200px 範圍使用響應式 navbar，不使用漢堡選單 */
@media (min-width: 1000px) and (max-width: 1199px) {
  /* 最高優先級 - 強制覆蓋所有可能的衝突規則 */
  .navbar-expand-sm .navbar-collapse {
    display: flex !important; /* 強制顯示導航項目 */
    flex-basis: auto !important;
    flex-grow: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar-expand-sm .navbar-toggler {
    display: none !important; /* 隱藏漢堡選單 */
  }
  
  /* 強制顯示所有導航項目 */
  .navbar-nav .nav-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* 調整導航項目以適應較小空間 */
  .navbar-nav {
    display: flex !important; /* 強制水平排列 */
    flex-direction: row !important; /* 強制水平方向 */
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 2px !important;
    scrollbar-width: none !important; /* 隱藏捲軸 - Firefox */
    -ms-overflow-style: none !important; /* 隱藏捲軸 - IE */
    padding-bottom: 2px; /* 避免內容被截掉 */
    width: auto !important;
  }
  
  /* 隱藏捲軸 - Webkit */
  .navbar-nav::-webkit-scrollbar {
    display: none !important;
  }
  
  .navbar-nav .nav-link {
    font-size: 13px !important;
    padding: 6px 8px !important;
    margin: 0 1px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: var(--naily-primary) !important;
    color: var(--color-white) !important;
    transform: translateY(-1px) !important;
  }
  
  /* 下拉選單調整 */
  .navbar-nav .dropdown .dropdown-toggle {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  
  /* Logo 在此範圍內稍微縮小 */
  .logo-desktop {
    max-width: clamp(90px, 12vw, 140px) !important;
    max-height: 50px !important;
  }
  
  /* 確保背景色正確 */
  .navbar-below-marquee {
    background-color: var(--color-white) !important;
    min-height: auto !important;
    padding: 6px 10px !important;
    border-bottom: 1px solid var(--naily-gray-200) !important;
  }
  
  .navbar-below-marquee.navbar {
    background-color: var(--color-white) !important;
    min-height: auto !important;
  }
  
  /* 容器調整 */
  .navbar-below-marquee .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* 1200px 以上使用標準 navbar */
@media (min-width: 1200px) {
  .navbar-expand-sm .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-expand-sm .navbar-toggler {
    display: none !important;
  }
}

/* 極小螢幕優化 hamburger 切換點 - 只在 999px 以下生效 */
@media (max-width: 999px) {
  .navbar-expand-sm .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar-expand-sm .navbar-collapse.show {
    display: block !important;
  }
}

/* 確保文字永遠不會換行的最後保障 */
@media (min-width: 992px) {
  .navbar-nav .nav-item {
    white-space: nowrap;
  }
  
  .navbar-nav .nav-link {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* 設置最大寬度防止過長文字 */
  }
  
  /* 當螢幕過小時隱藏部分不重要的導航項目 - 只在 999px 以下生效 */
  @media (max-width: 999px) {
    .navbar-nav .nav-item:nth-last-child(-n+2) {
      display: none;
    }
  }
}

/* 移除導航項目點擊時的紅色邊框和任何 focus 狀態樣式 */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:focus {
   outline: 2px solid currentColor;
   outline-offset: 2px;
 }
 .nav-link:focus:not(:focus-visible) {
   outline: none;
 }
 .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent !important;
}

/* 移除 Bootstrap 按鈕的 focus 狀態 */
.navbar .btn:focus,
.navbar .btn:active,
.navbar .btn:focus {
   outline: 2px solid currentColor;
   outline-offset: 2px;
 }
 .btn:focus:not(:focus-visible) {
   outline: none;
 }
 .btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 移除 Material-UI 按鈕的 focus 狀態 */
.navbar .MuiIconButton-root:focus,
.navbar .MuiIconButton-root:active,
.navbar .MuiIconButton-root:focus {
   outline: 2px solid currentColor;
   outline-offset: 2px;
 }
 .MuiIconButton-root:focus:not(:focus-visible) {
   outline: none;
 }
 .MuiIconButton-root:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* 移除 Bootstrap navbar-toggler 的 focus 狀態 */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus {

  outline: 2px solid currentColor;

  outline-offset: 2px;

}

.navbar-toggler:focus:not(:focus-visible) {

  outline: none;

}

.navbar-toggler:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 移除下拉選單項目的 focus 狀態 */
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item:focus {

  outline: 2px solid currentColor;

  outline-offset: 2px;

}

.dropdown-item:focus:not(:focus-visible) {

  outline: none;

}

.dropdown-item:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* 手機版會員下拉選單樣式 */
@media (max-width: 1023px) {
  /* 手機版用戶選單位置調整 */
  .d-flex.d-lg-none .enhanced-dropdown-menu.user-menu {
    position: fixed !important;
    top: 80px !important;
    right: 10px !important;
    left: auto !important;
    transform: none !important;
    width: clamp(260px, 85vw, 320px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    z-index: var(--z-modal-content); /* 導航下拉選單 - 統一層級系統 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
  }
  
  /* 確保手機版下拉選單背景遮罩 */
  .mobile-dropdown-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: var(--z-legacy-1059) !important;
    display: block !important;
  }
  
  /* 當選單開啟時顯示遮罩 */
  .d-flex.d-lg-none .position-relative:has(.enhanced-dropdown-menu)::before {
    display: none;
  }
}

/* 桌面版用戶選單保持原樣 */
@media (min-width: 992px) {
  .desktop-user-menu {
    position: absolute !important;
  }
}

/* iPad Pro 特殊處理 - 避免導航欄全白問題 */
@media screen and (min-width: 1020px) and (max-width: 1024px) {
  .navbar-below-marquee {
    background-color: var(--color-white) !important;
    min-height: auto !important;
    padding: 8px 15px !important;
  }
  
  .navbar-below-marquee.navbar {
    background-color: var(--color-white) !important;
    min-height: auto !important;
  }
  
  /* 確保 Bootstrap 導航欄組件的背景色 */
  .navbar-below-marquee .navbar-brand,
  .navbar-below-marquee .navbar-nav,
  .navbar-below-marquee .navbar-collapse {
    background-color: transparent !important;
  }
}

/* iPad Pro 橫向模式處理 */
@media screen and (min-width: 1360px) and (max-width: 1366px) and (orientation: landscape) {
  .navbar-below-marquee {
    background-color: var(--color-white) !important;
    min-height: auto !important;
  }
}

/* 手機版會員選單 Modal 樣式 */
.mobile-user-menu-modal .modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
  max-width: 350px;
  margin: auto;
}

.mobile-user-menu-modal .modal-body {
  padding: 0;
  background-color: transparent;
}

.mobile-user-menu-modal .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 確保手機版會員選單的毛玻璃效果 - 使用統一 z-index 系統 */
.mobile-user-menu-modal {
  z-index: var(--z-modal);
}

.mobile-user-menu-modal .modal-backdrop {
  z-index: var(--z-modal-backdrop);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* 手機版尺寸調整 */
@media (max-width: 576px) {
  .mobile-user-menu-modal .modal-content {
    max-width: calc(100vw - 40px);
  }
}

/* ========== 手機版專用優化 - 2025 極簡風格 ========== */
@media (max-width: 1023px) {
  /* 手機版 Navbar 背景與邊框 */
  .navbar-below-marquee {
    background-color: var(--naily-white) !important;
    border-bottom: 1px solid var(--naily-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  /* 手機版選單按鈕 */
  .navbar-toggler {
    border: none;
    padding: 8px;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  /* 手機版側邊欄 */
  .mobile-sidebar {
    background-color: var(--naily-white);
  }

  .mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid var(--naily-accent);
    background-color: var(--naily-white);
  }

  /* 手機版選單項目 */
  .mobile-menu-list button {
    color: var(--naily-gray-dark);
    transition: all 0.2s ease;
  }

  .mobile-menu-list button:hover {
    background-color: var(--naily-gray-light);
    border-left: 3px solid var(--naily-primary);
    color: var(--naily-primary);
  }

  .mobile-menu-list button:active {
    background-color: var(--naily-accent);
  }

  /* 手機版子選單 */
  .mobile-subcategory-button {
    color: var(--naily-gray);
    transition: all 0.2s ease;
  }

  .mobile-subcategory-button:hover {
    background-color: var(--naily-gray-light);
    color: var(--naily-primary);
  }

  /* 手機版分類標題 */
  .mobile-category-title {
    color: var(--naily-gray-dark);
    font-weight: 700;
  }

  /* 手機版社交圖標 */
  .mobile-social-icons .social-icon {
    color: var(--naily-gray);
    transition: all 0.2s ease;
  }

  .mobile-social-icons .social-icon:hover {
    background-color: var(--naily-gray-light);
    color: var(--naily-primary);
  }

  /* 手機版底部按鈕 */
  .mobile-bottom-buttons .btn {
    background-color: var(--naily-white);
    border: 1px solid var(--naily-accent);
    color: var(--naily-gray-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }

  .mobile-bottom-buttons .btn:hover {
    background-color: var(--naily-gray-dark);
    border-color: var(--naily-gray-dark);
    color: var(--naily-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* 手機版購物車側邊欄 */
  .mobile-cart-sidebar {
    background-color: var(--naily-white);
  }

  .mobile-cart-sidebar .offcanvas-header {
    background-color: var(--naily-white);
    border-bottom: 1px solid var(--naily-accent);
  }

  /* 手機版搜索框 */
  .search-top-container {
    background: var(--naily-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  /* 手機版圖標按鈕 */
  .d-flex.d-lg-none .shopping-cart-icon,
  .d-flex.d-lg-none .user-icon,
  .d-flex.d-lg-none .mobile-search-icon {
    transition: all 0.2s ease;
  }

  .d-flex.d-lg-none .shopping-cart-icon:hover,
  .d-flex.d-lg-none .user-icon:hover,
  .d-flex.d-lg-none .mobile-search-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* 手機版選單動畫 */
  .mobile-menu-list button,
  .mobile-subcategory-button {
    position: relative;
    overflow: hidden;
  }

  .mobile-menu-list button::before,
  .mobile-subcategory-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--naily-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: left;
  }

  .mobile-menu-list button:hover::before,
  .mobile-subcategory-button:hover::before {
    transform: scaleX(1);
  }
}

/* ========== 超小螢幕優化 (< 576px) ========== */
@media (max-width: 576px) {
  /* 縮小間距 */
  .mobile-menu-list button {
    padding: 12px 16px;
    font-size: 15px;
  }

  .mobile-category-header {
    padding: 10px 14px;
  }

  /* 優化觸控目標 */
  .mobile-bottom-buttons .btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* 搜索框優化 */
  .search-top-container {
    padding: 12px;
  }
}

/* ========== 平板優化 (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 平板版 Logo */
  .logo-mobile {
    max-height: 58px !important;
  }

  /* 平板版選單 */
  .mobile-menu-list button {
    padding: 14px 20px;
    font-size: 16px;
  }

  /* 平板版底部按鈕 */
  .mobile-bottom-buttons .btn {
    width: 50px;
    height: 50px;
  }
}

/* 檔案結尾 - Navbar.css */
/* ========================================
   導航欄核心樣式 - CSS Modules 版本
   ======================================== */

/* 導航欄定位 - 確保在跑馬燈下方且無空隙 */
.navbar_navbarBelowMarquee__67oyK {
  top: 36px;
  width: 100%;
  position: fixed !important;
  z-index: var(--z-ui-sticky);
  height: auto !important;
  min-height: auto;
  transition: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  margin: 0 !important;
  border: none !important;
  /* 毛玻璃效果 - Glassmorphism */
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
}

/* 覆蓋全域 .navbar 的最小高度設定，避免被撐高 */
.navbar_navbarBelowMarquee__67oyK.navbar_navbar__QZf9E {
  min-height: auto;
}

/* 基本導航欄樣式 */
.navbar_navLink__ZT0-H {
  color: var(--color-black);
  font-weight: 500;
  margin: 0 4px;
  padding: 8px 12px !important;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px;
  line-height: 1.2;
}

.navbar_navLink__ZT0-H:hover {
  color: var(--color-white) !important;
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(190, 31, 72, 0.3);
  transform: translateY(-2px);
}

.navbar_navLink__ZT0-H::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-white);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0;
}

.navbar_navLink__ZT0-H:hover::after {
  width: 80%;
  opacity: 1;
}

/* Logo 樣式 */
.navbar_logoDesktop__n9MPx {
  height: auto;
  max-height: 42px;
  width: auto; /* 改為自動寬度 */
  max-width: clamp(120px, 15vw, 180px); /* 響應式最大寬度，最小120px，最大180px */
  object-fit: contain;
  display: block;
  /* 確保圖片不會被切到 */
  overflow: visible;
  /* 保持寬高比 */
  aspect-ratio: auto;
  /* 確保不變形 */
  min-width: 120px;
}

.navbar_logoMobile__4oEpl {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: clamp(180px, 35vw, 220px); /* 響應式最大寬度，最小180px，最大220px */
  object-fit: contain;
  display: block;
  /* 確保圖片不會被切到 */
  overflow: visible;
  /* 響應式縮放 */
  min-width: 180px;
  min-height: 0;
  /* 保持寬高比 */
  aspect-ratio: auto;
}

.navbar_logoSidebar__jESo9 {
  height: auto; /* 高度彈性 */
  width: 100px; /* 固定寬度 100px */
  object-fit: contain;
  display: block;
}

/* 側邊固定按鈕 */
.navbar_sidebarButtons__flqzI {
  position: fixed !important;
  right: 20px !important;
  bottom: 80px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  z-index: var(--z-ui-floating-button) !important; /* 統一 z-index 系統：UI 浮動按鈕層級 */
  pointer-events: auto !important;
  transform: none !important;
}

.navbar_sidebarButton__UPdVb {
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
  background-color: #FFE4E1 !important;
  border-color: #FFE4E1 !important;
  color: #fff !important;
  position: relative !important;
  z-index: var(--z-ui-floating-button) !important; /* 統一 z-index 系統：UI 浮動按鈕層級 */
  margin: 2px 0 !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/* 按鈕懸停效果 */
.navbar_sidebarButton__UPdVb:hover {
  background-color: #FFB6C1 !important;
  border-color: #FFB6C1 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* 按鈕點擊效果 */
.navbar_sidebarButton__UPdVb:active {
  transform: scale(0.95) !important;
  transition: all 0.1s ease !important;
}

/* 確保按鈕內的圖標居中 */
.navbar_sidebarButton__UPdVb > * {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 確保 CSS Module 的樣式不會影響到 modal */
.modal .navbar_sidebarButton__UPdVb,
.modal-content .navbar_sidebarButton__UPdVb,
.modal-body .navbar_sidebarButton__UPdVb {
  display: none !important;
}

.navbar_sidebarButton__UPdVb svg {
  color: #fff !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  display: block !important;
  pointer-events: none !important;
}

/* 針對 FontAwesome 圖標的特殊處理 */
.navbar_sidebarButton__UPdVb svg[data-icon] {
  fill: currentColor !important;
}

/* 針對內聯 SVG 的特殊處理 */
.navbar_sidebarButton__UPdVb svg[viewBox] {
  display: block !important;
  fill: none !important;
}

/* 確保 SVG 路徑正確顯示 */
.navbar_sidebarButton__UPdVb svg path,
.navbar_sidebarButton__UPdVb svg rect {
  pointer-events: none !important;
}

/* 修復可能的 SVG 渲染問題 */
.navbar_sidebarButton__UPdVb svg {
  shape-rendering: auto !important;
  image-rendering: auto !important;
}

/* Material-UI 圖標按鈕樣式 */
.navbar_shoppingCartIcon__bkdlC {
  margin: 0 10px;
  position: relative;
  overflow: visible;
  padding: 8px;
}

.navbar_shoppingCartIcon__bkdlC svg {
  color: var(--color-gray-900);
  transition: all 0.2s ease;
}

.navbar_shoppingCartIcon__bkdlC:hover svg {
  color: #ff6b98;
  transform: scale(1.1);
}

.navbar_shoppingCartIcon__bkdlC:hover {
  background-color: rgba(255, 107, 152, 0.1);
}

/* 確保 badge 本身有正確的定位和大小 */
.navbar_shoppingCartIcon__bkdlC .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  z-index: var(--z-normal);
  transform: none;
}

.navbar_userIcon__xLbdf {
  margin: 0 5px !important;
}

.navbar_userIcon__xLbdf svg {
  color: var(--color-gray-900);
  transition: all 0.2s ease;
}

.navbar_userIcon__xLbdf:hover svg {
  color: #ff6b98;
  transform: scale(1.1);
}

.navbar_userIcon__xLbdf:hover {
  background-color: rgba(255, 107, 152, 0.1);
}

/* 手機版側邊選單樣式 */
.navbar_mobileSidebar__gg3ke {
  width: 280px !important;
}

.navbar_mobileSidebarHeader__EJf4z {
  padding: 15px;
  border-bottom: 1px solid var(--color-gray-200);
}

.navbar_mobileMenu__KeGeF {
  display: flex;
  flex-direction: column;
}

.navbar_mobileMenuSection__1RuW0 {
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0;
}

.navbar_mobileMenuTitle__RcvSI {
  font-weight: bold;
  padding: clamp(12px, 2.5vw, 15px);
  margin: 0;
  color: var(--color-gray-900);
  font-size: 12pt;
}

.navbar_mobileMenuList__ZBK\+r {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar_mobileMenuList__ZBK\+r li {
  margin: 0;
  padding: 0;
}

.navbar_mobileMenuButton__JzSMe {
  display: block;
  width: 100%;
  text-align: left;
  padding: clamp(10px, 2vw, 14px) clamp(14px, 3vw, 18px);
  background: transparent;
  border: none;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(13px, 2.2vw, 14px);
  min-height: clamp(40px, 7vw, 48px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.navbar_mobileMenuButton__JzSMe:hover {
  background-color: #f0f8ff;
  transform: translateX(2px);
  border-left: 3px solid var(--color-primary);
}

.navbar_mobileMenuButton__JzSMe:active {
  transform: scale(0.98);
  background-color: #e6f3ff;
}

/* 移動端分類樣式 */
.navbar_mobileCategoryContainer__SglkJ {
  margin-bottom: 8px;
}

.navbar_mobileCategoryHeader__YnCQO {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-gray-200);
  background-color: var(--naily-gray-50);
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar_mobileCategoryHeader__YnCQO:hover {
  background-color: var(--naily-gray-200);
  transform: translateY(-1px);
}

.navbar_mobileCategoryTitle__BOIfN {
  font-weight: 700;
  color: var(--naily-gray-800);
  font-size: 12pt;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Noto Sans TC', 'Noto Sans', sans-serif;
}

.navbar_mobileCategoryIcon__ireRA {
  color: var(--color-primary);
  font-size: clamp(12px, 2vw, 14px);
  transition: all 0.3s ease;
}

.navbar_mobileSubcategoryContainer__SqzP9 {
  background-color: var(--color-gray-50);
  border-radius: 0 0 8px 8px;
  margin-top: 1px;
  border-left: 2px solid var(--color-primary);
  box-shadow: inset 0 2px 4px rgba(255, 107, 152, 0.1);
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.navbar_mobileSubcategoryContainer__SqzP9.navbar_expanded__1nNEV {
  max-height: 300px;
}

.navbar_mobileSubcategoryContainer__SqzP9.navbar_collapsed__nprfc {
  max-height: 0;
}

.navbar_mobileSubcategoryList__j8FhA {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar_mobileSubcategoryButton__mBvWb {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  padding: clamp(6px, 1vw, 8px) 0;
  color: var(--color-gray-500);
  font-size: clamp(10px, 1.8vw, 12px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.navbar_mobileSubcategoryButton__mBvWb:hover {
  background-color: var(--naily-gray-50);
  transform: translateX(4px);
}

/* 社交媒体图标 */
.navbar_mobileSocialIcons__bsPBr {
  display: flex;
  justify-content: center;
  padding: 25px 0;
  gap: 20px;
}

.navbar_socialIcon__S77hw {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  transition: all 0.3s ease;
  cursor: pointer;
}

.navbar_socialIcon__S77hw:hover {
  background-color: var(--color-gray-100);
  color: #ff6b98;
}

/* 底部APP下载 */
.navbar_mobileAppDownload__hB9s6 {
  margin: 10px 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: var(--color-gray-50);
}

/* 手機版搜索框样式 */
.navbar_mobileSearchOffcanvas__Zw356 {
  height: 100vh !important;
  background-color: transparent !important;
  transition: all 0.3s ease-in-out;
}

.navbar_mobileSearchIcon__RTzqU {
  transition: all 0.2s ease;
  position: relative;
}

.navbar_mobileSearchIcon__RTzqU:hover {
  background-color: rgba(255, 107, 152, 0.1);
  transform: scale(1.05);
}

/* 手機版搜尋圖標顏色 - 設定為黑色 */
.navbar_mobileSearchIcon__RTzqU svg {
  color: var(--color-black) !important;
  fill: var(--color-black) !important;
}

.navbar_mobileSearchIcon__RTzqU:hover svg {
  color: var(--color-black) !important;
  fill: var(--color-black) !important;
}

.navbar_searchTopContainer__IJEf1 {
  padding: 15px;
  width: 100%;
  height: auto;
  background: var(--color-primary);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 152, 0.3);
}

.navbar_searchBackdropClickArea__YEaKs {
  height: calc(100% - 66px);
  width: 100%;
  cursor: pointer;
}

/* 移動端底部固定按鈕 */
.navbar_mobileBottomButtons__EQwTF {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: var(--z-modal) !important;
  pointer-events: auto !important;
  transform: none !important;
}

.navbar_mobileBottomButtons__EQwTF button {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: none;
  transition: all 0.3s ease;
  margin: 4px 0;
}

.navbar_mobileBottomButtons__EQwTF button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* 移動端底部展開菜單 */
.navbar_mobileBottomMenu__S84Mo {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-ui-fixed);
}

/* 背景遮罩 - 淡入效果 */
.navbar_mobileBottomMenuBackdrop__wn8K6 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
  animation: navbar_fadeIn__sRbZv 0.25s ease-out forwards;
}

@keyframes navbar_fadeIn__sRbZv {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 菜單內容區 - 滑入效果 */
.navbar_mobileBottomMenuContent__TJZ1u {
  background-color: var(--color-white);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  animation: navbar_slideUpContent__LSpPB 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navbar_slideUpContent__LSpPB {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 菜單項目 - 交錯淡入動畫 */
.navbar_menuItem__MZqie {
  width: 80px;
  cursor: pointer;
  transition: transform 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: navbar_menuItemFadeIn__SeG94 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 第一排項目 - 交錯延遲 */
.navbar_menuItem__MZqie:nth-child(1) { animation-delay: 0.1s; }
.navbar_menuItem__MZqie:nth-child(2) { animation-delay: 0.15s; }
.navbar_menuItem__MZqie:nth-child(3) { animation-delay: 0.2s; }

@keyframes navbar_menuItemFadeIn__SeG94 {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar_menuItem__MZqie:hover {
  transform: translateY(-3px) scale(1.05);
}

.navbar_menuItem__MZqie:active {
  transform: scale(0.95);
}

/* 菜單圖標 - 微動畫效果 */
.navbar_menuIcon__BkWFD {
  background-color: var(--color-gray-50);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: all 0.25s ease;
}

.navbar_menuItem__MZqie:hover .navbar_menuIcon__BkWFD {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(190, 31, 72, 0.3);
}

.navbar_menuItem__MZqie:hover .navbar_menuIcon__BkWFD svg,
.navbar_menuItem__MZqie:hover .navbar_menuIcon__BkWFD img {
  filter: brightness(0) invert(1);
}

.navbar_menuText__Z7wCh {
  color: var(--color-gray-900);
  font-size: 12px;
  text-align: center;
  transition: color 0.25s ease;
}

.navbar_menuItem__MZqie:hover .navbar_menuText__Z7wCh {
  color: var(--primary-color);
  font-weight: 500;
}

/* 響應式 top 值 - 配合 marquee 高度 */
@media (max-width: 768px) {
  .navbar_navbarBelowMarquee__67oyK {
    top: 40px;
  }
}

@media (max-width: 480px) {
  .navbar_navbarBelowMarquee__67oyK {
    top: 46px;
  }
}

/* NEW 徽章 - 客製化設計連結旁的小標籤 */
.navbar_newBadge__RtOy1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #BE1F48;
  background-color: var(--primary-color, #BE1F48);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Noto Sans TC', 'Noto Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 客製化設計連結 - 桌面版 */
.navbar_customDesignLink__XbG9v {
  color: var(--color-black);
  font-weight: 500;
  margin: 0 4px;
  padding: 8px 12px !important;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Noto Sans TC', 'Noto Sans' !important;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border-radius: 6px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px;
  line-height: 1.2;
}

.navbar_customDesignLink__XbG9v:hover {
  color: var(--color-white) !important;
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(190, 31, 72, 0.3);
  transform: translateY(-2px);
}

.navbar_customDesignLink__XbG9v:hover .navbar_newBadge__RtOy1 {
  background-color: #ffffff;
  color: #BE1F48;
  color: var(--primary-color, #BE1F48);
}

/* Mobile sidebar NEW badge */
.navbar_newBadgeMobile__xUA9d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #BE1F48;
  background-color: var(--primary-color, #BE1F48);
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 8px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Noto Sans TC', 'Noto Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 內容區域佔位符 */

.navbar_contentSpacer__kaeJC {

  height: calc(var(--navbar-height) - 10px);

  min-height: 96px;

}
/**
 * ========================================
 * Navbar 專屬變數模組 - CSS Module
 * ========================================
 * 
 * 此模組包含 Navbar 組件專用的顏色變數和樣式
 * 使用 CSS Modules 確保變數作用域隔離
 * 避免與全域變數系統衝突
 */

/* Navbar 專屬變數作用域 */
.navbar-variables_navbarScope__kbLnr {
  /* ===== Navbar 品牌色彩系統 ===== */
  --navbar-primary: var(--primary-color);           /* 主色調 - 深紅色 */
  --navbar-primary-dark: var(--primary-dark);      /* 深色變種 - 更深的紅 */
  --navbar-primary-light: #D4477A;     /* 淺色變種 - 較亮的紅 */
  --navbar-primary-lighter: #E8709C;   /* 最淺變種 */
  --navbar-secondary: #8B1538;         /* 次要色 - 暗紅色 */
  --navbar-accent: #F2C2D0;            /* 強調色 - 淺粉紅 */
  
  /* ===== Navbar 中性色調 ===== */
  --navbar-gray-dark: #2D1B1F;         /* 深灰紅 */
  --navbar-gray: #6C5A5E;              /* 中灰紅 */
  --navbar-gray-light: #F8F6F7;        /* 淺灰紅 */
  --navbar-white: #FFFFFF;             /* 純白 */
  
  /* ===== Navbar 語意化顏色 ===== */
  --navbar-success: #28a745;           /* 成功綠 */
  --navbar-warning: #ffc107;           /* 警告黃 */
  --navbar-error: #dc3545;             /* 錯誤紅 */
  
  /* ===== Navbar 漸變系統 ===== */
  --navbar-gradient-primary: linear-gradient(135deg, var(--navbar-primary) 0%, var(--navbar-primary-dark) 100%);
  --navbar-gradient-hover: linear-gradient(135deg, var(--navbar-primary-light) 0%, var(--navbar-primary) 100%);
  --navbar-gradient-soft: linear-gradient(135deg, var(--navbar-accent) 0%, var(--navbar-gray-light) 100%);
  
  /* ===== Navbar Z-index 系統 ===== */
  --navbar-z-base: 1000;
  --navbar-z-dropdown: 1010;
  --navbar-z-sticky: 1020;
  --navbar-z-modal: 1030;
  
  /* ===== Navbar 間距系統 ===== */
  --navbar-padding-xs: 0.25rem;
  --navbar-padding-sm: 0.5rem;
  --navbar-padding-md: 0.75rem;
  --navbar-padding-lg: 1rem;
  --navbar-padding-xl: 1.5rem;
  
  /* ===== Navbar 字體系統 ===== */
  --navbar-font-size-xs: 0.75rem;      /* 12px */
  --navbar-font-size-sm: 0.875rem;     /* 14px */
  --navbar-font-size-base: 1rem;       /* 16px */
  --navbar-font-size-lg: 1.125rem;     /* 18px */
  --navbar-font-weight-normal: 400;
  --navbar-font-weight-medium: 500;
  --navbar-font-weight-semibold: 600;
  --navbar-font-weight-bold: 700;
}

/* ===== 專屬的 Primary 按鈕樣式 ===== */
.navbar-variables_navbarScope__kbLnr .navbar-variables_btn-primary__QIyJo,
.navbar-variables_navbarScope__kbLnr .navbar-variables_btn__h-oVv.navbar-variables_btn-primary__QIyJo,
.navbar-variables_navbarScope__kbLnr button.navbar-variables_btn-primary__QIyJo {
  background: var(--navbar-primary);
  background-color: var(--navbar-primary);
  background-image: none;
  border-color: var(--navbar-primary);
  color: var(--navbar-white);
}

.navbar-variables_navbarScope__kbLnr .navbar-variables_btn-primary__QIyJo:hover,
.navbar-variables_navbarScope__kbLnr .navbar-variables_btn__h-oVv.navbar-variables_btn-primary__QIyJo:hover,
.navbar-variables_navbarScope__kbLnr button.navbar-variables_btn-primary__QIyJo:hover {
  background: var(--navbar-primary-dark);
  background-color: var(--navbar-primary-dark);
  border-color: var(--navbar-primary-dark);
  color: var(--navbar-white);
}

.navbar-variables_navbarScope__kbLnr .navbar-variables_btn-primary__QIyJo:focus,
.navbar-variables_navbarScope__kbLnr .navbar-variables_btn__h-oVv.navbar-variables_btn-primary__QIyJo:focus,
.navbar-variables_navbarScope__kbLnr button.navbar-variables_btn-primary__QIyJo:focus {
  background: var(--navbar-primary);
  background-color: var(--navbar-primary);
  border-color: var(--navbar-primary);
  color: var(--navbar-white);
  box-shadow: 0 0 0 3px rgba(190, 31, 72, 0.25);
}

.navbar-variables_navbarScope__kbLnr .navbar-variables_btn-primary__QIyJo:active,
.navbar-variables_navbarScope__kbLnr .navbar-variables_btn__h-oVv.navbar-variables_btn-primary__QIyJo:active,
.navbar-variables_navbarScope__kbLnr button.navbar-variables_btn-primary__QIyJo:active {
  background: var(--navbar-secondary);
  background-color: var(--navbar-secondary);
  border-color: var(--navbar-secondary);
  color: var(--navbar-white);
}

/* ===== Navbar 連結樣式 ===== */
.navbar-variables_navbarScope__kbLnr .navbar-variables_nav-link__ZExVF:hover {
  background-color: var(--navbar-primary);
  color: var(--navbar-white);
}

/* ===== Navbar 品牌樣式 ===== */
.navbar-variables_navbarScope__kbLnr .navbar-variables_navbar-brand__OIKtP:hover {
  color: var(--navbar-primary);
}

/* ===== Navbar 邊框和裝飾 ===== */
.navbar-variables_navbarScope__kbLnr .navbar-variables_border-accent__6dj\+N {
  border-color: var(--navbar-accent);
}

.navbar-variables_navbarScope__kbLnr .navbar-variables_border-primary__lwLh- {
  border-color: var(--navbar-primary);
}

.navbar-variables_navbarScope__kbLnr .navbar-variables_text-primary__-AHgs {
  color: var(--navbar-primary);
}

.navbar-variables_navbarScope__kbLnr .navbar-variables_bg-primary__JxKN1 {
  background-color: var(--navbar-primary);
}

/* ===== 響應式設計點 ===== */
@media (max-width: 991.98px) {
  .navbar-variables_navbarScope__kbLnr {
    --navbar-font-size-base: 0.875rem;
    --navbar-padding-md: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-variables_navbarScope__kbLnr {
    --navbar-font-size-base: 0.8125rem;
    --navbar-padding-md: 0.375rem;
  }
}
/* 側邊按鈕容器 */
.sidebar-buttons_sidebarButtons__aStTc {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: var(--z-ui-floating-button); /* 統一 z-index 系統：UI 浮動按鈕層級 */
  pointer-events: auto;
  transform: none;
}

/* 使用更高權重的選擇器來覆蓋 Bootstrap 樣式 - 四次重複類名提供足夠權重 */
.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  max-width: 50px;
  max-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: #FFE4E1;
  background-color: #FFE4E1;
  background-image: none;
  border-color: #FFE4E1;
  border: 2px solid #FFE4E1;
  color: #666;
  position: relative;
  z-index: var(--z-ui-floating-button); /* 統一 z-index 系統：UI 浮動按鈕層級 */
  margin: 2px 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button:hover {
  background: #FFB6C1;
  background-color: #FFB6C1;
  background-image: none;
  border-color: #FFB6C1;
  border: 2px solid #FFB6C1;
  color: #666;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button:focus {
  background: #FFB6C1;
  background-color: #FFB6C1;
  background-image: none;
  border-color: #FFB6C1;
  border: 2px solid #FFB6C1;
  color: #666;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  outline: none;
}

.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button:active {
  background: #FFB6C1;
  background-color: #FFB6C1;
  background-image: none;
  border-color: #FFB6C1;
  border: 2px solid #FFB6C1;
  color: #666;
  transform: scale(0.95);
}

.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button.sidebar-pink-button:not(:disabled):not(.disabled):active {
  background: #FFB6C1;
  background-color: #FFB6C1;
  background-image: none;
  border-color: #FFB6C1;
}

/* 品牌預註冊按鈕樣式 */
.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button {
  border-radius: 50%;
  width: 55px;
  height: 55px;
  min-width: 55px;
  min-height: 55px;
  max-width: 55px;
  max-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(233, 102, 135, 0.4);
  background: linear-gradient(135deg, var(--naily-accent-light) 0%, #d946ef 100%);
  background-color: var(--naily-accent-light);
  background-image: linear-gradient(135deg, var(--naily-accent-light) 0%, #d946ef 100%);
  border: 3px solid #ffffff;
  border-color: #ffffff;
  color: white;
  position: relative;
  z-index: var(--z-ui-floating-button); /* 統一 z-index 系統：UI 浮動按鈕層級 */
  margin: 4px 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: sidebar-buttons_brandButtonPulse__vowsD 3s infinite;
}

.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button:hover {
  background: linear-gradient(135deg, #d946ef 0%, #fbbf24 100%);
  background-color: #d946ef;
  background-image: linear-gradient(135deg, #d946ef 0%, #fbbf24 100%);
  border-color: #fbbf24;
  border: 3px solid #fbbf24;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(233, 102, 135, 0.6);
  animation: none;
}

.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button:focus {
  background: linear-gradient(135deg, var(--naily-accent-light) 0%, #d946ef 100%);
  background-color: var(--naily-accent-light);
  background-image: linear-gradient(135deg, var(--naily-accent-light) 0%, #d946ef 100%);
  border-color: #ffffff;
  border: 3px solid #ffffff;
  color: white;
  box-shadow: 0 0 0 4px rgba(233, 102, 135, 0.3);
  outline: none;
}

.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button:active {
  background: linear-gradient(135deg, var(--naily-accent-light) 0%, #d946ef 100%);
  background-color: var(--naily-accent-light);
  background-image: linear-gradient(135deg, var(--naily-accent-light) 0%, #d946ef 100%);
  border-color: #ffffff;
  border: 3px solid #ffffff;
  color: white;
  transform: scale(1.05);
}

/* 品牌按鈕脈衝動畫 */
@keyframes sidebar-buttons_brandButtonPulse__vowsD {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(233, 102, 135, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(233, 102, 135, 0.6);
  }
}

/* 響應式設計 */
@media (max-width: 991.98px) {
  .sidebar-buttons_sidebarButtons__aStTc {
    display: none;
  }
}

@media (min-width: 992px) {
  .sidebar-buttons_sidebarButtons__aStTc {
    display: flex;
  }
}

/* 減動偏好設定支持 */
@media (prefers-reduced-motion: reduce) {
  .sidebar-brand-button.sidebar-brand-button.sidebar-brand-button.sidebar-brand-button {
    animation: none;
  }
}
/* ============================================
   Mobile Sidebar - Prada Luxury Style
   Naily 品牌漢堡選單側邊欄
   ============================================ */

/* 主容器 - Prada 極簡風格 */
.mobile-sidebar_mobileSidebar__gLfXM {
  width: 300px;
  background-color: #ffffff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Header - 頂部品牌區
   ============================================ */
.mobile-sidebar_offcanvasHeader__Xmnan {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  background-color: #ffffff;
}

.mobile-sidebar_offcanvasTitle__Qkzls {
  display: flex;
  align-items: center;
}

.mobile-sidebar_logoSidebar__q3Y-c {
  max-height: 26px;
  width: auto;
}

/* ============================================
   Body - 主內容區
   ============================================ */
.mobile-sidebar_offcanvasBody__kYe7X {
  padding: 0;
  background-color: #fafafa;
}

.mobile-sidebar_mobileMenu__uZ7rF {
  padding: 0;
}

/* ============================================
   Section - 分區樣式
   ============================================ */
.mobile-sidebar_mobileMenuSection__KfTu5 {
  margin: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-sidebar_mobileMenuSection__KfTu5:last-of-type {
  border-bottom: none;
}

/* 區塊標題 - Prada 極簡大寫風格 */
.mobile-sidebar_mobileMenuTitle__d0E2u {
  font-size: 0.7rem;
  font-weight: 600;
  color: #999999;
  padding: 0.875rem 1.5rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  background-color: #fafafa;
}

/* ============================================
   Menu List - 選單列表
   ============================================ */
.mobile-sidebar_mobileMenuList__g5gG\+ {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-sidebar_mobileMenuList__g5gG\+ li {
  border-bottom: 1px solid #f5f5f5;
}

.mobile-sidebar_mobileMenuList__g5gG\+ li:last-child {
  border-bottom: none;
}

/* ============================================
   Menu Button - 選單按鈕
   ============================================ */
.mobile-sidebar_mobileMenuButton__12eRP {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  cursor: pointer;
}

.mobile-sidebar_mobileMenuButton__12eRP:hover {
  background-color: #fafafa;
  color: var(--primary-color);
  padding-left: 1.75rem;
}

.mobile-sidebar_mobileMenuButton__12eRP:active {
  background-color: #f5f5f5;
}

/* 圖標樣式 */
.mobile-sidebar_mobileMenuButton__12eRP .mobile-sidebar_icon__3H\+v0 {
  margin-right: 1rem;
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mobile-sidebar_mobileMenuButton__12eRP:hover .mobile-sidebar_icon__3H\+v0 {
  opacity: 1;
}

/* 帳戶按鈕特殊樣式 */
.mobile-sidebar_mobileAccountButton__OnsWv {
  color: var(--primary-color);
  font-weight: 500;
}

.mobile-sidebar_mobileAccountButton__OnsWv:hover {
  background-color: rgba(190, 31, 72, 0.05);
  color: #8B1636;
}

.mobile-sidebar_mobileAccountButton__OnsWv .mobile-sidebar_icon__3H\+v0 {
  color: var(--primary-color);
  opacity: 1;
}

/* ============================================
   Category - 分類展開樣式
   ============================================ */
.mobile-sidebar_mobileCategoryContainer__3YT6I {
  padding: 0;
}

.mobile-sidebar_mobileCategoryItem__yUxse {
  padding: 0;
}

.mobile-sidebar_mobileCategoryHeader__llJD9 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sidebar_mobileCategoryHeader__llJD9:hover {
  background-color: #fafafa;
  color: var(--primary-color);
}

.mobile-sidebar_mobileCategoryTitle__vWmTp {
  font-weight: 400;
  letter-spacing: 0.5px;
}

.mobile-sidebar_mobileCategoryIcon__8bbvG {
  font-size: 0.75rem;
  color: #999999;
  transition: transform 0.3s ease, color 0.2s ease;
}

.mobile-sidebar_mobileCategoryHeader__llJD9:hover .mobile-sidebar_mobileCategoryIcon__8bbvG {
  color: var(--primary-color);
}

/* 子分類容器 */
.mobile-sidebar_mobileSubcategoryContainer__nxtQw {
  padding-left: 0;
  background-color: #fafafa;
  border-left: 2px solid var(--primary-color);
  margin-left: 1.5rem;
}

.mobile-sidebar_mobileSubcategoryList__Y6-MP {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-sidebar_mobileSubcategoryItem__UF43T {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-sidebar_mobileSubcategoryItem__UF43T:last-child {
  border-bottom: none;
}

.mobile-sidebar_mobileSubcategoryButton__dyiTW {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #666666;
  letter-spacing: 0.3px;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mobile-sidebar_mobileSubcategoryButton__dyiTW:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* ============================================
   Social Icons - 社群媒體
   ============================================ */
.mobile-sidebar_mobileSocialIcons__\+Ujtn {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.mobile-sidebar_socialIcon__n-5SE {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mobile-sidebar_socialIcon__n-5SE:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.mobile-sidebar_socialIcon__n-5SE img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ============================================
   App Download - 應用下載區
   ============================================ */
.mobile-sidebar_mobileAppDownload__kZDFK {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-sidebar_mobileAppDownload__kZDFK:hover {
  background-color: var(--primary-color);
}

.mobile-sidebar_mobileAppDownload__kZDFK .mobile-sidebar_app-icon__oG33L {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 0.75rem;
}

.mobile-sidebar_mobileAppDownload__kZDFK span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   Loading State - 載入狀態
   ============================================ */
.mobile-sidebar_mobileMenuLoading__gCmdg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  color: #999999;
  font-size: 0.85rem;
}

.mobile-sidebar_loadingSpinner__jT65T {
  border: 2px solid #f0f0f0;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: mobile-sidebar_spin__XxnBz 0.8s linear infinite;
  margin-right: 0.75rem;
}

@keyframes mobile-sidebar_spin__XxnBz {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   RWD - 響應式設計
   ============================================ */

/* 小螢幕手機 */
@media (max-width: 375px) {
  .mobile-sidebar_mobileSidebar__gLfXM {
    width: 280px;
  }

  .mobile-sidebar_mobileMenuButton__12eRP {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .mobile-sidebar_mobileMenuTitle__d0E2u {
    padding: 0.75rem 1.25rem 0.4rem;
    font-size: 0.65rem;
  }

  .mobile-sidebar_mobileCategoryHeader__llJD9 {
    padding: 0.875rem 1.25rem;
  }

  .mobile-sidebar_mobileSubcategoryContainer__nxtQw {
    margin-left: 1.25rem;
  }

  .mobile-sidebar_mobileSubcategoryButton__dyiTW {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }

  .mobile-sidebar_socialIcon__n-5SE {
    width: 40px;
    height: 40px;
  }

  .mobile-sidebar_socialIcon__n-5SE img {
    width: 20px;
    height: 20px;
  }
}

/* 極小螢幕 */
@media (max-width: 320px) {
  .mobile-sidebar_mobileSidebar__gLfXM {
    width: 260px;
  }

  .mobile-sidebar_mobileMenuButton__12eRP {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .mobile-sidebar_mobileMenuButton__12eRP .mobile-sidebar_icon__3H\+v0 {
    margin-right: 0.75rem;
    font-size: 0.85rem;
  }

  .mobile-sidebar_mobileSocialIcons__\+Ujtn {
    gap: 1rem;
    padding: 1rem;
  }

  .mobile-sidebar_socialIcon__n-5SE {
    width: 36px;
    height: 36px;
  }

  .mobile-sidebar_socialIcon__n-5SE img {
    width: 18px;
    height: 18px;
  }
}

/* 觸控設備優化 */
@media (hover: none) and (pointer: coarse) {
  .mobile-sidebar_mobileMenuButton__12eRP {
    min-height: 48px;
  }

  .mobile-sidebar_mobileMenuButton__12eRP:hover {
    padding-left: 1.5rem;
  }

  .mobile-sidebar_mobileCategoryHeader__llJD9 {
    min-height: 48px;
  }

  .mobile-sidebar_mobileSubcategoryButton__dyiTW {
    min-height: 44px;
  }

  .mobile-sidebar_mobileSubcategoryButton__dyiTW:hover {
    padding-left: 1.25rem;
  }
}

/* Enhanced Navigation Dropdown Styles */
.enhanced-nav-dropdown {
  position: relative;
  display: inline-block;
  margin: 0 4px;
}

/* 創建隱形橋樑避免 hover 間隙問題 */
.enhanced-nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 4px; /* 小間隙高度，覆蓋按鈕和下拉選單之間的空隙 */
  background: transparent;
  pointer-events: auto;
  z-index: var(--z-low);
}

/* 確保與現有導覽列樣式一致 */
.navbar-nav .enhanced-nav-dropdown {
  margin: 0 4px;
}

@media (max-width: 1199.98px) {
  .navbar-nav .enhanced-nav-dropdown {
    margin: 0 2px;
  }
}

.enhanced-dropdown-toggle {
  background: none;
  border: none;
  color: var(--naily-gray-dark);
  font-weight: 500;
  font-family: 'Noto Sans TC', 'Noto Sans', sans-serif;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: clamp(12px, 1.2vw, 16px);
}

.enhanced-dropdown-toggle:hover {
  color: var(--naily-white);
  background-color: var(--naily-primary);
  box-shadow: 0 4px 12px rgba(190, 31, 72, 0.3);
}

.enhanced-dropdown-toggle::after {
  display: none;
}

.enhanced-dropdown-toggle:before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--naily-primary);
  transition: width 0.25s ease, opacity 0.25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0;
}

.enhanced-dropdown-toggle:hover:before {
  width: 80%;
  opacity: 1;
}

/* Enhanced Dropdown Menu - 修復可見性和z-index */
.enhanced-dropdown-menu {
  background: var(--naily-white);
  border: none;
  border-radius: clamp(12px, 2vw, 16px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 0;
  margin-top: 0px; /* 移除 margin-top 避免間隙 */
  min-width: clamp(280px, 30vw, 320px);
  max-width: clamp(360px, 40vw, 400px);
  overflow: visible;
  -webkit-backdrop-filter: blur(20px);

  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: dropdownFadeIn 0.3s ease;
  /* 使用統一 z-index 系統 */
  z-index: var(--z-dropdown);
  position: absolute;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Header */
.dropdown-header {
  padding: clamp(16px, 3vw, 24px) clamp(16px, 2.5vw, 20px) clamp(12px, 2vw, 16px);
  background: linear-gradient(135deg, var(--color-primary), #ff6b98);
  color: var(--naily-white);
  position: relative;
  overflow: hidden;
}

.dropdown-header::before {
  display: none;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  -webkit-backdrop-filter: blur(10px);

  backdrop-filter: blur(10px);
}

.user-avatar svg {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--naily-white);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-status {
  font-size: 14pt;
  font-weight: 600;
  margin: 0;
}

.user-welcome {
  font-size: clamp(12px, 1.8vw, 14px);
  opacity: 0.9;
  margin: 0;
}

.menu-title {
  font-size: 14pt;
  font-weight: 700;
  margin-bottom: clamp(2px, 0.5vw, 4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-subtitle {
  font-size: clamp(12px, 1.8vw, 14px);
  opacity: 0.9;
  margin: 0;
}

/* Dropdown Sections */
.dropdown-section {
  padding: clamp(12px, 2vw, 16px) clamp(8px, 1.5vw, 12px);
  border-bottom: 1px solid var(--color-gray-100);
}

.dropdown-section:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}

.section-title {
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 700;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  padding: 0 clamp(6px, 1vw, 8px);
}

/* Enhanced Dropdown Items */
.dropdown-item-enhanced {
  display: flex;
  align-items: center;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
  margin: clamp(2px, 0.5vw, 4px) 0;
  border-radius: clamp(8px, 1.5vw, 12px);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--color-gray-900);
}

.dropdown-item-enhanced:hover {
  background-color: rgba(190, 31, 72, 0.07);
  color: var(--naily-primary);
}

.dropdown-item-enhanced:active {
  background-color: rgba(190, 31, 72, 0.12);
}

.item-icon {
  width: clamp(16px, 2.5vw, 20px);
  height: clamp(16px, 2.5vw, 20px);
  margin-right: clamp(8px, 1.5vw, 12px);
  font-size: clamp(14px, 2vw, 16px);
  color: var(--color-primary);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.dropdown-item-enhanced:hover .item-icon {
  color: var(--naily-primary);
}

.item-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.item-title {
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.item-subtitle {
  font-size: clamp(10px, 1.5vw, 12px);
  opacity: 0.6;
  line-height: 1.2;
  margin: 0;
}

.item-badge {
  background-color: var(--naily-primary);
  color: var(--naily-white);
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  padding: clamp(3px, 0.5vw, 4px) clamp(6px, 1vw, 8px);
  border-radius: clamp(8px, 1.5vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: clamp(6px, 1vw, 8px);
  flex-shrink: 0;
}

/* Special Item Styles */
.dropdown-item-enhanced.featured {
  background: linear-gradient(135deg, rgba(255, 107, 152, 0.1), rgba(255, 154, 158, 0.1));
  border: 1px solid rgba(255, 107, 152, 0.2);
}

.dropdown-item-enhanced.premium {
  position: relative;
  overflow: hidden;
}

.dropdown-item-enhanced.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.dropdown-item-enhanced.premium:hover::before {
  left: 100%;
}

.dropdown-item-enhanced.admin-item .item-icon {
  color: var(--naily-primary);
}

.dropdown-item-enhanced.logout-item .item-icon {
  color: #888;
}

.dropdown-item-enhanced.logout-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* Dropdown Divider */
.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray-300), transparent);
  margin: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
  border: none;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: clamp(8px, 1.5vw, 12px);
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(6px, 1vw, 8px);
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 2vw, 16px) clamp(6px, 1vw, 8px);
  border-radius: clamp(8px, 1.5vw, 12px);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--naily-gray-50);
  border: 1px solid var(--naily-gray-200);
  text-decoration: none;
  color: var(--color-gray-900);
}

.category-item:hover {
  background: linear-gradient(135deg, var(--color-primary), #ff6b98);
  color: var(--naily-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(190, 31, 72, 0.25);
  border-color: transparent;
}

.category-icon {
  width: clamp(32px, 5vw, 40px);
  height: clamp(32px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 31, 72, 0.1);
  border-radius: 50%;
  margin-bottom: clamp(6px, 1vw, 8px);
  transition: all 0.3s ease;
}

.category-item:hover .category-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.category-icon svg {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.category-item:hover .category-icon svg {
  color: var(--naily-white);
}

.category-name {
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .enhanced-dropdown-menu {
    min-width: 280px;
    max-width: 90vw;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dropdown-header {
    padding: 20px 16px 12px;
  }
  
  .dropdown-section {
    padding: 12px 8px;
  }
  
  /* 手機版下拉選單位置調整 */
  .enhanced-nav-dropdown .position-absolute {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: var(--z-dropdown); /* 導航下拉選單 - 統一層級系統 */
  }
}

/* User Menu Specific Styles */
.user-menu {
  min-width: clamp(280px, 35vw, 320px);
}

.user-menu .dropdown-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Product Menu Specific Styles */
.product-menu {
  min-width: clamp(320px, 40vw, 380px);
}

.product-menu .dropdown-header {
  background: linear-gradient(135deg, var(--color-primary), #ff6b98);
}

/* About Menu Specific Styles */
.about-menu {
  min-width: clamp(240px, 30vw, 280px);
}

.about-menu .dropdown-header {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Contact Menu Specific Styles */
.contact-menu {
  min-width: clamp(260px, 32vw, 300px);
}

.contact-menu .dropdown-header {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Dark Mode Support */

/* Accessibility Enhancements */
.dropdown-item-enhanced:focus,
.category-item:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .enhanced-dropdown-menu {
    border: 2px solid var(--color-black);
  }
  
  .dropdown-item-enhanced {
    border: 1px solid var(--color-gray-300);
  }
  
  .dropdown-item-enhanced:hover {
    border-color: var(--color-black);
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .enhanced-dropdown-menu,
  .dropdown-item-enhanced,
  .category-item,
  .item-icon,
  .user-avatar,
  .item-badge {
    animation: none;
    transition: none;
  }
}

/* Custom Scrollbar for Dropdown Menu */
.enhanced-dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.enhanced-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.enhanced-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.enhanced-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--naily-primary);
  border-radius: 3px;
}

.enhanced-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #ff6b98;
}
/* ========================================
   CSS 變數系統 - 全域設計標準
   ======================================== */

:root {
  /* ===== 顏色系統 ===== */
  
  /* 主色調 */
  --color-primary: var(--primary-color);
  --color-primary-light: #D8626E;
  --color-primary-dark: #9A1A3A;
  --color-primary-rgb: 190, 31, 72;
  
  /* 次要色調 */
  --color-secondary: #6c757d;
  --color-secondary-light: #868e96;
  --color-secondary-dark: #545b62;
  
  /* 狀態顏色 */
  --color-success: #28a745;
  --color-info: #17a2b8;
  --color-danger: #dc3545;
  
  /* 中性色 - 已統一為標準 Design Token */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-black: #000000;
  
  /* 文字顏色 - 參照主要 variables.css 統一管理 */
  --text-primary: var(--color-gray-900);     /* 主要文字 - 深黑色 */
  --text-secondary: var(--color-gray-600);   /* 次要文字 - 深灰色（非淺灰） */
  --text-tertiary: var(--color-gray-500);    /* 第三層文字 */
  --text-muted: var(--color-gray-400);       /* 靜默/提示文字 */
  --text-disabled: var(--color-gray-300);    /* 禁用狀態 */
  --text-inverse: var(--color-white);        /* 反色文字 */
  --text-dark: var(--color-gray-900);        /* 深色文字 */
  --text-light: var(--color-gray-500);       /* 淺色文字（但仍可讀） */
  
  /* 背景顏色 */
  --bg-body: var(--color-white);
  --bg-light: var(--color-gray-50);
  --bg-dark: var(--color-gray-800);
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* ===== 字型系統 ===== */
  
  /* 字型家族 */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-family-monospace: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  /* 字型大小 */
  --font-size-base: 1rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1rem;
  --font-size-2xl: 1rem;
  --font-size-3xl: 1rem;
  --font-size-4xl: 1rem;
  --font-size-5xl: 1rem;
  
  /* 字重 */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* 行高 */
  --line-height-base: 1.5;
  --line-height-sm: 1.25;
  --line-height-lg: 2;
  
  /* ===== 間距系統 ===== */
  
  /* 基礎間距單位 */
  --spacing-base: 0.25rem;
  --spacing-xs: calc(var(--spacing-base) * 1);    /* 4px */
  --spacing-sm: calc(var(--spacing-base) * 2);    /* 8px */
  --spacing-md: calc(var(--spacing-base) * 4);    /* 16px */
  --spacing-lg: calc(var(--spacing-base) * 6);    /* 24px */
  --spacing-xl: calc(var(--spacing-base) * 8);    /* 32px */
  --spacing-2xl: calc(var(--spacing-base) * 12);  /* 48px */
  --spacing-3xl: calc(var(--spacing-base) * 16);  /* 64px */
  
  /* ===== 邊框系統 ===== */
  
  /* 邊框寬度 */
  --border-width: 1px;
  --border-width-sm: 0.5px;
  --border-width-lg: 2px;
  
  /* 邊框顏色 */
  --border-color: var(--color-gray-300);
  --border-color-light: var(--color-gray-200);
  --border-color-dark: var(--color-gray-400);
  
  /* 圓角 */
  --border-radius-none: 0;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* ===== 陰影系統 ===== */
  
  --shadow-none: none;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* ===== 動畫系統 ===== */
  
  /* 過渡時間 */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  
  /* 過渡函數 */
  --transition-ease: ease;
  --transition-ease-in: ease-in;
  --transition-ease-out: ease-out;
  --transition-ease-in-out: ease-in-out;
  
  /* ===== 斷點系統 ===== */
  
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
  
  /* ===== Z-index 層級 ===== */
  /* 已棄用：請使用 unified-z-index-system.css 中定義的變數 */
  /* 保留以下變數僅為向後兼容，新代碼請使用統一系統 */

  --z-index-dropdown: var(--z-ui-navbar, 1000);
  --z-index-sticky: var(--z-ui-floating-button, 1020);
  --z-index-fixed: var(--z-ui-sticky, 1030);
  --z-index-modal-backdrop: var(--z-modal-backdrop, 3000);
  --z-index-modal: var(--z-modal, 3010);
  --z-index-popover: var(--z-popover, 4000);
  --z-index-tooltip: var(--z-tooltip, 4050);
  
  /* ===== 容器寬度 ===== */
  
  --container-xs: 100%;
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
}


/* ===== Navigation Module ===== */
/* 導航相關組件的模組化樣式 */

/* 導入變數 */

/* ===== 主導航 ===== */
.navbar {
  width: 100%;
  min-height: 70px;
  background-color: var(--bg-body);
  border-bottom: var(--border-width) solid var(--border-color);
  transition: all var(--transition-base) var(--transition-ease);
}

.navbar--fixed {
  position: fixed !important;
  top: 30px;
  z-index: var(--z-index-fixed);
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.navbar--transparent {
  background-color: transparent;
  border-bottom: none;
}

.navbar--shadow {
  box-shadow: var(--shadow-md);
}

/* ===== 導航容器 ===== */
.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  height: 100%;
  min-height: 70px;
}

/* ===== 品牌區域 ===== */
.navbar__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
}

.navbar__brand:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.navbar__logo {
  height: 40px;
  width: auto;
  margin-right: var(--spacing-sm);
}

/* ===== 導航選單 ===== */
.navbar__nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.navbar__nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.navbar__nav-item {
  margin: 0 var(--spacing-sm);
  white-space: nowrap;
}

.navbar__nav-link {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base) var(--transition-ease);
  position: relative;
}

.navbar__nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-gray-100);
  text-decoration: none;
}

.navbar__nav-link--active {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.navbar__nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-sm);
}

/* ===== 導航操作區 ===== */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar__action-button {
  padding: var(--spacing-sm) var(--spacing-md);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base) var(--transition-ease);
  cursor: pointer;
}

.navbar__action-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.navbar__action-button--primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.navbar__action-button--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* ===== 手機版導航 ===== */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.navbar__toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.navbar__toggle-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base) var(--transition-ease);
}

.navbar__toggle--active .navbar__toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar__toggle--active .navbar__toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar__toggle--active .navbar__toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== 側邊選單 ===== */
.navbar__sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-body);
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-base) var(--transition-ease);
  z-index: var(--z-index-modal);
  padding: var(--spacing-lg);
}

.navbar__sidebar--open {
  right: 0;
}

.navbar__sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  z-index: calc(var(--z-index-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base) var(--transition-ease);
}

.navbar__sidebar-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.navbar__sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__sidebar-item {
  margin-bottom: var(--spacing-sm);
}

.navbar__sidebar-link {
  display: block;
  padding: var(--spacing-md);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base) var(--transition-ease);
}

.navbar__sidebar-link:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
  text-decoration: none;
}

/* ===== 響應式設計 ===== */
@media (max-width: 1023px) {
  .navbar__nav {
    display: none;
  }
  
  .navbar__toggle {
    display: flex;
  }
  
  .navbar__actions {
    margin-right: var(--spacing-sm);
  }
}

@media (max-width: 767.98px) {
  .navbar__container {
    padding: 0 var(--spacing-sm);
    min-height: 60px;
  }
  
  .navbar--fixed {
    top: 0;
  }
  
  .navbar__brand {
    font-size: 1.1rem;
  }
  
  .navbar__logo {
    height: 32px;
  }
  
  .navbar__sidebar {
    width: 280px;
  }
}
/* Enhanced Cart Components CSS - MUI Integration */

/* Desktop Cart Dropdown Enhancements */
.enhanced-cart-dropdown {
  /* 使用統一的 dropdown 層級 */
  z-index: var(--z-dropdown);
}

.enhanced-cart-dropdown .MuiPaper-root {
  /* Ensure smooth animations */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mobile Cart Drawer Enhancements */
.mobile-cart-drawer {
  z-index: var(--z-navbar-mega-menu) !important;
}

.mobile-cart-drawer .MuiDrawer-paper {
  /* Custom scrollbar for better UX */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.mobile-cart-drawer .MuiDrawer-paper::-webkit-scrollbar {
  width: 6px;
}

.mobile-cart-drawer .MuiDrawer-paper::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-cart-drawer .MuiDrawer-paper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.mobile-cart-drawer .MuiDrawer-paper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Cart item animations */
.enhanced-cart-item {
  transition: all 0.3s ease !important;
}

.enhanced-cart-item:hover {
  transform: translateX(2px) !important;
}

/* Loading states */
.cart-loading-skeleton {
  animation: naily-pulse 1.5s ease-in-out infinite;
}

@keyframes naily-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Enhanced button animations */
.enhanced-cart-button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.enhanced-cart-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.enhanced-cart-button:active {
  transform: translateY(0) !important;
}

/* Progress bar animations */
.shipping-progress-bar {
  overflow: hidden;
  border-radius: 4px;
}

.shipping-progress-fill {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge enhancements */
.enhanced-cart-badge {
  animation: cartBadgePulse 0.6s ease-in-out;
}

@keyframes cartBadgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Empty cart state */
.empty-cart-animation {
  animation: naily-fadeInUp 0.6s ease-out;
}

@keyframes naily-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .enhanced-cart-dropdown .MuiPaper-root {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 0 2.5vw;
  }
  
  .mobile-cart-drawer .MuiDrawer-paper {
    width: 95% !important;
    max-width: 95% !important;
  }
}

@media (max-width: 480px) {
  .enhanced-cart-dropdown .MuiPaper-root {
    width: 98vw !important;
    max-width: 98vw !important;
    margin: 0 1vw;
    border-radius: 12px !important;
  }
  
  .mobile-cart-drawer .MuiDrawer-paper {
    width: 98% !important;
    max-width: 98% !important;
    border-radius: 16px 0 0 16px !important;
  }
}

/* Dark mode support (future-proofing) */

/* Focus states for accessibility */
.enhanced-cart-button:focus {

  outline: 2px solid currentColor;

  outline-offset: 2px;

}

.enhanced-cart-button:focus:not(:focus-visible) {

  outline: none;

}

.enhanced-cart-button:focus-visible {
  outline: 2px solid var(--color-gray-900) !important;
  outline-offset: 2px !important;
}

.enhanced-quantity-button:focus {


  outline: 2px solid currentColor;


  outline-offset: 2px;


}


.enhanced-quantity-button:focus:not(:focus-visible) {


  outline: none;


}


.enhanced-quantity-button:focus-visible {
  outline: 2px solid var(--color-gray-900) !important;
  outline-offset: 1px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .enhanced-cart-dropdown .MuiPaper-root {
    border: 2px solid var(--color-gray-900) !important;
  }

  .enhanced-cart-button {
    border: 2px solid currentColor !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .enhanced-cart-item,
  .enhanced-cart-button,
  .shipping-progress-fill,
  .enhanced-cart-dropdown .MuiPaper-root {
    transition: none !important;
    animation: none !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .enhanced-cart-item {
    padding: 16px !important;
    min-height: 80px !important;
  }
  
  .enhanced-quantity-button {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  .enhanced-delete-button {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* Print styles */
@media print {
  .enhanced-cart-dropdown,
  .mobile-cart-drawer {
    display: none !important;
  }
}
/**
 * APP 下載 Modal - Prada 設計風格
 * 強制淺色模式，不受系統深色模式影響
 *
 * 設計原則：
 *   - Prada 極簡奢華風格（純黑 / 純白 / 品牌深紅 #BE1F48）
 *   - 大寫字體、細線分隔、低調但精緻
 *   - 強制 color-scheme: light，完全杜絕深色模式
 */

/* ── Dialog 尺寸 ── */
.app-download-modal .prada-modal-dialog {
  max-width: 400px;
}

/* ── Modal 內容：強制淺色模式 ── */
.app-download-modal .prada-modal-content {
  color-scheme: light;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #1a1a1a;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 0;
}

/* ── 關閉按鈕 ── */
.app-download-modal .prada-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #1a1a1a;
  border-radius: 0;
}

.app-download-modal .prada-modal-close:hover {
  background: #f5f5f5;
  color: #1a1a1a;
  transform: none;
}

/* ════════════════════════════════
   ADM = App Download Modal 元素
   ════════════════════════════════ */

/* ── Body 容器 ── */
.adm-body {
  padding: 52px 40px 44px;
  text-align: center;
  background: #ffffff;
  color: #1a1a1a;
}

/* ── Logo ── */
.adm-logo {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto 28px;
}

/* ── 標題 ── */
.adm-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 10px;
  font-family: 'Noto Sans TC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── 副標題 ── */
.adm-subtitle {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

/* ── 品牌紅線分隔 ── */
.adm-divider {
  width: 28px;
  height: 1px;
  background: var(--primary-color);
  margin: 28px auto;
}

/* ── 下載徽章群組 ── */
.adm-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.adm-badge-link {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}

.adm-badge-link:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.adm-badge-link:active {
  opacity: 0.7;
  transform: translateY(0);
}

.adm-badge-ios {
  height: 44px;
  width: auto;
  display: block;
}

.adm-badge-android {
  height: 62px;
  width: auto;
  display: block;
}

/* ── 裝飾角線（Prada 簽名細節） ── */
.adm-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--primary-color);
  border-style: solid;
  pointer-events: none;
}

.adm-corner-tl {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.adm-corner-br {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}

/* ── RWD ── */
@media (max-width: 480px) {
  .app-download-modal .prada-modal-dialog {
    max-width: calc(100% - 32px);
  }

  .adm-body {
    padding: 44px 28px 36px;
  }

  .adm-title {
    font-size: 16px;
  }

  .adm-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .adm-badge-ios {
    height: 40px;
  }

  .adm-badge-android {
    height: 56px;
  }
}

/* Footer 模組化樣式 */
.footer_footerContainer__p4me4 {
  padding: 20px;
  width: 100%;
  font-display: swap;
}

/* 頁尾主要內容區 */
.footer_footerMainContent__btNpp {
  margin-bottom: 30px;
}

/* 頁尾各區塊標題 */
.footer_footerTitle__ZYbG9 {
  font-weight: bold;
  margin-bottom: 20px;
}

/* 頁尾各區塊 */
.footer_footerSection__Wk5Ti {
  margin-bottom: 25px;
}

/* App預覽圖 */
.footer_appPreviewPlaceholder__-NSIm {
  width: 100%;
  border-radius: 12px;
  position: relative;
}

/* App下載按鈕容器 */
.footer_appDownloadButtons__JS9rS {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* App下載按鈕 */
.footer_appDownloadLink__7jCMM {
  display: block;
  margin-bottom: 8px;
}

.footer_appStoreImg__o\+xVa {
  width: 120px;
  height: 40px;
  object-fit: contain;
  aspect-ratio: 3/1;
}

.footer_playStoreImg__5pLaU {
  width: 135px;
  height: 40px;
  object-fit: contain;
  aspect-ratio: 3.375/1;
}

/* 訂閱電子報區塊 */
.footer_newsletterSection__\+4Rnh {
  margin-top: 25px;
  width: 100%;
  min-height: 120px;
}

/* 訂閱電子報表單 - 修復輸入框與按鈕連接問題 */
.footer_newsletterForm__Dx7sV {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  width: 100%;
  background-color: var(--color-gray-200);
  border-radius: 25px;
  padding: 3px;
  align-items: center;
}

/* 訂閱輸入框 */
.footer_newsletterInput__OQ4-B {
  border: none !important;
  padding: 10px 15px;
  background-color: transparent !important;
  flex: 1 1;
  min-width: 0;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px;
}

.footer_newsletterInput__OQ4-B:focus {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.footer_newsletterInput__OQ4-B::placeholder {
  color: var(--color-gray-400);
}

/* 訂閱按鈕 */
.footer_newsletterButton__PeV4c {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  border-radius: 22px !important;
  border: 2px solid var(--color-primary) !important;
  font-weight: 500;
  padding: 8px 24px !important;
  white-space: nowrap;
  min-width: 80px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer_newsletterButton__PeV4c:hover {
  background-color: var(--color-white) !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
}

.footer_newsletterButton__PeV4c:active,
.footer_newsletterButton__PeV4c:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* 訂閱提示文字 */
.footer_newsletterHint__IUE5m {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-gray-500);
  line-height: 1.4;
}

/* 狀態訊息容器 - 防止版面跳動 */
.footer_statusMessageContainer__EnsQL {
  min-height: 24px;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

/* 成功訊息樣式 */
.footer_successMessage__6X\+7G {
  color: #28a745;
  font-size: 14px;
}

/* 錯誤訊息樣式 */
.footer_errorMessage__1G-Aj {
  color: #dc3545;
  font-size: 14px;
}

/* 頁尾連結列表 */
.footer_footerLinks__fJB4s {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer_footerLinks__fJB4s li {
  margin-bottom: 15px;
}

.footer_footerLinks__fJB4s span {
  color: var(--color-gray-900);
  cursor: pointer;
  transition: color 0.3s;
}

.footer_footerLinks__fJB4s span:hover {
  color: var(--color-primary);
}

/* 頁尾底部區域 */
.footer_footerBottom__nUTip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-300);
}

/* 版權信息 */
.footer_footerCopyright__E3Yee {
  color: var(--color-gray-500);
  text-align: center;
}

.footer_footerCopyright__E3Yee span {
  cursor: pointer;
  color: var(--color-gray-500);
  transition: color 0.3s;
}

.footer_footerCopyright__E3Yee span:hover {
  color: var(--color-primary);
}

/* 社交媒體圖標 */
.footer_footerSocialIcon__iKrG9 {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.footer_footerSocialIcon__iKrG9:hover {
  transform: scale(1.1);
}

/* 支付圖標 */
.footer_footerPayIcon__41Qx6 {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer_footerPayIcon__41Qx6:hover {
  opacity: 1;
}

/* 手機版樣式 */
@media (max-width: 991.98px) {
  .footer_mobileFooterLinks__DvF8v {
    margin-bottom: 20px;
  }

  .footer_mobileFooterLinks__DvF8v span {
    color: var(--color-black) !important;
    cursor: pointer;
    font-size: 14px;
  }

  .footer_mobileSocialIcons__V09gI {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .footer_mobilePayIcons__CPK8R {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
  }

  /* 手機版電子報訂閱 */
  .footer_newsletterSection__\+4Rnh {
    padding: 0 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: 100px;
  }

  .footer_newsletterForm__Dx7sV {
    flex-direction: row;
    padding: 2px;
  }

  .footer_newsletterInput__OQ4-B {
    font-size: 13px;
    padding: 8px 12px;
  }

  .footer_newsletterButton__PeV4c {
    padding: 6px 18px !important;
    font-size: 13px;
  }

  .footer_newsletterHint__IUE5m {
    font-size: 11px;
    text-align: center;
  }

  /* ===== 手機版 Footer 下拉選單樣式 ===== */
  .footer_mobileAccordion__9swoc {
    border-bottom: 1px solid var(--color-gray-200);
    background-color: var(--color-white);
  }

  .footer_accordionHeader__BLV7e {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .footer_accordionHeader__BLV7e:hover {
    background-color: var(--color-gray-50);
  }

  .footer_accordionTitle__yUXzs {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-gray-900);
  }

  .footer_accordionIcon__tYmNv {
    color: var(--color-gray-500);
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .footer_accordionContent__MQ9vr {
    background-color: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
  }

  .footer_accordionItem__k9GyR {
    padding: 14px 20px 14px 30px;
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .footer_accordionItem__k9GyR:last-child {
    border-bottom: none;
  }

  .footer_accordionItem__k9GyR:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
  }

  /* 社群媒體下拉選單特殊樣式 */
  .footer_socialHeaderContent__7T7c5 {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer_socialIconsPreview__MGjtC {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .footer_socialIconSmall__Kwjg\+ {
    width: 20px;
    height: 20px;
    opacity: 0.7;
  }

  .footer_socialIconMedium__U2aQQ {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }

  .footer_socialAccordionItem__1Rsqu {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 30px;
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .footer_socialAccordionItem__1Rsqu:last-child {
    border-bottom: none;
  }

  .footer_socialAccordionItem__1Rsqu:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
  }

  /* 基本連結區域 */
  .footer_mobileBasicLinks__vKCYJ {
    padding: 16px 15px;
    background-color: var(--color-white);
  }

  .footer_mobileBasicLinks__vKCYJ span {
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .footer_mobileBasicLinks__vKCYJ span:hover {
    color: var(--color-primary);
  }

  .footer_linkDivider__IjDCJ {
    margin: 0 12px;
    color: var(--color-gray-300);
    cursor: default !important;
  }

  .footer_linkDivider__IjDCJ:hover {
    color: var(--color-gray-300) !important;
  }

  .footer_mobileDivider__AuewX {
    margin: 0 !important;
    /* 取代 antd <Divider> 的水平線外觀（重設 <hr> 預設邊框） */
    width: 100%;
    border: none;
    border-top: 1px solid rgba(5, 5, 5, 0.06);
  }
}

/* ===== 公司資訊列 ===== */
.footer_companyInfoBar__5vWi0 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 20px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.footer_companyInfoItem__b3q5Z {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-gray-700);
  font-size: 13px;
}

.footer_companyInfoItem__b3q5Z svg {
  flex-shrink: 0;
  color: var(--color-gray-400);
}

.footer_companyInfoLink__vIWoB {
  color: var(--color-gray-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer_companyInfoLink__vIWoB:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ===== 信任保障列 ===== */
.footer_trustStrip__6YYgS {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: 20px;
}

.footer_trustDivider__m9KTV {
  width: 1px;
  height: 32px;
  background: var(--color-gray-300);
}

.footer_securityBadge__7o0it {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gray-700);
}

.footer_ecpayBadge__FLg6d {
  background: #00a651;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.footer_badgeText__HcLfo {
  display: flex;
  flex-direction: column;
}

.footer_badgeTitle__FyG-z {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-800);
  line-height: 1.2;
}

.footer_badgeDesc__JkVRv {
  font-size: 11px;
  color: var(--color-gray-500);
  line-height: 1.2;
}

.footer_logisticsRow__Oy92y {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer_rowLabel__5kqky {
  font-size: 11px;
  color: var(--color-gray-400);
  font-weight: 500;
  white-space: nowrap;
}

.footer_logisticsIcon__h7keY {
  height: 26px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer_logisticsIcon__h7keY:hover {
  opacity: 1;
}

.footer_logisticsIconImg__cQixN {
  height: 26px;
  width: auto;
  opacity: 0.75;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.footer_logisticsIconImg__cQixN:hover {
  opacity: 1;
}

/* ===== 手機版公司資訊 ===== */
.footer_mobileCompanyInfo__grU\+s {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  margin: 16px 0 0;
  text-align: left;
}

/* ===== 手機版信任保障 ===== */
.footer_mobileTrustStrip__vMaS7 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 15px;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: 4px;
}
