/* PAPIRUS DESKTOP MEGA MENU V4 */

@media (min-width:1200px) {

  /* Dezactivam doar prezentarea catalogului vechi */
  body.papdm-ready header .ctl-wrap {
    display:none !important;
  }

  .papdm-overlay {
    position:fixed;
    inset:0;
    background:rgba(17,30,23,.42);
    z-index:99990;
  }

  .papdm-panel {
    position:fixed;
    z-index:100002;
    display:grid;
    grid-template-columns:285px minmax(0,1fr);
    background:#fff;
    border:1px solid #e2eae5;
    border-radius:0 0 20px 20px;
    box-shadow:0 24px 55px rgba(0,0,0,.18);
    overflow:hidden;
    font-family:Inter,Arial,sans-serif;
  }

  .papdm-panel[hidden],
  .papdm-overlay[hidden] {
    display:none !important;
  }

  .papdm-sidebar {
    background:#f9fbfa;
    border-right:1px solid #e7eee9;
    overflow-y:auto;
    min-height:0;
    padding:10px 0;
  }

  .papdm-category {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:48px;
    padding:9px 14px;
    color:#1c2821;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    border-left:3px solid transparent;
    box-sizing:border-box;
  }

  .papdm-category:hover,
  .papdm-category.is-active,
  .papdm-category:focus-visible {
    background:#e9f6ef;
    border-left-color:#008f68;
    color:#007c5e;
  }

  .papdm-category img {
    width:29px;
    height:29px;
    object-fit:contain;
    flex-shrink:0;
  }

  .papdm-category span {
    flex:1;
  }

  .papdm-category::after {
    content:'›';
    font-size:22px;
    font-weight:400;
    color:#008f68;
  }

  .papdm-content {
    overflow-y:auto;
    min-height:0;
    padding:23px 27px 30px;
    background:#fff;
  }

  .papdm-title {
    font-size:20px;
    font-weight:750;
    color:#172b20;
    margin:0 0 20px;
    padding-bottom:14px;
    border-bottom:1px solid #e7eee9;
  }

  .papdm-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:25px 28px;
  }

  .papdm-group {
    min-width:0;
  }

  .papdm-group-title {
    display:block;
    font-size:14px;
    font-weight:750;
    line-height:1.45;
    color:#007e60;
    text-decoration:none;
    margin-bottom:9px;
  }

  .papdm-link {
    display:block;
    padding:5px 0;
    color:#45534a;
    text-decoration:none;
    font-size:13px;
    line-height:1.45;
  }

  .papdm-group-title:hover,
  .papdm-link:hover {
    color:#008f68;
    text-decoration:underline;
  }

  .papdm-panel a:focus-visible {
    outline:2px solid #008f68;
    outline-offset:2px;
  }

  @media (max-width:1350px) {
    .papdm-panel {
      grid-template-columns:250px minmax(0,1fr);
    }
    .papdm-grid {
      gap:20px;
    }
  }
}

/* PAPIRUS_DESKTOP_MENU_POLISH */
@media (min-width:1200px) {

  .papdm-panel {
    border-radius:0 0 18px 18px;
  }

  .papdm-sidebar,
  .papdm-content {
    scrollbar-width:thin;
    scrollbar-color:#dce8e0 transparent;
  }

  .papdm-category {
    min-height:52px;
    font-size:14px;
    font-weight:650;
  }

  .papdm-category img {
    width:30px;
    height:30px;
  }

  .papdm-content {
    padding:25px 30px 32px;
  }

  .papdm-title {
    font-size:21px;
    margin-bottom:22px;
  }

  .papdm-grid {
    gap:24px 32px;
  }

  .papdm-group-title {
    font-size:15px;
    line-height:1.4;
  }

  .papdm-link {
    font-size:14px;
    line-height:1.5;
    padding:5px 0;
  }
}

/* PAPIRUS_BALANCED_COLUMNS_CSS */
@media (min-width:1200px) {

  .papdm-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:start;
    gap:20px;
  }

  .papdm-column {
    display:flex;
    flex-direction:column;
    gap:20px;
    min-width:0;
  }

  .papdm-group {
    padding-bottom:14px;
    border-bottom:1px solid #edf1ee;
  }

  .papdm-group-title {
    font-size:15px;
    font-weight:750;
    color:#008168;
    margin-bottom:8px;
  }

  .papdm-link {
    font-size:14px;
    padding:5px 0;
  }

  .papdm-view-all {
    display:inline-flex;
    align-items:center;
    color:#008168;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    margin:0 0 22px;
  }

  .papdm-view-all:hover {
    text-decoration:underline;
  }
}

/* PAPIRUS_DESKTOP_FINISH_V1 */
@media (min-width:1200px) {

  /* Link principal mai vizibil */
  .papdm-view-all {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:9px 18px;
    margin:0 0 22px;
    border-radius:11px;
    background:#008f68;
    color:#fff !important;
    font-size:14px;
    font-weight:750;
    text-decoration:none !important;
    box-shadow:0 5px 14px rgba(0,143,104,.14);
    box-sizing:border-box;
    transition:background .18s ease;
  }

  .papdm-view-all:hover {
    background:#007552;
    color:#fff !important;
  }

  /* Panou cu identitate Papirus */
  .papdm-panel {
    border:1px solid #dcebe2;
    background:#fff;
    isolation:isolate;
  }

  .papdm-sidebar {
    background:
      linear-gradient(180deg,#f2faf5,#fff 85%);
  }

  .papdm-content {
    position:relative;
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(0,143,104,.055),
        transparent 280px
      ),
      #fff;
  }

  .papdm-title {
    position:relative;
    font-size:21px;
    font-weight:800;
    padding-bottom:15px;
  }

  .papdm-title::after {
    content:'';
    position:absolute;
    left:0;
    bottom:-1px;
    width:66px;
    height:3px;
    border-radius:5px;
    background:#008f68;
  }

  .papdm-category.is-active {
    background:#e5f5eb;
  }

  .papdm-group-title {
    color:#008168;
    font-weight:750;
  }

  /* Header: logo aliniat vertical */
  .headerBlock .logo-desktop {
    transform:translateY(10px);
  }

  .headerBlock .shopping_favorite_block {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:9px !important;
  }

  .headerBlock .d-h-favorite,
  .headerBlock .d-h-basket {
    width:48px !important;
    min-width:48px;
    height:48px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative;
    padding:0 !important;
    margin:0 !important;
    background:#f3f8f5;
    border:1px solid #e0eae3;
    border-radius:13px;
    color:#172920;
    box-sizing:border-box;
  }

  .headerBlock .papirus-desktop-svg {
    width:24px;
    height:24px;
    display:block;
    fill:none;
    stroke:#172920;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0;
    pointer-events:none;
  }

  /* Vechile imagini sunt ascunse
     doar dupa instalarea SVG-ului nou */
  .headerBlock .papirus-icon-upgraded
  img {
    display:none !important;
  }

  .headerBlock .d-h-favorite:hover,
  .headerBlock .d-h-basket:hover {
    background:#e8f6ef;
    border-color:#bcdccb;
    color:#008168;
  }

  .headerBlock .d-h-favorite:hover
  .papirus-desktop-svg,
  .headerBlock .d-h-basket:hover
  .papirus-desktop-svg {
    stroke:#008168;
  }

  .headerBlock .qty_favorite,
  .headerBlock .total_price_header {
    z-index:3;
  }

  /* Stil pentru focus */
  .papdm-category:focus-visible,
  .papdm-view-all:focus-visible {
    outline:2px solid #008f68;
    outline-offset:2px;
  }

}


/* PAPIRUS_DESKTOP_ICONS_FIX_V2 */
@media (min-width:1200px) {

  .headerBlock .d-h-favorite,
  .headerBlock .d-h-basket {
    width:48px !important;
    height:48px !important;
    min-width:48px;
    position:relative;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f3f8f5 !important;
    border:1px solid #dce9e1 !important;
    border-radius:13px !important;
    box-sizing:border-box;
    overflow:visible !important;
  }

  .headerBlock .d-h-favorite
  .papirus-desktop-svg,
  .headerBlock .d-h-basket
  .papirus-desktop-svg {
    width:25px !important;
    height:25px !important;
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    stroke:#173c2c !important;
    stroke-width:2 !important;
    fill:none !important;
    position:relative !important;
    z-index:2;
  }

  .headerBlock .d-h-favorite:hover
  .papirus-desktop-svg,
  .headerBlock .d-h-basket:hover
  .papirus-desktop-svg {
    stroke:#008f68 !important;
  }

  .headerBlock .d-h-favorite
  .qty_favorite,
  .headerBlock .d-h-basket
  .total_price_header {
    position:absolute !important;
    top:-8px !important;
    right:-7px !important;
    left:auto !important;
    z-index:5;
    background:#008f68 !important;
    color:#fff !important;
    border-radius:12px;
    font-size:11px;
    font-weight:700;
  }
}

/* PAPIRUS_P36_CORRECTIONS */
@media (min-width:1200px) {

  .headerBlock .logo-desktop {
    transform:none !important;
  }

  .headerBlock .d-h-favorite img.shopping_cart_img_2,
  .headerBlock .d-h-basket img.shopping_cart_img {
    display:block !important;
    position:static !important;
    width:27px !important;
    height:27px !important;
    max-width:27px !important;
    opacity:1 !important;
    visibility:visible !important;
    margin:0 !important;
    object-fit:contain;
  }

  .headerBlock .d-h-favorite,
  .headerBlock .d-h-basket {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}

/* PAPIRUS_HEADER_ALIGNMENT_P38 */
@media (min-width:1200px) {

  /* Bara de navigare superioara */
  .headerBlock .top-line .my_container {
    display:flex !important;
    align-items:center !important;
  }

  /* Eliminam aspectul vechi al telefonului */
  .headerBlock .top-line .caller.row {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end;
    position:static !important;
    float:none !important;
    width:auto !important;
    height:auto !important;
    min-height:30px;
    padding:0 !important;
    margin:0 !important;
    background:none !important;
    box-shadow:none !important;
    flex-shrink:0;
  }

  /* Numar si iconita pe acelasi rand */
  .headerBlock .top-line a.header_phone_number {
    display:inline-flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start;
    gap:9px;
    height:30px !important;
    padding:0 !important;
    margin:0 !important;
    line-height:30px !important;
    white-space:nowrap;
    vertical-align:middle;
    text-decoration:none !important;
  }

  .headerBlock .top-line a.header_phone_number::before {
    content:"";
    display:block !important;
    width:21px !important;
    height:21px !important;
    min-width:21px;
    flex:0 0 21px;
    background:url('/images/elements/papirus-phone-desktop.svg')
      center center / contain no-repeat !important;
  }

  .headerBlock .top-line .caller .number {
    display:inline-block !important;
    position:static !important;
    padding:0 !important;
    margin:0 !important;
    color:#203d30 !important;
    font-family:Inter,sans-serif;
    font-size:15px !important;
    font-weight:700 !important;
    line-height:1.3 !important;
    letter-spacing:0;
    white-space:nowrap;
  }

  .headerBlock .top-line .caller .hotline {
    display:none !important;
  }

  /* Linkuri B2B, logare si telefon */
  .headerBlock .top-line .right_links_header {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end;
    gap:15px;
    margin-top:0 !important;
  }

  .headerBlock .top-line .right_links_header a {
    line-height:1.4;
    white-space:nowrap;
  }

  /* Aliniere verticala logo cu catalogul */
  .headerBlock .logo-desktop {
    top:calc(100% + 29px);
    height:44px !important;
    transform:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start;
  }

  .headerBlock .logo-desktop a {
    height:100%;
    display:flex;
    align-items:center;
  }

  .headerBlock .logo-desktop img {
    display:block;
    width:auto !important;
    height:auto !important;
    max-height:43px !important;
    object-fit:contain;
    margin:0 !important;
  }

  /* Prevenim micsorarea blocului de catalog */
  .headerBlock .shop-menu .myButton {
    min-height:48px;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}


/* PAPIRUS_HEADER_ALIGNMENT_P41 */
@media (min-width:1200px) {

  /* Ridicam linkurile din bara superioara */
  .headerBlock .top-line .top-menu {
    position:relative;
    top:-7px;
  }

  /* Pastram B2B, Logare si telefon la locul lor */
  .headerBlock .top-line .right_links_header {
    top:auto;
    transform:none;
  }

  /* Ridicam doar butonul Catalog */
  .headerBlock .cat-line .shop-menu {
    position:relative;
    top:-5px;
  }

  /* Elementele interioare raman centrate */
  .headerBlock .shop-menu .myButton {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}
