/* ==========================================================
   GET DEAL 3.0  |  Final Modern Design
   ========================================================== */

/* ------------------- Base Variables ------------------- */
:root {
  --orange: #ff8c00;
  --orange-light: #ffc670;
  --blue-dark: #0e0f12;
  --blue-mid: #1b1e24;
  --gray-light: #f6f7fb;
  --gray-mid: #d9dce1;
  --text-dark: #111418;
  --text-light: #f1f3f8;
  --radius: 16px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-light);
  color: var(--text-dark);
  line-height: 1.6;
  transition: background 0.4s, color 0.4s;
}

/* ------------------- Dark Theme ------------------- */
body.theme-dark {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--text-light);
}

/* ------------------- Navbar ------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}

body.theme-dark header {
  background: rgba(17, 18, 22, 0.55);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
}

.logo img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 3px 8px rgba(255, 140, 0, 0.25));
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  margin: 0 14px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links a:hover::after {
  width: 60%;
}

/* Theme Toggle Button */
.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: inherit;
  transition: transform 0.2s;
}

.icon-btn:hover {
  transform: rotate(15deg);
}

/* ------------------- Hero Section ------------------- */
.hero-section {
  height: 85vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 40%, #fff 100%);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

body.theme-dark .hero-section {
  background: linear-gradient(135deg, #1b1e24 0%, #242832 100%);
  color: var(--text-light);
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.7);
}

body.theme-dark .hero-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* Search Bar */
.search-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

#searchBox {
  width: min(500px, 90%);
  padding: 14px 20px;
  border-radius: 40px;
  border: 1px solid var(--gray-mid);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

#searchBox:focus {
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

body.theme-dark #searchBox {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

/* ------------------- Products Grid ------------------- */
.products {
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: var(--radius);
  height: 320px;
}

/* Card */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

body.theme-dark .card {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 140, 0, 0.25);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.1rem;
  margin: 10px 0 6px;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 14px;
}

body.theme-dark .card p {
  color: #aaa;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

/* ------------------- Scroll Top Button ------------------- */
#scrollTopBtn {
  position: fixed;
  right: 26px;
  bottom: 32px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  display: none;
  transition: transform 0.2s;
  z-index: 999;
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}

/* ------------------- Footer ------------------- */
footer {
  background: #111418;
  color: #ccc;
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  margin-top: 80px;
}

body.theme-dark footer {
  background: #0c0d11;
  color: #999;
}

/* ------------------- Keyframes ------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

/* ------------------- Responsive ------------------- */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 100px 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
}
