:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --light: #f5f5f5;
  --card: #fff;
  --text: #333;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  background: #f0f2f5;
  color: var(--text);
}

/* ── NAV ── */
.navbar {
  background: #1a1a2e;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}
.logo span {
  color: #e94560;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge,
.badgecart {
  background: #e94560;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}
.cart-btn {
  background: white;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wishlist-btn {
  background: white;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-lbl {
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── MAIN CONTENT WRAPPER ── */
.all-categories {
  padding: 48px 40px;
}

/* ── CATEGORY SECTION ── */
.cat-section {
  margin-bottom: 60px;
}

.cat-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid #e8e8e8;
  position: relative;
}
/* coloured left accent line */
.cat-section-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.cat-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-emoji-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(233, 69, 96, 0.12),
    rgba(233, 69, 96, 0.04)
  );
  border: 2px solid rgba(233, 69, 96, 0.15);
}
.cat-title-text h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.cat-title-text p {
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 4px;
}

.cat-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(233, 69, 96, 0.07);
  padding: 8px 16px;
  border-radius: 20px;
  transition:
    background 0.2s,
    gap 0.2s;
  white-space: nowrap;
}
.cat-view-all:hover {
  background: rgba(233, 69, 96, 0.14);
  gap: 10px;
}

/* ── PRODUCT GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.22s,
    box-shadow 0.22s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}
.product-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
  cursor: pointer;
  padding-top: 20px;
}
.product-card:hover .product-img {
  transform: scale(1.04);
}
.img-wrap {
  overflow: hidden;
  position: relative;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.badgecart {
  position: absolute;
  top: 20px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
  z-index: 2;
}
.wishlist-btn:hover {
  transform: scale(1.15);
}
.wishlist-btn.active {
  color: var(--accent);
}

.product-info {
  padding: 14px 16px 16px;
}
.product-cat {
  font-size: 0.68rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.product-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1.35;
  cursor: pointer;
}
.product-name:hover {
  color: var(--accent);
}
.product-desc {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 10px;
  line-height: 1.45;
}
.stars {
  color: #f39c12;
  font-size: 0.76rem;
  margin-bottom: 10px;
}
.stars span {
  color: #bbb;
  font-size: 0.72rem;
  margin-left: 4px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.price-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent);
}
.original {
  font-size: 0.78rem;
  color: #ccc;
  text-decoration: line-through;
}
.disc-tag {
  font-size: 0.66rem;
  font-weight: 700;
  background: #e8f8f0;
  color: #27ae60;
  padding: 2px 6px;
  border-radius: 6px;
}
.add-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
}
.add-cart:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* ── PROMO BANNER ── */
.promo-banner {
  margin: 0 40px 56px;
  background: linear-gradient(135deg, #e94560, #c0392b);
  border-radius: 20px;
  padding: 52px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  flex-wrap: wrap;
  gap: 24px;
}
.promo-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.promo-banner p {
  opacity: 0.85;
  margin-bottom: 20px;
}
.promo-code {
  background: rgba(255, 255, 255, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.6);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 20px;
}
.promo-right {
  font-size: 5.5rem;
  line-height: 1;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a2e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: #aaa;
  padding: 48px 40px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .all-categories {
    padding: 32px 20px;
  }
  .promo-banner {
    margin: 0 20px 40px;
    padding: 36px 28px;
  }
  .promo-right {
    display: none;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .promo-banner {
    padding: 28px 20px;
  }
}
