/*
Theme Name: Kharan Mobile Parts
Theme URI: https://kharanmobileparts.com
Author: KMP Development
Author URI: https://kharanmobileparts.com
Description: Premium dark-gold theme for Kharan Mobile Parts — Pakistan's trusted mobile parts store.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kharan-mobile-parts
Tags: dark, gold, ecommerce, mobile, shop, responsive
*/

/* ════════════════════════════════════════════════════════════════
   INFINITY TOUCH STORE — custom.css
   Shared across: index.html | shop.html | contact.html
   WordPress-safe: no element resets, scoped class names only
   ════════════════════════════════════════════════════════════════ */

/* ── Core Colour Tokens ── */
:root {
  --its-gold:        #D4AF37;
  --its-gold-dim:    rgba(212,175,55,0.08);
  --its-gold-soft:   rgba(212,175,55,0.15);
  --its-gold-glow:   rgba(212,175,55,0.40);
  --its-primary:     #0B1120;
  --its-secondary:   #0F172A;
  --its-border:      rgba(255,255,255,0.08);
  --its-border-nav:  rgba(255,255,255,0.05);
  --its-text-muted:  #64748b;
  --its-transition:  0.3s ease;
}

/* ══════════════════════════════════════
   SELECTION
══════════════════════════════════════ */
.its-page ::selection {
  background: var(--its-gold);
  color: var(--its-primary);
}

/* ══════════════════════════════════════
   GLASS UTILITIES
══════════════════════════════════════ */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--its-border);
}

.glass-nav {
  background: rgba(11,17,32,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--its-border-nav);
}

/* ══════════════════════════════════════
   COLOUR HELPERS
══════════════════════════════════════ */
.text-gold  { color: var(--its-gold) !important; }
.bg-gold    { background-color: var(--its-gold) !important; }
.border-gold{ border-color: var(--its-gold) !important; }

/* ══════════════════════════════════════
   SCROLLBAR HIDE
══════════════════════════════════════ */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ══════════════════════════════════════
   CATEGORY CARD HOVER
══════════════════════════════════════ */
.category-card:hover .cat-icon {
  transform: scale(1.1) rotate(3deg);
}
.cat-icon {
  transition: transform 0.4s ease;
}

/* ══════════════════════════════════════
   PRODUCT CARD INTERACTIONS
══════════════════════════════════════ */
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.product-img {
  transition: transform 0.5s ease;
}

/* ══════════════════════════════════════
   SCROLL SNAP
══════════════════════════════════════ */
.scroll-container {
  scroll-snap-type: x mandatory;
}
.scroll-container > * {
  scroll-snap-align: start;
}

/* ══════════════════════════════════════
   TOAST ANIMATIONS
══════════════════════════════════════ */
.toast-enter {
  animation: its-slideIn 0.4s ease forwards;
}
.toast-exit {
  animation: its-slideOut 0.4s ease forwards;
}
@keyframes its-slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes its-slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* ══════════════════════════════════════
   FADE-IN-UP (cards & sections)
══════════════════════════════════════ */
@keyframes its-fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.fade-in-up {
  animation: its-fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* ══════════════════════════════════════
   FLOAT ANIMATION (hero image widget)
══════════════════════════════════════ */
@keyframes its-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-10px); }
}
.float-anim {
  animation: its-float 4s ease-in-out infinite;
}

/* ══════════════════════════════════════
   PULSE GOLD (CTA buttons)
══════════════════════════════════════ */
@keyframes its-pulseGold {
  0%,100% { box-shadow: 0 0 0 0   var(--its-gold-glow); }
  50%      { box-shadow: 0 0 0 15px rgba(212,175,55,0); }
}
.pulse-gold {
  animation: its-pulseGold 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   MOBILE SIDEBAR / OVERLAY
══════════════════════════════════════ */
.sidebar-mobile {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar-mobile.open {
  transform: translateX(0);
}
.overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════
   HERO GRADIENTS
══════════════════════════════════════ */
.hero-gradient {
  background:
    radial-gradient(ellipse at 70% 50%, var(--its-gold-dim) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(212,175,55,0.05) 0%, transparent 50%);
}
.offer-gradient {
  background: linear-gradient(
    135deg,
    var(--its-gold-soft) 0%,
    rgba(11,17,32,0.95)  50%,
    rgba(212,175,55,0.10) 100%
  );
}

/* ══════════════════════════════════════
   MARQUEE (announcement bar)
══════════════════════════════════════ */
@keyframes its-marquee {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}
.marquee {
  animation: its-marquee 30s linear infinite;
}

/* ══════════════════════════════════════
   STAR ICON FILL
══════════════════════════════════════ */
.star-fill {
  fill: var(--its-gold);
}

/* ══════════════════════════════════════
   TESTIMONIAL CARDS
══════════════════════════════════════ */
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-4px);
}

/* ══════════════════════════════════════
   FOOTER LINKS
══════════════════════════════════════ */
.footer-link {
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--its-gold);
}

/* ══════════════════════════════════════
   SHOP PAGE — FILTER CONTROLS
══════════════════════════════════════ */

/* Custom checkbox */
.filter-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #475569;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-checkbox:checked {
  background-color: var(--its-gold);
  border-color: var(--its-gold);
}
.filter-checkbox:checked::after {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--its-primary);
  font-size: 12px;
  font-weight: 700;
  height: 100%;
}

/* Range slider */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--its-gold);
  border-radius: 50%;
  cursor: pointer;
}
.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--its-gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Sold-out overlay */
.sold-out-overlay {
  background: rgba(11,17,32,0.7);
}

/* ══════════════════════════════════════
   SHOP PAGE — PRODUCT CARD (shop.html variant)
══════════════════════════════════════ */
.shop-product-card:hover .product-img {
  transform: scale(1.05);
}
.shop-product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   CONTACT PAGE — MAP & FORM INPUTS
══════════════════════════════════════ */
.contact-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--its-border);
  color: #f1f5f9;
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  font-size: 14px;
  transition: border-color 0.2s ease;
  outline: none;
}
.contact-input:focus {
  border-color: rgba(212,175,55,0.5);
}
.contact-input::placeholder {
  color: var(--its-text-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE HELPERS
══════════════════════════════════════ */
@media (max-width: 640px) {
  .float-anim {
    animation-duration: 3s;
  }
  .hero-gradient {
    background:
      radial-gradient(ellipse at 80% 20%, var(--its-gold-dim) 0%, transparent 50%);
  }
}

/* ══════════════════════════════════════
   WORDPRESS COMPATIBILITY NOTES
   - No bare element resets (h1,p,ul etc.)
   - All rules scoped to class names
   - backdrop-filter with -webkit- prefix
   - animation names prefixed with "its-"
     to avoid collision with WP themes
══════════════════════════════════════ */

/* ══════════════════════════════════════
   WORDPRESS NAV MENU STYLES
   (wp_nav_menu generates <ul><li><a> structure)
══════════════════════════════════════ */
#kmp-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#kmp-nav-menu li {
  list-style: none;
}
#kmp-nav-menu li a {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  letter-spacing: 0.025em;
  transition: color 0.15s ease;
}
#kmp-nav-menu li a:hover,
#kmp-nav-menu li.current-menu-item > a,
#kmp-nav-menu li.current_page_item > a {
  color: #ffffff;
}
#kmp-nav-menu li.current-menu-item > a,
#kmp-nav-menu li.current_page_item > a {
  color: #D4AF37;
}

/* Mobile menu nav */
#kmp-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#kmp-mobile-menu li {
  list-style: none;
}
#kmp-mobile-menu li a {
  display: block;
  padding: 0.5rem 0;
  color: #94a3b8;
  font-size: 0.925rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
#kmp-mobile-menu li a:hover,
#kmp-mobile-menu li.current-menu-item > a,
#kmp-mobile-menu li.current_page_item > a {
  color: #D4AF37;
}

/* ══════════════════════════════════════
   PAGE BREADCRUMB
══════════════════════════════════════ */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}
.page-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-breadcrumb a:hover {
  color: #D4AF37;
}

/* ══════════════════════════════════════
   PAGE TITLE SECTION
══════════════════════════════════════ */
.page-title-section {
  padding-top: 9rem;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 1024px) {
  .page-title-section {
    padding-top: 11rem;
  }
}

/* ══════════════════════════════════════
   HERO GRADIENT
══════════════════════════════════════ */
.hero-gradient {
  background: radial-gradient(ellipse at 70% 50%, rgba(212,175,55,0.04) 0%, transparent 60%),
              linear-gradient(180deg, #0B1120 0%, #0F172A 100%);
}

/* ══════════════════════════════════════
   OFFER GRADIENT
══════════════════════════════════════ */
.offer-gradient {
  background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, rgba(15,23,42,0.8) 100%);
}
