/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-transform: capitalize;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color--: #b30000;
  --color--: #b8b8b8;
  --text--: #202020;
}

/* ========== HEADER ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
  color: #fff;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 0 5%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo {
  flex-shrink: 0;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.unik {
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Search */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

#searchInput {
  width: 0;
  opacity: 0;
  padding: 10px 16px;
  border: 1px solid #fff;
  border-radius: 25px;
  outline: none;
  transition: 0.4s ease;
  margin-left: 15px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* When active */
.search-active #searchInput {
  width: 250px;
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

#searchIcon {
  cursor: pointer;
  transition: 0.3s ease;
}

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

/* Navigation */
header nav ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  gap: 15px;
  margin: 0;
}

header nav ul li {
  margin: 0;
}

header nav ul a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
}

header nav ul a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Cart Icon Container */
.cart-icon-container {
  transition: 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-icon-container:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.cart-icon-container:hover #cartLabel {
  display: inline-block !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff0000;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid #b30000;
  animation: badgePulse 0.3s ease;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Hamburger Icon */
#menu {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s ease;
}

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

/* Hidden nav (default mobile) */
nav {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  transition: all 0.3s ease;
  transform: translateY(-200%);
  opacity: 0;
  visibility: hidden;
}

nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ========== HERO SECTION ========== */
.hero {
  width: 100%;
  height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  margin-top: 70px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(75%);
  transition: transform 0.5s ease;
}

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

.hero-text {
  position: absolute;
  text-align: left;
  color: #fff;
  max-width: 600px;
  padding: 0 5%;
  z-index: 10;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.3rem;
  margin-top: 10px;
  color: #fff;
  line-height: 1.6;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.hero-text .btn {
  display: inline-block;
  background: linear-gradient(135deg, #b30000 0%, #ff4d4d 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(179, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.hero-text .btn:hover {
  background: linear-gradient(135deg, #ff4d4d 0%, #b30000 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(179, 0, 0, 0.5);
}

.hero-text .btn:active {
  transform: translateY(-1px);
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
  padding: 60px 5%;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.products-section h2 {
  text-align: center;
  color: #b30000;
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.products-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #b30000;
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(179, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card h3 {
  margin: 15px 0 8px;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.product-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 5px 0;
}

.product-card .price {
  color: #b30000;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 10px 0;
}

.product-card button {
  background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
  color: #fff;
  border: none;
  padding: 11px 20px;
  margin: 15px 15px 15px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: calc(100% - 30px);
  box-shadow: 0 4px 10px rgba(179, 0, 0, 0.2);
}

.product-card button:hover {
  background: linear-gradient(135deg, #ff4d4d 0%, #b30000 100%);
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(179, 0, 0, 0.3);
}

.product-card button:active {
  transform: scale(0.98);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 50px 5% 20px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
  color: #b30000;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer p {
  line-height: 1.7;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #b30000;
  transform: translateX(5px);
}

.footer-social .social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  color: #fff;
  background: #b30000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
}

.footer-social a:hover {
  background: #fff;
  color: #b30000;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #ccc;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  #menu {
    display: block;
  }

  header {
    padding: 0 20px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    gap: 5px;
  }

  header nav ul li {
    width: 100%;
    text-align: center;
    padding: 10px 0px;
  }

  header nav ul a {
    font-size: 16px;
  }

  .search-container {
    order: -1;
    margin-right: 10px;
  }

  .search-active #searchInput {
    width: 200px;
  }

  .hero {
    height: 60vh;
  }

  .hero-text {
    text-align: center;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-text .btn {
    padding: 11px 24px;
    font-size: 0.9rem;
  }

  .products-section {
    padding: 40px 20px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
  }

  .product-card img {
    height: 200px;
  }

  .footer-container {
    gap: 25px;
  }
}

@media (max-width: 440px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-text .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .products-section h2 {
    font-size: 1.8rem;
  }
}

/* ========== DESKTOP NAV FIX ========== */
@media (min-width: 769px) {
  nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: flex;
    background: transparent;
    padding: 0;
  }
}
