/* ================= ROOT & BASE ================= */
:root{
  --primary:#0b68d3; /* Ryans-like blue */
  --accent:#00a86b;
  --muted:#6c757d;
  --card-radius:12px;
  --shadow: 0 6px 20px rgba(13,38,77,0.06);
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

body {
  background:#f5f7fb;
  color:#222;
  margin:0;
}

/* ================= HEADER ================= */
.site-header { z-index:1100; }
.site-title {
  color:var(--primary);
  font-weight:700;
  letter-spacing:.2px;
}
.topbar { font-size:13px; }

.cart-badge{
  position:absolute;
  top:-6px;
  right:-8px;
  font-size:11px;
  padding:3px 6px;
  border-radius:50%;
}

/* ================= NAV ================= */
.nav-link:hover{
  background:rgba(255,255,255,0.2);
}

.mobile-nav a{
  color:#333;
  text-decoration:none;
}

/* ===== DESKTOP DROPDOWN ===== */
.nav-item{ position:relative; }

.subcat-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:#fff;
  min-width:230px;
  z-index:9999;
  border-radius:6px;
  box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

.nav-item:hover .subcat-menu{
  display:block;
}

.subcat-menu a{
  display:block;
  padding:8px 12px;
  color:#000;
  text-decoration:none;
  font-size:14px;
}

.subcat-menu a:hover{
  background:#f1f1f1;
}

/* ================= HERO / SLIDER ================= */
#heroCarousel{
  box-shadow:var(--shadow);
}

.carousel-item img{
  border-radius:0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter:invert(1);
}

/* ================= BRAND STRIP ================= */
.bg-white.border-top.border-bottom img{
  opacity:.9;
  transition:transform .2s ease, opacity .2s ease;
}

.bg-white.border-top.border-bottom img:hover{
  transform:scale(1.05);
  opacity:1;
}

/* ================= PRODUCT CARD ================= */
.product-card{
  border-radius:var(--card-radius);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}

.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 30px rgba(13,38,77,.08);
}

.product-card .card-img-top{
  background:#fff;
  padding:18px;
  height:200px;
  object-fit:contain;
}

.product-card .card-body{
  padding:12px;
}

.product-card .card-title{
  min-height:38px;
}

.product-card .card-footer{
  border-top:1px solid #eee;
  background:#fff;
  padding:10px;
}

/* ================= BADGES ================= */
.badge-offer{
  background:var(--primary);
  color:#fff;
  font-weight:600;
  padding:6px 8px;
  border-radius:6px;
}

.badge-out{
  background:#d9534f;
  color:#fff;
  padding:6px 8px;
  border-radius:6px;
}

/* ================= BUTTONS ================= */
.btn-primary{
  background:var(--primary);
  border-color:var(--primary);
}

.btn-primary:hover{
  background:#094fb0;
  border-color:#094fb0;
}

.btn-success{
  background:var(--accent);
  border-color:var(--accent);
}

/* ================= SERVICES ================= */
section.bg-light .fa-solid{
  background:rgba(11,104,211,.08);
  padding:18px;
  border-radius:50%;
}

/* ================= OFFER BANNER ================= */
.container img[alt="Special Offer"]{
  border-radius:12px;
}

/* ================= FOOTER ================= */
footer{
  background:#0e1724;
  color:#e9eef6;
  padding:40px 0;
}

footer a{
  color:#cfe6ff;
  text-decoration:none;
}

footer a:hover{
  text-decoration:underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width:767px){
  .product-card .card-img-top{
    height:140px;
    padding:12px;
  }
  .site-title{ display:none; }
}

/* ===== MOBILE DROPDOWN ===== */
@media (max-width:768px){
  .subcat-menu{
    position:static;
    box-shadow:none;
    background:#f8f9fa;
    border-left:3px solid #0d6efd;
  }
}
/* ================= DARK MODE ================= */
body.dark-mode{
  background:#0b1220;
  color:#e6ebf2;
}

body.dark-mode .bg-white,
body.dark-mode .card,
body.dark-mode .product-card{
  background:#121a2a !important;
  color:#e6ebf2;
}

body.dark-mode .card-footer,
body.dark-mode .border-top,
body.dark-mode .border-bottom{
  border-color:#1f2a44 !important;
}

body.dark-mode .text-muted{
  color:#9aa4bf !important;
}

body.dark-mode .nav-link,
body.dark-mode footer a{
  color:#e6ebf2;
}

body.dark-mode footer{
  background:#070c16;
}

body.dark-mode .subcat-menu{
  background:#121a2a;
}

body.dark-mode .subcat-menu a{
  color:#e6ebf2;
}

body.dark-mode .subcat-menu a:hover{
  background:#1f2a44;
}