/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-line {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Poker Shop — momoshop-style 全站微調 */

body { font-family: 'Roboto', sans-serif; background: #fff; }
#root { overflow-x: hidden; }

/* ======================================
   Breadcrumb
   ====================================== */
.breadcrumb {
  background: transparent;
  margin: 12px 0 0;
  padding: 8px 0;
  font-size: 13px;
}
.breadcrumb > li + li:before {
  content: "\f105";
  font-family: FontAwesome;
  color: #999;
}
.breadcrumb a { color: #696763; }
.breadcrumb a:hover { color: #FE980F; text-decoration: none; }
.breadcrumb > .active { color: #FE980F; }

/* ======================================
   Cart Badge
   ====================================== */
.cart-badge-item a { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #FE980F;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  padding: 0 4px;
}

/* ======================================
   Mega Menu Nav (momoshop style)
   ====================================== */
.mega-nav {
  display: flex;
  flex-wrap: wrap;
}
.mega-nav > li { position: static; }
.mega-nav > li > a,
.mega-nav > li > .mega-toggle {
  display: block;
  font-size: 14px;
  padding: 10px 16px;
  white-space: nowrap;
  color: #696763;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.mega-nav > li > a:hover,
.mega-nav > li > .mega-toggle:hover,
.mega-nav > li > .mega-toggle.active {
  color: #FE980F;
  background: transparent;
}
.mega-nav > li > .mega-toggle .fa-angle-down {
  font-size: 11px;
  margin-left: 3px;
  transition: transform 0.2s;
}

/* Mega dropdown */
.mega-dropdown { position: static; }
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 2px solid #FE980F;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 16px 0;
}
.mega-dropdown:hover .mega-menu {
  display: block;
}
.mega-dropdown:hover > .mega-toggle .fa-angle-down {
  transform: rotate(180deg);
}
.mega-menu-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.mega-title {
  min-width: 140px;
  flex-shrink: 0;
}
.mega-title a {
  font-size: 16px;
  font-weight: 700;
  color: #FE980F;
  text-decoration: none;
}
.mega-title a:hover { text-decoration: underline; }
.mega-title span {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.mega-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.mega-sub-link {
  font-size: 14px;
  color: #696763;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.mega-sub-link:hover {
  color: #FE980F;
  text-decoration: underline;
}


/* ======================================
   Category Icon Cards (首頁分類入口)
   ====================================== */
.category-icons-section {
  padding: 20px 0 10px;
  background: #fff;
}
.col-sm-15 {
  width: 20%;
  float: left;
}
.cat-icon-row {
  display: flex;
  justify-content: center;
}
.cat-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #696763;
  padding: 12px 8px;
  transition: transform 0.2s;
}
.cat-icon-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #FE980F;
}
.cat-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFF8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #FE980F;
  margin-bottom: 6px;
  transition: background 0.2s;
}
.cat-icon-card:hover .cat-icon-circle {
  background: #FE980F;
  color: #fff;
}
.cat-icon-card span {
  font-size: 13px;
  font-weight: 500;
}

/* ======================================
   Sale Banner Section
   ====================================== */
.sale-banner-section {
  padding: 20px 0;
}
.sale-banner {
  background: linear-gradient(135deg, #FE980F 0%, #e68a00 100%);
  border-radius: 8px;
  padding: 24px;
  color: #fff;
}
.sale-banner-text h3 {
  font-size: 24px;
  margin: 0 0 8px;
}
.sale-banner-text p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 16px;
}
.sale-banner-text .btn {
  background: #fff;
  color: #FE980F;
  border-color: #fff;
  font-weight: 600;
}
.sale-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
}
.sale-product-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
}
.sale-product-info h5 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.sale-price {
  font-size: 16px;
  font-weight: 700;
  margin-right: 6px;
}
.sale-orig {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.7;
}

/* ======================================
   Brand Section
   ====================================== */
.brands-section {
  padding: 30px 0 40px;
}
.brand-card {
  text-align: center;
  padding: 20px;
  border: 1px solid #F7F7F5;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}
.brand-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.brand-logo {
  font-size: 36px;
  color: #FE980F;
  margin-bottom: 8px;
}
.brand-card h4 {
  font-size: 16px;
  color: #333;
  margin: 0;
}

/* ======================================
   Subcat Chips (次分類)
   ====================================== */
.subcat-bar {
  background: #fff;
  border-bottom: 2px solid #F7F7F0;
  margin-bottom: 20px;
}
.subcat-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0;
}
.subcat-row::-webkit-scrollbar { display: none; }
.subcat-chip {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #696763;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.subcat-chip:hover {
  border-color: #FE980F;
  color: #FE980F;
  text-decoration: none;
}
.subcat-chip.active {
  background: #FE980F;
  color: #fff;
  border-color: #FE980F;
  font-weight: 600;
}

/* ======================================
   Product Card Tweaks
   ====================================== */
.product-image-wrapper .productinfo p a {
  color: #696763;
  text-decoration: none;
}
.product-image-wrapper .productinfo p a:hover {
  color: #FE980F;
  text-decoration: underline;
}

/* ======================================
   Product Detail
   ====================================== */
.product-information .mall-link {
  color: #FE980F;
  text-decoration: underline;
}
.product-information .mall-link:hover { color: #e6890e; }
.product-information .brand-tag {
  color: #999;
  font-size: 13px;
}
.product-desc {
  color: #696763;
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0;
}
.product-specs {
  margin: 12px 0;
}
.product-specs h4 {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px;
}
.product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-specs ul li {
  padding: 4px 0;
  color: #696763;
  font-size: 13px;
  border-bottom: 1px dotted #eee;
}
.orig-price {
  text-decoration: line-through;
  color: #999;
  margin-left: 8px;
  font-weight: 400;
}
.sale-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.qty-group {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 0;
}
.qty-group label {
  font-weight: 500;
  margin-right: 8px;
  color: #696763;
}
.qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 30px;
  text-align: center;
  font-size: 16px;
}
.qty-val {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  color: #333;
}
.product-information .btn.cart {
  margin-top: 15px;
  background: #FE980F;
  color: #fff;
  border-color: #FE980F;
}
.product-information .btn.cart:hover {
  background: #e68a00;
}

/* ======================================
   AD Banner (Swiper)
   ====================================== */
.ad-carousel {
  padding: 15px 0;
}
.ad-swiper {
  border-radius: 6px;
  overflow: hidden;
}
.ad-swiper .swiper-wrapper,
.ad-swiper .swiper-slide {
  height: 140px !important;
}
.ad-slide {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  position: relative;
}
/* 圖片上的暗色遮罩，確保白字可讀 */
.ad-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  z-index: 0;
}
.ad-slide-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.ad-slide-icon {
  font-size: 32px;
  flex-shrink: 0;
  opacity: 0.9;
}
.ad-slide-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.ad-slide-text p {
  font-size: 13px;
  margin: 0;
  opacity: 0.85;
}

/* ======================================
   Hot Products Section
   ====================================== */
.hot-products-section {
  padding: 20px 0 10px;
}

/* ======================================
   Features Section
   ====================================== */
.features-section {
  padding: 10px 0 30px;
}
.product-count {
  font-size: 13px;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}

/* ======================================
   About / Feature Boxes
   ====================================== */
.static-page { padding: 10px 0 40px; }
.about-content .lead {
  font-size: 16px;
  color: #696763;
  line-height: 1.8;
  margin-bottom: 30px;
}
.feature-boxes { margin-top: 30px; }
.feature-box {
  text-align: center;
  padding: 20px;
}
.feature-box i {
  font-size: 42px;
  color: #FE980F;
  margin-bottom: 12px;
}
.feature-box h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 8px;
}
.feature-box p {
  color: #696763;
  font-size: 14px;
  line-height: 1.6;
}

/* ======================================
   Contact
   ====================================== */
.contact-form-wrapper {
  background: #fff;
  border: 1px solid #F7F7F5;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}
.contact-form .form-control {
  border-radius: 4px;
  border: 1px solid #ddd;
  box-shadow: none;
}
.contact-form .form-control:focus {
  border-color: #FE980F;
  box-shadow: 0 0 0 2px rgba(254,152,15,0.1);
}
.contact-info-box {
  background: #fff;
  border: 1px solid #F7F7F5;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.contact-info-box h3 {
  color: #FE980F;
  font-size: 16px;
  margin: 0 0 12px;
}
.contact-info-box p {
  color: #696763;
  font-size: 14px;
  margin: 0 0 6px;
}
.contact-info-box p i {
  width: 20px;
  color: #FE980F;
}

/* ======================================
   FAQ
   ====================================== */
.faq-panel { margin-top: 10px; }
.faq-panel .panel {
  border: 1px solid #F7F7F5;
  border-radius: 4px;
  margin-bottom: 8px;
}
.faq-panel .panel-heading {
  background: #fff;
  padding: 0;
}
.faq-panel .panel-title a {
  display: block;
  padding: 14px 16px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.faq-panel .panel-title a:hover { color: #FE980F; }
.faq-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: #FE980F;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 13px;
  font-weight: 700;
}
.faq-panel .fa-angle-down {
  transition: transform 0.3s;
  color: #999;
}
.faq-panel .panel-title a:not(.collapsed) .fa-angle-down {
  transform: rotate(180deg);
}
.faq-panel .panel-body {
  color: #696763;
  font-size: 14px;
  line-height: 1.7;
  padding: 8px 16px 16px 54px;
  border-top: 1px solid #F7F7F5;
}

/* ======================================
   Header dropdown
   ====================================== */
.header-bottom .dropdown-menu {
  border-radius: 4px;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-bottom .dropdown-menu li a {
  color: #696763;
  padding: 8px 16px;
  font-size: 13px;
}
.header-bottom .dropdown-menu li a:hover {
  color: #FE980F;
  background: #FFF8F0;
}

/* ======================================
   Mobile
   ====================================== */
@media (max-width: 767px) {
  .header_top { display: none; }
  .header-middle { padding: 8px 0; }
  .header-middle .container .row { padding-bottom: 8px; padding-top: 8px; }
  .header-bottom { padding: 0; }
  .shop-menu ul li { padding-left: 8px; padding-right: 8px; }
  .shop-menu ul li a { font-size: 12px; }
  .logo img { max-height: 30px; }

  .col-sm-15 { width: 33.333%; }
  .cat-icon-circle { width: 48px; height: 48px; font-size: 20px; }
  .cat-icon-card span { font-size: 11px; }

  .mega-nav { overflow-x: auto; flex-wrap: nowrap; }
  .mega-nav::-webkit-scrollbar { display: none; }
  .mega-nav > li { flex: 0 0 auto; }
  .mega-nav > li > a,
  .mega-nav > li > .mega-toggle { padding: 8px 12px; font-size: 13px; }

  .subcat-chip { padding: 6px 14px; font-size: 12px; }
  .product-image-wrapper { margin-bottom: 15px; }
  .sale-banner { padding: 16px; }
  .sale-banner-text h3 { font-size: 18px; }
}
