#header .container {
  padding-left: 0;
  padding-right: 0;
}
.header-top {
  background-color: #39160E;
}

.header-bottom {
  background-color: #6F2C1C;
}

.header-top .container,
.header-bottom .container {
  max-width: 1171px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.header-bottom .nav-wrapper {
  margin-left: 190px; 
}

#header .logo-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1171px;
  pointer-events: none;
  z-index: 10;
  height: 100%;
  display: block;
}

#header .logo {
  pointer-events: auto;
  width: 169px;
  background-color: #F2EBE6;
  padding: 13px 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  height: 99%;
  display: block;
  align-items: initial;
  justify-content: initial;
}

#header .logo a {
  color: #fff;
  text-decoration: none;
  display: block;
}

#header .logo img {
  max-width: 100%;
    height: 100%;
  display: block;
}

#header .nav-item:hover > .nav-link,
#header .nav-item.dropdown:hover > .nav-link {
  color: #F1DFD6 !important;
}
#header .dropdown-item:hover {
  background-color: transparent !important;
}
#header .dropdown-item.active {
  background-color: transparent;
}

#header .nav-link:focus,
#header .nav-link:active,
#header .dropdown-item:focus,
#header .dropdown-item:active,
#header .nav-item.dropdown .nav-link:focus,
#header .nav-item.dropdown .nav-link:active {
  outline: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

#header .nav-link:active,
#header .nav-link:focus {
  color: #F1DFD6;
}

.contact-info {
  background-color: #39160E;
}

.contact-row {
  align-items: center;
  gap: 16px;
}

.py-20 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.contact-info a {
  text-decoration: none;
  color: #ffffff;
  padding: 0;
  margin: 0;
}

.contact-info a:hover {
  color: #ffffff;
  text-decoration: none;
}

.contact-item {
  font-size: 12px;
}

.contact-item img {
  margin-right: 5px;
}

.header-bottom a {
  color: #ffffff;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

.header-bottom a:hover {
  color: #ffffff;
  text-decoration: none;
}

.nav {
  gap: 40px;
}

.nav-item {
  font-size: 16px;
}
.search-form-wrapper input.form-search:-webkit-autofill,
.search-form-wrapper input.form-search:-webkit-autofill:hover,
.search-form-wrapper input.form-search:-webkit-autofill:focus,
.search-form-wrapper input.form-search:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  box-shadow: 0 0 0 30px #fff inset !important;
  background-color: #fff !important;
  background-clip: content-box !important;
  color: #39160E !important;
}

.search-form-wrapper input.form-search:autofill,
.search-form-wrapper input.form-search:autofill:hover,
.search-form-wrapper input.form-search:autofill:focus,
.search-form-wrapper input.form-search:autofill:active {
  background-color: #fff !important;
  color: #39160E !important;
}
.search-block-wrapper {
  position: relative;
}

.search-block-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: auto;
  z-index: 999;
}

.search-form-wrapper {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin-top: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 15px 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  z-index: 1000;
  display: none !important;
}

.search-block-wrapper.search-open .search-form-wrapper {
  display: block !important;
}

.search-form-wrapper form {
  display: flex;
  gap: 8px;
  margin: 0;
}

.search-form-wrapper input.form-search {
  flex: 1;
  color: #39160E;
  padding: 12px 10px;
  border: none;
  border-radius: 0;
  max-width: 300px;
  outline: none;
  width: 245px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: transparent;
}

.search-form-wrapper input.form-search::placeholder {
  color: #8D8D8D;
  opacity: 1;
}

.search-form-wrapper .form-submit {
  background-color: transparent;
  font-weight: 500;
  border: 1px solid #39160E;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background-color 0.3s;
  display: inline-block;
  color: #39160E;
  cursor: pointer;
  white-space: nowrap;
}

.search-form-wrapper .form-submit:hover,
.search-form-wrapper .form-submit:focus  {
  background-color: #39160E;
  color: #fff;
}
@media screen and (max-width: 1199px) {
  .search-form-wrapper {
    min-width: 280px;
    right: -10px; 
  }
  .search-form-wrapper input.form-search {
    width: 200px;
    padding: 10px 8px;
    font-size: 15px;
  }
  .search-form-wrapper .form-submit {
    padding: 10px 20px;
    font-size: 15px;
  }
}

@media screen and (max-width: 991px) {
  .search-form-wrapper {
    min-width: 250px;
    right: -15px;
  }
  .search-form-wrapper input.form-search {
    width: 180px;
    padding: 8px 6px;
    font-size: 14px;
  }
  .search-form-wrapper .form-submit {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  .search-form-wrapper {
    min-width: 220px;
    right: -20px;
    padding: 10px 8px;
  }
  .search-form-wrapper input.form-search {
    width: 150px;
    padding: 6px 5px;
    font-size: 13px;
  }
  .search-form-wrapper .form-submit {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media screen and (max-width: 576px) {
  .search-form-wrapper {
    min-width: 200px;
    right: -5px;
    padding: 8px 5px;
  }
  .search-form-wrapper input.form-search {
    width: 130px;
    padding: 5px 4px;
    font-size: 12px;
  }
  .search-form-wrapper .form-submit {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

.header-actions {
  gap: 10px;
}

.search-trigger,
.cart-block .cart-block--link__expand {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  box-sizing: content-box;
  transition: background-color 0.3s;
  width: 45px;
  height: 45px;
}

.search-form-wrapper input.form-search:hover,
.search-form-wrapper input.form-search:focus,
.search-form-wrapper input.form-search:active {
  outline: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.header-actions .search-block-wrapper .search-trigger {
  display: flex;
}

.search-trigger:hover,
.cart-block .cart-block--link__expand:hover {
    border: 1px solid #F1DFD6;
}

.cart-block .cart-block--summary__count {
  background: #DE7D1F;
  top: 20px;
  right: -14px;
  color: #ffffff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
}
.cart-block--link__expand:hover .cart-block--summary__count {
  color: #ffffff;
  background-color: #DE7D1F;
}

#header .btn-secondary {
  background-color: transparent;
  font-weight: 500;
  border: 1px solid #ffffff;
  padding: 9px 24px;
  border-radius: 100px;
  transition: background-color 0.3s;
  display: inline-block;
}

#header .btn-secondary:hover {
  color: #F1DFD6;
  border: 1px solid #F1DFD6;
}

#header .btn-secondary:disabled {
  color: #8D8D8D;
  border: 1px solid #8D8D8D;
}

#header .dropdown-item {
  color: #39160E;
  font-size: 16px;
  white-space: nowrap;
  margin-bottom: 10px;
  padding-right: 33px;
  transition: background-color 0.2s, text-decoration 0.2s;
}

#header .dropdown-menu .dropdown-menu {
  top: -12px;
  left: 105%;
  margin-left: 5px;      
  display: none;
  z-index: 1002;        
}

#header .dropdown-menu .dropdown-item.has-children {
  position: relative;
}

#header .dropdown-menu .dropdown-item.has-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 30px;        
  height: 100%;
  background: transparent;
  pointer-events: auto;
  z-index: 1001;
}

#header .dropdown-item.has-children {
  position: relative;
}

#header .dropdown-item.has-children::after {
  content: '';
  position: absolute;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url('/sites/all/themes/vesta_theme/image/icons/stroke-brown.svg') no-repeat center / contain;
  opacity: 0.5;
  transition: opacity 0.2s;
}

#header .dropdown-item.has-children:hover::after {
  background-image: url('/sites/all/themes/vesta_theme/image/icons/stroke-orange.svg');
  opacity: 1;
}

#header .dropdown-item:hover::after {
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

#header .dropdown-item:hover {
  text-decoration: underline;
  text-decoration-color: #DE7D1F;
  background-color: transparent;
  text-underline-offset: 4px;
}

#header .nav-item.dropdown {
  position: relative;
  padding-bottom: 0;
  margin-bottom: 0;
}

#header .dropdown-menu {
  position: absolute;
  top: calc(100% + 19px);
  left: 0;
  margin-top: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 10px 15px 0 15px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 253px;
  z-index: 1000;
  display: none;
}

#header .nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: auto;
  z-index: 999;
}

#header .nav-item.dropdown:hover .dropdown-menu,
#header .dropdown-menu:hover {
  display: block;
}

#header .nav-item.dropdown>.nav-link::after {
  transition: transform 0.3s ease;
}

#header .nav-item.dropdown.show>.nav-link::before,
#header .nav-item.dropdown:hover>.nav-link::before {
  transform: translateY(-50%) rotate(180deg);
}

#header .nav-item.dropdown>.nav-link::after {
  display: none;
}

#header .nav-item.dropdown>.nav-link {
  position: relative;
  padding-right: 20px;
}

#header .nav-item.dropdown>.nav-link::before {
  content: '';
  width: 12px;
  height: 7px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: url('/sites/all/themes/vesta_theme/image/icons/chevron-down.svg') no-repeat center / contain;
  transition: transform 0.3s ease;
}

#header .dropdown-menu .dropdown-menu {
  display: none !important;
}

#header .dropdown-menu .dropdown:hover > .dropdown-menu {
  display: block !important;
}

@media screen and (max-width: 1399px) {
  #header .container {
    max-width: 1071px;
  }
  .header-bottom .d-flex {
    margin-left: 0 !important;
  }
  #header .logo-wrapper {
    width: 960px;
  }
  #header .nav {
    gap: 15px;
    padding-left: 235px;
  }
  #header .nav-item {
    font-size: 15px;
  }
  .search-trigger,
  .cart-block .cart-block--link__expand {
    width: 40px;
    height: 40px;
  }
  #header .btn-secondary {
    padding: 8px 20px;
    font-size: 15px;
  }
  .contact-item {
    font-size: 11px;
  }
  .contact-item img {
    width: 14px;
    height: 14px;
  }
    #header .logo-wrapper {
    width: 960px;
  }
  #header .logo {
    width: 150px;
    padding: 11px 13px;
  }
  #header .contact-row {
    gap: 5px;
  }
    .cart-block .cart-block--summary__count {
    top: 16px;
    right: -12px;
  }
}

@media screen and (max-width: 1199px) {
  #header .container {
    max-width: 850px;
  }
  .header-bottom .d-flex {
    margin-left: 0 !important;
  }
  #header .logo-wrapper {
    width: 720px;
  }
  #header .nav {
    padding-left: 155px;
    gap: 12px;
  }
  #header .nav-item {
    font-size: 14px;
  }
  .search-trigger,
  .cart-block .cart-block--link__expand {
    width: 38px;
    height: 38px;
  }
  #header .btn-secondary {
    padding: 7px 16px;
    font-size: 14px;
  }
  .contact-item {
    font-size: 12px;
  }
  .cart-block .cart-block--summary__count {
    top: 18px;
    right: -12px;
    width: 17px;
    height: 17px;
    font-size: 12px;
  }
    #header .logo-wrapper {
    width: 845px;
  }
  #header .logo {
    width: 140px;
    padding: 24px 15px;
  }
   #header .contact-row {
    align-items: flex-end;
    gap: 16px;                  
    row-gap: 5px;             
    margin-left: 177px;
  }
}

@media screen and (max-width: 991px) {
  #header.d-none.d-lg-block {
    display: none !important;
  }

   #header-mob {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 60px;               
    padding: 0 15px;
    background-color: #6F2C1C;
  }

  #header-mob .col-logo {
    height: 100%;                
    display: flex;
    align-items: stretch;
  }

  #header-mob .col-logo a {
    display: flex;
    align-items: center;     
    background-color: #F2EBE6;
    padding: 0 12px;             
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    line-height: 0;
    text-decoration: none;
    height: 100%;             
  }

  #header-mob .col-logo img {
    display: block;
    max-height: 100%;           
    width: auto;
    max-width: 100px;            
  }


  #header-mob .col-phone {
    flex: 1 1 auto;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
  }
  #header-mob .col-phone a {
    color: #fff;
    text-decoration: none;
  }
  #header-mob .col-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  #header-mob .m-btn-search .btn-search-js {
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    position: relative;
  }
  #header-mob .m-btn-search .btn-search-js img {
    width: 17px;
    height: 16px;
    filter: brightness(0) invert(1);
    margin-left: 3px;
  }
  #header-mob .m-btn-search .btn-search-js span {
    display: none; 
  }

  #header-mob .cart-block .cart-block--link__expand {
    width: 35px;
    height: 35px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #header-mob .block-m-btn {
    display: flex;
    align-items: center;
  }
  #header-mob .m-link-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    cursor: pointer;
    text-decoration: none;
  }
#header-mob .burger-icon {
  display: block;
  width: 35px;
  height: 30px;
  background: url('/sites/all/themes/vesta_theme/image/icons/burger.svg') no-repeat center / contain;
  transition: opacity 0.2s;
  background-color: transparent;
  position: static;
  cursor: pointer;
}

#header-mob .burger-icon::before,
#header-mob .burger-icon::after {
  display: none; 
}

#header-mob .m-link-nav:hover .burger-icon {
 opacity: 0.8;
}
  #header-mob .search-block .search-trigger,
  #header-mob .cart-block .cart-block--link__expand {
    width: 35px;
    height: 35px;
  }
  #header-mob .search-block .search-trigger img {
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 767px) {
  #header-mob .col-logo a {
    padding: 6px 10px;
  }
  #header-mob {
    height: 50px;
  }
  #header-mob .col-logo a img {
    max-width: 80px;
  }
  #header-mob .col-phone {
    font-size: 12px;
  }
  #header-mob .col-right {
    gap: 6px;
  }
  #header-mob .cart-block .cart-block--link__expand {
    width: 25px;
    height: 25px;
  }
    #header-mob .cart-block .cart-block--link__expand img{
    width: 12px;
    height: 12px;
  }
  #header-mob .m-link-nav {
    width: 32px;
    height: 32px;
  }
    #header-mob .burger-icon {
    width: 25px;
    height: 25px;
  }
    #header-mob .search-block .search-trigger {
    width: 25px;
    height: 25px;
  }
  #header-mob .search-block .search-trigger img {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 576px) {
  #header-mob {
    height: 44px;
    padding: 0 10px;
  }
  #header-mob .col-logo a {
    padding: 0 8px;
  }
  #header-mob .col-logo a img {
    max-width: 60px;
  }
  #header-mob .col-phone {
    font-size: 11px;
  }
  #header-mob .col-right {
    gap: 4px;
  }

  #header-mob .m-link-nav {
    width: 30px;
    height: 30px;
  }
 .cart-block .cart-block--summary__count {
    width: 15px;
    height: 15px;
  }
}

.offcanvas {
  background-color: #fff;
  color: #39160E;
  border: none;
}

.offcanvas-header {
  padding: 20px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.offcanvas-title a {
  display: block;
}

.offcanvas-title img {
  max-width: 100%;
  height: auto;
}

.offcanvas .btn-close {
  filter: brightness(0) invert(0); 
  opacity: 0.6;
  transition: opacity 0.2s;
}
.offcanvas .btn-close:hover {
  opacity: 1;
}

.offcanvas .nav {
  list-style: none;
  padding: 0;
  gap: 0;
  margin: 20px 0;
}

.offcanvas .nav-item {
  margin-bottom: 5px;
}

.offcanvas .nav-link,
.offcanvas .dropdown-item {
  display: block;
    padding: 12px 15px 12px 0;
  color: #39160E;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: color 0.2s, background-color 0.2s;
}

.offcanvas .nav-link:hover,
.offcanvas .dropdown-item:hover {
  color: #DE7D1F;
}

.offcanvas .dropdown-toggle::after {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  content: "";
  border-top: 5px solid #39160E;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.2s;
}

.offcanvas .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.offcanvas .dropdown-menu {
  position: static !important;
  float: none !important;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0 0 0 20px;
  margin: 0 0 5px 0;
}

.offcanvas .dropdown-item {
  padding: 8px 15px;
  font-size: 15px;
  font-weight: 400;
}

.offcanvas .list-social {
  display: flex;
  gap: 10px;
  margin: 20px 0 15px;
  padding: 0;
  list-style: none;
}

.offcanvas .list-social a {
  display: block;
  transition: opacity 0.2s;
}

.offcanvas .list-social a:hover {
  opacity: 0.8;
}

.offcanvas .list-social img {
  width: 24px;
  height: 24px;
  display: block;
}

.offcanvas .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #39160E;
}

.offcanvas .contact-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.offcanvas .contact-item a {
  color: #39160E;
  text-decoration: none;
  transition: color 0.2s;
}

.offcanvas .contact-item a:hover {
  color: #DE7D1F;
  text-decoration: underline;
}

.offcanvas .contact-item-label {
  font-weight: 500;
  margin-right: 3px;
}

.offcanvas .contact-item-el {
  font-weight: 400;
}
.offcanvas .dropdown-item:hover {
  color: #39160E;                     
  background-color: transparent;        
  text-decoration: underline;           
  text-decoration-color: #DE7D1F;     
  text-underline-offset: 4px;       
}

.offcanvas .btn-secondary {
  display: inline-block;
  background-color: transparent;
  font-weight: 500;
  border: 1px solid #39160E;
  padding: 9px 24px;
  border-radius: 100px;
  color: #39160E;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  line-height: 1.2;
}

.offcanvas .btn-secondary:hover {
  background-color: #39160E;
  color: #fff;
}

.offcanvas .btn-secondary:disabled {
  background-color: #8D8D8D;
  border-color: #8D8D8D;
  color: #fff;
  pointer-events: none;
}
@media (max-width: 400px) {
  .offcanvas .nav-link,
  .offcanvas .dropdown-item {
    padding: 10px 12px;
    font-size: 15px;
  }
  .offcanvas .contact-item {
    font-size: 13px;
  }
}

#header-mob .col-logo a img {
  display: block;
  max-width: 100%;
  height: 100%;
}

@media screen and (max-width: 767px) {
  #header-mob .col-logo a {
    padding: 8px 10px;
  }
  #header-mob .col-logo a img {
    max-width: 80px;
  }
}
@media screen and (max-width: 576px) {
  #header-mob .col-logo a {
    padding: 5px 8px;
  }
  #header-mob .col-logo a img {
    max-width: 60px;
  }
}

@media screen and (max-width: 991px) {
  #offcanvasNav .nav .dropdown-menu {
    display: none;
    position: static;
    border: 0px solid;
    background: transparent;
    padding: 10px 0;
  }

  #offcanvasNav li.nav-item {
    width: 100%;
  }
}