/* ================================================================
   Fauji Wear — Main Stylesheet
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ----------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-500: #8b5cf6;
  --purple-100: #ede9fe;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --dark-navy: #0f172a;
  --dark-800:  #1e293b;
  --dark-700:  #334155;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --transition: all .25s ease;
}

/* ----------------------------------------------------------------
   Base Reset
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-purple { color: var(--purple-600); }
.bg-light-custom { background: var(--gray-50); }

/* ----------------------------------------------------------------
   Navbar
   ---------------------------------------------------------------- */
.bm-navbar {
  background: var(--dark-navy) !important;
  backdrop-filter: blur(10px);
  padding: .75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  z-index: 1000;
}
.bm-navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff !important;
}
.bm-navbar .nav-link {
  font-weight: 500;
  color: rgba(255,255,255,.85) !important;
  padding: .4rem .8rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.bm-navbar .nav-link:hover,
.bm-navbar .nav-link.active {
  color: var(--yellow-400) !important;
  background: rgba(255,255,255,.07);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: .65rem;
}

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.bm-hero {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-800) 60%, #2d1b69 100%);
  min-height: 90vh;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.bm-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.3) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-tag {
  display: inline-block;
  background: rgba(250,204,21,.15);
  color: var(--yellow-400);
  border: 1px solid rgba(250,204,21,.3);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-stats { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow-400);
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-image-wrap { position: relative; }
.hero-img { border-radius: var(--radius-lg); max-height: 500px; object-fit: cover; }
.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  color: var(--dark-navy);
}
.hero-badge-1 { bottom: 40px; left: -20px; animation: float 3s ease-in-out infinite; }
.hero-badge-2 { top: 40px; right: -10px; animation: float 3s ease-in-out infinite .5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ----------------------------------------------------------------
   Trust Badges Bar
   ---------------------------------------------------------------- */
.bm-trust {
  background: var(--purple-600);
  color: #fff;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-size: .875rem;
}
.trust-item i { color: var(--yellow-400); flex-shrink: 0; }

/* ----------------------------------------------------------------
   Section Headers
   ---------------------------------------------------------------- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: .3rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ----------------------------------------------------------------
   Category Cards
   ---------------------------------------------------------------- */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-500);
}
.cat-blue  { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.cat-pink  { background: linear-gradient(135deg, #fce7f3, #fdf2f8); }
.cat-yellow{ background: linear-gradient(135deg, #fef9c3, #fefce8); }
.cat-emoji { font-size: 3.5rem; margin-bottom: .75rem; }
.cat-name  { font-size: 1.4rem; font-weight: 700; color: var(--dark-navy); margin-bottom: .5rem; }
.cat-link  { font-size: .85rem; font-weight: 600; color: var(--purple-600); }

/* ----------------------------------------------------------------
   Product Cards
   ---------------------------------------------------------------- */
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--purple-600);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 50px;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.product-img-link { display: block; overflow: hidden; height: 240px; }
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: .75rem; color: var(--purple-600); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-name a {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a:hover { color: var(--purple-600); }
.product-price { margin-top: auto; display: flex; align-items: center; gap: .5rem; }
.price-now { font-size: 1.1rem; font-weight: 700; color: var(--dark-navy); }
.price-was { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.btn-add-cart {
  background: var(--purple-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  padding: .5rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-add-cart:hover { background: var(--purple-700); color: #fff; transform: none; }

/* ----------------------------------------------------------------
   Offer Banner
   ---------------------------------------------------------------- */
.offer-card {
  background: linear-gradient(135deg, var(--purple-600), var(--dark-800));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: #fff;
}
.offer-title { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.offer-text { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn-purple {
  background: var(--purple-600);
  color: #fff;
  border: 2px solid var(--purple-600);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-purple:hover { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }
.btn-warning { font-weight: 600; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.bm-footer {
  background: var(--dark-navy);
  color: rgba(255,255,255,.8);
}
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .875rem; }
.footer-links a:hover { color: var(--yellow-400); }
.footer-text { font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 1.5rem 0 1rem; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ----------------------------------------------------------------
   Shop Page Filters
   ---------------------------------------------------------------- */
.filter-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.filter-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: .75rem; }
.filter-chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip {
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  color: var(--text-main);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--purple-600);
  color: #fff;
  border-color: var(--purple-600);
}
.color-chip {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}
.color-chip.active::after {
  content: '✓';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: .7rem; color: #fff; font-weight: 700;
  text-shadow: 0 0 3px rgba(0,0,0,.5);
}
.color-chip:hover { transform: scale(1.15); border-color: var(--purple-500); }
.price-range { width: 100%; accent-color: var(--purple-600); }

/* ----------------------------------------------------------------
   Product Detail Page
   ---------------------------------------------------------------- */
.gallery-thumb {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--purple-600); }
.size-btn {
  padding: .4rem .8rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.size-btn:hover, .size-btn.active {
  border-color: var(--purple-600);
  background: var(--purple-100);
  color: var(--purple-600);
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 36px; height: 36px;
  border: none;
  background: var(--gray-100);
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--purple-100); color: var(--purple-600); }
.qty-input {
  width: 50px; height: 36px;
  border: none;
  text-align: center;
  font-weight: 700;
  outline: none;
}

/* ----------------------------------------------------------------
   Cart Page
   ---------------------------------------------------------------- */
.cart-item-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cart-item-img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.order-summary-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 80px;
}
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .9rem; }
.summary-total { border-top: 2px solid var(--gray-200); padding-top: .75rem; margin-top: .5rem; font-size: 1.1rem; font-weight: 700; }

/* ----------------------------------------------------------------
   Checkout Page
   ---------------------------------------------------------------- */
.payment-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: .75rem;
}
.payment-option:hover,
.payment-option.selected {
  border-color: var(--purple-600);
  background: var(--purple-100);
}
.cod-advance-box {
  background: linear-gradient(135deg, #fef9c3, #fefce8);
  border: 2px solid var(--yellow-400);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: .75rem;
}
.cod-advance-box .big-amount {
  font-size: 2rem; font-weight: 800; color: var(--dark-navy);
}

/* ----------------------------------------------------------------
   Admin Panel
   ---------------------------------------------------------------- */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--dark-navy);
  color: #fff;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-brand {
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-left-color: var(--yellow-400);
}
.admin-nav-link i { font-size: 1.1rem; width: 20px; }
.admin-main {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
  background: var(--gray-50);
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.stat-widget {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon-purple { background: var(--purple-100); color: var(--purple-600); }
.stat-icon-yellow { background: #fef9c3; color: var(--yellow-500); }
.stat-icon-green  { background: #d1fae5; color: #059669; }
.stat-icon-blue   { background: #dbeafe; color: #2563eb; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--dark-navy); }
.stat-label-sm { font-size: .8rem; color: var(--text-muted); }

/* ----------------------------------------------------------------
   Forms & Inputs
   ---------------------------------------------------------------- */
.form-control, .form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.form-label { font-weight: 600; font-size: .875rem; color: var(--text-main); margin-bottom: .4rem; }

/* ----------------------------------------------------------------
   Auth Pages (Login/Register)
   ---------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2d1b69 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-title { font-size: 1.8rem; font-weight: 800; color: var(--dark-navy); margin-bottom: .3rem; }
.auth-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ----------------------------------------------------------------
   Status Badges
   ---------------------------------------------------------------- */
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-shipped   { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cod       { background: #fce7f3; color: #9d174d; }

/* ----------------------------------------------------------------
   Tables
   ---------------------------------------------------------------- */
.bm-table { font-size: .875rem; }
.bm-table thead th {
  background: var(--gray-50);
  color: var(--text-muted);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--gray-200);
}

/* ----------------------------------------------------------------
   Toast Notification
   ---------------------------------------------------------------- */
.bm-toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
}
.bm-toast {
  background: var(--dark-navy);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-md);
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  animation: slideInRight .3s ease;
  margin-top: .5rem;
}
.bm-toast.success { border-left: 4px solid #10b981; }
.bm-toast.error   { border-left: 4px solid #ef4444; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ----------------------------------------------------------------
   Loading Spinner
   ---------------------------------------------------------------- */
.bm-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------
   Order Success Page
   ---------------------------------------------------------------- */
.success-icon {
  width: 80px; height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  animation: pop .4s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ----------------------------------------------------------------
   Responsive Utilities
   ---------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
}
@media (max-width: 767.98px) {
  .bm-hero { min-height: 80vh; padding: 4rem 0; }
  .hero-title { font-size: 2rem; }
  .cat-card { padding: 1.5rem .75rem; }
  .product-img-link { height: 180px; }
  .cart-item-card { flex-direction: column; align-items: flex-start; }
  .cart-item-img { width: 100%; height: 200px; border-radius: var(--radius-md); }
}
