/* ═══════════════════════════════════════════
   BM Pure Fine Foods — Brand Override CSS
   Place this file LAST in CSS load order
   ═══════════════════════════════════════════ */

/* ─── Global ─── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FFFDF9 !important;
}

/* ─── Typography ─── */
h1, h2, h3, .h1, .h2, .h3,
.homepage-sections--title,
.sitewide--title-wrapper h2,
.product-grid--title a {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.homepage-sections--title {
  font-size: 38px !important;
  font-weight: 300 !important;
  color: #2C2418 !important;
}

/* ─── Navigation ─── */
.site-header {
  background: rgba(255, 253, 249, 0.95) !important;
  backdrop-filter: blur(12px);
}

.site-nav__link {
  position: relative;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  transition: color 0.3s;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B8963E;
  transition: width 0.3s;
}

.site-nav__link:hover::after {
  width: 100%;
}

.site-nav__link:hover {
  color: #B8963E !important;
}

/* ─── Announcement Bar ─── */
.bm-announcement-bar {
  background: #B8963E;
  color: #FFFDF9;
  text-align: center;
  padding: 11px 20px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ─── Logo ─── */
.bm-logo-wrapper {
  text-align: center;
}
.bm-logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #B8963E;
  letter-spacing: 4px;
  line-height: 1;
}
.bm-logo-sub {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 8.5px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: #B8AD9A;
  margin-top: 3px;
}

/* ─── "View all" Links ─── */
.jsc-view-all {
  color: #B8963E !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}

/* ─── Product Cards ─── */
.grid-view-item {
  background: #FFFDF9;
  border: 1px solid rgba(184,150,62,0.08);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.grid-view-item:hover {
  transform: translateY(-3px);
  border-color: #E8D5A8;
  box-shadow: 0 12px 40px rgba(184,150,62,0.08);
}

.grid-view-item-image {
  background: #F3EDE2;
}

.product-grid--title a {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #2C2418 !important;
  text-decoration: none !important;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-grid--price .money.sale-price {
  color: #2C2418;
}

.product-grid--price .money.line--through {
  color: #9A8D78;
}

/* Product origin tag */
.bm-product-origin {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #B8963E;
  margin-bottom: 4px;
}

/* ─── Add to Cart Button ─── */
.quick-add-button {
  background: transparent !important;
  border: 1px solid rgba(184,150,62,0.25) !important;
  color: #5C4F3D !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  padding: 10px 16px !important;
}

.quick-add-button:hover {
  background: #B8963E !important;
  border-color: #B8963E !important;
  color: #FFFDF9 !important;
}

/* ─── Quantity Buttons ─── */
.js-qty__adjust {
  border-color: rgba(184,150,62,0.25) !important;
  color: #5C4F3D !important;
}
.js-qty__adjust:hover {
  background: #B8963E !important;
  color: #fff !important;
}

/* ─── Footer ─── */
.site-footer {
  background: #2C2418 !important;
}
.site-footer,
.site-footer a,
.site-footer .footer-content li a {
  color: #B8AD9A !important;
}
.site-footer .footer-header,
.site-footer .h3 {
  color: #E8D5A8 !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
}
.site-footer a:hover {
  color: #D4B06A !important;
}
.footer-email-submit {
  background: #B8963E !important;
  border-color: #B8963E !important;
  color: #fff !important;
}
.footer-email-submit:hover {
  background: #D4B06A !important;
  border-color: #D4B06A !important;
}
.bottom--footer {
  border-top-color: rgba(184,150,62,0.1) !important;
}
.bottom--footer---links a {
  color: rgba(184,150,62,0.4) !important;
}

/* ─── Community QR Section ─── */
.bm-community-section {
  padding: 60px 20px;
  background: #FAF6EF;
  border-top: 1px solid rgba(184,150,62,0.08);
  text-align: center;
}
.bm-community-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 300;
  color: #2C2418;
  margin-bottom: 8px;
}
.bm-community-subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: #9A8D78;
  margin-bottom: 40px;
}
.bm-qr-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}
.bm-qr-card {
  background: #FFFDF9;
  border: 1px solid rgba(184,150,62,0.15);
  padding: 32px 28px;
  text-align: center;
  width: 300px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.bm-qr-card:hover {
  border-color: #E8D5A8;
  box-shadow: 0 8px 30px rgba(184,150,62,0.08);
}
.bm-qr-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}
.bm-qr-icon.wechat { background: #09B83E; }
.bm-qr-icon.whatsapp { background: #25D366; }
.bm-qr-card h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #2C2418;
  margin-bottom: 4px;
}
.bm-qr-card .bm-qr-desc {
  font-size: 12px;
  color: #B8AD9A;
  margin-bottom: 16px;
}
.bm-qr-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.bm-qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: #F3EDE2;
  border: 2px dashed #E8D5A8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: #B8AD9A;
  font-size: 14px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF6EF; }
::-webkit-scrollbar-thumb { background: #E8D5A8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B8963E; }

/* ─── Mobile adjustments ─── */
@media (max-width: 768px) {
  .bm-announcement-bar {
    font-size: 9.5px;
    letter-spacing: 1.5px;
    padding: 9px 12px;
  }
  .bm-logo-text {
    font-size: 28px;
    letter-spacing: 3px;
  }
  .bm-logo-sub {
    font-size: 7px;
  }
  .bm-qr-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .bm-qr-card {
    width: 280px;
  }
  .bm-community-title {
    font-size: 26px;
  }
}
