:root {
  --primary-color: #02153b;      /* Deep navy */
  --accent-color: #a9f5f2;       /* Light cyan */
  --font-family: 'Segoe UI', 'Helvetica', sans-serif;
  --bs-body-font-family: 'Segoe UI', 'Helvetica', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: white !important;
}

.navbar-top {
  background-color: white !important; /* New top bar for navy logo contrast */
  border-bottom: 1px solid #ddd;
}

.navbar-bottom {
  background-color: var(--primary-color) !important; /* Deep navy */
  color: white
}

.navbar-brand img {
  height: 45px;
}

/* NAV LINKS — default + hover */
.navbar-bottom .nav-link {
  color: white;
  position: relative;
  transition: color .2s ease;
}

.navbar-bottom .nav-link:hover {
  color: var(--accent-color);
}

/* ACTIVE underline */
.navbar-bottom .nav-link.active-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Search input (white border, navy focus) */
.form-control.theme-search {
  border: 2px solid var(--primary-color);
}
.form-control.theme-search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.1rem rgba(2,21,59,.25);
}




.text-primary-color {
  color: var(--primary-color) !important;
}



.text-warning {
    color: var(--primary-color) !important; /* deep navy */
}
.border {
    border: 1px solid #e5e7eb !important; /* light gray border */
    border-radius: 6px;
}

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

/* Make category sidebar more professional */
.category-sidebar {
  background-color: #f8f9fa;
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.03);
}

.category-sidebar h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.category-sidebar .list-group-item {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.category-sidebar .category-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.category-sidebar i {
  flex-shrink: 0;
  margin-right: 0.5rem;
  color: var(--primary-color);
}


.card-title {
  min-height: 40px;
}
.card-text {
  min-height: 60px;
  overflow: hidden;
}

.product-image-wrapper {
  aspect-ratio: 1 / 1;         /* Maintain square shape */
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  background: #f9f9f9;         /* subtle background in case image is small */
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* show full image without cropping */
}



.footer-link {
  color:#ffffff;
  text-decoration:none;
  transition:color .2s;
}
.footer-link:hover {
  color:#a9f5f2;               /* accent on hover */
  text-decoration:underline;
}

.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transition: background-color 0.3s ease;
}

.btn-success:hover {
  background-color: #ffffff; /* slightly lighter navy */
  color: #02153b;
}

.btn-success:focus {
  box-shadow: 0 0 0 0.2rem rgba(2, 21, 59, 0.5); /* deep navy shadow */
}
.btn-success:active {
  background-color: #02153b; /* deep navy */
  color: #fff;
}

.btn-outline-theme {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-theme:hover,
.btn-outline-theme:focus {
  background-color: var(--primary-color);
  color: white;
}


/* Fixed Background Image Banner */
.fixed-image-section {
  height: 280px;
  background: url('{% static "store/images/contact-us.jpg"%}') center / cover no-repeat fixed;
  position: relative;
  background-color: #02153b; /* fallback navy */
}

.fixed-image-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 21, 59, 0.6); /* overlay for contrast */
}

.fixed-image-section .text-center {
  position: relative;
  z-index: 2;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fixed-image-section {
  animation: fadeUp 1s ease-out both;
}

.one-line-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  font-size: 1.1rem;
}

/* Keep card heights identical */
.product-card { min-height: 100%; }

/* Optional subtle hover pop */
.product-card:hover { transform: translateY(-3px); transition: 0.25s ease; }

/* ---------- Navbar tweaks ---------- */
@media (max-width: 575.98px) {
  .navbar-top form { width: 100% !important; }      /* full-width search on XS */
}

/* ---------- Fade-in animation ---------- */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scroll‑up arrow ---------- */
.scroll-up{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: black;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  opacity:0;
  visibility:hidden;
  transition:opacity .3s, visibility .3s;
  z-index: 999;
}
.scroll-up.show{opacity:1; visibility:visible;}
.scroll-up:hover{background:#042869}
.scroll-up i {
  transition: transform .3s;
}
.scroll-up:hover i {
  transform: translateY(-3px);
}

/* Hero tweaks */
/* Hero wrapper keeps 21:9 ratio (≈40% of viewport height on desktop) */
.hero-wrapper{
  position:relative;
  width:100%;
  aspect-ratio: 21 / 9;            /* modern browsers */
  overflow:hidden;
  border-radius: .5rem;
}
@supports not (aspect-ratio:21/9){
  /* fallback: max-height */
  .hero-wrapper{max-height:340px;}
}

.hero-img      {width:100%; height:100%; object-fit:cover; transition:transform 6s ease;}
.hero-wrapper:hover .hero-img{transform:scale(1.05);}   /* subtle zoom */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* darker semi-transparent black */
  z-index: 1;
}
/* .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(169, 245, 242, 0.3), rgba(2, 21, 59, 0.6));
  z-index: 1;
} */
.hero-content  {position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; z-index:2;}


@media (max-width: 575.98px){
  /* Force categories BELOW hero on xs */
  .cat-col   { order:2 !important; }
  .hero-col  { order:1 !important; }

  .cat-col ul li {
    justify-content: center !important;
  }
  
}

/* -----------------------------------------------------------
   Mobile hero override (xs < 576 px)
   -----------------------------------------------------------*/
@media (max-width: 575.98px) {

  /* 1) Make hero taller */
  .hero-wrapper{
    aspect-ratio: auto;      /* cancel 21:9 */
    height: 260px;           /* or 300px if you prefer */
  }

  /* 2) Fit text nicely */
  .hero-content h1{
    font-size: 1.6rem;       /* ≈ 24 px */
  }
  .hero-content .lead{
    font-size: .9rem;        /* ≈ 14 px */
  }
}

.text-shadow {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Custom column for 5 per row on medium and larger screens */
@media (min-width: 768px) {
  .col-md-5th {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

/* Mobile Categories Toggle Button */
.mobile-categories-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  z-index: 3;
}
.mobile-categories-btn i {
  font-size: 1.25rem;
  color: #fff;
}
.mobile-categories-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Animation for slide + fade */
@keyframes slideDownFade {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-slide-down {
  animation: slideDownFade 0.6s ease forwards;
}


/* Blog styles */
/* ===== BLOG CATEGORY FILTER ===== */
.blog-category-filter {
  text-align: center;
  margin: 1.5rem 0;
}

.blog-category-filter a {
  color: var(--primary-color, #007bff);
  font-weight: 500;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.blog-category-filter a:hover {
  color: var(--primary-dark, #0056b3);
  text-decoration: underline;
}

/* ===== BLOG LIST PAGE ===== */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  color: var(--primary-color); /* deep gray-blue */
}

.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color); /* green accent */
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1rem 1.2rem;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--primary-color, #333);
}

.blog-card-content .text-muted {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.blog-card a.read-more {
  color: var(--primary-color, #007bff);
  font-weight: 500;
  text-decoration: none;
}

.blog-card a.read-more:hover {
  text-decoration: underline;
}

/* ===== BLOG DETAIL PAGE ===== */
.blog-detail {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.blog-detail-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: var(--primary-color, #222);
}

.blog-detail-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.blog-detail img.featured-image {
  display: block;
  max-width: 700px; /* cap size */
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem auto; /* center + bottom space */
  border-radius: 10px;
}

.blog-detail-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.blog-detail-content p {
  margin-bottom: 1.2rem;
}

/* ===== RELATED POSTS ===== */
.related-posts {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

.related-posts a {
  color: var(--primary-color, #007bff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-posts a:hover {
  color: var(--primary-dark, #0056b3);
  text-decoration: underline;
}

/* ===== BACK TO BLOG LINK ===== */
.back-to-blog {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary-color, #007bff);
  font-weight: 500;
  text-decoration: none;
}

.back-to-blog:hover {
  text-decoration: underline;
}
