﻿/* Patine Osta — V25 Desktop header & navigation.
   Only classes inside the theme's own header are restyled. Business logic,
   product search, menu/category retrieval, cart, wishlist & auth are unchanged. */
@font-face{font-family:PatineHeader;src:url('../fonts/iranyekan/iranyekan.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:PatineHeader;src:url('../fonts/iranyekan/iranyekan_bold.woff') format('woff');font-style:normal;font-weight:700;font-display:swap}

@media (min-width:992px){
  .po25-header{direction:rtl;background:#fff!important;color:#555;box-shadow:none}
  .po25-header,.po25-header input,.po25-header button,.po25-header a,.po25-header span{font-family:PatineHeader,iranyekan,IRANSans,Tahoma,sans-serif}
  .po25-header .ec-header-bottom.d-lg-block{padding:12px 0!important;min-height:91px;border-bottom:1px solid #f3f3f1;background:#fff!important}
  .po25-header .ec-header-bottom.d-lg-block>.container{width:100%;max-width:1390px}
  .po25-header .ec-header-bottom.d-lg-block .ec-flex{height:66px;align-items:center;justify-content:space-between;gap:26px}
  .po25-header .ec-header-logo{display:flex;align-items:center;flex:0 0 18%;max-width:220px;min-width:165px}
  .po25-header .header-logo{display:flex;justify-content:flex-start;align-items:center;text-align:right;margin:0}
  .po25-header .header-logo a{display:inline-flex;align-items:center}
  .po25-header .header-logo img{display:block!important;width:175px!important;max-width:100%!important;height:auto!important;max-height:66px!important;object-fit:contain;object-position:right center}
  .po25-header .ec-header-search{flex:1 1 600px;max-width:620px;min-width:320px;margin:0 auto!important}
  .po25-header .ec-header-search .header-search{width:100%;max-width:620px;margin:0 auto}
  .po25-header .ec-header-search .ec-search-group-form{width:100%;max-width:620px;display:block!important;margin:0!important}
  .po25-header .ec-header-search #small-search-box-form{width:100%;height:43px;min-height:43px;display:flex;align-items:center;flex-direction:row;border:1px solid #e8e9e8!important;border-radius:99px!important;overflow:hidden;background:#fafaf9!important;box-shadow:none!important}
  .po25-header .ec-header-search .ec-search-group-form{border:none!important;border-radius:0!important}
  .po25-header .ec-header-search #small-searchterms{display:block;flex:1 1 auto;min-width:0;width:auto!important;height:40px!important;line-height:40px!important;min-height:40px!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;text-align:right!important;color:#536057!important;padding:0 15px!important;margin:0!important;font-size:12px!important}
  .po25-header .ec-header-search #small-searchterms::placeholder{color:#919891;opacity:1;text-align:right}
  .po25-header .ec-header-search .search_submit{display:flex!important;flex:0 0 46px;width:46px;height:41px;margin:0!important;align-items:center;justify-content:center;border:0!important;background:transparent!important;border-radius:50%!important;box-shadow:none!important;padding:0!important}
  .po25-header .ec-header-search .search_svg{width:17px!important;height:17px!important;filter:invert(57%) sepia(36%) saturate(756%) hue-rotate(94deg) brightness(94%) contrast(88%)}
  .po25-header .ec-header-bottons{display:flex!important;align-items:center!important;flex-wrap:nowrap;gap:17px!important;justify-content:flex-end}
  .po25-header .ec-header-bottons>*{margin:0!important;padding:0!important;flex-shrink:0}
  .po25-header .ec-header-bottons .ec-header-btn,.po25-header .ec-header-bottons .nav-item.dropdown>a{padding:0!important;margin:0!important;min-height:34px;align-items:center}
  .po25-header .ec-header-bottons .ec-header-user,.po25-header .ec-header-bottons .po25-account-link{flex-direction:row-reverse!important}
  .po25-header .ec-header-bottons .header-icon{display:flex;align-items:center;justify-content:center;margin:0!important;padding:0!important}
  .po25-header .ec-header-bottons .header_svg{width:29px!important;height:29px!important;max-width:29px!important;max-height:29px!important;object-fit:contain}
  .po25-header .ec-header-bottons .ec-header-wishlist .header_svg{width:29px!important;height:29px!important}
  .po25-header .ec-header-bottons .ec-header-count{background:#1d6349!important;color:#fff!important;border:1px solid #fff;min-width:17px!important;height:17px!important;border-radius:50%!important;font-size:10px!important;line-height:15px!important;text-align:center;top:auto!important;right:-4px!important;bottom:-3px!important;box-shadow:none!important}
  .po25-header .ec-header-bottons .ec-btn-desc,.po25-header .ec-header-bottons .po25-account-caption{display:flex!important;flex-direction:column;gap:2px!important;text-transform:none!important;min-width:88px;margin:0 8px 0 0!important;text-align:right;white-space:nowrap}
  .po25-header .ec-header-bottons .ec-btn-title,.po25-header .ec-header-bottons .po25-account-caption>span{font-size:12px!important;font-weight:700!important;line-height:1.35!important;color:#3d4540!important}
  .po25-header .ec-header-bottons .ec-btn-stitle,.po25-header .ec-header-bottons .po25-account-caption>small{font-size:10px!important;line-height:1.35!important;color:#6e756f!important;font-weight:400!important}
  /* Main menu row: 53px high, reference’s deep green rounded category button. */
  .po25-header .ec-header-cat{background:#fff!important;border-top:1px solid #f0f0ef!important;border-bottom:1px solid #ededeb!important;min-height:58px}
  .po25-header .ec-header-cat>.container{max-width:1390px!important;width:100%}
  .po25-header .ec-header-cat>.container>.row{min-height:56px;align-items:center;flex-wrap:nowrap;direction:rtl}
  .po25-header .ec-header-cat .ec-category-block{flex:0 0 294px!important;width:294px!important;max-width:294px!important;padding:0 11px!important;margin:0!important}
  .po25-header .ec-header-cat .ec-category-menu{position:relative;z-index:31}
  .po25-header .ec-header-cat .ec-category-toggle{height:41px!important;min-height:41px!important;width:100%!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:12px;padding:0 20px!important;margin:0!important;border:0!important;border-radius:99px!important;background:#17563f!important;color:#fff!important;box-shadow:none!important}
  .po25-header .ec-header-cat .ec-category-title{flex:1;text-align:center;color:#fff!important;letter-spacing:0!important;padding:0!important;font-size:13px!important;font-weight:800!important;line-height:1.5!important}
  .po25-header .ec-header-cat .ec-category-toggle i{font-size:16px!important;color:#fff!important;opacity:1!important;line-height:1!important}
  .po25-header #ec-main-menu-desk{display:flex!important;flex:1 1 auto!important;width:auto!important;max-width:none!important;align-items:center;min-width:0;margin-right:96px}
  .po25-header #ec-main-menu-desk .nav-desk,.po25-header #ec-main-menu-desk .nav-desk>.row,.po25-header #ec-main-menu-desk .col-md-12{width:100%;margin:0;padding:0}
  .po25-header #ec-main-menu-desk .ec-main-menu{width:100%;display:block!important}
  .po25-header #ec-main-menu-desk .po25-main-menu{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:58px!important;margin:0!important;padding:0!important;list-style:none}
  .po25-header #ec-main-menu-desk .po25-main-menu>li{position:relative;flex-shrink:0;margin:0!important;padding:0!important}
  .po25-header #ec-main-menu-desk .po25-main-menu>li>a{display:inline-flex!important;align-items:center!important;gap:6px;min-height:56px!important;line-height:1.2!important;padding:0!important;color:#5f6963!important;text-decoration:none!important;font-size:13px!important;font-weight:500!important;border:0!important;white-space:nowrap}
  .po25-header #ec-main-menu-desk .po25-main-menu>li>a:hover,.po25-header #ec-main-menu-desk .po25-main-menu>li>a:focus-visible,.po25-header #ec-main-menu-desk .po25-main-menu>li.po25-main-home>a{color:#176347!important}
  .po25-header #ec-main-menu-desk .po25-shop-chevron{font-size:10px!important;margin-right:2px;opacity:.75}
  .po25-header #ec-main-menu-desk .po25-shop-submenu{position:absolute;z-index:210;top:100%;right:0;left:auto;display:block!important;width:238px;max-height:min(65vh,490px);overflow-y:auto;overflow-x:hidden;padding:9px 0!important;margin:0!important;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease;background:#fff!important;border:1px solid #e7ede9;border-radius:12px;box-shadow:0 15px 38px rgba(25,52,39,.12);list-style:none}
  .po25-header #ec-main-menu-desk .po25-shop-menu:hover>.po25-shop-submenu,.po25-header #ec-main-menu-desk .po25-shop-menu:focus-within>.po25-shop-submenu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
  .po25-header #ec-main-menu-desk .po25-shop-submenu li{margin:0!important;padding:0!important;display:block!important;width:100%}
  .po25-header #ec-main-menu-desk .po25-shop-submenu a{display:block!important;padding:10px 16px!important;height:auto!important;min-height:0!important;font-size:12px!important;line-height:1.6!important;text-align:right;color:#385043!important;background:transparent!important;text-decoration:none!important;white-space:normal}
  .po25-header #ec-main-menu-desk .po25-shop-submenu a:hover{background:#f0f7f2!important;color:#176347!important}
}
@media (min-width:992px) and (max-width:1399px){
  .po25-header #ec-main-menu-desk{margin-right:20px}
  .po25-header #ec-main-menu-desk .po25-main-menu{gap:24px!important}
  .po25-header .ec-header-cat .ec-category-block{flex-basis:260px!important;width:260px!important;max-width:260px!important}
}
/* Tablet and phone: preserve original responsive hamburger/sidebar behavior, simplify proportions. */
@media (max-width:991px){
  .po25-header{background:#fff!important;direction:rtl}
  .po25-header .ec-header-bottom{padding:11px 0!important}
  .po25-header .header-logo img{max-width:145px!important;width:145px!important;height:auto!important}
  .po25-header .ec-header-bottons .header_svg{width:25px!important;height:25px!important}
  .po25-header .ec-header-search #small-search-box-form{border-radius:30px!important}
}
@media (max-width:575px){
  .po25-header .header-logo img{max-width:124px!important;width:124px!important;height:auto!important}
}
@media (prefers-reduced-motion:reduce){
  .po25-header *{transition:none!important}
}
