/**
 * TechAchintya Shop - Main Stylesheet
 * Version: 1.0.0
 * Modern, High-Performance CSS for Product Discovery & Price Comparison Platform
 */

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --secondary: #3B82F6;
  --secondary-dark: #1D4ED8;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --success: #10B981;
  --success-light: #D1FAE5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --info: #06B6D4;

  /* Surfaces & Backgrounds */
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;

  /* Typography Colors */
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* Borders & Dividers */
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-dark: #334155;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 14px 30px rgba(79, 70, 229, 0.14);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.35);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-primary-reverse: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  --gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #2DD4BF 100%);
  --gradient-amber: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

  /* Store Brand Colors */
  --store-amazon: #FF9900;
  --store-amazon-dark: #232F3E;
  --store-flipkart: #2874F0;
  --store-meesho: #9333EA;
  --store-croma: #00E9BF;
  --store-myntra: #FF3F6C;
  --store-ajio: #2C4152;
  --store-tatacliq: #D40F7D;
}

/* ==========================================================================
   2. GLOBAL RESETS, TYPOGRAPHY & SCROLLBAR
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-pill);
  border: 2px solid #F1F5F9;
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Selection Color */
::selection {
  background-color: var(--primary);
  color: var(--text-white);
}

::-moz-selection {
  background-color: var(--primary);
  color: var(--text-white);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   3. NAVBAR & STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-bottom-color: var(--border);
}

/* Brand Logo */
.brand-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--text-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: var(--transition);
}

.navbar-brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* Nav Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #334155;
  padding: 0.55rem 0.95rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.935rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.06);
}

.navbar-nav .nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background-color: rgba(79, 70, 229, 0.08);
}

/* Dropdown Menu Animations */
.dropdown-menu {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem;
  animation: dropdownSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
  background: #FFFFFF;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #334155;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary-50);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
  color: var(--text-white);
}

/* Header Live Search */
.header-search-form {
  position: relative;
  min-width: 280px;
  transition: var(--transition);
}

.header-search-input {
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem 0.5rem 2.5rem;
  border: 1.5px solid var(--border);
  background-color: #F1F5F9;
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition);
  width: 100%;
}

.header-search-input:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  outline: none;
}

.header-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.header-search-input:focus + .header-search-icon,
.header-search-form:focus-within .header-search-icon {
  color: var(--primary);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  animation: dropdownSlideDown 0.2s ease-out;
}

/* Micro Top Announcement Bar */
.top-notice-bar {
  background: #0B1120;
  color: #CBD5E1;
  font-size: 0.78rem;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #1E293B;
}

.top-notice-bar a {
  color: #A5B4FC;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.top-notice-bar a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Mobile Hamburger Menu */
.navbar-toggler {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   4. HERO SECTION & ANIMATED SHAPES
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #1E293B 100%);
  color: var(--text-white);
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

/* CSS Animated Ambient Blobs & Particles */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-circle);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.hero-section::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #4F46E5 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: heroFloat 12s ease-in-out infinite alternate;
}

.hero-section::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  bottom: -150px;
  left: -80px;
  animation: heroFloatReverse 15s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
  100% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes heroFloatReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E0E7FF;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Hero Big Search Box */
.hero-search-wrapper {
  max-width: 680px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 5;
}

.hero-search-card {
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.45rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-search-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 16px 45px rgba(79, 70, 229, 0.45);
}

.hero-search-card input {
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  color: var(--text);
  flex-grow: 1;
  background: transparent;
  outline: none;
}

.hero-search-card .btn-hero-search {
  background: var(--gradient-primary);
  border: none;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.hero-search-card .btn-hero-search:hover {
  background: var(--gradient-primary-reverse);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* Hero Trending Category Pills */
.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero-pill-link {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F1F5F9;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-pill-link:hover {
  background: #FFFFFF;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   5. SECTION HEADINGS & ACCENTS
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.75rem;
  position: relative;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* Colored Accent Underline */
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  margin-top: 0.6rem;
  transition: var(--transition);
}

.section-header.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-header:hover .section-title::after {
  width: 75px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.btn-view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-view-all i {
  transition: var(--transition-fast);
}

.btn-view-all:hover {
  color: var(--primary-dark);
}

.btn-view-all:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   6. CATEGORY CARDS
   ========================================================================== */
.category-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.2);
}

.category-card:hover::before {
  opacity: 1;
}

.cat-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.15rem;
  transition: var(--transition);
}

.category-card:hover .cat-icon-wrap {
  background: var(--gradient-primary);
  color: #FFFFFF;
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.cat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  transition: var(--transition-fast);
}

.category-card:hover .cat-title {
  color: var(--primary);
}

.cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ==========================================================================
   7. PRODUCT CARDS & BADGES
   ========================================================================== */
.product-card-wrapper {
  height: 100%;
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.25);
}

/* Badges */
.badge-layer {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none;
}

.badge-gradient {
  background: var(--gradient-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
  text-transform: uppercase;
}

.badge-discount {
  background-color: var(--danger);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* Product Image Box */
.product-img-box {
  position: relative;
  padding-top: 95%;
  background-color: #F8FAFC;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.product-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb-img {
  transform: scale(1.08);
}

/* Product Card Content */
.product-card .card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
}

.product-brand {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Store Badges */
.store-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.store-badge.store-amazon {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FED7AA;
}

.store-badge.store-flipkart {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.store-badge.store-meesho {
  background: #FAF5FF;
  color: #7E22CE;
  border-color: #E9D5FF;
}

.store-badge.store-croma {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.store-badge.store-myntra {
  background: #FFF1F2;
  color: #BE123C;
  border-color: #FECDD3;
}

/* Title Clamp */
.product-title {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
  height: 2.65em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.65rem;
}

.product-title a {
  color: var(--text);
}

.product-title a:hover {
  color: var(--primary);
}

/* Price Box */
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.product-current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.product-original-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-card-btn {
  width: 100%;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

/* ==========================================================================
   8. CHANNEL CARDS (YOUTUBE / INFLUENCERS)
   ========================================================================== */
.channel-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(239, 68, 68, 0.25);
}

.channel-avatar-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.channel-avatar {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.channel-card:hover .channel-avatar {
  transform: scale(1.08);
}

.channel-badge-yt {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: #FF0000;
  color: #FFFFFF;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid #FFFFFF;
}

.channel-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.channel-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.15rem;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btn-youtube {
  background-color: #FF0000;
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.15rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
  transition: var(--transition);
  border: none;
}

.btn-youtube:hover {
  background-color: #CC0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

/* ==========================================================================
   9. FEATURE BOXES & TRUST PILLARS
   ========================================================================== */
.features-section {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.feature-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
}

.feature-box:hover {
  background: var(--bg);
  border-color: var(--border);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-box:hover .feature-icon-wrap {
  background: var(--gradient-primary);
  color: #FFFFFF;
  transform: scale(1.08);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   10. BREADCRUMBS & PAGINATION
   ========================================================================== */
.custom-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
  font-size: 0.86rem;
  margin-bottom: 1.5rem;
}

.custom-breadcrumb a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.custom-breadcrumb a:hover {
  color: var(--primary);
}

.custom-breadcrumb .breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.custom-breadcrumb .breadcrumb-active {
  color: var(--text);
  font-weight: 600;
}

/* Bootstrap Pagination Custom Styling */
.pagination {
  gap: 0.35rem;
  margin-top: 2rem;
  justify-content: center;
}

.page-item .page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  background-color: #FFFFFF;
  transition: var(--transition-fast);
}

.page-item .page-link:hover {
  background-color: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-light);
}

.page-item.active .page-link {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.page-item.disabled .page-link {
  color: var(--text-light);
  background-color: #F8FAFC;
  border-color: var(--border);
  opacity: 0.6;
}

/* ==========================================================================
   11. CATEGORY LISTING & FILTER SIDEBAR
   ========================================================================== */
.filter-sidebar {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.filter-group-header {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-divider {
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* Form Check / Filter items */
.filter-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.filter-checkbox-item:hover {
  color: var(--primary);
}

.filter-checkbox-item input[type="checkbox"],
.filter-checkbox-item input[type="radio"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
  margin-right: 0.6rem;
}

.filter-count-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* Price Range Inputs */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.price-range-input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
}

/* Listing Top Toolbar */
.listing-toolbar {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  gap: 1rem;
}

.toolbar-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toolbar-count strong {
  color: var(--text);
}

.toolbar-sort-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
  background-color: #F8FAFC;
  outline: none;
}

/* Active Filter Badges */
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.filter-chip {
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-chip-remove {
  cursor: pointer;
  color: var(--primary);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.filter-chip-remove:hover {
  opacity: 1;
}

/* ==========================================================================
   12. PRODUCT DETAIL PAGE & STORE COMPARISON
   ========================================================================== */
.product-detail-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

/* Gallery Showcase */
.detail-main-img-box {
  background-color: #F8FAFC;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-main-img {
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.detail-main-img:hover {
  transform: scale(1.05);
}

.detail-thumb-gallery {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.detail-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  padding: 0.35rem;
  background: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.detail-thumb-item:hover,
.detail-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.detail-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Detail Right Column Info */
.detail-brand-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--primary-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.85rem;
}

.detail-product-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.detail-meta-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Detail Hero Price Block */
.detail-price-block {
  background: #F8FAFC;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.detail-original-price {
  font-size: 1.15rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.detail-save-badge {
  background: var(--danger-light);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Affiliate Buy Buttons per Store */
.affiliate-stores-section {
  margin-bottom: 2rem;
}

.affiliate-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: var(--transition);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.affiliate-store-row:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.affiliate-store-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.store-logo-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.btn-store-buy {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Store Specific Button Theming */
.btn-store-amazon {
  background: #FF9900;
  color: #111827 !important;
}

.btn-store-amazon:hover {
  background: #E68A00;
  box-shadow: 0 6px 18px rgba(255, 153, 0, 0.35);
  transform: translateY(-2px);
}

.btn-store-flipkart {
  background: #2874F0;
  color: #FFFFFF !important;
}

.btn-store-flipkart:hover {
  background: #1A5CC2;
  box-shadow: 0 6px 18px rgba(40, 116, 240, 0.35);
  transform: translateY(-2px);
}

.btn-store-meesho {
  background: #9333EA;
  color: #FFFFFF !important;
}

.btn-store-meesho:hover {
  background: #7E22CE;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.35);
  transform: translateY(-2px);
}

.btn-store-croma {
  background: #12DAA8;
  color: #0F172A !important;
}

.btn-store-croma:hover {
  background: #0EB88D;
  box-shadow: 0 6px 18px rgba(18, 218, 168, 0.35);
  transform: translateY(-2px);
}

.btn-store-myntra {
  background: #FF3F6C;
  color: #FFFFFF !important;
}

.btn-store-myntra:hover {
  background: #E02B56;
  box-shadow: 0 6px 18px rgba(255, 63, 108, 0.35);
  transform: translateY(-2px);
}

.btn-store-generic {
  background: var(--gradient-primary);
  color: #FFFFFF !important;
}

.btn-store-generic:hover {
  background: var(--gradient-primary-reverse);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

/* Affiliate Disclosure Notice Box */
.affiliate-disclosure-alert {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: #92400E;
  font-size: 0.86rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.affiliate-disclosure-alert i {
  font-size: 1.25rem;
  color: var(--amber);
  margin-top: 0.15rem;
}

/* ==========================================================================
   13. SEARCH RESULTS & STATIC PAGES
   ========================================================================== */
.search-header-hero {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 3.5rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #334155;
}

.search-header-query {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.search-query-badge {
  background: rgba(79, 70, 229, 0.25);
  color: #A5B4FC;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(165, 180, 252, 0.3);
}

/* Static Page Content (About, Contact, Privacy, Terms) */
.page-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.page-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.page-body h2,
.page-body h3,
.page-body h4 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.page-body p {
  margin-bottom: 1.25rem;
}

.page-body ul,
.page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-body li {
  margin-bottom: 0.45rem;
}

/* ==========================================================================
   14. FOOTER & DISCLOSURE
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #E2E8F0;
  border-top: 1px solid var(--border-dark);
}

.footer-disclosure {
  background-color: #1E293B;
  border-bottom: 1px solid #334155;
}

.footer-main {
  padding: 4.5rem 0 3.5rem;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  background-color: #1E293B;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--gradient-primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.footer-bottom {
  background-color: #020617;
  border-top: 1px solid #1E293B;
  font-size: 0.82rem;
  color: #64748B;
  padding: 1.25rem 0;
}

/* Back To Top Button */
#backToTopFloating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--gradient-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
}

#backToTopFloating.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTopFloating:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

/* ==========================================================================
   15. UTILITY CLASSES
   ========================================================================== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-subtle {
  background: var(--gradient-subtle) !important;
}

.card-hover {
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.shadow-soft {
  box-shadow: var(--shadow) !important;
}

.shadow-glow {
  box-shadow: var(--shadow-glow) !important;
}

.rounded-xl {
  border-radius: var(--radius-lg) !important;
}

.border-subtle {
  border: 1px solid var(--border) !important;
}

.pointer-events-none {
  pointer-events: none !important;
}

/* Text Truncation */
.text-truncate-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-truncate-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   16. ANIMATIONS & SKELETON LOADERS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Shimmer Loading Skeleton */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.skeleton-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  height: 100%;
}

.skeleton-img {
  width: 100%;
  padding-top: 90%;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 55%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-price {
  height: 24px;
  width: 40%;
  border-radius: 6px;
  margin-top: 0.85rem;
}

/* ==========================================================================
   17. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991.98px) {
  .header-search-form {
    min-width: 100%;
    margin-top: 0.75rem;
  }

  .site-header .navbar-collapse {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-top: 0.75rem;
  }

  .hero-section {
    padding: 3.5rem 0 4rem;
  }

  .filter-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .product-detail-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-search-card {
    padding: 0.35rem;
  }

  .hero-search-card input {
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
  }

  .hero-search-card .btn-hero-search {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .detail-main-img-box {
    min-height: 260px;
    padding: 1rem;
  }

  .detail-current-price {
    font-size: 1.75rem;
  }

  .page-card {
    padding: 1.5rem;
  }

  #backToTopFloating {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
