/* RO-EL Brand Colours */
:root {
  --roel-blue: #1a3a5c;
  --roel-gold: #f5a623;
}

/* --- Base --- */
body { background: #f8f9fa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* --- Navbar --- */
.navbar { box-shadow: 0 2px 8px rgba(0,0,0,0.10); border-bottom: 2px solid var(--roel-gold); }

/* --- Hero --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2340 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.hero-section > * { position: relative; z-index: 1; }
.hero-section .hero-search .form-control { border-radius: 8px 0 0 8px; border: none; }
.hero-section .hero-search .btn { border-radius: 0 8px 8px 0; }

/* --- Section labels --- */
.section-label {
  color: var(--roel-gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.section-underline {
  width: 48px; height: 3px;
  background: var(--roel-gold);
  border: none;
  margin: .4rem 0 1.5rem 0;
}

/* --- Category cards (photo) --- */
.category-card {
  position: relative;
  height: 260px;
  border-radius: 12px !important;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  transition: box-shadow .25s ease;
  display: block;
}
.category-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.22); }
.category-card img.cat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.category-card:hover img.cat-bg { transform: scale(1.06); }
.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.04) 100%);
  transition: background .3s ease;
}
.category-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0.06) 100%);
}
.category-card .cat-label {
  position: absolute;
  bottom: 0; left: 0;
  padding: 18px 20px;
  z-index: 2;
}
.category-card .cat-label h5 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.category-card .cat-label small {
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
}
.category-card .cat-arrow {
  position: absolute;
  bottom: 18px; right: 16px;
  z-index: 2;
  color: var(--roel-gold);
  font-size: 1.4rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* --- Navbar logo --- */
.navbar-brand img {
  height: 40px;
  width: auto;
}

/* --- Product cards --- */
.product-card {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.product-card .card-img-top-wrap {
  background: #f8f9fa;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.product-card .card-img-top-wrap img { max-height: 160px; object-fit: contain; }
.product-card .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact strip --- */
.contact-strip { background: var(--roel-blue); }

/* --- Sidebar --- */
.sidebar-cat-label { color: var(--roel-gold); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; }
.list-group-item.active { background-color: var(--roel-blue) !important; border-color: var(--roel-blue) !important; }
.list-group-item { border-left: 3px solid transparent; transition: border-left-color .15s; }
.list-group-item:hover:not(.active) { border-left-color: var(--roel-gold); }

/* --- Mobile --- */
@media (max-width: 576px) {
  .hero-section { min-height: 280px; }
  .hero-section h1 { font-size: 1.6rem; }
  .hero-search { flex-direction: column; }
  .hero-search .form-control, .hero-search .btn { border-radius: 8px !important; }
}

/* --- Breadcrumb --- */
.breadcrumb { background: transparent; padding: 0; font-size: .85rem; }
.breadcrumb-item a { color: var(--roel-blue); }
.breadcrumb-item.active { color: #6c757d; }

/* --- Pagination --- */
.page-item.active .page-link { background: var(--roel-blue); border-color: var(--roel-blue); }
.page-link { color: var(--roel-blue); }
.page-link:hover { color: var(--roel-gold); }

/* --- Footer --- */
footer { border-top: 3px solid var(--roel-gold); }
