/* ==========================================================
   SiHu Baby - Homepage Improvements & Shopee/TikTok Styling
   Version: 2.1.0
   ========================================================== */

:root {
  --sihu-primary: #FF7E95;
  --sihu-primary-dark: #E0315A;
  --sihu-secondary: #FFB800;
  --sihu-shopee-red: #EE4D2D;
  --sihu-shopee-green: #26AA99;
  --sihu-text: #1E293B;
  --sihu-text-light: #64748b;
  --sihu-text-lighter: #94a3b8;
  --sihu-bg: #FFF9F4;
  --sihu-card-bg: #FFFFFF;
  --sihu-radius: 12px;
  --sihu-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --sihu-shadow-md: 0 6px 20px rgba(255, 126, 149, 0.12);
  --sihu-shadow-hover: 0 10px 25px rgba(238, 77, 45, 0.15);
}

/* ==========================================================
   0. HIDE OLD PET SHOP LEFTOVER BLOCKS
   ========================================================== */
.slider-section .slider-category-dynamic,
.category-sec .product-category-dynamic,
.category-sec .wc-block-product-categories,
.wp-block-cover__background.has-background-dim-30,
.wp-block-cover__background.has-background-dim-40,
.wp-block-cover__background.has-background-dim {
  display: none !important;
}

/* ==========================================================
   1. TOP ANNOUNCEMENT STRIP
   ========================================================== */
.header-top-strip {
  background: linear-gradient(135deg, var(--sihu-primary) 0%, #ff9aae 100%);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.header-top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-strip-badges {
  display: flex;
  gap: 20px;
}
.top-strip-badges .strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.top-strip-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.top-strip-contact a:hover {
  text-decoration: underline;
}

/* ==========================================================
   2. HERO CATEGORY SIDEBAR (Left column in Main Banner)
   ========================================================== */
.fse-pet-shop-category {
  padding: 0 !important;
  background: transparent !important;
}
.sihu-hero-cat-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #FFE5EA;
  box-shadow: var(--sihu-shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sihu-hero-cat-header {
  background: linear-gradient(135deg, #FFF0F3 0%, #FFE5EA 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #FFD6DE;
}
.sihu-hero-cat-header-icon {
  font-size: 18px;
}
.sihu-hero-cat-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sihu-primary-dark);
  letter-spacing: 0.3px;
}
.sihu-hero-cat-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sihu-hero-cat-item {
  margin: 0;
  padding: 0;
}
.sihu-hero-cat-link {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--sihu-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.sihu-hero-cat-link:hover {
  background: #FFF5F7;
  color: var(--sihu-primary-dark);
  border-left-color: var(--sihu-primary);
  padding-left: 22px;
}
.sihu-hero-cat-emoji {
  font-size: 16px;
  margin-right: 10px;
  flex-shrink: 0;
}
.sihu-hero-cat-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sihu-hero-cat-arrow {
  color: var(--sihu-text-lighter);
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s;
}
.sihu-hero-cat-link:hover .sihu-hero-cat-arrow {
  color: var(--sihu-primary);
  transform: translateX(3px);
}
.sihu-hero-cat-badge {
  background: var(--sihu-shopee-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
  text-transform: uppercase;
}

/* ==========================================================
   3. HERO SLIDER POLISH
   ========================================================== */
.slider-section {
  max-width: 1200px;
  margin: 15px auto !important;
  padding: 0 15px;
  gap: 20px !important;
}
.fse-pet-shop-slider {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sihu-shadow-sm);
}
.fse-pet-shop-slider img {
  border-radius: 16px !important;
}
.swiper-button-prev,
.swiper-button-next {
  width: 40px !important;
  height: 40px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  color: var(--sihu-primary) !important;
  transition: all 0.2s !important;
}
.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 16px !important;
  font-weight: bold !important;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--sihu-primary) !important;
  color: #fff !important;
}

/* ==========================================================
   4. HOMEPAGE CATEGORIES (Shopee/TikTok Style Tiles)
   ========================================================== */
.sihu-categories-wrap {
  width: 100%;
}
.sihu-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
.sihu-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--cat-border, #FFE5EA);
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--sihu-shadow-sm);
  position: relative;
  overflow: hidden;
}
.sihu-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--cat-accent, var(--sihu-primary));
  opacity: 0;
  transition: opacity 0.3s;
}
.sihu-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sihu-shadow-md);
  border-color: var(--cat-accent, var(--sihu-primary));
}
.sihu-cat-card:hover::before {
  opacity: 1;
}
.sihu-cat-img-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cat-bg, #FFF0F3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.sihu-cat-card:hover .sihu-cat-img-box {
  transform: scale(1.08);
}
.sihu-cat-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.sihu-cat-icon-fallback {
  font-size: 40px;
  line-height: 1;
}
.sihu-cat-count-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--cat-accent, var(--sihu-primary));
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 12px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.sihu-cat-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--sihu-text) !important;
  text-align: center;
  margin: 0 0 10px !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}
.sihu-cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cat-accent, var(--sihu-primary-dark));
  background: var(--cat-bg, #FFF0F3);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.sihu-cat-card:hover .sihu-cat-cta {
  background: var(--cat-accent, var(--sihu-primary));
  color: #fff;
}
.sihu-cat-cta-arrow {
  transition: transform 0.2s;
}
.sihu-cat-card:hover .sihu-cat-cta-arrow {
  transform: translateX(3px);
}

/* ==========================================================
   5. PRODUCTS SECTION (.sihu-product-card)
   ========================================================== */
.sihu-section-header-wrap {
  text-align: center;
  margin-bottom: 35px;
}
.sihu-section-header-wrap h2 {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: var(--sihu-text) !important;
  margin-bottom: 8px !important;
}
.sihu-section-subtitle {
  font-size: 15px;
  color: var(--sihu-text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.sihu-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0;
  padding: 0;
}
.sihu-product-card {
  background: #fff;
  border: 1px solid #f0e6eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--sihu-shadow-sm);
}
.sihu-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sihu-shadow-hover);
  border-color: var(--sihu-shopee-red);
}
.sihu-product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #fafafa;
}
.sihu-product-img-link {
  display: block;
}
.sihu-product-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.sihu-product-card:hover .sihu-product-img {
  transform: scale(1.05);
}

/* Badges */
.sihu-sale-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sihu-shopee-red);
  color: #fff;
  font-weight: 700;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.3;
  z-index: 3;
  border-radius: 0 0 0 8px;
}
.sihu-fav-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--sihu-shopee-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px 3px 5px;
  z-index: 3;
  line-height: 1.3;
  border-radius: 0 0 6px 0;
}

/* Mini category label */
.sihu-product-mini-cat {
  font-size: 11px;
  color: var(--sihu-text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Title */
.sihu-product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sihu-product-title {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  margin: 0 0 8px !important;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sihu-product-title a {
  color: var(--sihu-text);
  text-decoration: none;
  transition: color 0.15s;
}
.sihu-product-title a:hover {
  color: var(--sihu-shopee-red);
}

/* Price */
.sihu-product-price-box {
  margin-bottom: 8px;
}
.sihu-product-price-box.sihu-shopee-price {
  color: var(--sihu-shopee-red);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.sihu-product-price-box del {
  color: var(--sihu-text-lighter) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  opacity: 1;
  margin-left: 6px;
}
.sihu-product-price-box ins {
  text-decoration: none;
  background: transparent;
  color: var(--sihu-shopee-red);
  font-weight: 700;
}

/* Rating & Sold Row */
.sihu-product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed #f0f0f0;
}
.sihu-product-rating {
  font-size: 11px;
  letter-spacing: -1px;
  color: var(--sihu-secondary);
}
.sihu-product-sold {
  font-size: 11px;
  color: var(--sihu-text-light);
}
.sihu-star {
  font-size: 11px;
}
.sihu-star-full {
  color: var(--sihu-secondary);
}
.sihu-star-half {
  color: var(--sihu-secondary);
  opacity: 0.6;
}
.sihu-star-empty {
  color: #e2e8f0;
}

/* Add to cart CTA */
.sihu-product-bottom-btn {
  margin-top: 10px;
}
.sihu-product-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--sihu-shopee-red) !important;
  background: transparent !important;
  color: var(--sihu-shopee-red) !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1 !important;
}
.sihu-product-add-btn:hover {
  background: var(--sihu-shopee-red) !important;
  color: #fff !important;
}
.sihu-btn-cart-icon {
  width: 15px;
  height: 15px;
}
.sihu-product-add-btn:hover .sihu-btn-cart-icon {
  filter: brightness(0) invert(1);
}

/* View All CTA Button */
.sihu-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--sihu-primary) 0%, #ff6b85 100%);
  color: #fff !important;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 126, 149, 0.35);
  transition: all 0.25s;
}
.sihu-btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 126, 149, 0.5);
  color: #fff !important;
}

/* ==========================================================
   6. BRAND TRUST & STATS CARDS (Replaces Counter Block)
   ========================================================== */
.sihu-trust-section-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sihu-trust-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #FFE5EA;
  box-shadow: var(--sihu-shadow-sm);
  transition: all 0.3s;
}
.sihu-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sihu-shadow-md);
}
.sihu-trust-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sihu-trust-card-icon .dashicons {
  font-size: 26px;
  width: 26px;
  height: 26px;
}
.sihu-trust-icon-pink {
  background: #FFF0F3;
  color: #E0315A;
}
.sihu-trust-icon-green {
  background: #F0FDF4;
  color: #16A34A;
}
.sihu-trust-icon-yellow {
  background: #FEFCE8;
  color: #CA8A04;
}
.sihu-trust-icon-blue {
  background: #F0F9FF;
  color: #0284C7;
}
.sihu-trust-card-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--sihu-text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.sihu-trust-plus {
  color: var(--sihu-primary);
  font-size: 20px;
}
.sihu-trust-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--sihu-text);
  margin-top: 3px;
}
.sihu-trust-card-sub {
  font-size: 12px;
  color: var(--sihu-text-light);
  margin-top: 2px;
}

/* ==========================================================
   7. NEWS / BLOG CARDS
   ========================================================== */
.sihu-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sihu-news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sihu-shadow-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}
.sihu-news-card:hover {
  box-shadow: var(--sihu-shadow-md);
  transform: translateY(-4px);
}
.sihu-news-img-wrap {
  position: relative;
  overflow: hidden;
}
.sihu-news-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sihu-news-card:hover .sihu-news-img {
  transform: scale(1.06);
}
.sihu-news-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 126, 149, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.sihu-date-day {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.sihu-date-mon {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}
.sihu-news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sihu-news-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sihu-news-cat-badge {
  background: #FFF0F3;
  color: var(--sihu-primary-dark);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.sihu-news-date-text {
  font-size: 12px;
  color: var(--sihu-text-lighter);
}
.sihu-news-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
  line-height: 1.45 !important;
  height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sihu-news-title a {
  color: var(--sihu-text);
  text-decoration: none;
  transition: color 0.15s;
}
.sihu-news-title a:hover {
  color: var(--sihu-primary);
}
.sihu-news-excerpt {
  font-size: 13.5px;
  color: var(--sihu-text-light);
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sihu-news-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
}
.sihu-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sihu-primary-dark);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.sihu-news-readmore:hover {
  color: var(--sihu-shopee-red);
  transform: translateX(3px);
}

/* ==========================================================
   8. FOOTER IMPROVEMENTS
   ========================================================== */
.sihu-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.sihu-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: all 0.25s;
  text-decoration: none;
}
.sihu-footer-socials a:hover {
  background: var(--sihu-primary);
  border-color: var(--sihu-primary);
  transform: translateY(-2px);
}

/* ==========================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 1024px) {
  .sihu-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .sihu-trust-section-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top-strip-inner {
    flex-direction: column;
    gap: 4px;
    padding: 6px 15px;
  }
  .top-strip-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
  }
  /* Slider column becomes full width on mobile */
  .slider-section {
    flex-direction: column !important;
  }
  .fse-pet-shop-category {
    display: none !important; /* Hide vertical category sidebar on mobile for cleaner banner */
  }
  .fse-pet-shop-slider {
    flex-basis: 100% !important;
  }
  /* Category tiles */
  .sihu-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sihu-cat-card {
    padding: 16px 12px 14px;
  }
  .sihu-cat-img-box {
    width: 80px;
    height: 80px;
  }
  .sihu-cat-name {
    font-size: 13.5px !important;
  }
  /* Products grid */
  .sihu-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .sihu-product-info {
    padding: 10px;
  }
  .sihu-product-title {
    font-size: 12.5px !important;
    height: 36px;
  }
  .sihu-product-price-box.sihu-shopee-price {
    font-size: 15px;
  }
  /* Trust Section */
  .sihu-trust-section-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sihu-trust-card {
    padding: 16px 12px;
    gap: 10px;
  }
  .sihu-trust-card-icon {
    width: 44px;
    height: 44px;
  }
  .sihu-trust-card-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  .sihu-trust-card-num {
    font-size: 20px;
  }
  .sihu-trust-card-label {
    font-size: 12.5px;
  }
  .sihu-trust-card-sub {
    display: none;
  }
  /* News */
  .sihu-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sihu-news-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .sihu-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .sihu-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .sihu-cat-card {
    border-radius: 12px;
  }
}
