/* =========================================================
   BASE Home – custom storefront styles
   File: themes/vt_decor/assets/css/custom.css
   PrestaShop loads this file automatically, after the theme styles.
   Version control: git on the server (re-apply after theme updates).
   ========================================================= */

:root {
  --bh-bg: #F0EFEB;          /* background, 60% */
  --bh-cardboard: #DECDBD;   /* cardboard, 30% */
  --bh-logo-beige: #C7BCAE;  /* logo and decorations only, never for text */
  --bh-accent: #7A6753;      /* accent, 10%: buttons, highlights */
  --bh-text: #2B2622;        /* text */
}

/* ---------- 1. HEADER (2026-11-26) ---------- */

/* Header background */
#header,
#header .header-top,
#header .header-top .elementor-top-section {
  background-color: var(--bh-bg) !important;
}

/* Logo: 150 px on desktop, 120 px on mobile (brand book minimum) */
#header .header_logo_desktop img.logo {
  width: 150px;
  max-width: 150px;
  height: auto;
}
#header .header_logo_mobile img.logo {
  width: 120px;
  max-width: 120px;
  height: auto;
}

/* Menu: League Spartan Medium in brand text colour */
#header .leo-megamenu .nav-link {
  font-family: "League Spartan", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--bh-text);
}
#header .leo-megamenu .nav-link:hover,
#header .leo-megamenu .nav-item.active > .nav-link {
  color: var(--bh-accent);
}

/* Active / hover underline: accent instead of the theme pink */
#header .leo-megamenu .nav-link::before {
  background-color: var(--bh-accent) !important;
}

/* Account and cart icons */
#header .header-top a,
#header .header-top i {
  color: var(--bh-text);
}

/* Cart counter: accent background with white digits */
#header .cart-products-count {
  background-color: var(--bh-accent) !important;
  color: #fff !important;
}

/* ---------- 2. MOBILE HEADER AND MENU (2026-11-26) ---------- */

@media (max-width: 991.98px) {
  /* Center the mobile logo (the theme gives the wrapper a fixed 150 px width) */
  #header .header_logo_mobile {
    width: auto !important;
    float: none !important;
    margin: 0 auto;
    text-align: center;
  }
  #header .header_logo_mobile img.logo {
    display: inline-block;
    width: 150px;
    max-width: 150px;
  }

  /* Compact sticky header: added by custom.js after scrolling past the header */
  body.bh-header-compact #header .header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 var(--bh-cardboard);
  }
  body.bh-header-compact #header .header-top .elementor-container {
    min-height: 0 !important;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  /* One row: menu (left), logo (center), account and cart (right) */
  body.bh-header-compact #header .header-top .elementor-row {
    flex-wrap: nowrap;
    align-items: center;
  }
  body.bh-header-compact #header .col_menu {
    order: 1;
    width: 25% !important;
  }
  body.bh-header-compact #header .col_logo {
    order: 2;
    width: 50% !important;
  }
  body.bh-header-compact #header .col_info {
    order: 3;
    width: 25% !important;
  }
  /* Keep the account and cart icons side by side */
  body.bh-header-compact #header .col_info .elementor-widget-wrap {
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    align-items: center;
  }
  body.bh-header-compact #header .col_info .elementor-widget {
    width: auto !important;
    margin-bottom: 0 !important;
  }
  /* Smaller logo in the compact header: 120 px is the brand book minimum */
  body.bh-header-compact #header .header_logo_mobile img.logo {
    width: 120px;
    max-width: 120px;
  }
}

/* Off-canvas mobile menu: brand background, sentence case, brand text colour */
.off-canvas-nav-megamenu,
.off-canvas-nav-megamenu .offcanvas-mainnav {
  background-color: var(--bh-bg) !important;
}
.off-canvas-nav-megamenu .nav-link,
.off-canvas-nav-megamenu .dropdown-menu a {
  font-family: "League Spartan", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: none !important;
  color: var(--bh-text) !important;
}
.off-canvas-nav-megamenu .nav-item {
  border-bottom-color: var(--bh-cardboard) !important;
}
.off-canvas-nav-megamenu .dropdown-menu {
  background-color: transparent !important;
}

/* ---------- 3. MOBILE HEADER AND MENU, ROUND 2 (2026-11-26) ---------- */

@media (max-width: 991.98px) {
  /* Smaller logo in the compact sticky header (owner's decision:
     exception to the 120 px brand book minimum for this header only) */
  body.bh-header-compact #header .header_logo_mobile img.logo {
    width: 90px;
    max-width: 90px;
  }
  body.bh-header-compact #header .header-top .elementor-container {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

/* Off-canvas panel: always fill the whole screen height, also after
   scrolling and when the mobile browser bar shows or hides */
.off-canvas-nav-megamenu .offcanvas-mainnav {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Bigger, more readable top-level items */
.off-canvas-nav-megamenu .nav-link {
  font-size: 18px !important;
  line-height: 1.4;
}

/* Submenu: bigger text and more space between items */
.off-canvas-nav-megamenu .dropdown-menu .menu-title {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--bh-accent) !important;
  padding: 12px 0 6px !important;
}
.off-canvas-nav-megamenu .dropdown-menu .menu-title a {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--bh-accent) !important;
}
.off-canvas-nav-megamenu .dropdown-menu li.level2 {
  padding: 9px 0 !important;
}
.off-canvas-nav-megamenu .dropdown-menu li.level2 > a {
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- 4. MENU: SUBMENU TITLE, HOVER, CURRENT PAGE (2026-11-26) ---------- */

/* Hide the repeated category name above the submenu items (desktop and mobile).
   The module widget has no setting for it; "All candles" links to the same page. */
.megamenu .widget-subcategories .menu-title {
  display: none !important;
}

/* Desktop submenu: visible hover state */
#header .leo-megamenu .dropdown-menu li.level2 > a {
  color: var(--bh-text);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
#header .leo-megamenu .dropdown-menu li.level2 > a:hover,
#header .leo-megamenu .dropdown-menu li.level2 > a:focus {
  color: var(--bh-accent);
  padding-left: 6px;
}

/* Current page: accent colour, medium weight and a thin bar on the left */
.megamenu .dropdown-menu a.bh-current {
  position: relative;
  color: var(--bh-accent) !important;
  font-weight: 500 !important;
  padding-left: 12px !important;
}
.megamenu .dropdown-menu a.bh-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 2px;
  background-color: var(--bh-accent);
}
/* Top-level item of the current section */
.off-canvas-nav-megamenu .megamenu > li.bh-current-parent > .nav-link,
#header .leo-megamenu .megamenu > li.bh-current-parent > .nav-link {
  color: var(--bh-accent) !important;
}

/* ---------- 5. DESKTOP MENU UNDERLINE (2026-11-27) ---------- */

/* Thinner underline under top-level items: 2 px instead of the theme's 6 px */
.leo-megamenu .navbar-nav > li > a::before {
  height: 2px !important;
  bottom: 28px !important;
}

/* Underline the top-level item also when the current page is in its submenu */
.leo-megamenu .navbar-nav > li.bh-current-parent > a::before {
  width: calc(100% - 20px);
}


/* ---------- 6. CART COUNTER BADGE (2026-11-27) ---------- */

/* Larger, more readable badge; widens automatically for two-digit numbers */
#header .cart-products-count {
  width: auto !important;
  min-width: 18px;
  height: 18px !important;
  padding: 0 4px !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 18px !important;
  text-align: center;
  border-radius: 9px !important;
  top: -7px !important;
  left: 15px !important;
  right: auto !important;
}

/* ---------- 7. CART ICON CURSOR (2026-11-27) ---------- */

/* With an empty cart the theme renders the icon without a link;
   custom.js still opens the cart page, so show the link cursor. */
#header .blockcart,
#header .blockcart * {
  cursor: pointer;
}