@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ff4757 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --dark: #0b132b;
  --dark-card: #1c2541;
  --slate: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --accent: #f59e0b;
  --emerald: #10b981;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 8px 20px rgba(15,23,42,0.06);
  --shadow-lg: 0 20px 35px -10px rgba(37,99,235,0.18), 0 10px 15px -5px rgba(15,23,42,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background-color: #f1f5f9;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, #0b132b 0%, #1c2541 100%);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar a {
  color: #cbd5e1;
}

.top-bar a:hover {
  color: #ffffff;
}

/* Main Header */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span.highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 550px;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 22px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--primary-gradient);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.header-action-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.header-action-btn:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Category Navigation Bar */
.cat-nav-bar {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.cat-nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slate);
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.cat-nav-link:hover, .cat-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #f8fafc;
}

.admin-nav-link {
  background: var(--accent-gradient);
  color: #ffffff !important;
  border-radius: 20px;
  padding: 6px 18px !important;
  margin-left: auto;
  border-bottom: none !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Full Width Hero Slider */
.full-hero-wrapper {
  background: linear-gradient(180deg, #0b132b 0%, #1c2541 100%);
  padding: 30px 0 50px 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.full-hero-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.full-hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-slide {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 19, 43, 0.95) 0%, rgba(11, 19, 43, 0.75) 50%, rgba(11, 19, 43, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 600px;
  padding: 40px 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  font-weight: 400;
}

/* Category Cards Colorful */
.category-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Product Cards */
.product-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-thumb {
  position: relative;
  height: 240px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.product-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.product-card:hover .product-thumb img {
  transform: scale(1.1) rotate(2deg);
}

.product-badge-new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--success-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.product-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
  height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.product-price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-original-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  margin-top: 16px;
  background: #f1f5f9;
  color: var(--slate);
  font-weight: 800;
  border: none;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-add-cart:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Feature Banners / Trust Bar */
.trust-banner {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Single Product Swatches & Gallery */
.product-gallery {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.main-product-img {
  max-width: 100% !important;
  max-height: 380px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.product-gallery:hover .main-product-img {
  transform: scale(1.04);
}

.swatch-color {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  outline: 2px solid var(--border);
  cursor: pointer;
  display: inline-block;
  transition: all 0.25s ease;
}

.swatch-color.active, .swatch-color:hover {
  outline-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.storage-pill {
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.storage-pill.active, .storage-pill:hover {
  border-color: var(--primary);
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Footer */
footer {
  background: #0b132b;
  color: #94a3b8;
  padding-top: 70px;
  margin-top: 80px;
}

footer h5 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 24px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #1c2541;
  padding: 24px 0;
  margin-top: 50px;
  font-size: 0.9rem;
}
