/**
 * ShopUp Theme CSS — Design System & Visual Identity
 * Electric Blue (#0284c7) & Midnight Slate (#0f172a)
 */

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

:root {
  /* Colors */
  --shopup-primary: #0284c7;
  --shopup-primary-dark: #0369a1;
  --shopup-primary-light: #e0f2fe;
  --shopup-accent: #f59e0b;
  --shopup-accent-dark: #d97706;
  --shopup-success: #10b981;
  --shopup-success-light: #dcfce7;
  --shopup-dark: #0f172a;
  --shopup-body: #334155;
  --shopup-muted: #64748b;
  --shopup-border: #e2e8f0;
  --shopup-border-light: #f1f5f9;
  --shopup-bg: #f8fafc;
  --shopup-card-bg: #ffffff;
  
  /* Shadows & Elevation */
  --shopup-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shopup-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shopup-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  
  /* Geometry */
  --shopup-radius-sm: 10px;
  --shopup-radius-md: 16px;
  --shopup-radius-lg: 24px;
  --shopup-radius-full: 9999px;
  
  /* Typography */
  --shopup-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base resets & typography */
body {
  font-family: var(--shopup-font);
  background-color: var(--shopup-bg);
  color: var(--shopup-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--shopup-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ============================================================
   HEADER & TOPBAR STYLES
============================================================ */
.shopup-topbar {
  background: var(--shopup-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shopup-topbar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}
.shopup-topbar a:hover {
  color: #38bdf8;
}

.shopup-header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid var(--shopup-border);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.shopup-search-input {
  height: 46px;
  border-radius: 50px 0 0 50px;
  border: 1.5px solid var(--shopup-border);
  border-right: none;
  padding-left: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--shopup-bg);
}
.shopup-search-input:focus {
  background: #ffffff;
  border-color: var(--shopup-primary);
  box-shadow: none;
}
.shopup-search-btn {
  height: 46px;
  border-radius: 0 50px 50px 0;
  padding: 0 24px;
  background: var(--shopup-primary);
  border: 1.5px solid var(--shopup-primary);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
}
.shopup-search-btn:hover {
  background: var(--shopup-primary-dark);
  border-color: var(--shopup-primary-dark);
  color: #ffffff;
}

/* ============================================================
   CATEGORY NAVIGATION PILLS
============================================================ */
.shopup-cat-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--shopup-border);
  padding: 10px 0;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--shopup-border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--shopup-body);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--shopup-primary-light);
  border-color: #bae6fd;
  color: var(--shopup-primary-dark);
  transform: translateY(-1px);
}

/* ============================================================
   TRUST & ASSURANCE BAR
============================================================ */
.shopup-trust-card {
  background: #ffffff;
  border: 1px solid var(--shopup-border);
  border-radius: var(--shopup-radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shopup-shadow-sm);
  transition: all 0.2s ease;
}
.shopup-trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shopup-shadow-md);
  border-color: #cbd5e1;
}
.shopup-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ============================================================
   MODERN PRODUCT CARDS
============================================================ */
.shopup-product-card {
  background: #ffffff;
  border-radius: var(--shopup-radius-md);
  border: 1px solid var(--shopup-border);
  overflow: hidden;
  box-shadow: var(--shopup-shadow-sm);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.shopup-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shopup-shadow-md);
  border-color: #bae6fd;
}
.shopup-product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 95%; /* 1:1 Aspect ratio */
  overflow: hidden;
  background: #f8fafc;
}
.shopup-product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.shopup-product-card:hover .shopup-product-img {
  transform: scale(1.06);
}

.shopup-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  z-index: 2;
}

.shopup-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.shopup-product-shop {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--shopup-primary);
  text-decoration: none;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.shopup-product-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--shopup-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.shopup-product-title:hover {
  color: var(--shopup-primary);
}

.shopup-price-wrap {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.shopup-price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--shopup-dark);
}
.shopup-price-old {
  font-size: 0.88rem;
  color: var(--shopup-muted);
  text-decoration: line-through;
}

.btn-shopup-buy {
  background: var(--shopup-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  padding: 9px 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
  text-decoration: none;
}
.btn-shopup-buy:hover {
  background: var(--shopup-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* ============================================================
   SELLER CTA PROMO CARD
============================================================ */
.shopup-seller-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--shopup-radius-lg);
  padding: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shopup-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.shopup-seller-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   FOOTER STYLES
============================================================ */
.shopup-footer {
  background: var(--shopup-dark);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shopup-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.shopup-footer a:hover {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .shopup-seller-cta-banner {
    padding: 24px 20px;
  }
}