/* ==========================================================================
   Swapno Importer - Core Design System & Component Library
   Palette: Corporate Navy (#0F2C59), Slate (#334155), Amber Accent (#D97706)
   ========================================================================== */

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

:root {
  --primary: #0F2C59;
  --primary-hover: #0a1f3f;
  --primary-light: #1e3a8a;
  --secondary: #334155;
  --accent: #D97706;
  --accent-hover: #b45309;
  --dark: #0F172A;
  --body: #334155;
  --light-bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #EA580C;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 44, 89, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 44, 89, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --touch-min: 44px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background-color: var(--light-bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Accessible focus outline */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

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

a:hover {
  color: var(--accent);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-main {
  flex: 1 0 auto;
}

/* Top Utility Bar */
.top-bar {
  background: var(--dark);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-contacts a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-contacts a:hover {
  color: var(--accent);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Currency Selector */
.currency-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.currency-btn {
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.currency-btn.active {
  background: var(--primary);
  color: #FFF;
}

/* Main Header Navbar */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  font-weight: 800;
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(15, 44, 89, 0.2);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 480px;
}

.search-form {
  position: relative;
  display: flex;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 1rem;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  background: #FFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
  outline: none;
}

.search-submit {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  background: var(--accent);
}

/* Main Navigation Links (Desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Header Right Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-bg);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--dark);
  min-height: var(--touch-min);
  transition: var(--transition);
}

.cart-btn:hover {
  background: #EEF2F6;
  border-color: var(--primary);
}

.cart-badge {
  background: var(--accent);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Toggle (Mobile) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

/* Buttons with Modern Transitions & Shimmer */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-min);
  padding: 0.65rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  text-decoration: none;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn:hover::after {
  left: 140%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #172554 100%);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 44, 89, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #d97706 100%);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--secondary);
}
.btn-outline:hover {
  background: #F8FAFC;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.08);
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  min-height: 50px;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-danger { background: #FEE2E2; color: #B91C1C; }
.badge-info { background: #E0F2FE; color: #0369A1; }
.badge-neutral { background: #F1F5F9; color: #475569; }

/* Alerts / Flash Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid;
}

.alert-success { background: #F0FDF4; border-color: var(--success); color: #166534; }
.alert-error { background: #FEF2F2; border-color: var(--danger); color: #991B1B; }
.alert-info { background: #F0F9FF; border-color: #0284C7; color: #075985; }

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 35px -10px rgba(15, 44, 89, 0.16), 0 0 1px 1px rgba(217, 119, 6, 0.2);
  border-color: #CBD5E1;
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.09);
}

.origin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFF;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-sku {
  font-size: 0.75rem;
  color: #64748B;
  font-family: monospace;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.product-prices {
  margin-top: auto;
  padding-top: 0.75rem;
  margin-bottom: 0.85rem;
}

.price-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.price-wholesale {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Section Header Component */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  font-size: 0.925rem;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Cards & Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94A3B8;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: #FFF;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Animations & Transition Effects Suite (Fashion Sourcing Theme)
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@keyframes pulseGold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0);
  }
}

@keyframes bounceCart {
  0%, 100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
  60% {
    transform: scale(0.9);
  }
}

/* Animation Utility Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-float {
  animation: floatSlow 3s ease-in-out infinite;
}

/* Hero Section Fashion Styling */
.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0F2C59 0%, #172554 40%, #1e1b4b 100%);
  color: #FFF;
  box-shadow: 0 15px 35px rgba(15, 44, 89, 0.15);
}

.hero-slide {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge-fashion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FEF08A;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: floatSlow 3.5s ease-in-out infinite;
}

.hero-title-fashion {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFF;
  max-width: 780px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub-fashion {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #E2E8F0;
  max-width: 650px;
  margin-bottom: 2rem;
}

/* Floating WhatsApp & Support Pill */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #25D366;
  color: #FFF;
  border-radius: 9999px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseGlow 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  color: #FFF;
}

/* Origin Tags for China and India */
.origin-tag-china {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: #FFF;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.origin-tag-india {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #FFF;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

/* Category Cards with Animated Image Hover */
.category-card-fashion {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card-fashion:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 15px 30px rgba(15, 44, 89, 0.12);
}

.category-card-fashion .cat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.category-card-fashion:hover .cat-icon {
  transform: scale(1.15) rotate(4deg);
}

/* Fabric chips */
.fabric-tag {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
  display: inline-block;
}
