:root {
  --bg: #121212;
  --card: #1b1b1b;
  --card-2: #222;
  --text: #f5f5f5;
  --muted: #aaaaaa;
  --orange: #FF6600;
  --border: #2b2b2b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 20px;

  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.logo span {
  color: var(--orange);
}

.cart-btn {
  background: var(--orange);
  border: none;

  width: 50px;
  height: 50px;

  border-radius: 14px;

  cursor: pointer;

  color: white;
  font-size: 1rem;

  position: relative;

  transition: .2s;
}

.cart-btn:hover {
  transform: scale(1.05);
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;

  background: white;
  color: black;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  font-size: 0.8rem;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
}

/* HERO */

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 20px;
}

.delivery-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--orange);
  color: white;

  padding: 14px 22px;
  border-radius: 14px;

  text-decoration: none;
  font-weight: 600;

  transition: .2s;
}

.delivery-btn:hover {
  transform: translateY(-2px);
}

/* CONTROLS */

.controls {
  padding: 0 20px 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;

  background: var(--card);

  padding: 14px;
  border-radius: 14px;

  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;

  color: white;
  font-size: 1rem;
}

.categories {
  display: flex;
  gap: 10px;

  overflow-x: auto;
  padding-bottom: 10px;
}

.category-btn {
  border: none;
  background: var(--card);

  color: white;

  padding: 10px 16px;
  border-radius: 999px;

  cursor: pointer;
  white-space: nowrap;
}

.category-btn.active {
  background: var(--orange);
}

/* PRODUCTS */

.products-container {
  padding: 20px;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 260px));

  justify-content: center;

  gap: 20px;
}


.product-card {
  background: var(--card);

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid var(--border);

  transition: .25s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 220px;

  object-fit: contain;

  background: #111;
  padding: 10px;
}

.product-info {
  padding: 16px;
}

.product-category {
  color: var(--orange);
  font-size: .85rem;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.add-btn,
.share-btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
}

.add-btn {
  flex: 1;
  background: var(--orange);
  color: white;
}

.share-btn {
  width: 48px;
  background: var(--card-2);
  color: white;
}

.add-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

.sold-out {
  position: absolute;
  top: 14px;
  left: 14px;

  background: crimson;
  color: white;

  padding: 8px 12px;
  border-radius: 999px;

  font-size: .8rem;
  font-weight: 700;
}

.highlight {
  animation: highlightCard 2s ease;
}

@keyframes highlightCard {
  0% {
    box-shadow: 0 0 0px var(--orange);
  }

  50% {
    box-shadow: 0 0 25px var(--orange);
  }

  100% {
    box-shadow: 0 0 0px var(--orange);
  }
}

/* CART */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;

  width: 400px;
  max-width: 100%;
  height: 100vh;

  background: #181818;

  z-index: 2000;

  transition: .3s;

  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid var(--border);
}

.cart-header button {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  background: var(--card);
  padding: 14px;

  border-radius: 14px;
  margin-bottom: 12px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.checkout-btn {
  width: 100%;
  margin-top: 12px;

  background: var(--orange);
  border: none;

  padding: 14px;

  border-radius: 14px;

  color: white;
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;
}

.remove-btn {
  background: crimson;
  border: none;
  color: white;

  width: 32px;
  height: 32px;

  border-radius: 10px;
  cursor: pointer;
}

/* OVERLAY */

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,.6);

  opacity: 0;
  visibility: hidden;

  transition: .3s;

  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* LOADING */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 20px;

  padding: 60px 20px;
}

.spinner {
  width: 50px;
  height: 50px;

  border: 5px solid #333;
  border-top: 5px solid var(--orange);

  border-radius: 50%;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* FLOATING */

.floating-socials {
  position: fixed;
  bottom: 20px;
  right: 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  z-index: 3000;
}

.social {
  width: 55px;
  height: 55px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  text-decoration: none;

  font-size: 1.4rem;
}

.instagram {
  background: #E1306C;
}

.whatsapp {
  background: #25D366;
}

/* MOBILE */

@media(max-width: 768px) {

  .hero h1 {
    font-size: 1.6rem;
  }

  .product-image {
    height: 200px;
  }

}
/* TOP MARQUEE */

.top-marquee {
  width: 100%;
  overflow: hidden;

  background: var(--orange);

  color: white;

  padding: 10px 0;

  white-space: nowrap;

  font-weight: 600;
  font-size: .95rem;
}

.marquee-content {
  display: inline-block;

  padding-left: 100%;

  animation: marquee 16s linear infinite;
}

@keyframes marquee {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }

}