/* Approved Safirtak header: wine red, ivory and a soft wave edge.
   Scoped to the header so shop content and mobile bottom navigation keep their styles. */
.safir-header {
    --safir-wine: #830d20;
    --safir-blush: #f3dce0;
    position: relative;
    z-index: auto;
    direction: rtl;
    background: #fff;
    /* Keep Bootstrap modal/offcanvas layers in the root stacking context. */
}
.safir-header .top-announcement-bar {
    background: var(--safir-wine) !important;
    border: 0;
    min-height: 28px;
}
.safir-header .top-bar-content-wrapper { min-height: 28px; padding: 2px 12px !important; gap: 10px; flex-wrap: wrap; }
.safir-header .top-bar-text { color: #fff !important; font-size: 15px; font-weight: 700 !important; line-height: 1.6; }
.safir-header .btn-top-bar-action { color: #fff !important; border-color: #ffffff80 !important; background: transparent !important; }
.safir-header .bottom_header { position: relative !important; z-index: 1030; background: #fff; }
.safir-header .bottom_header > .container-fluid { max-width: 1440px; padding-inline: clamp(20px, 5.4vw, 80px); }
.safir-header .header-top-row { min-height: 80px; gap: clamp(20px, 4vw, 64px); padding-block: 10px !important; }
.safir-header .header-logo-section { flex: 0 0 180px; }
.safir-header .nav-logo { padding: 0; display: inline-flex; }
.safir-header .nav-logo img { width: auto; max-width: 180px; height: 64px; max-height: 64px; object-fit: contain; }
.safir-header .header-search-section { flex: 0 1 620px !important; min-width: 0; margin: 0 auto !important; }
.safir-header .safir-product-search {
    display: flex; flex-direction: row; align-items: center; width: 100%; min-height: 44px;
    padding: 0 12px 0 8px; border: 1px solid #aaa1a1; border-radius: 999px;
    background: #f5f2f1; cursor: text; transition: border-color .2s, box-shadow .2s;
}
.safir-header .safir-product-search:focus-within { border-color: var(--safir-wine); box-shadow: 0 0 0 3px #830d2014; }
.safir-header .safir-product-search input[type="search"] {
    flex: 1; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0 4px;
    border: 0; outline: 0; box-shadow: none; background: transparent; color: #272323;
    font: inherit; font-size: 14px; text-align: right;
}
.safir-header .safir-product-search input::placeholder { color: #716b6b; opacity: 1; }
.safir-header .safir-product-search button { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #171717; }
.safir-header .safir-product-search button i { width: auto; height: auto; margin: 0; background: transparent; color: inherit; font-size: 22px; }
.safir-header .header-actions-section { flex: 0 0 auto; }
.safir-header .bottom-head-icon { gap: 0 !important; }
.safir-header .account-icon-item { margin: 0 !important; padding-left: 18px; border-left: 1px solid #b24b58; }
.safir-header .basket-icon { margin: 0; padding-right: 18px; }
.safir-header .btn-header-action { display: inline-flex; justify-content: center; min-width: 36px; min-height: 44px; }
.safir-header .action-icon-container i { color: #171717; font-size: 28px; }
.safir-header .action-text-container { display: none; }
.safir-header .cart_cunt { background: var(--safir-wine); color: #fff; min-width: 18px; height: 18px; line-height: 18px; padding: 0 3px; }
.safir-header .header-bottom-row { min-height: 40px; border: 0; }
.safir-header .header-bottom-row .navbar { width: 100%; }
.safir-header .navbar-nav { justify-content: space-between; gap: 12px; }
.safir-header .header-bottom-row .nav-link { position: relative; display: block; padding: 10px 14px !important; color: #171717; font-size: 15px; font-weight: 700; background: transparent; }
.safir-header .navbar-nav > li > .nav-link::before { content: ''; position: absolute; bottom: 2px; right: 10px; left: 10px; height: 3px; background: var(--safir-wine); transform: scaleX(0); transition: transform .2s; }
.safir-header .navbar-nav > li > .nav-link:hover,
.safir-header .navbar-nav > li > .nav-link:focus-visible,
.safir-header .navbar-nav > li.current-menu-item > .nav-link,
.safir-header .navbar-nav > li.current-menu-ancestor > .nav-link,
.safir-header .navbar-nav > li > .nav-link[aria-current="page"] { color: var(--safir-wine) !important; }
.safir-header .navbar-nav > li > .nav-link:hover::before,
.safir-header .navbar-nav > li.current-menu-item > .nav-link::before,
.safir-header .navbar-nav > li.current-menu-ancestor > .nav-link::before,
.safir-header .navbar-nav > li > .nav-link[aria-current="page"]::before { transform: scaleX(1); }
.safir-header .mega-level-2-item.is-active .mega-level-2-link { color: var(--safir-wine); }
.safir-header #navbarSupportedContent ul.navbar-nav > li.dropdown-mega-menu > div.dropdown-menu.mega-menu-wrapper { top: 100% !important; margin-top: 0 !important; }
.safir-header .cart_box { left: 0; right: auto; max-width: min(340px, 90vw); }
.safir-header .cart_trigger:focus-within .cart_box { visibility: visible; opacity: 1; transform: scale(1); }
.safir-header-wave { position: absolute; z-index: 2; top: calc(100% - 1px); right: 0; display: block; width: 100%; height: 30px; pointer-events: none; filter: drop-shadow(0 3px 2px #58232b0d); }
.safir-header a:focus-visible,
.safir-header button:focus-visible { outline: 2px solid var(--safir-wine); outline-offset: 4px; }
@media (max-width: 991.98px) {
    .safir-header .bottom_header > .container-fluid { padding-inline: 16px !important; }
    .safir-header .header-top-row { min-height: 0; gap: 0; padding-block: 10px !important; }
    .safir-header .header-logo-section { flex: 1 1 calc(100% - 88px); }
    .safir-header .nav-logo img { max-width: 155px; height: 50px; max-height: 50px; }
    .safir-header .header-actions-section { flex: 0 0 44px; }
    .safir-header .basket-icon { padding: 0; }
    .safir-header .header-search-section { flex: 0 0 100% !important; margin: 10px 0 4px !important; }
    .safir-header .safir-product-search { border-radius: 999px; }
    .safir-header .top-bar-text { font-size: 13px; }
    .safir-header-wave { height: 20px; }
    .safir-header #mobileMenu .current-menu-item > a,
    .safir-header #mobileMenu .current-menu-ancestor > a { color: var(--safir-wine) !important; background: #fff5f6 !important; }
}
@media (prefers-reduced-motion: reduce) {
    .safir-header *, .safir-header *::before { transition: none !important; }
}