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

:root {
  --bg-dark: #09090b;
  --bg-card: rgba(24, 24, 27, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #3b82f6; /* Modern Blue */
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background-color: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.nav-brand span {
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Hero Section */

.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1506190740925-83c847de4772?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
  filter: saturate(0) contrast(1.2);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent), #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
  background-color: var(--bg-glass);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
}

/* Container */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Section Header */

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--accent);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Product Grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Product Card */

.product-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.product-category {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Shop Layout */

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
}

.sidebar {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  font-weight: 700;
}

.filter-group {
  margin-bottom: 2.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1.05rem;
}

.filter-option:hover {
  color: var(--accent);
}

/* Product Details */

.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.details-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.details-img:hover {
  transform: scale(1.02);
}

.details-info h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.details-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  margin: 1.5rem 0;
  text-shadow: 0 0 20px var(--accent-glow);
}

.specs-list {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-top: 3rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.1rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  font-weight: 600;
  color: #fff;
}

/* Footer */

footer {
  background-color: rgba(9, 9, 11, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 6rem 2rem 2rem;
  margin-top: 6rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-section p, .footer-section a {
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
  font-size: 1.1rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
