:root {
  --kings-green: #1c6b3f;
  --kings-green-dark: #134d2d;
  --kings-maroon: #7a1f2b;
  --kings-maroon-dark: #5e1521;
  --kings-white: #ffffff;
}

body {
  background-color: #f7f7f5;
  color: #222;
}

.brand-text {
  color: var(--kings-green);
}

/* ---------- Top bar (scrolling phone number) ---------- */
.top-bar {
  background-color: var(--kings-maroon);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  font-size: 0.82rem;
}

.top-bar-track {
  display: inline-flex;
  animation: top-bar-scroll 22s linear infinite;
}

.top-bar-item {
  padding-right: 4rem;
}

.top-bar:hover .top-bar-track {
  animation-play-state: paused;
}

@keyframes top-bar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar-track {
    animation: none;
  }
}

.bg-brand-green {
  background-color: var(--kings-green) !important;
}

.bg-brand-maroon {
  background-color: var(--kings-maroon) !important;
}

.text-brand-maroon {
  color: var(--kings-maroon) !important;
}

.text-brand-green {
  color: var(--kings-green) !important;
}

.btn-brand-green,
.btn-brand-maroon {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-brand-green {
  background-color: var(--kings-green);
  border-color: var(--kings-green);
  color: #fff;
}
.btn-brand-green:hover {
  background-color: var(--kings-green-dark);
  border-color: var(--kings-green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(28, 107, 63, 0.35);
}

.btn-brand-maroon {
  background-color: var(--kings-maroon);
  border-color: var(--kings-maroon);
  color: #fff;
}
.btn-brand-maroon:hover {
  background-color: var(--kings-maroon-dark);
  border-color: var(--kings-maroon-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(122, 31, 43, 0.35);
}

.navbar-brand.brand-text {
  font-size: 1.4rem;
  padding-top: 0;
  padding-bottom: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.admin-sidebar-logo {
  height: 36px;
  width: auto;
  background-color: #fff;
  border-radius: 6px;
  padding: 2px 4px;
}

/* ---------- Hero slider ---------- */
.hero-carousel {
  position: relative;
}

.hero-slide {
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(0.92);
  z-index: 0;
}

.hero-slide-1 { background: linear-gradient(135deg, var(--kings-green) 0%, var(--kings-green-dark) 100%); }
.hero-slide-2 { background: linear-gradient(135deg, var(--kings-maroon) 0%, var(--kings-maroon-dark) 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #2a8a55 0%, var(--kings-green-dark) 100%); }

.hero-slide-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-slide-content .lead {
  opacity: 0.92;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-typewriter-line {
  min-height: 1.6em;
  font-weight: 600;
}

.hero-typewriter-line .js-typewriter::after {
  content: "|";
  margin-left: 2px;
  animation: blink-caret 0.9s step-end infinite;
}

@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.55);
}
.hero-carousel .carousel-indicators .active {
  background-color: #fff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 5%;
}

/* Animated entrance for each active slide's text */
.carousel-item.active .hero-slide-content > * {
  animation: hero-fade-up 0.7s ease both;
}
.carousel-item.active .hero-slide-content > *:nth-child(2) { animation-delay: 0.08s; }
.carousel-item.active .hero-slide-content > *:nth-child(3) { animation-delay: 0.16s; }
.carousel-item.active .hero-slide-content > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Promo countdown bar ---------- */
.promo-bar {
  background-color: var(--kings-maroon);
  color: #fff;
}

.promo-countdown {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.promo-countdown .cd-box {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  min-width: 56px;
  text-align: center;
}

.promo-countdown .cd-box .cd-value {
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.promo-countdown .cd-box .cd-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  border: 1px solid #e7e3df;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-card img,
.product-img-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #f0eee9;
}

.product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a99;
  font-size: 0.85rem;
}

.category-pill {
  border: 1px solid var(--kings-green);
  color: var(--kings-green);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 0.25rem 0.5rem 0;
}

.category-pill.active,
.category-pill:hover {
  background-color: var(--kings-green);
  color: #fff;
}

/* ---------- Circular category showcase ---------- */
.category-circle-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
}

.category-circle-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: #222;
  text-align: center;
  width: 92px;
}

.category-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  border: 3px solid var(--kings-green);
  background-color: #eef6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-circle-initial {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kings-green);
}

.category-circle-link:hover .category-circle {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 16px rgba(28, 107, 63, 0.25);
  border-color: var(--kings-maroon);
}

.category-circle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge.bg-brand-maroon {
  font-size: 0.65rem;
  vertical-align: top;
  margin-left: 2px;
}

/* ---------- Cart icon ---------- */
.cart-icon-wrap {
  position: relative;
  display: inline-flex;
}

.cart-icon {
  transition: transform 0.2s ease;
}

.nav-link:hover .cart-icon {
  transform: scale(1.1);
  color: var(--kings-maroon);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 0.62rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cart-bump {
  animation: cart-bump 0.4s ease;
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.cart-shake {
  animation: cart-shake 0.45s ease;
}

@keyframes cart-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-6deg); }
}

.admin-sidebar {
  background-color: var(--kings-green-dark);
  min-height: 100vh;
  color: #fff;
}

.admin-sidebar a {
  color: #e8f3ec;
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background-color: var(--kings-green);
  color: #fff;
}

/* ---------- Site footer ---------- */
.site-footer {
  background-color: #0e2118;
  color: #cfdcd4;
  margin-top: 4rem;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-contact-list,
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #7fd9a4;
}

.footer-contact-list a {
  color: #cfdcd4;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-link-list li {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.footer-link-list a {
  color: #cfdcd4;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-link-list a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-text {
  font-size: 0.9rem;
  color: #a9bdb2;
}

.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #07210f;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebd5a;
  border-color: #1ebd5a;
  color: #07210f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.footer-cart-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.footer-cart-summary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  color: #fff;
}

.footer-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--kings-green);
  flex-shrink: 0;
}

.footer-cart-total {
  color: #7fd9a4;
  font-weight: 600;
}

.footer-bottom {
  background-color: #0a1a13;
  font-size: 0.85rem;
}

.footer-bottom .text-muted {
  color: #7f9389 !important;
}

/* ---------- Floating WhatsApp + back-to-top ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 1040;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background-color: var(--kings-maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--kings-maroon-dark);
}

/* ---------- Quantity stepper (product cards, product page, cart drawer) ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--kings-green);
  border-radius: 6px;
  overflow: hidden;
}

.qty-stepper .qty-btn {
  background-color: #fff;
  border: none;
  color: var(--kings-green);
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.qty-stepper .qty-btn:hover:not(:disabled) {
  background-color: var(--kings-green);
  color: #fff;
}

.qty-stepper .qty-btn:disabled {
  color: #bbb;
  cursor: not-allowed;
}

.qty-stepper .qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.drawer-qty-stepper .qty-btn {
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
}

.drawer-qty-stepper .qty-value {
  min-width: 32px;
  font-size: 0.95rem;
}

.add-to-cart-control {
  width: 100%;
  display: flex;
  justify-content: center;
}

.add-to-cart-control .qty-stepper {
  width: 100%;
  justify-content: space-between;
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  width: 380px;
}

.drawer-items-list {
  overflow-y: auto;
  max-height: 50vh;
}

.drawer-item-img img,
.drawer-item-img-placeholder {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.drawer-item-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  text-align: center;
  color: #a99;
}
