/* === AGE FILTER HIDDEN === */
#ageFilterSection { display: none !important; }
.age-filter { display: none !important; }

/* === SEARCH - no override needed, main CSS handles visibility === */

/* === RECENTLY VIEWED HORIZONTAL SLIDER === */
.recent-scroll { display: flex; overflow-x: auto; gap: 12px; scroll-behavior: smooth; padding: 12px 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.recent-scroll::-webkit-scrollbar { height: 4px; }
.recent-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.recent-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.recent-item { min-width: 160px; max-width: 160px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; transition: transform .2s; scroll-snap-align: start; flex-shrink: 0; }
.recent-item:hover { transform: translateY(-2px); }
.recent-item img { width: 100%; height: 120px; object-fit: contain; border-radius: 8px; background: #f8f8f8; margin-bottom: 8px; }
.recent-item p { font-size: 13px; line-height: 1.3; color: #333; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) {
  .recent-item { min-width: 200px; max-width: 200px; }
  .recent-item img { height: 160px; }
}



/* === WhatsApp in Modal === */
.modal-wa-share { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #fff; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 600; margin: 16px 12px; text-align: center; transition: background .2s; }
.modal-wa-share:hover { background: #1da851; }

/* === SORT/FILTER BIGGER TEXT === */
.sort-select, .sort-bar select { font-size: 16px !important; padding: 14px 18px !important; font-weight: 600; }
.results-count { font-size: 16px !important; font-weight: 600; }
.sort-bar { gap: 12px; }

/* === CATEGORY PAGE === */
.category-page { display: none; padding: 20px 0 40px; }
.category-page.visible { display: block; }
.category-page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.category-back-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition); text-decoration: none; }
.category-back-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.category-page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.category-page-title .cat-emoji { margin-right: 8px; }
.category-page-count { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.category-page-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 48px; }
.category-related { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--border); }
.category-related h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.category-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category-related-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; transition: var(--transition); }
.category-related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-related-card .cat-emoji-badge { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.category-related-card .cat-info { display: flex; flex-direction: column; }
.category-related-card .cat-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.category-related-card .cat-count { font-size: 11px; color: var(--text-muted); }

/* === HIGHLIGHTED CATEGORY CARD IN BAR === */
.categories-scroll .category-card.active { box-shadow: 0 0 0 2px var(--primary), var(--shadow-md); }

/* === MODAL BODY - prevent overflow === */
.modal-body { overflow-x: hidden !important; }

/* === RELATED / SUGGESTIONS SLIDERS IN MODAL === */
.modal-related-section { margin: 0 0 20px; overflow: hidden; }
.modal-related-section h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.modal-related-section h4 svg { width: 16px; height: 16px; color: var(--primary); }
.related-slider { display: flex; overflow-x: auto; gap: 10px; padding: 4px 0 8px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; min-width: 0; max-width: 100%; }
.related-slider::-webkit-scrollbar { height: 4px; }
.related-slider::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.related-slider::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.related-card { min-width: 130px; max-width: 130px; flex-shrink: 0; background: #fff; border: 1px solid #f0ece6; border-radius: 12px; padding: 8px; cursor: pointer; transition: var(--transition); scroll-snap-align: start; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: var(--primary); }
.related-card img { width: 100%; height: 90px; object-fit: contain; border-radius: 8px; background: #f8f8f8; margin-bottom: 6px; }
.related-card .rc-title { font-size: 11px; font-weight: 500; color: #333; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card .rc-price { font-size: 12px; font-weight: 700; color: var(--primary); }

/* === MOBILE === */
@media (max-width: 768px) {
  .sort-select, .sort-bar select { font-size: 18px !important; padding: 16px 18px !important; min-height: 52px; width: 100%; }
  .sort-bar { flex-direction: column; align-items: stretch; }
  .results-count { font-size: 17px !important; font-weight: 600; }
  .modal-content { max-width: 100% !important; width: 100% !important; max-height: 92vh !important; margin: 0 !important; border-radius: 16px 16px 0 0 !important; }
  .modal-body { padding: 16px !important; padding-bottom: 80px !important; overflow-x: hidden !important; }
  .modal-wa-share { margin: 12px 0; font-size: 13px; padding: 10px 12px; }
  .recent-item { min-width: 150px; max-width: 150px; }
  .save-badge { font-size: 11px; padding: 3px 8px; }

  /* Product card text bigger */
  .product-name { font-size: 15px !important; }
  .product-brand { font-size: 13px !important; }
  .product-price-row { font-size: 15px !important; }
  .current-price { font-size: 18px !important; }
  .original-price { font-size: 14px !important; }
  .discount-badge { font-size: 13px !important; padding: 4px 12px !important; }
  .view-btn { font-size: 14px !important; padding: 10px 16px !important; }
  .category-name { font-size: 13px !important; }
  .category-count { font-size: 12px !important; }
  .recent-item p { font-size: 14px !important; }

  /* Modal text bigger */
  .modal-title { font-size: 20px !important; }
  .modal-brand { font-size: 14px !important; }
  .modal-desc { font-size: 15px !important; }
  .spec-label { font-size: 13px !important; }
  .spec-value { font-size: 14px !important; }
  .review-text { font-size: 14px !important; }
  .reviewer-name { font-size: 14px !important; }
  .value-tips li { font-size: 14px !important; }
  .nav-links a { font-size: 15px !important; }

  /* Category page mobile */
  .category-page-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-related-grid { grid-template-columns: repeat(2, 1fr); }
  .category-page-title { font-size: 1.2rem; }
  .category-page-header { gap: 10px; }

  /* Related cards mobile */
  .modal-related-section { overflow: hidden; }
  .related-slider { gap: 8px; }
  .related-card { min-width: 110px; max-width: 110px; }
  .related-card img { height: 75px; }
}

/* === SECTION SPACING === */
.section-header { margin-bottom: 12px; }


/* ============================================================
   TEXT COLOR & BUTTON IMPROVEMENTS
   ============================================================ */

/* --- DARKER TEXT COLORS --- */
:root {
  --text: #10213D !important;
  --text-secondary: #5C6680 !important;
  --text-muted: #5C6680 !important;
}

body { color: #10213D !important; }

.product-name { color: #10213D !important; font-weight: 600 !important; }
.product-brand { color: #5C6680 !important; font-weight: 500 !important; }
.results-count { color: #5C6680 !important; font-weight: 600 !important; }
.category-name { color: #10213D !important; }
.section-title { color: #10213D !important; }
.modal-title { color: #10213D !important; }
.modal-brand { color: #5C6680 !important; }
.modal-section-title { color: #10213D !important; }
.modal-desc { color: #5C6680 !important; line-height: 1.7 !important; }
.spec-label { color: #5C6680 !important; }
.spec-value { color: #10213D !important; font-weight: 500 !important; }
.review-text { color: #5C6680 !important; }
.reviewer-name { color: #10213D !important; font-weight: 600 !important; }
.review-date { color: #5C6680 !important; }
.wishlist-item-name { color: #10213D !important; }
.search-result-name { color: #10213D !important; }
.rc-title { color: #10213D !important; }
.category-page-title { color: #10213D !important; }
.category-page-count { color: #5C6680 !important; }
.category-related h3 { color: #10213D !important; }
.offer-page h2 { color: #10213D !important; }
.empty-state h3 { color: #10213D !important; }
.empty-state p { color: #5C6680 !important; }

/* --- VIEW BUTTON --- */
.view-btn {
  background: #5A63D8 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 8px !important;
}
.view-btn:hover {
  background: #4A52C0 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(90,99,216,0.35) !important;
}
.view-btn:active { transform: translateY(0) !important; box-shadow: none !important; }

/* --- BACK BUTTONS --- */
.category-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  color: #10213D !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.category-back-btn:hover {
  background: #5A63D8 !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: translateX(-2px) !important;
  box-shadow: 0 4px 12px rgba(90,99,216,0.3) !important;
}

.offer-page a[onclick*="showShopPage"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  color: #10213D !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.offer-page a[onclick*="showShopPage"]:hover {
  background: #5A63D8 !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: translateX(-2px) !important;
  box-shadow: 0 4px 12px rgba(90,99,216,0.3) !important;
}

/* --- STICKY BUY BUTTON --- */
.sticky-buy-btn {
  background: #5A63D8 !important;
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(90,99,216,0.3) !important;
}
.sticky-buy-btn:hover {
  background: #4A52C0 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(90,99,216,0.4) !important;
}

/* --- SLIDER CTA --- */
.slide-cta {
  display: inline-block !important;
  padding: 10px 24px !important;
  background: #fff !important;
  color: #10213D !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.slide-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

/* --- PRODUCT CARD --- */
.product-card:hover { transform: translateY(-4px) !important; box-shadow: var(--shadow-md) !important; }

/* --- SORT SELECT --- */
.sort-select { color: #10213D !important; font-weight: 500 !important; }

/* --- MODAL CLOSE --- */
.modal-close { color: #5C6680 !important; }
.modal-close:hover { color: #10213D !important; }

/* --- CATEGORY COUNT --- */
.category-count { color: #5C6680 !important; }

/* --- TIP ICON --- */
.value-tips .tip-icon {
  background: #5A63D8 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
}

/* --- CATEGORY PAGE CENTER ALIGNMENT --- */
.category-page-header { text-align: center; }
.category-page-count { text-align: center; }
.category-related h3 { text-align: center; }
.category-related-grid { justify-content: center; }
.section-header { text-align: center; justify-content: center; }

/* --- CATEGORY RELATED CARD --- */
.category-related-card:hover { transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; }


/* === SEARCH CLOSE - prominent X button === */
.search-close { 
  display: flex !important; 
  align-items: center; 
  justify-content: center;
  width: 32px !important; 
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: #F0EDFF !important;
  color: #5A63D8 !important;
  flex-shrink: 0;
}
.search-close:hover { background: #E8E3FA !important; color: #4A52C0 !important; }

/* === SEARCH RESULTS === */
.search-results {
  max-height: 60vh;
  overflow-y: auto;
  border-top: 1px solid #E8E3FA;
  margin-top: 12px;
}
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: #F0EDFF; border-radius: 4px; }
.search-results::-webkit-scrollbar-thumb { background: #E8E3FA; border-radius: 4px; }

/* === SEARCH RESULT ITEM === */
.search-result-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  border-bottom: 1px solid #F0EDFF !important;
}

/* --- SEARCH RESULTS --- */
.search-result-item:hover { background: #F0EDFF !important; }
