/* ============================================================
   Ben Vision Printing — global styles
   Mobile-first. Bootstrap 5 handles the grid/utilities; this file
   only adds brand colour, header/footer, and shared components.
   ============================================================ */

:root {
  --bv-primary: #e0432a;      /* warm print-shop red/orange */
  --bv-primary-dark: #b8321c;
  --bv-secondary: #1f2a44;    /* deep navy for footer/text */
  --bv-accent: #ffb703;       /* accent yellow for highlights */
  --bv-light-bg: #f7f7fb;
  --bv-radius: 0.75rem;
}

body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2b2b2b;
  background-color: #fff;
}

a {
  color: var(--bv-primary);
  text-decoration: none;
}
a:hover {
  color: var(--bv-primary-dark);
}

.btn-primary {
  background-color: var(--bv-primary);
  border-color: var(--bv-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--bv-primary-dark);
  border-color: var(--bv-primary-dark);
}
.btn-outline-primary {
  color: var(--bv-primary);
  border-color: var(--bv-primary);
}
.btn-outline-primary:hover {
  background-color: var(--bv-primary);
  border-color: var(--bv-primary);
}

/* ---- Header ---- */
.site-header .navbar {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand-mark {
  font-size: 1.6rem;
  line-height: 1;
}
.brand-name {
  color: var(--bv-secondary);
  font-size: 1.15rem;
}
.site-header .nav-link {
  font-weight: 500;
  color: var(--bv-secondary);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--bv-primary);
}

.nav-search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7ef;
  background: var(--bv-light-bg);
  color: var(--bv-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-search-toggle:hover {
  background: var(--bv-primary);
  color: #fff;
  border-color: var(--bv-primary);
}

/* ---- Search modal ---- */
.search-modal-form {
  max-width: 720px;
  margin: 0 auto;
}
#searchResults .row {
  margin-top: 1.5rem;
}

.flash-toast {
  border-radius: 0;
  margin-bottom: 0;
  text-align: center;
}

/* ---- Section spacing helper ---- */
.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.section-title {
  font-weight: 700;
  color: var(--bv-secondary);
  margin-bottom: 1.5rem;
}

/* ---- Generic content card (categories, products, brands reuse this) ---- */
.bv-card {
  background: #fff;
  border-radius: var(--bv-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.bv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.bv-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---- Hero slider ---- */
.hero-slide-img {
  height: 60vh;
  min-height: 280px;
  max-height: 560px;
  object-fit: cover;
}
.carousel-caption {
  background: rgba(31, 42, 68, 0.55);
  border-radius: var(--bv-radius);
  padding: 1.25rem 1.5rem;
  bottom: 15%;
}
.carousel-caption h1 {
  font-size: 1.6rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .carousel-caption h1 {
    font-size: 2.4rem;
  }
}

/* ---- Category tabs ---- */
.nav-pills .nav-link {
  color: var(--bv-secondary);
  border: 1px solid #e5e7ef;
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
}
.nav-pills .nav-link.active {
  background-color: var(--bv-primary);
  border-color: var(--bv-primary);
}

/* ---- Product card ---- */
.bv-card-noimg {
  aspect-ratio: 4 / 3;
  background: var(--bv-light-bg);
}

/* ---- Brand strip ---- */
.brand-logo img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.brand-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.brand-name-fallback {
  font-weight: 600;
  color: var(--bv-secondary);
  opacity: 0.7;
}

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

/* ---- Product gallery ---- */
.main-product-img-wrap {
  position: relative;
}
.main-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}
.zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(31, 42, 68, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.4rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.gallery-thumb:hover {
  border-color: var(--bv-primary);
}
.gallery-thumb.active {
  border-color: var(--bv-primary);
}

/* ---- Image lightbox (full-screen) ---- */
#imageLightbox .modal-content {
  height: 100vh;
}
#imageLightbox .modal-body {
  height: 100%;
  touch-action: none;
}
.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 6;
}
.lightbox-tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-zoom-level {
  color: #fff;
  font-size: 0.85rem;
  min-width: 3.2rem;
  text-align: center;
  user-select: none;
}
.lightbox-img-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transition: transform 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev {
  left: 0.75rem;
}
.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 575.98px) {
  .lightbox-zoom-level {
    display: none;
  }
}

.breadcrumb {
  --bs-breadcrumb-divider: '/';
}

/* ---- Share buttons (product/page) ---- */
.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bv-light-bg);
  color: var(--bv-secondary);
  margin-right: 0.4rem;
}
.share-buttons a:hover {
  background: var(--bv-primary);
  color: #fff;
}

/* ---- Product "As seen on" social links ---- */
.product-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bv-light-bg);
  color: var(--bv-secondary);
  font-size: 1.1rem;
  border: 1px solid #e5e7ef;
}
.product-social-link:hover {
  background: var(--bv-secondary);
  color: #fff;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--bv-secondary);
  color: #fff;
}
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bv-accent);
  margin-bottom: 1rem;
}
.site-footer a {
  color: #d9dcea;
}
.site-footer a:hover {
  color: #fff;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.footer-social a:hover {
  background: var(--bv-primary);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767.98px) {
  .section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    right: 1rem;
    bottom: 1rem;
  }
}
