/**
 * Storefront homepage — EXACT visual copy of employer Daryas-Gold mockups.
 * Hard gold/cream theme (does NOT follow tenant brand-primary blue).
 * Scoped to body.bf-homepage only.
 */

body.bf-homepage {
  /* Force mockup palette — ignore tenant brand primary on homepage */
  --bf-cream: #faf8f4;
  --bf-surface: #ffffff;
  --bf-ink: #1f1a14;
  --bf-muted: #7a7368;
  --bf-line: rgba(31, 26, 20, 0.08);
  --bf-radius: 1rem;
  --bf-radius-lg: 1.4rem;
  --bf-shadow: 0 10px 30px rgba(31, 26, 20, 0.08);
  --bf-shadow-sm: 0 2px 10px rgba(31, 26, 20, 0.05);
  --bf-gold: #c5a059;
  --bf-gold-deep: #a8873f;
  --bf-gold-soft: #e8d5a8;
  --bf-dark: #1c1712;

  --bfrontshop-brand-primary: #c5a059 !important;
  --bs-primary: #c5a059;
  --bs-primary-rgb: 197, 160, 89;
  --bs-link-color: #c5a059;
  --bs-link-hover-color: #a8873f;

  background-color: var(--bf-cream) !important;
  color: var(--bf-ink);
}

body.bf-homepage #main-container {
  padding-bottom: 5.75rem;
  max-width: 1100px;
}

body.bf-homepage .section-item {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ========== Gold ticker ========== */
body.bf-homepage .bf-gold-ticker {
  background: #111111 !important;
  color: #f3e6c8;
  width: 100%;
}

body.bf-homepage .bf-gold-ticker .header-gold-price-row {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}

body.bf-homepage .bf-gold-ticker .fixed-gold-price-box {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  color: inherit !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.bf-homepage .bf-gold-ticker .fixed-gold-price-value {
  color: #e8c97a !important;
  font-weight: 700;
}

body.bf-homepage .bf-gold-ticker .fixed-gold-price-label,
body.bf-homepage .bf-gold-ticker .fixed-gold-price-currency {
  color: #f3e6c8 !important;
}

body.bf-homepage .bf-gold-ticker .fixed-gold-price-icon {
  color: #7dcea0 !important;
}

body:not(.bf-homepage) .bf-gold-ticker {
  background: transparent;
}

body:not(.bf-homepage) .fixed-gold-price-box {
  border-radius: 999px;
  box-shadow: var(--bf-shadow-sm);
}

/* ========== Header ========== */
body.bf-homepage #main-header.bf-header--home {
  background-color: #ffffff !important;
  backdrop-filter: none;
  border-bottom: 1px solid var(--bf-line);
  padding-bottom: 0.7rem;
}

body.bf-homepage #main-header.bf-header--home .header-content {
  min-height: 3.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.35rem;
}

body.bf-homepage #main-header.bf-header--home .logo {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.bf-homepage #main-header.bf-header--home .logo-img {
  height: 38px;
}

body.bf-homepage #main-header.bf-header--home .logo-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bf-ink) !important;
  margin: 0;
  white-space: nowrap;
}

body.bf-homepage #main-header.bf-header--home .logo-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--bf-muted);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  body.bf-homepage #main-header.bf-header--home .logo-type {
    display: none;
  }
}

@media (min-width: 576px) {
  body.bf-homepage #main-header.bf-header--home .logo-type {
    display: block !important;
    text-align: center;
  }
}

body.bf-homepage #main-header.bf-header--home .search-bar-container {
  width: 100%;
  justify-content: flex-start;
  gap: 0.35rem;
  position: relative;
  z-index: 3;
}

body.bf-homepage #main-header.bf-header--home .discount-btn,
body.bf-homepage #main-header.bf-header--home .bf-header-basket {
  margin-inline-start: auto;
}

body.bf-homepage #main-header.bf-header--home .discount-btn + .bf-header-basket {
  margin-inline-start: 0;
}

body.bf-homepage .bf-header-basket,
body.bf-homepage .bf-header-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--bf-ink) !important;
  background: transparent;
  border: none;
  text-decoration: none;
  flex-shrink: 0;
}

body.bf-homepage .bf-header-basket svg {
  width: 22px;
  height: 22px;
  color: var(--bf-ink) !important;
  stroke: currentColor;
}

body.bf-homepage .bf-header-menu-btn {
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

body.bf-homepage .bf-header-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bf-ink);
  border-radius: 2px;
}

body.bf-homepage .bf-header-basket-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bf-gold) !important;
  color: #1a1a1a !important;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Search row — light gray pill like mockup */
body.bf-homepage .bf-home-search-row {
  padding-top: 0.3rem;
  padding-bottom: 0.2rem;
}

body.bf-homepage .bf-search-bar--home-row {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.bf-homepage .bf-search-bar--home-row .search-input-wrapper {
  border-radius: 999px !important;
  background: #f0eee9 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  padding: 0.4rem 0.95rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.4rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.bf-homepage .bf-search-bar--home-row .search-input-wrapper input,
body.bf-homepage .bf-search-bar--home-row input {
  font-size: 0.9rem;
  color: var(--bf-ink) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  text-align: start !important;
  order: 2;
}

body.bf-homepage .bf-search-bar--home-row input::placeholder {
  color: #9a958c !important;
  text-align: start !important;
}

body.bf-homepage .bf-search-bar--home-row .search-btn {
  background: transparent !important;
  border: none !important;
  color: #8a847a !important;
  padding: 0.15rem;
  flex-shrink: 0;
  order: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Keep icon glued to the start edge of the text (RTL-safe), not at the far opposite side */
body.bf-homepage .bf-home-search-row {
  max-width: 640px;
  margin-inline: auto;
}

body.bf-homepage #header-menu-items {
  display: none !important;
}

/* ========== Section titles ========== */
body.bf-homepage .section-item .section-title,
body.bf-homepage .section-product-type .section-product-head__title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--bf-ink) !important;
  text-align: start;
  margin-bottom: 0.9rem;
}

body.bf-homepage .section-item .section-title::after,
body.bf-homepage .section-product-type .section-product-head__title::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2.5px;
  margin-top: 0.4rem;
  margin-inline-start: 0;
  margin-inline-end: auto;
  border-radius: 99px;
  background: var(--bf-gold) !important;
}

body.bf-homepage .section-product-type .section-product-head {
  align-items: center;
  margin-top: 1.75rem;
  margin-bottom: 0.7rem;
}

body.bf-homepage .section-product-type .section-product-head__title {
  border-bottom: none !important;
  padding-bottom: 0;
  margin-bottom: 0;
}

body.bf-homepage .section-product-head__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--bf-gold) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  margin-inline-start: auto;
  flex-shrink: 0;
}

body.bf-homepage .section-product-head__view-all svg {
  color: var(--bf-gold) !important;
  fill: currentColor;
}

body.bf-homepage .section-product-type .section-product-head__nav {
  display: none !important;
}

/* ========== Hero ========== */
body.bf-homepage .section-banner-type:not(.section-banner-4col-type) .banner-section .swiper {
  border-radius: var(--bf-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--bf-shadow);
}

body.bf-homepage .section-banner-type:not(.section-banner-4col-type) .banner-section .swiper .item-link {
  aspect-ratio: 16 / 10;
}

@media (min-width: 992px) {
  body.bf-homepage .section-banner-type:not(.section-banner-4col-type) .banner-section .swiper .item-link {
    aspect-ratio: 21 / 9;
  }

  body.bf-homepage .section-banner-type:not(.section-banner-4col-type) .banner-show-three-banners .swiper .item-link {
    aspect-ratio: 4 / 3;
  }
}

body.bf-homepage .banner-section .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

body.bf-homepage .banner-section .swiper-pagination-bullet-active,
body.bf-homepage .banner-4col-section .swiper-pagination-bullet-active {
  background: var(--bf-gold) !important;
}

/* ========== Circular categories ========== */
body.bf-homepage .banner-4col-section--chips {
  margin: 0 -0.25rem;
}

body.bf-homepage .banner-4col-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.4rem 0.25rem 0.9rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.bf-homepage .banner-4col-chips::-webkit-scrollbar {
  display: none;
}

body.bf-homepage .banner-4col-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 5.6rem;
}

body.bf-homepage .banner-4col-chip__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--bf-ink) !important;
}

body.bf-homepage .banner-4col-chip__media {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--bf-gold) !important;
  box-shadow: var(--bf-shadow-sm);
  display: block;
}

body.bf-homepage .banner-4col-chip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.bf-homepage .banner-4col-chip__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  max-width: 5.6rem;
  white-space: normal;
  color: var(--bf-ink) !important;
}

@media (min-width: 768px) {
  body.bf-homepage .banner-4col-chips {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }

  body.bf-homepage .banner-4col-chip {
    width: 6.6rem;
  }

  body.bf-homepage .banner-4col-chip__media {
    width: 6.3rem;
    height: 6.3rem;
  }
}

body.bf-homepage .categories-section .categories-container.rounded-avatar {
  gap: 0.9rem;
  padding: 0.4rem 0 0.9rem;
}

body.bf-homepage .categories-section .categories-container.rounded-avatar .category-card {
  box-shadow: none;
  background: transparent;
  width: auto;
  margin: 0;
}

body.bf-homepage .categories-section .categories-container.rounded-avatar .card-link {
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

body.bf-homepage .categories-section .categories-container.rounded-avatar .image-container {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  border: 2px solid var(--bf-gold) !important;
  box-shadow: var(--bf-shadow-sm);
  overflow: hidden;
  margin: 0;
}

body.bf-homepage .categories-section .categories-container.rounded-avatar .category-title {
  font-size: 0.78rem;
  font-weight: 600;
}

/* ========== Product cards — gold price + gold outline CTA ========== */
body.bf-homepage .products-section .products-container {
  gap: 0.9rem;
  padding-bottom: 0.55rem;
  scrollbar-width: none;
}

body.bf-homepage .products-section .products-container::-webkit-scrollbar {
  display: none;
}

body.bf-homepage .products-section .product-box {
  width: min(72vw, 220px);
  border-radius: var(--bf-radius);
  box-shadow: var(--bf-shadow);
  border: 1px solid var(--bf-line);
  background: var(--bf-surface) !important;
  padding: 0.8rem 0.8rem 0.95rem;
  margin: 0 0 0.5rem !important;
  backdrop-filter: none;
}

body.bf-homepage .products-section .product-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 26, 20, 0.12);
}

body.bf-homepage .products-section .product-box .product-anchor {
  min-height: 0;
  gap: 0.4rem;
  text-align: start;
  align-items: stretch;
}

body.bf-homepage .products-section .product-image-wrapper {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f4f1ea;
}

body.bf-homepage .products-section .product-card-image {
  height: 150px;
  border-radius: 0.85rem;
  margin-bottom: 0;
  box-shadow: none;
  object-fit: cover;
}

body.bf-homepage .products-section .product-content-container {
  align-items: flex-start;
  text-align: start;
  gap: 0.2rem !important;
}

body.bf-homepage .products-section .product-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.35rem 0 0.15rem;
  text-align: start;
  line-height: 1.35;
  color: var(--bf-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.bf-homepage .products-section .product-weight-badge-wrapper {
  position: absolute;
  inset-inline-start: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
}

body.bf-homepage .products-section .product-weight-badge {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  color: var(--bf-muted);
  box-shadow: var(--bf-shadow-sm);
}

body.bf-homepage .products-section .product-raw-price,
body.bf-homepage .products-section .product-raw-price-container .product-price-currency {
  color: #b0a99c !important;
}

body.bf-homepage .products-section .product-price-container .product-price,
body.bf-homepage .products-section .product-price {
  color: var(--bf-gold) !important;
  font-size: 1.05rem;
  font-weight: 800;
}

body.bf-homepage .products-section .product-price-container .product-price-currency {
  color: var(--bf-gold) !important;
  font-weight: 600;
  font-size: 0.75rem;
}

body.bf-homepage .products-section .add-to-basket-container {
  padding-top: 0.6rem;
  padding-bottom: 0;
}

body.bf-homepage .products-section .add-to-basket-container .btn,
body.bf-homepage .products-section .add-to-basket-container .add-to-cart,
body.bf-homepage .products-section .add-to-basket-container .btn-outline-primary {
  width: 100%;
  border-radius: 999px !important;
  border: 1.5px solid var(--bf-gold) !important;
  color: var(--bf-ink) !important;
  background: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  box-shadow: none !important;
}

body.bf-homepage .products-section .add-to-basket-container .btn svg,
body.bf-homepage .products-section .add-to-basket-container .add-to-cart svg {
  color: var(--bf-gold) !important;
  fill: currentColor;
}

body.bf-homepage .products-section .add-to-basket-container .btn:hover,
body.bf-homepage .products-section .add-to-basket-container .add-to-cart:hover,
body.bf-homepage .products-section .add-to-basket-container .btn-outline-primary:hover {
  background: var(--bf-gold) !important;
  color: #fff !important;
  border-color: var(--bf-gold) !important;
}

body.bf-homepage .products-section .add-to-basket-container .btn:hover svg,
body.bf-homepage .products-section .add-to-basket-container .add-to-cart:hover svg {
  color: #fff !important;
}

@media (min-width: 992px) {
  body.bf-homepage .products-section .product-box {
    width: 240px;
  }

  body.bf-homepage .products-section .product-card-image {
    height: 180px;
  }
}

/* Kill leftover brand-blue on homepage product chrome */
body.bf-homepage .products-section .text-primary,
body.bf-homepage .products-section .btn-primary,
body.bf-homepage .products-section a.text-primary {
  color: var(--bf-gold) !important;
}

/* ========== Trust / features — Design-1 horizontal strip ========== */
body.bf-homepage .section-feature-type {
  margin-top: 2.1rem;
  margin-bottom: 2.1rem;
}

body.bf-homepage .section-feature-type .section-title {
  display: none; /* mockup has no title over trust strip */
}

body.bf-homepage .feature-section .feature-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 0.25rem 0;
}

body.bf-homepage .feature-section .feature-box {
  flex: 1 1 42%;
  min-width: 130px;
  max-width: none;
  margin: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0.65rem 0.35rem;
  text-align: center;
}

body.bf-homepage .feature-section .feature-box .image-container .item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 0.55rem;
  object-fit: contain;
  background: #fff;
  padding: 0.4rem;
  border: 1.5px solid var(--bf-gold) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bf-gold) !important;
  font-size: 1.1rem;
  line-height: 1;
}

body.bf-homepage .feature-section .feature-box:nth-child(1) .item-icon--placeholder::before { content: "✓"; }
body.bf-homepage .feature-section .feature-box:nth-child(2) .item-icon--placeholder::before { content: "✈"; }
body.bf-homepage .feature-section .feature-box:nth-child(3) .item-icon--placeholder::before { content: "✿"; }
body.bf-homepage .feature-section .feature-box:nth-child(4) .item-icon--placeholder::before { content: "↺"; }

body.bf-homepage .feature-section .feature-box .title {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.15rem !important;
  color: var(--bf-ink) !important;
}

body.bf-homepage .feature-section .feature-box .description {
  font-size: 0.7rem !important;
  color: var(--bf-muted) !important;
}

@media (min-width: 768px) {
  body.bf-homepage .feature-section .feature-box {
    flex: 1 1 20%;
  }
}

/* ========== About — dark + gold CTA (mockup) ========== */
body.bf-homepage .message-section .message-container {
  border-radius: var(--bf-radius-lg);
  box-shadow: var(--bf-shadow);
  min-height: 190px;
  padding: 1.6rem 1.2rem !important;
  background: var(--bf-dark) !important;
}

body.bf-homepage .message-section .message-container .item-background-image {
  opacity: 0.4;
}

body.bf-homepage .message-section .message-container .title {
  color: #fff !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

body.bf-homepage .message-section .message-container .description {
  color: rgba(255, 255, 255, 0.86) !important;
}

body.bf-homepage .message-section .message-container .button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: transparent !important;
  border: none !important;
  color: var(--bf-gold) !important;
  font-weight: 700;
  padding: 0.45rem 0;
  box-shadow: none !important;
  text-decoration: none;
}

body.bf-homepage .message-section .message-container .button::after {
  content: "‹";
  font-size: 1.1em;
  margin-inline-start: 0.15rem;
}

/* ========== Bottom nav — gold active ========== */
body.bf-homepage #bottom-navbar.navbar {
  border-radius: 1.4rem;
  box-shadow: 0 12px 32px rgba(31, 26, 20, 0.14);
  border: 1px solid var(--bf-line);
  background: #ffffff !important;
  backdrop-filter: blur(14px);
  max-width: min(460px, 94vw);
  margin-bottom: 0.85rem;
}

body.bf-homepage #bottom-navbar .nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8a847a !important;
  padding: 0.65rem 0.3rem 0.55rem;
}

body.bf-homepage #bottom-navbar .nav-link svg {
  opacity: 1;
  color: #8a847a !important;
}

body.bf-homepage #bottom-navbar .nav-link:hover,
body.bf-homepage #bottom-navbar .nav-link:focus,
body.bf-homepage #bottom-navbar .nav-link.is-active {
  color: var(--bf-gold) !important;
  font-weight: 700;
}

body.bf-homepage #bottom-navbar .nav-link:hover svg,
body.bf-homepage #bottom-navbar .nav-link:focus svg,
body.bf-homepage #bottom-navbar .nav-link.is-active svg {
  color: var(--bf-gold) !important;
}

body.bf-homepage #bottom-navbar #header-basket-counter.badge {
  background: var(--bf-gold) !important;
  color: #1a1a1a !important;
}

body.bf-homepage #bottom-navbar.bf-bottom-nav--home {
  max-width: min(460px, 94vw);
}

/* ========== Global brand-blue kill-switch on homepage ========== */
body.bf-homepage .btn-primary,
body.bf-homepage .btn-outline-primary {
  --bs-btn-color: var(--bf-ink);
  --bs-btn-border-color: var(--bf-gold);
  --bs-btn-hover-bg: var(--bf-gold);
  --bs-btn-hover-border-color: var(--bf-gold);
  --bs-btn-active-bg: var(--bf-gold-deep);
  --bs-btn-active-border-color: var(--bf-gold-deep);
}

body.bf-homepage a:not(.nav-link):not(.button):hover {
  color: var(--bf-gold);
}

body.bf-homepage footer a {
  color: var(--bf-muted) !important;
}

/* ========== Desktop ========== */
@media (min-width: 992px) {
  body.bf-homepage #main-container {
    max-width: 1140px;
  }

  body.bf-homepage .section-item .section-title,
  body.bf-homepage .section-product-type .section-product-head__title {
    font-size: 1.35rem;
  }

  body.bf-homepage .bf-home-search-row {
    max-width: 640px;
    margin-inline: auto;
  }

  body.bf-homepage .feature-section .feature-container {
    gap: 1rem;
  }
}
