/* Header + home headings redesign (Figma) */
:root {
  --sl-green: #578d73;
  --sl-ink: #000;
}

/* —— Desktop top bar —— */
@media (min-width: 1200px) {
  .site-header .top-header {
    padding: 18px 0 8px;
  }

  .header-desktop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }

  .header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
  }

  .header-brand .logo {
    margin-top: 0;
    width: 72px;
    height: auto;
  }

  .header-brand .logo-text {
    float: none;
    clear: none;
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 700;
    text-align: left;
    color: var(--sl-ink);
  }

  .header-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 28px;
    margin: 12px 0 0;
    padding: 0;
  }

  .header-benefits > li {
    padding: 0;
  }

  .header-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-benefit:hover,
  .header-benefit:focus {
    color: var(--sl-ink);
    text-decoration: none;
  }

  .header-benefit .icon-img {
    float: none;
    margin: 0;
    width: auto;
    height: auto;
    display: block;
  }

  .header-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex: 0 0 auto;
  }

  .header-social {
    margin: 0;
    padding: 0;
  }

  .header-social > li {
    padding: 0 0 0 10px;
  }

  /* Green Figma icons (replace black sprite) */
  .site-header #img-contact {
    width: 27px;
    height: 22px;
    background: url("../../img/home/header/contact.png") center / contain no-repeat;
  }

  .site-header #img-instagram-logo {
    width: 22px;
    height: 22px;
    background: url("../../img/home/header/instagram.png") center / contain no-repeat;
  }

  .site-header #img-facebook-icon {
    width: 22px;
    height: 22px;
    background: url("../../img/home/header/facebook.png") center / contain no-repeat;
  }

  .site-header #img-user {
    width: 22px;
    height: 25px;
    background: url("../../img/home/header/user.png") center / contain no-repeat;
  }

  .site-header #img-shopping-cart {
    width: 26px;
    height: 26px;
    background: url("../../img/home/header/cart.png") center / contain no-repeat;
  }

  .header-search {
    display: flex;
    align-items: stretch;
    margin: 0;
  }

  .header-search .txt-search {
    width: 200px;
    height: 36px;
    border: 1px solid #cfcfcf;
    border-right: 0 !important;
    box-shadow: none;
  }

  .header-search .btn-search {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: var(--sl-green);
    color: #fff;
    font-size: 14px;
    line-height: 36px;
  }

  .header-search .btn-search:hover,
  .header-search .btn-search:focus {
    background: #4a7a63;
    color: #fff;
  }

  /* Nav row: menu + account + cart */
  .category-menu .header-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0 14px;
  }

  .category-menu .header-nav-row > .navbar {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-width: 0;
  }

  .category-menu .header-nav-row .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .category-menu .navbar-default .navbar-nav {
    margin-top: 0 !important;
    margin-left: 0;
    font-size: 18px;
    font-weight: 700;
  }

  .category-menu .navbar-default .navbar-nav > li > a {
    color: var(--sl-ink) !important;
    font-size: 18px !important;
    padding: 10px 14px 10px 0;
    text-transform: uppercase;
  }

  .header-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .header-nav-actions .header-account {
    margin: 0;
  }

  .header-nav-actions .account {
    left: 0;
  }

  .header-nav-actions .account > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--sl-green);
  }

  .header-nav-actions .account-login,
  .header-nav-actions .account-login2 {
    float: none;
    margin: 0;
    line-height: 1.15;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sl-green);
  }

  .header-nav-actions .shopping-btn {
    margin-left: 0 !important;
    display: flex;
    align-items: center;
  }

  .header-nav-actions .shopping-btn .title,
  .header-nav-actions .shopping-btn .item {
    display: none;
  }

  .header-nav-actions .shopping-btn .shopping {
    margin: 0;
  }
}

/* —— Home headings —— */
.home-headings {
  padding: 28px 15px 10px;
  text-align: center;
}

.home-headings__title {
  margin: 0 auto 14px;
  max-width: 1100px;
  font-family: "Raleway", sans-serif;
  font-size: 40px;
  font-weight: 700;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: var(--sl-ink);
}

.home-headings__sub {
  margin: 0 auto 18px;
  max-width: 960px;
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: #222;
}

.home-headings__sub strong {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
}

.home-headings__script {
  margin: 0;
  font-family: "black_jack", cursive;
  font-size: 42px;
  line-height: 1.1;
  color: var(--sl-ink);
  font-weight: normal;
}

@media (max-width: 1199px) {
  /* Edge-to-edge: header, slider, category collage */
  .site-header .top-header > .container,
  .content > .container.slider,
  .content > .container.home-categories {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .site-header .top-header {
    padding: 10px 0 12px;
  }

  .header-mobile {
    display: block;
    padding: 0 13px;
  }

  .header-mobile-benefits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  .header-mobile-benefits > li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .header-mobile-benefits > li:first-child {
    justify-content: flex-start;
    text-align: left;
  }

  .header-mobile-benefits > li:last-child {
    justify-content: flex-end;
    text-align: right;
  }

  .header-mobile-benefits .header-benefit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #000;
    font-size: 13px;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-mobile-benefits .header-benefit .icon-img {
    float: none;
    margin: 0;
    width: 18px;
    height: auto;
    flex: 0 0 auto;
  }

  .header-mobile-benefits .header-benefit span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-mobile__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }

  .header-mobile__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: #000;
  }

  .header-mobile__brand .logo {
    width: 48px;
    height: auto;
    margin: 0;
    flex: 0 0 auto;
  }

  .header-mobile__brand .logo-text {
    float: none;
    clear: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
    color: #000;
  }

  .header-mobile__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
  }

  .header-mobile__account {
    position: relative;
    z-index: 3;
  }

  .header-mobile__account .header-account {
    margin: 0;
    float: none;
  }

  .header-mobile__account .account {
    left: auto !important;
    right: 0;
    position: relative !important;
    float: none !important;
  }

  .header-mobile__account .account > a {
    display: flex;
    align-items: center;
    padding: 0;
  }

  .header-mobile__account .account-login,
  .header-mobile__account .account-login2 {
    display: none;
  }

  .header-mobile__account #img-user {
    width: 22px;
    height: 25px;
    background: url("../../img/home/header/user.png") center / contain no-repeat;
  }

  /* Override legacy absolute cart that overlaps menu */
  .header-mobile .shoppingCartmobile {
    float: none !important;
    position: static !important;
    margin: 0 !important;
    display: block !important;
    z-index: auto !important;
  }

  .header-mobile .shopping-btn {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    text-decoration: none;
  }

  .header-mobile .shopping-btn .shopping {
    margin: 0;
    position: relative;
  }

  .header-mobile #img-shopping-cart {
    width: 26px;
    height: 26px;
    background: url("../../img/home/header/cart.png") center / contain no-repeat;
  }

  .header-mobile-cart-price {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: #277cfe;
    white-space: nowrap;
  }

  .header-mobile__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    width: 26px;
    height: 28px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    flex: 0 0 auto;
  }

  .header-mobile__menu-btn .icon-bar {
    display: block;
    height: 2px;
    background: #000;
    border-radius: 1px;
  }

  .header-mobile__menu-btn .icon-bar:nth-child(1) { width: 100%; }
  .header-mobile__menu-btn .icon-bar:nth-child(2) { width: 85%; }
  .header-mobile__menu-btn .icon-bar:nth-child(3) { width: 70%; }
  .header-mobile__menu-btn .icon-bar:nth-child(4) { width: 55%; }

  .header-mobile-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }

  .header-mobile-search .txt-search {
    flex: 1 1 auto;
    height: 40px;
    border: 1px solid #cfcfcf;
    border-right: 0 !important;
    box-shadow: none;
    border-radius: 4px 0 0 4px;
  }

  .header-mobile-search .btn-search {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #277cfe;
    border-radius: 0 4px 4px 0;
    background: var(--sl-green);
    color: #fff;
    font-size: 14px;
    line-height: 38px;
    white-space: nowrap;
  }

  .header-mobile-search .btn-search:hover,
  .header-mobile-search .btn-search:focus {
    background: #4a7a63;
    color: #fff;
    border-color: #277cfe;
  }

  /* Hide old mobile menu hamburger; trigger is in header */
  .navbar-mobile__toggle-hidden,
  .navbar-mobile .navbar-toggle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
  }

  .navbar-mobile {
    position: relative;
  }

  .navbar-mobile .btn-group {
    display: block;
    width: 100%;
  }

  .navbar-mobile #navbarDropdown {
    width: 100%;
    left: 0;
    right: 0;
    position: static;
    float: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .navbar-mobile #navbarDropdown.collapse {
    display: none;
  }

  .navbar-mobile #navbarDropdown.collapse.in,
  .navbar-mobile #navbarDropdown.collapsing {
    display: block !important;
  }

  .home-headings {
    padding: 18px 12px 8px;
  }

  .home-headings__title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    max-width: 100%;
  }

  .home-headings__sub {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
  }

  .home-headings__sub strong {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
  }

  .home-headings__script {
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: "black_jack", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 45px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-mobile-benefits .header-benefit {
    font-size: 13px;
    gap: 4px;
  }

  .header-mobile-benefits .header-benefit .icon-img {
    width: 16px;
  }

  .header-mobile__brand .logo-text {
    font-size: 12px;
  }

  .header-mobile__actions {
    gap: 8px;
  }

  .header-mobile-cart-price {
    font-size: 12px;
  }
}
