/*
Theme Name: ALL TRUST B2C - Big E-Commerce Retail Store
Theme URI: https://alltrust.in
Author: ALL TRUST Team
Author URI: https://alltrust.in
Description: A modern, high-converting, big e-commerce WordPress theme for ALL TRUST retail store. Features Shop by Category visual directory, Shop by Brand, interactive dual-slider & box-input Shop by Price filter, direct 1-click Buy Now checkout, slide-out mini cart drawer, and live predictive search.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: all-trust-b2c-theme
Tags: e-commerce, woocommerce, grid-layout, custom-menu, featured-images, full-width-template, theme-options
*/

/* Custom Smooth Transitions & Core Reset */
:root {
  --color-primary: #E51A1A;
  --color-primary-dark: #B91C1C;
  --color-accent: #F59E0B;
  --color-dark: #0F172A;
  --color-slate: #334155;
  --color-light: #F8FAFC;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: #F8FAFC;
  color: #1E293B;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Modern Dual Price Range Slider */
.price-slider-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 9999px;
  margin: 18px 0;
}
.price-slider-progress {
  position: absolute;
  height: 100%;
  background: #E51A1A;
  border-radius: 9999px;
  left: 0%;
  right: 0%;
}
.range-input {
  position: relative;
}
.range-input input {
  position: absolute;
  width: 100%;
  height: 6px;
  top: -6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #E51A1A;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #E51A1A;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: auto;
  cursor: pointer;
}

/* Badge styles */
.badge-discount {
  background: linear-gradient(135deg, #E51A1A 0%, #DC2626 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bestseller {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Card Hover Effect */
.b2c-product-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.b2c-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Side Mini-Cart Drawer Transition */
#b2c-mini-cart-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#b2c-mini-cart-overlay {
  transition: opacity 0.3s ease;
}

/* Pulse animation for hot deals */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Mobile Touch Scrolling & Smooth Scroll */
html {
  scroll-behavior: smooth;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

