/* =============================================================
 * header.css
 * Styles related to header.php (and template-parts/mobile_menu.php)
 *
 * Extracted from style.css, pages.css, account.css
 * ============================================================= */


/* -------------------------------------------------------------
 *  1. Base header container (extracted from pages.css)
 * ------------------------------------------------------------- */
#header {
  position: relative;  /* NOT static */
  z-index: 9999;
}


/* -------------------------------------------------------------
 *  2. Account-page override for the header container
 *     (extracted from account.css)
 * ------------------------------------------------------------- */
.account .header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* equal sides, logo takes natural width */
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0px;
}


/* -------------------------------------------------------------
 *  3. Header layout: columns, rows, logo
 *     (extracted from account.css)
 * ------------------------------------------------------------- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /*padding:20px;*/
  padding-bottom:0px;
}

/* Левая колонка */
.left-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  margin-top: 40px;
  margin-left: 5%;
}

/* Правая колонка */
.right-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* pushes icons to the right edge */
  align-self: flex-start;
  margin-top: 40px;
  margin-right: 5%;
}

/* Центральная колонка */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.icon-row {
  display: flex;
  gap: 8px;
}
.icon-row .social-btn {
  background-color: #f4f2ef;
  width: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid #f4f2ef;
  padding: 6px 22px;
  font-weight: 500;
  color: #554F4F !important;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btn .search-input {
  border: none;
  border-bottom: 1px solid #c7bdb0 !important;
  background: transparent !important;
  font-size: 16px;
  padding: 2px 4px 0px 4px;
  padding-bottom: 0px;
  outline: none;
  color: #000;
  border-radius: 0px !important;
  padding-bottom: 0px;
  margin-bottom: 8px;
  line-height: 22px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  color: #000; /* black text now */
  font-size: 6px;
  line-height: 1;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 600;
}

.search-btn {
  background-color:transparent;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 8px;
  cursor: pointer;
}

.logo-img {
  max-width: 80px;
  display: block;
  margin: 0 auto;
}

.logo-text {
  margin-top: 8px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: #000;
  font-weight: 600;
}

/* Final overrides for btn-content / btn-text (extracted from account.css) */
.btn-content { display: flex; align-items: center; gap: 4px; } .btn-icon svg { display: block; } .btn-text { display: flex; flex-direction: column; /* каждое слово на новой строке */ color: #554F4F; font-size: 10px; /* маленький размер, чтобы влезло */ line-height: 1; font-family: 'Red Hat Display', sans-serif; font-weight: 600; }


/* -------------------------------------------------------------
 *  4. Social button (the round/rounded icon button base)
 *     (extracted from account.css)
 * ------------------------------------------------------------- */
.social-btn {
  background-color: #e4e4e4;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 12px;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* extracted from pages.css */
.social-btn span {
  padding-left:10px;
}


/* -------------------------------------------------------------
 *  5. "Extra logo" tagline wrapper (extracted from account.css)
 * ------------------------------------------------------------- */
.extra-logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
  text-align: center;
  margin-top: -10px;
}

.extra_logo {
  color: #554F4F;
  text-transform: uppercase;
  font-family: "Nanum Pen Script", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  position: relative;
  display: inline-block;
  padding: 0 20px;
  white-space: nowrap;
}
/*
.extra_logo::before,
.extra_logo::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background-color: #C7BDB0;
}

.extra_logo::before {
  left: -100vw;
  right: 100%;
  margin-right: 20px;
}

.extra_logo::after {
  right: -100vw;
  left: 100%;
  margin-left: 20px;
}*/


/* -------------------------------------------------------------
 *  6. Main navigation (extracted from account.css + pages.css)
 * ------------------------------------------------------------- */
/* from account.css */
.nav-wrapper {
  width: 90%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
  border-bottom: 2px solid #C7BDB0;
  margin-left: 5%;
  margin-right: 5%;
}

.nav-container {
  display: flex;
  gap: 180px;
  align-items: center;
  margin-bottom: 20px;
}

.nav-item {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: #554F4F;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: #ED1C24;
}

/* from pages.css */
.nav-wrapper {
  position: relative;
  z-index: 9999;
}

.nav-container {
  position: relative;
}

.nav-item-group {
  position: relative;
  display: inline-block;
}

.nav-item-group .nav-dropdown {
  display: none;
  position: fixed;
  background: #fff;
  z-index: 99999;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  border-top:4px solid #f26a56;
  FONT-SIZE: 14px;
  padding: 5px;
}

.nav-item-group:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-item {  color: #000 !important;}


/* -------------------------------------------------------------
 *  7. Language switcher (extracted from pages.css + account.css)
 * ------------------------------------------------------------- */
.lang-select {
  background-color: #f4f2ef;
  width: auto;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid #f4f2ef;
  padding: 4px 8px;
}

.lang-select select {
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    background-color: #dddddd;
}

.lang-select select option {
    border: none;
    outline: none;
}

/* from account.css */
.custom-lang-switcher {
  position: relative;
  cursor: pointer;
}

.lang-current {
  font-weight: bold;
  padding: 2px 4px;
}

.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 80px;
  z-index: 999;
  text-align: center;
}

.lang-options a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: inherit;
}

.lang-options a:hover {
  background: #f0ebe6;
}

.custom-lang-switcher:hover .lang-options {
  display: block;
}

/* from pages.css — language switcher fix */
body .custom-lang-switcher {
  position: relative !important;
  cursor: pointer !important;
  z-index: 99999 !important;
}
body .custom-lang-switcher:hover,
body .custom-lang-switcher:focus-within {
  z-index: 100000 !important;
}
body .custom-lang-switcher .lang-current {
  font-weight: 500 !important;
  padding: 2px 4px 2px 4px !important;
  color: #554F4F;
  font-size: 14px;
}
body .custom-lang-switcher .lang-options {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #ffffff !important;
  min-width: 80px !important;
  z-index: 100001 !important;
  text-align: center !important;
  padding: 4px 0 !important;
  margin-top: -2px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #e8e0d8 !important;
  border-radius: 4px !important;
}
body .custom-lang-switcher .lang-options a {
  display: block !important;
  padding: 3px 12px !important;
  text-decoration: none !important;
  color: inherit !important;
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
}
body .custom-lang-switcher .lang-options a:hover {
  background: #f0ebe6 !important;
}
body .custom-lang-switcher:hover .lang-options,
body .custom-lang-switcher:focus-within .lang-options,
body .custom-lang-switcher.is-open .lang-options {
  display: block !important;
}


/* -------------------------------------------------------------
 *  8. Account dropdown (extracted from pages.css)
 * ------------------------------------------------------------- */
.account-btn-wrapper {
    position: relative;
}

.account-dropdown {
    display: none;
    background: #fff;
    border: 1px solid #eee;
    min-width: 150px;
    z-index: 999999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.account-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #554F4F;
    text-decoration: none;
}

.account-dropdown a:hover {
    background: #E4DFDC;
}


.account-dropdown {
    display: none;
    background: #fff !important;
    min-width: 200px;
    z-index: 999999 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    padding: 0px !important;
}

.account-dropdown a {
    display: block !important;
    padding: 7px 12px !important;
    color: #554F4F !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px;
}

.account-btn-wrapper .account-toggle:hover { background: #e4e4e4; cursor:pointer; }

.account-btn-wrapper:hover .account-dropdown { background: #FFF !important; }


/* -------------------------------------------------------------
 *  9. Open-shop button hover (extracted from pages.css)
 * ------------------------------------------------------------- */
.openshop:hover {
  background-color: #eae8e5;
}


/* -------------------------------------------------------------
 * 10. Mobile menu (template-parts/mobile_menu.php)
 *     (extracted from style.css)
 * ------------------------------------------------------------- */

/* default state: mobile nav is hidden on desktop */
.rwd_nav {display: none;}

/* default state: mobile logo is hidden on desktop */
.logo_mobile {display: none;}

/* desktop / top-level logo_mobile rules (extracted from style.css) */
.logo_mobile {position:absolute;left:10px;top:10px;}
.logo_mobile a.wiize {width:100px;}
.logo_mobile .wiize svg {fill:#000;}

@media only screen and (max-width: 624px) {
  .rwd_nav {
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    display: block;
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 50px;
    position: fixed;
    background-color: #EAEAEA;
    border-bottom: 1px solid #CECECE;
  }
  .rwd_btn {
    width: 46px;
    height: 49px;
    right: 0;
    padding: 0;
    z-index: 9999;
    position: absolute;
    transform: translateX(-5px);
    transition: all 0.52s cubic-bezier(0.75, 0, 0.25, 1);
  }
  .ison .rwd_btn {transform: translateX(-265px);}
  .r_box {
    width: 34px;
    height: 49px;
    position: relative;
    z-index: 200;
  }
  .r_inn {
    top: 50%;
    margin-top: -1px;
    display: block;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition-duration: 0.3s;
  }
  .r_inn,
  .r_inn::after,
  .r_inn::before {
    width: 100%;
    height: 2px;
    position: absolute;
    background-color: #000000;
  }
  .r_inn::after,
  .r_inn::before {content: '';display: block;}
  .r_inn::before {
    top: -9px;
    transition: top 0.1s 0.34s ease-in, opacity 0.1s ease-in, background-color 0.15s ease;
  }
  .r_inn::after {
    bottom: -9px;
    transition: bottom 0.1s 0.34s ease-in, transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19), background-color 0.15s ease;
  }
  .ison .r_inn {
    transform: rotate(225deg);
    transition-delay: 0.14s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .ison .r_inn::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.14s ease-out, background-color 0.15s ease;
  }
  .ison .r_inn::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1), background-color 0.15s ease;
  }
  .r_ov {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 100;
    overflow: hidden;
    visibility: hidden;
    contain: strict;
  }
  .r_ov_bg {
    width: 100%;
    height: calc(100% - 50px);
    margin-top: 50px;
    opacity: 0;
    background-color: #000000;
    contain: strict;
  }
  .r_ov,
  .r_ov_bg {transition: visibility 0.52s ease-in-out 0s, opacity 0.5s ease-in-out 0s;}
  .ison .r_ov,
  .ison .r_ov_bg {visibility: visible;}
  .ison .r_ov_bg {opacity: 0.45;}
  .r_ov .r_sub,
  .r_ov .link {
    background-color: #FFFFFF;
    border-bottom: 1px solid #DADADA;
    transition: all 0.25s ease-in-out 0s;
  }
  .r_ov .r_sub:hover,
  .r_ov .link:hover {background-color: #F5F5F5;}
  .r_ov li a {
    color: #000000;
    font-size: 15px;
    font-weight: 400;
    height: auto;
    display: block;
    text-align: left;
    line-height: 29px;
    padding-left: 25px;
    text-decoration: none;
    text-transform: uppercase;
  }
  .rwd_title {
    width: 100%;
    height: 50px;
    font-size: 14px;
    font-weight: 400;
    line-height: 50px;
    position: absolute;
    padding-left: 25px;
    text-transform: uppercase;
    background-color: #F7F7F7;
    border-bottom: 1px solid #DADADA;
  }
  .r_men {
    width: 100%;
    height: calc(100% - 50px);
    padding: 0;
    margin-top: 50px;
    vertical-align: top;
  }
  .r_ov_links {
    width: 264px;
    max-width: 100%;
    height: 100%;
    right: 0;
    position: absolute;
    z-index: 10;
    overflow: auto;
    background: #FFFFFF;
    transform: translateX(280px);
    box-shadow: 0 0 16px -2px rgba(0, 0, 0, 0.55);
    transition: all 0.52s cubic-bezier(0.75, 0, 0.25, 1);
    -webkit-overflow-scrolling: touch;
    contain: strict;
  }
  .ison .r_ov_links {transform: translateX(0);}
}

/* extra mobile rule for logo_mobile (extracted from style.css 768px media) */
@media only screen and (max-width: 768px) {
  .logo_mobile {display: block;}
}

/* extra mobile-menu override (extracted from style.css) */
@media only screen and (max-width: 624px) {
  .ison .rwd_btn {transform: none;}
}
