:root {
  --brand-primary: #0b5ed7;
  --brand-dark: #0a2540;
  --brand-accent: #25d366; /* whatsapp green */
}

body { font-family: "Figtree", Roboto, Arial, sans-serif; color: #1f2937; }

.top-bar { background: var(--brand-dark); }

.btn-primary { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover { background-color: #0949ad; border-color: #0949ad; }
.text-primary { color: var(--brand-primary) !important; }

.footer-link { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-link:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-dark), #123a63);
  color: #fff;
  padding: 4rem 0;
}

/* Product cards */
.product-card { border: 1px solid #eef0f3; border-radius: .5rem; transition: box-shadow .15s ease, transform .15s ease; height: 100%; font-size: .875rem; }
.product-card:hover { box-shadow: 0 .4rem 1rem rgba(0,0,0,.08); transform: translateY(-2px); }
.product-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: .5rem .5rem 0 0; background: #f4f5f7; }
.product-card .card-body { padding: .6rem .7rem !important; }
.product-card .product-title { min-height: 2.2em; font-size: 1rem; line-height: 1.4; }
.product-card .product-category { font-size: .7rem; }
.product-card .btn { font-size: .78rem; padding: .3rem .5rem; }
.badge-sale { position: absolute; top: .4rem; left: .4rem; font-size: .65rem; }
.price-old { text-decoration: line-through; color: #9ca3af; font-size: .75rem; }
.price-new { color: var(--brand-primary); font-weight: 700; font-size: .95rem; }

/* Category tile */
.category-tile { border-radius: .6rem; overflow: hidden; position: relative; display: block; color: #fff; text-decoration: none; }
.category-tile img { width: 100%; height: 160px; object-fit: cover; }
.category-tile .overlay { position: absolute; inset: 0; background: rgba(10,37,64,.55); display: flex; align-items: flex-end; padding: 1rem; }

/* Account avatar - first initial in a circle, used instead of the full email
   which doesn't fit in the navbar */
.avatar-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; line-height: 1;
  text-decoration: none; flex-shrink: 0;
}
.dropdown-toggle.avatar-circle::after { display: none; } /* no caret on the round button */

/* Mobile nav offcanvas */
.offcanvas-start { width: 280px; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 .4rem 1rem rgba(0,0,0,.25);
  text-decoration: none;
}
.whatsapp-float:hover { color: #fff; filter: brightness(1.05); }

/* WhatsApp order button inline on product page */
.btn-whatsapp-order {
  background-color: var(--brand-accent); border-color: var(--brand-accent); color: #fff;
}
.btn-whatsapp-order:hover { background-color: #1ebc59; border-color: #1ebc59; color: #fff; }

/* Cart / checkout tables */
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: .4rem; background: #f4f5f7; }

/* Loading performance: avoid layout shift on images without dimensions */
img { max-width: 100%; height: auto; }