/* Header New Design Styles */

/* ===== PShowInfoBar (pshowadverts top banner) ===== */
body div.pshowlayouts.fixed_advert_top {
    position: relative !important;
    z-index: 1001;
    width: 100%;
    background: linear-gradient(90deg, #0BBF20 0%, #20D989 100%);
    text-align: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

body div.pshowlayouts.fixed_advert_top .fixed_advert_content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}

body div.pshowlayouts.fixed_advert_top a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

body div.pshowlayouts.fixed_advert_top a:hover {
    text-decoration: underline;
}

/* Green CTA button in infobar */
body div.pshowlayouts.fixed_advert_top .btn,
body div.pshowlayouts.fixed_advert_top a.btn {
    background: #fff;
    color: #0BBF20 !important;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-left: 12px;
    transition: all 0.2s ease;
}

body div.pshowlayouts.fixed_advert_top .btn:hover,
body div.pshowlayouts.fixed_advert_top a.btn:hover {
    background: #f0f0f0;
    text-decoration: none;
}

/* Close button for infobar */
body div.pshowlayouts.fixed_advert_top .close,
body div.pshowlayouts.fixed_advert_top .pshow-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

body div.pshowlayouts.fixed_advert_top .close:hover,
body div.pshowlayouts.fixed_advert_top .pshow-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.3);
}


/* Top Info Bar */
.header-top-info-bar {
    background: #fbfdff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    height: 60px;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.top-info-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #374053;
}

.info-icon {
    color: #374053;
}

.info-text {
    font-weight: 700;
}

.info-link {
    color: #0bbf20;
    font-weight: 700;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

.info-close {
    position: absolute;
    right: 0;
    background: #f3f3f3;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #575757;
    font-size: 12px;
}

/* Main Header Styles (Figma) */
#header-main.header-new-design {
    background: #F8F8F8;
    padding: 0;
    border-bottom: 1px solid rgba(219,219,219,0.5);
    box-shadow: 0px 1px 0px rgba(0,0,0,0.07);
    min-height: 90px;
    position: relative;
    z-index: 1000;
}

.header-top-blackbar {
    background: #0f1114;
    color: #d7dee8;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-top-blackbar__container {
    max-width: 1620px;
    margin: 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.header-top-blackbar__left,
.header-top-blackbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-top-blackbar__item {
    color: rgba(255,255,255,0.75);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-top-blackbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.header-top-blackbar__item:hover {
    color: #0bbf20;
}

.header-top-blackbar__left .header-top-blackbar__item + .header-top-blackbar__item::before,
.header-top-blackbar__right .header-top-blackbar__item + .header-top-blackbar__item::before {
    content: "";
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.22);
    position: relative;
    margin-right: 10px;
}

.header-top-blackbar__selector .header-top-blackbar__icon {
    width: 12px;
    height: 12px;
}

/* Ikona waluty: ten sam rozmiar co tel/e-mail (14px), wyraźniejszy stroke */
.header-top-blackbar__dropdown--currency .header-top-blackbar__icon--currency {
    width: 14px;
    height: 14px;
}

.header-top-blackbar__dropdown--currency .header-top-blackbar__icon--currency svg {
    display: block;
    width: 14px;
    height: 14px;
}

.header-top-blackbar__dropdown {
    position: relative;
}

/* Hover bridge: keeps dropdown open while moving cursor down */
.header-top-blackbar__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}

.header-top-blackbar__selector {
    transition: color 0.2s ease;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.header-top-blackbar__selector .nav-main__chevron {
    transition: transform 0.2s ease, color 0.2s ease;
}

.header-top-blackbar__dropdown:hover .header-top-blackbar__selector {
    color: #0bbf20;
}

.header-top-blackbar__dropdown:focus-within .header-top-blackbar__selector {
    color: #0bbf20;
}

.header-top-blackbar__dropdown:hover .nav-main__chevron {
    transform: rotate(180deg);
}

.header-top-blackbar__dropdown:focus-within .nav-main__chevron {
    transform: rotate(180deg);
}

.header-top-blackbar__menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 74px;
    position: absolute;
    top: 100%;
    right: 0;
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.header-top-blackbar__dropdown:hover .header-top-blackbar__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-top-blackbar__dropdown:focus-within .header-top-blackbar__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-top-blackbar__menu li a,
.header-top-blackbar__menu li button {
    display: block;
    padding: 6px 12px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    transition: color 0.2s ease, background 0.2s ease;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.header-top-blackbar__menu li a:hover,
.header-top-blackbar__menu li button:hover {
    color: #0bbf20;
    background: rgba(255,255,255,0.04);
}

.header-top-blackbar__lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.header-top-blackbar__lang-flag img,
.header-top-blackbar__menu--languages li a img,
.header-top-blackbar__menu--languages li button img {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center center;
    background: rgba(255, 255, 255, 0.06);
    display: block;
    flex-shrink: 0;
}

.header-top-blackbar__menu--languages {
    min-width: 200px;
    padding: 0;
}

.header-top-blackbar__menu--languages li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.header-top-blackbar__menu--languages li:nth-child(even) {
    background: transparent;
}

.header-top-blackbar__menu--languages li a,
.header-top-blackbar__menu--languages li button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, background 0.2s ease;
}

.header-top-blackbar__menu--languages li a:hover,
.header-top-blackbar__menu--languages li button:hover {
    color: #0bbf20;
    background: rgba(11, 191, 32, 0.12);
}

/* Logo - no changes in sticky mode */
.header__logo img {
    transition: none;
}

/* Header Container (BEM) */
.header__container {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
    max-width: 1620px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Checkout pages: keep logo + security badge balanced and vertically centered */
.header__container--checkout {
    justify-content: space-between;
    gap: 24px;
    min-height: 90px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Left Side: Logo + Navigation */
.header__left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.header__logo {
    flex-shrink: 0;
    display: block;
}

.header__nav {
    flex-shrink: 0;
}

/* Right Side: Search + Tools */
.header__right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

/* Checkout Mode */
.header__checkout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #35a84d;
    font-size: 16px;
    line-height: 1;
}

.header__checkout i,
.header__checkout span {
    display: inline-flex;
    align-items: center;
}

.nav-main__menu {
    display: flex;
    align-items: center;
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* gap defined in responsive section */
}

.nav-main__item a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px; /* Figma: 16px */
    color: #374053;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-main__promo {
    width: 122px; 
    display: flex; 
    justify-content: center;
}

.nav-main__item a:hover,
.nav-main__item a.active-menu {
    color: #0bbf20;
}

.nav-main__chevron {
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-main__item:hover .nav-main__chevron {
    transform: rotate(180deg);
}

/* Dropdown positioning */
.nav-main__item--dropdown {
    position: relative;
}

.nav-main__menu .nav-main__dropdown {
    position: absolute !important;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1100;
    padding-top: 12px;
}

.nav-main__item--dropdown:hover > .nav-main__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* CTA Button - Figma Specs */
.nav-main__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0BBF20; /* Figma green */
    color: #fff !important;
    padding: 8px 8px 8px 24px; /* Figma: 8px right, 24px left */
    border-radius: 100px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px; /* Figma: 16px */
    text-decoration: none;
    min-height: 48px; /* Figma: 48px height */
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nav-main__cta:hover {
    background: #099a1a; /* Figma hover state */
    color: #fff !important;
}

.nav-main__cta-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-main__cta svg {
    width: 18px;
    height: 18px;
}

/* User Tools */
.header__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__tool {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.header__tool svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

.header__tool:hover {
    color: #0bbf20;
    opacity: 1;
}

.header__tool--active {
    color: #0bbf20;
    opacity: 1;
}

/* Cart Styling */
#cart_block {
    position: relative;
}

#cart_block #cart_block_summary,
#cart_block #cart_block_summary.block-cart-new {
    background: transparent !important;
    border-radius: 8px;
    box-shadow: none;
    width: 48px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 9px 8px 9px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#cart_block #cart_block_summary:hover {
    background: #fff !important;
    box-shadow: 0 6px 12px rgba(206,206,206,0.15);
}

/* Białe tło także przy najechaniu na dropdown (cały #cart_block) */
#cart_block:hover #cart_block_summary,
#cart_block:hover #cart_block_summary.block-cart-new {
    background: #fff !important;
    box-shadow: 0 6px 12px rgba(206,206,206,0.15);
}

#cart_block .cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374053 !important;
}

/* Do not set fill on the root <svg>: it can override gradient fills on paths in some browsers. */
#cart_block #cart_block_summary .cart-icon svg {
    fill: none;
}

#cart_block #cart_block_summary .cart-icon svg .cart-icon__solid path {
    fill: currentColor;
}

#cart_block #cart_block_summary .cart-icon svg .cart-icon__solid,
#cart_block #cart_block_summary .cart-icon svg .cart-icon__gradient,
#cart_block.cart-block-new #cart_block_summary .cart-icon svg .cart-icon__solid,
#cart_block.cart-block-new #cart_block_summary .cart-icon svg .cart-icon__gradient {
    transition: opacity 0.2s ease;
}

#cart_block #cart_block_summary .cart-icon svg .cart-icon__solid,
#cart_block.cart-block-new #cart_block_summary .cart-icon svg .cart-icon__solid {
    opacity: 1;
}

#cart_block #cart_block_summary .cart-icon svg .cart-icon__gradient,
#cart_block.cart-block-new #cart_block_summary .cart-icon svg .cart-icon__gradient {
    opacity: 0;
}

/*
 * Two SVG layers: solid (empty cart) vs gradient (filled). Opacity swap avoids duplicate
 * cart shapes in one icon; if the gradient fails to paint (e.g. duplicate gradient id),
 * both layers hidden => invisible icon — fixed via unique cart_icon_gradient_id in tpl.
 */
#cart_block.is-filled #cart_block_summary .cart-icon svg .cart-icon__solid,
#cart_block.cart-block-new.is-filled #cart_block_summary .cart-icon svg .cart-icon__solid {
    opacity: 0;
}

#cart_block.is-filled #cart_block_summary .cart-icon svg .cart-icon__gradient,
#cart_block.cart-block-new.is-filled #cart_block_summary .cart-icon svg .cart-icon__gradient {
    opacity: 1;
}

#cart_block .cart-icon svg {
    width: 31px;
    height: 21px;
}

#cart_block .ajax_cart_quantity_bubbels,
#cart_block .ajax_cart_quantity {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 1px 3px;
    border-radius: 100px;
    background: linear-gradient(180deg, #18AA2F 0%, #26E644 100%) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 10px !important;
    line-height: 1;
    color: #fff !important;
    text-align: center;
}

/* Cart Block (New Design) */
#cart_block.cart-block-new {
    position: relative !important;
    display: inline-block !important;
    width: fit-content !important;
    float: none !important;
}

/* Mobile: position cart to the right */
@media (max-width: 991px) {
    #cart_block.cart-block-new {
        position: absolute !important;
        right: 10px !important;
        top: 1px !important;
    }
    #cart_block.cart-block-new #cart_block_summary {
        background-color: inherit !important;
    }

    /* Mobile UX safety:
       keep the same filled-cart behavior as desktop (gradient icon). */
    #cart_block.is-filled #cart_block_summary .cart-icon svg .cart-icon__solid,
    #cart_block.cart-block-new.is-filled #cart_block_summary .cart-icon svg .cart-icon__solid {
        opacity: 0 !important;
    }
    #cart_block.is-filled #cart_block_summary .cart-icon svg .cart-icon__gradient,
    #cart_block.cart-block-new.is-filled #cart_block_summary .cart-icon svg .cart-icon__gradient {
        opacity: 1 !important;
    }
}

#cart_block.cart-block-new #cart_block_summary {
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
    width: 48px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#cart_block.cart-block-new #cart_block_summary:hover {
    background: #fff;
    box-shadow: 0 6px 12px rgba(206,206,206,0.15);
}

#cart_block.cart-block-new:hover #cart_block_summary {
    background: #fff;
    box-shadow: 0 6px 12px rgba(206,206,206,0.15);
}

#cart_block.cart-block-new #cart_block_summary a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: color 0.2s ease, opacity 0.2s ease;
}

#cart_block .cart-icon,
#cart_block.cart-block-new .cart-icon {
    transition: color 0.2s ease;
}

#cart_block .cart-icon svg path,
#cart_block.cart-block-new .cart-icon svg path {
    transition: fill 0.2s ease;
}

#cart_block.cart-block-new .cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374053 !important;
}

#cart_block.cart-block-new .cart-icon svg {
    width: 31px;
    height: 21px;
    fill: none;
}

#cart_block.cart-block-new #cart_block_summary .cart-icon svg .cart-icon__solid path,
#cart_block.cart-block-new .cart-icon svg .cart-icon__solid path {
    fill: currentColor;
}

#cart_block.cart-block-new .cart-mobile-img {
    display: none !important;
}

#cart_block.cart-block-new .ajax_cart_quantity_bubbels {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 1px 3px;
    border-radius: 100px;
    background: linear-gradient(180deg, #18AA2F 0%, #26E644 100%) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 1;
    color: #fff !important;
    text-align: center;
}

/* ========================================
   CART DROPDOWN - Classic Style
   ======================================== */

/* Dropdown Container */
#cart_block.cart-block-new .block_content {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 320px !important;
    background: #f5f9fd !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    z-index: 2001 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

#cart_block.cart-block-new:hover .block_content {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

#cart_block.cart-block-new .block_content::before {
    display: none;
}

/* Products List */
#cart_block.cart-block-new .block_content .products {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    background: #f5f9fd;
}

/* Product Item */
#cart_block.cart-block-new .block_content .products li {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px 40px 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

#cart_block.cart-block-new .block_content .products li:last-child {
    border-bottom: none;
}

/* Product Image with Quantity Badge */
#cart_block.cart-block-new .block_content .cart-block-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: visible;
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-left: 4px;
}

#cart_block.cart-block-new .block_content .cart-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Quantity Badge on Image */
#cart_block.cart-block-new .block_content .quantity-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #34a64e;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Hide old quantity format */
#cart_block.cart-block-new .block_content .quantity-formated {
    display: none;
}

/* Product Info */
#cart_block.cart-block-new .block_content .cart-block-dsc {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 24px;
}

#cart_block.cart-block-new .block_content .cart-block-dsc .cart_block_product_name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#cart_block.cart-block-new .block_content .cart-block-dsc .cart_block_product_name:hover {
    color: #34a64e;
}

/* Price - Bottom Right */
#cart_block.cart-block-new .block_content .price-line {
    text-align: right;
    margin-top: auto;
}

#cart_block.cart-block-new .block_content .price-line .price {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1b212d;
}

/* Remove Button */
#cart_block.cart-block-new .block_content .remove_link {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

#cart_block.cart-block-new .block_content .remove_link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #bbb;
    transition: color 0.15s ease;
}

#cart_block.cart-block-new .block_content .remove_link a:hover {
    color: #e74c3c;
}

/* Cart Summary */
#cart_block.cart-block-new .block_content #cart-summary,
#cart_block.cart-block-new .block_content #cart-summary-mobile {
    padding: 10px 16px 12px;
    margin: 0;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

#cart_block.cart-block-new .block_content #cart-prices,
#cart_block.cart-block-new .block_content #cart-prices-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
}

#cart_block.cart-block-new .block_content #cart_block_total,
#cart_block.cart-block-new .block_content #cart-prices-mobile .price {
    font-size: 16px;
    font-weight: 700;
    color: #1b212d;
}

/* Tax Line */
#cart_block.cart-block-new .block_content #cart-tax,
#cart_block.cart-block-new .block_content #cart-tax-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #888;
}

#cart_block.cart-block-new .block_content #cart_block_tax,
#cart_block.cart-block-new .block_content #cart_block_tax_mobile {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}

/* Checkout Button */
#cart_block.cart-block-new .block_content #cart-buttons,
#cart_block.cart-block-new .block_content #cart-buttons-mobile {
    margin: 0;
}

#cart_block.cart-block-new .block_content .btn-checkout,
#cart_block.cart-block-new .block_content #button_order_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: #34a64e !important;
    color: #fff !important;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

#cart_block.cart-block-new .block_content .btn-checkout:hover,
#cart_block.cart-block-new .block_content #button_order_cart:hover {
    background: #2d9144 !important;
}

#cart_block.cart-block-new .block_content #button_order_cart::after {
    display: none !important;
}

/* ===== SMOOTH SCROLL-LINKED STICKY HEADER ===== */

/* Body padding transition */
body {
    transition: padding-top 0.2s ease-out;
}

/* Base header - JS handles transform via requestAnimationFrame */
#header-main.header-new-design {
    will-change: transform;
    /* No CSS transition on transform - JS lerp handles smoothness */
    transition: box-shadow 0.2s ease-out,
                background 0.2s ease-out;
}

/* Fixed/Sticky State - override global.css conflicts */
#header-main.header-new-design.fixed-head {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background: #F8F8F8 !important;
    border-bottom: 1px solid rgba(219,219,219,0.5) !important;
    box-shadow: 0px 1px 0px rgba(0,0,0,0.07) !important;
}

/* Override global.css container background */
#header-main.header-new-design.no-fixed-head > .container,
#header-main.header-new-design.fixed-head > .container {
    background: transparent !important;
}

/* Override global.css z-index: 666 */
#header-main.fixed-head.header-new-design {
    z-index: 999 !important;
}

/* Mobile: disable new sticky, use classic sticky behavior */
@media (max-width: 991px) {
    #header-main.header-new-design.fixed-head {
        transform: none !important;
        position: relative;
    }

    body.sticky-mobile #header-main.header-new-design {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
    }
}

/* Reduce motion - disable JS animation via CSS variable */
@media (prefers-reduced-motion: reduce) {
    #header-main.header-new-design {
        transition: none !important;
    }
}


/* ===== RESPONSIVE BREAKPOINTS (Figma Design) ===== */

/* Default Full HD 1920px+ */
.header__container {
    width: 100%;
}

.header__left {
    gap: 30px;
}

.nav-main__menu {
    gap: 24px;
}

.nav-main__item a {
    font-size: 16px;
    white-space: nowrap;
}

.header__tools {
    gap: 12px;
}

/* 1520px */
@media (max-width: 1540px) {
    .header__container{
        max-width: 1380px;
    }
    .header__tool span{
        display: none;
    }
    .header__left {
        gap: 20px;
    }
    .header__right {
        gap: 20px;
        justify-content: flex-end;
    }
    .nav-main__menu {
        gap: 16px;
    }
    .header__tools {
        gap: 16px;
    }
    .nav-main__promo{
        width: 102px;
    }

    /* Search trigger - icon only like other tools */
    .search-trigger {
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        justify-content: center !important;
    }
    .search-trigger__text {
        display: none !important;
    }
    .search-trigger svg {
        width: 24px;
        height: 24px;
        color: #000;
        transition: color 0.2s ease;
    }
    .search-trigger:hover {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .search-trigger:hover svg {
        color: #0bbf20;
    }
}

/* 1300px - Hide text labels */
@media (max-width: 1400px) {
    .header__container{
        max-width: 1120px;
        gap: 0;
    }
    .search-trigger__text{
        display: none;
    }
    .search-trigger {
        width: 50px !important;
        border: 0px !important;
        justify-content: center !important;
        background-color: inherit !important;
    }
    .header__right {
        gap: 0 !important;
    }
    .header__logo img {
        max-height: 26px;
        width: auto;
    }
}

@media (max-width: 1120px) {
    .header__container{
        gap: 0;
    }
    .nav-main__promo{
        width: auto;
    }
}
/* 991px - Hide desktop, show mobile */
@media (max-width: 991px) {
    .header-top-blackbar {
        display: none;
    }
    .search-trigger__text{
        display: block;
    }
    .search-trigger {
        width: 240px !important;
        border: 1px !important;
        justify-content: space-between !important;
        background-color: #fff !important;
    }
}

/* ==========================================
   Account Dropdown Menu
   ========================================== */
.header__account-dropdown {
    position: relative;
    padding: 12px 0 12px 12px;
}

.header__account-dropdown:hover .header__tool{
    color: #0bbf20;
    opacity: 1;
}

/* Chevron icon - positioned bottom-right of dropdown trigger */
.header__account-chevron {
    display: none;
    position: absolute;
    right: -4px;
    bottom: 6px;
    width: 8px;
    height: 8px;
    transition: transform 0.2s ease;
}

.header__account-dropdown:hover .header__account-chevron {
    transform: rotate(180deg);
}

.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 270px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f3 100%);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    padding: 12px 7px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

/* Large screens: hover to open */
.header__account-dropdown:hover .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Close button - hidden by default on large screens */
.account-menu__close {
    display: none;
    position: absolute;
    top: 0px;
    right: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.account-menu__close:hover svg path {
    fill: #3c4043;
}

/* Small screens: click to open, show close button */
@media (max-width: 1520px) {
    /* Disable hover on small screens */
    .header__account-dropdown:hover .account-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    /* Show menu only when .is-open class is added via JS */
    .header__account-dropdown.is-open .account-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Show close button */
    .account-menu__close {
        display: block;
    }
    
    .header__account-dropdown{
        padding: 12px 0;
    }
}

/* Header section */
.account-menu__header {
    padding: 12px 0 16px;
    border-bottom: 1px solid rgba(201,201,201,0.5);
    text-align: center;
}

.account-menu__status {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #3c4043;
    letter-spacing: -0.15px;
}

.account-menu__name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #0bbc27;
    letter-spacing: -0.15px;
}

.account-menu__login-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #3c4043;
    text-decoration: underline;
    letter-spacing: -0.15px;
    transition: color 0.2s ease;
}

.account-menu__login-link:hover {
    color: #0bbc27;
}

/* Menu items */
.account-menu__items {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-menu__item {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 44px;
    padding: 0 10px;
    color: #1b212d;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.28px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.account-menu__item:hover {
    border-color: #d2d2d2;
}

.account-menu__item svg {
    flex-shrink: 0;
    color: #3f3f46;
    transition: color 0.2s ease;
}

.account-menu__item--blue {
    color: #052d7c;
}

.account-menu__item--blue svg {
    color: #052d7c;
}

/* Footer (logout) */
.account-menu__footer {
    padding: 12px 0 16px;
    border-top: 1px solid rgba(201,201,201,0.5);
    text-align: center;
}

.account-menu__logout {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #3c4043;
    text-decoration: underline;
    letter-spacing: -0.15px;
    transition: color 0.2s ease;
}

.account-menu__logout:hover {
    color: #e74c3c;
}
