/* Modern Theme Overrides (Lite) */
:root {
  --rl-primary: #dc3545;
  --rl-primary-600: #c62f3e;
  --rl-secondary: #6c757d;
  --rl-bg: #ffffff;
  --rl-surface: #ffffff;
  --rl-muted: #f7f7f9;
  --rl-text: #212529;
  --rl-text-muted: #6c757d;
  --rl-border: #e5e7eb;
  --rl-radius: 12px;
  --rl-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

html, body {
  background: var(--rl-bg);
  color: var(--rl-text);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--rl-text); letter-spacing: -0.02em; }
p { color: var(--rl-text-muted); }

/* Links */
a { color: var(--rl-primary); text-decoration: none; }
a:hover { color: var(--rl-primary-600); text-decoration: underline; }

/* Buttons */
.btn, .site-btn {
  border-radius: var(--rl-radius);
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn:hover, .site-btn:hover { transform: translateY(-1px); }
.btn:active, .site-btn:active { transform: translateY(0); }

.btn-danger, .site-btn,
.btn-primary {
  background: var(--rl-primary) !important;
  border-color: var(--rl-primary) !important;
}
.btn-danger:hover, .site-btn:hover,
.btn-primary:hover { background: var(--rl-primary-600) !important; border-color: var(--rl-primary-600) !important; }

.btn-outline-secondary { border-radius: var(--rl-radius); }

/* Cards */
.card, .product__item, .banner, .footer, .offcanvas-menu-wrapper {
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  background: var(--rl-surface);
  box-shadow: var(--rl-shadow);
}
.card-header, .card-footer { background: var(--rl-muted); border-color: var(--rl-border); }

/* Header */
.header { backdrop-filter: saturate(180%) blur(8px); }
.header__menu ul li a { font-weight: 600; }
.header__right__widget .tip {
  background: var(--rl-primary);
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

/* Hero & Banners */
.hero__section img, .banner img, .product-slider img { border-radius: var(--rl-radius); }

/* Product tiles */
.product__item__pic { border-top-left-radius: var(--rl-radius); border-top-right-radius: var(--rl-radius); overflow: hidden; }
.product__item__text h6 a { color: var(--rl-text); }
.product__price { color: var(--rl-primary); font-weight: 700; }

/* Forms */
.form-control { border-radius: 10px; border-color: var(--rl-border); }
.input-group .form-control { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }

/* Modals */
.modal-content { border-radius: var(--rl-radius); border: 1px solid var(--rl-border); box-shadow: var(--rl-shadow); }

/* Footer */
.footer { border-top-left-radius: var(--rl-radius); border-top-right-radius: var(--rl-radius); }
.footer__widget h6 { font-weight: 700; }

/* Utilities */
.shadow-soft { box-shadow: var(--rl-shadow) !important; }
.rounded-12 { border-radius: var(--rl-radius) !important; }
.bg-muted { background: var(--rl-muted) !important; }
.text-muted-600 { color: var(--rl-text-muted) !important; }

/* Transitions */
.product__item__pic, .adjacent__list li a, .header__menu a { transition: all .25s ease; }
.product__item__pic:hover { transform: scale(1.02); }

/* Breadcrumbs */
.breadcrumb-option { background: var(--rl-muted); border-radius: var(--rl-radius); padding-top: 16px; padding-bottom: 16px; }

/* Offcanvas */
.offcanvas-menu-wrapper { border: 1px solid var(--rl-border); }
.offcanvas__close { font-weight: 700; }

/* Toastr tweak */
#toast-container > div { border-radius: 10px; }

/* Dark mode (auto) */
@media (prefers-color-scheme: dark) {
  :root {
    --rl-bg: #0b0d0f;
    --rl-surface: #111417;
    --rl-muted: #161a1e;
    --rl-text: #e6eaf0;
    --rl-text-muted: #aab2bf;
    --rl-border: #232a32;
    --rl-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  }
  .footer, .card, .product__item, .banner { background: var(--rl-surface); }
  a { text-decoration-color: rgba(220, 53, 69, .4); }
}
