:root {
  --rpp-bg-dark: #0b0e13;
  --rpp-red: #f40000;
  --rpp-red-dark: #c01c15;
  --rpp-red-muted: #8c382b;
  --rpp-gray: #585441;
  --rpp-text-light: #f1f1f1;
}

/* ===== GLOBAL BODY ===== */
body {
  background: linear-gradient(180deg, #0c0000 0%, #14181d 60%, #1b1f24 100%);
  color: var(--rpp-text-light);
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.2px;
  padding-top: 1rem;
}

/* ===== HEADER ===== */
header {
  border-bottom: 2px solid var(--rpp-red-muted);
  color: var(--rpp-text-light);
  margin-bottom: 20px;
}

.site-brand {
  color: var(--rpp-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BUTTONS ===== */
.btn-accent {
  background: linear-gradient(90deg, var(--rpp-red) 0%, var(--rpp-red-dark) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(244, 0, 0, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(90deg, var(--rpp-red-dark) 0%, var(--rpp-red) 100%);
  box-shadow: 0 0 16px rgba(244, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn-outline-dark {
  border: 1px solid var(--rpp-gray);
  color: var(--rpp-text-light);
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background: linear-gradient(90deg, var(--rpp-red-muted), var(--rpp-red-dark));
  color: #fff;
  border-color: var(--rpp-red-muted);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(
    180deg,
    rgba(11, 14, 19, 0.98) 0%,
    rgba(24, 26, 29, 0.96) 40%,
    rgba(140, 56, 43, 0.35) 100%
  );
  color: var(--rpp-text-light);
  border-top: 2px solid var(--rpp-red-muted);
  text-align: center;
  padding-top: 2rem;
  backdrop-filter: blur(3px);
}

footer a {
  color: var(--rpp-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--rpp-red-dark);
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: linear-gradient(180deg, #15191f, #101317);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border-radius: 0.5rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(244, 0, 0, 0.25);
}

/* ===== MODAL ===== */
.modal-content {
  background: #111417;
  color: #fff;
  border: 1px solid var(--rpp-red-muted);
}
/* Toast slide-in animation */
.slide-toast {
  transform: translateX(150%);
  opacity: 0;
  transition: all 0.45s ease;
}

.slide-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(90deg, #8c392b, #902b19);
  color: #fff;
  border-bottom: none;
}

/* ===== OFFCANVAS / CART ===== */
.offcanvas {
  background: linear-gradient(180deg, #0d1013, #15191d);
  color: #fff;
  border-left: 2px solid var(--rpp-red-muted);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
}

/* ===== LOGO SPACES ===== */
.header-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo {
  height: auto;
  margin-bottom: 10px;
}

.payment-logo {
  display: block;
  max-width: 120px;
  margin: 0 auto 15px;
}

/* ===== CAROUSEL ===== */

.carousel-item img {
  transition: transform 1.2s ease, opacity 0.8s ease;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 0.5rem;
}
#search-box {
  border: 1px solid #ccc;
  border-radius: 0.375rem 0 0 0.375rem;
}
#clear-search {
  border-radius: 0 0.375rem 0.375rem 0;
}
#cart-total {
  padding: 1rem;
  border-radius: .5rem;
  color: #fff;
}

.text-reset {
    color: #fff;
}
.carousel-item.active img {
  transform: scale(1.02);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
  color: var(--rpp-red);
  background: transparent;
  border: 1px solid var(--rpp-gray);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(90deg, var(--rpp-red-dark), var(--rpp-red));
  border-color: var(--rpp-red-dark);
  color: #fff;
}

/* ===== UTILITIES ===== */
.text-muted {
  color: #c7c7c7 !important;
}

.card-title {
  color: #fff;
}

.card-text {
  color: #ddd;
}

#page-loader {
  background: rgba(0, 0, 0, 0.75);
}


/* ===== FOOTER LAYOUT ===== */
.footer-main {
  background: linear-gradient(10deg, #0c0000 0%, #14181d 60%, #1b1f24 100%);
  color: var(--rpp-text-light);
  border-top: 2px solid var(--rpp-red-muted);
  padding: 2rem 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-main a {
  color: var(--rpp-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-main a:hover {
  color: var(--rpp-red-dark);
}

.footer-logo {
  width: 120px;
  height: auto;
}

/* Responsive alignment */
@media (max-width: 767px) {
  .footer-main .footer-logo {
    margin-bottom: 1rem;
  }
  .footer-main .text-md-start {
    text-align: center !important;
  }
}

/* ===== LIGHT / DARK MODE TOGGLE ===== */
:root {
  --bg-light: #ffffff;
  --text-dark: #111;
  --footer-light: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-dark);
}

body.light-mode footer.footer-main {
  background: var(--footer-light);
  color: #222;
  border-top: 1px solid #ddd;
}

body.light-mode .footer-main a {
  color: #b02a2a;
}

body.light-mode .footer-main a:hover {
  color: #8b1f1f;
}

body.light-mode .btn-outline-dark {
  color: #111;
  border-color: #ccc;
}

body.light-mode .btn-outline-dark:hover {
  background-color: #ddd;
  color: #000;
}

body.light-mode .carousel-caption {
  background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 70%, transparent 100%);
  color: #111;
}

body.light-mode .site-brand {
  color: var(--accent-red-dark);
}
#cartToast {
    
    background-color: rgb(140 57 43) !important;
}