/* ============================================================
   HEADER v5 — logo 350px, telefon 24px, ikony 30px
   ============================================================ */
.ds-header { background: #fff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 1000; transition: box-shadow .2s; }
.ds-header.is-sticky { box-shadow: 0 2px 10px rgba(0,0,0,.1); }

.ds-header__inner { max-width: 1920px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.ds-header__main .ds-header__inner { height: 80px; transition: height .25s ease; }
.ds-header.is-sticky .ds-header__main .ds-header__inner { height: 64px; }

/* LOGO — 350px szerokości */
.ds-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 16px; }
.ds-header__logo-img {
    width: 320px !important;
    max-width: 320px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
    display: block !important;
    transition: max-height .25s ease, width .25s ease !important;
}
.ds-header.is-sticky .ds-header__logo-img { max-height: 40px !important; width: auto !important; }
.ds-header__logo-text { font-size: 28px; font-weight: 800; color: #FF5A00; white-space: nowrap; font-family: 'Inter', sans-serif; transition: font-size .25s; }
.ds-header.is-sticky .ds-header__logo-text { font-size: 20px; }

/* SEARCH */
.ds-header__search { flex: 1; max-width: 660px; min-width: 0; }

/* ACTIONS */
.ds-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }

.ds-header__action,
.ds-cart-toggle {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 12px; color: #222; text-decoration: none;
    border-radius: 8px; background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; transition: background .15s;
}
.ds-header__action:hover, .ds-cart-toggle:hover { background: #f5f5f5; color: #FF5A00; }

/* Ikony akcji — 30x30px */
.ds-header__action svg,
.ds-cart-toggle svg { width: 30px !important; height: 30px !important; display: block; }

/* TELEFON */
.ds-header__action--phone {
    flex-direction: row !important; gap: 10px !important;
    padding: 9px 18px !important; background: #f8f9fa !important;
    border-radius: 8px !important; border: 1px solid #e5e5e5 !important;
    transition: border-color .15s !important;
}
.ds-header__action--phone:hover { border-color: #FF5A00 !important; background: #fff3ea !important; }
.ds-header__action--phone svg { width: 24px !important; height: 24px !important; }
.ds-header__action--phone span {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #111 !important;
    white-space: nowrap;
    letter-spacing: -.3px;
}
.ds-header.is-sticky .ds-header__action--phone span { font-size: 18px !important; }
.ds-action-label { font-size: 11px; color: #767676; font-weight: 500; }

/* Cart count badge */
.ds-header__cart-count { position: absolute; top: -6px; right: -8px; background: #FF5A00; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 10px; min-width: 18px; text-align: center; line-height: 1.4; display: none; pointer-events: none; }
.ds-header__cart-count.has-items { display: block; }

/* Hamburger */
.ds-hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; background: #FF5A00; border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 8px; }
.ds-hamburger:hover { background: #e04e00; }
.ds-hamburger span { display: block; height: 2px; width: 22px; background: #fff; border-radius: 2px; }

/* Mini cart */
.ds-cart-wrapper { position: relative; }
.ds-mini-cart { display: none; position: absolute; top: calc(100% + 10px); right: 0; width: 340px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 500; overflow: hidden; }
.ds-mini-cart.is-open { display: block; }
.ds-mini-cart__body { max-height: 360px; overflow-y: auto; padding: 12px; }
.ds-mini-cart__body .woocommerce-mini-cart__empty-message { padding: 20px; text-align: center; color: #767676; font-size: 13px; }
.ds-mini-cart__body .mini_cart_item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.ds-mini-cart__body .mini_cart_item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid #e5e5e5; border-radius: 4px; }
.ds-mini-cart__body .woocommerce-mini-cart__total { padding: 10px 0 4px; font-weight: 700; font-size: 14px; }
.ds-mini-cart__footer { padding: 10px 12px 12px; background: #fafafa; border-top: 1px solid #e5e5e5; display: flex; flex-direction: column; gap: 8px; }
.ds-btn-minicart { display: block; text-align: center; padding: 11px; border-radius: 4px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; width: 100%; font-family: 'Inter', sans-serif; transition: all .15s; }
.ds-btn-minicart--full { background: #fff; color: #FF5A00; border: 1.5px solid #FF5A00; }
.ds-btn-minicart--checkout { background: #FF5A00; color: #fff; }
.ds-btn-minicart--checkout:hover { background: #e04e00; color: #fff; }

/* ── NAV ROW ── */
.ds-header__nav { background: #fff; border-top: 1px solid #f0f0f0; }
.ds-header__nav .ds-header__inner { height: 48px; gap: 0; }
.ds-nav__list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; height: 100%; }
.ds-nav__list > li { position: relative; display: flex; align-items: center; }
.ds-nav__list > li > a { display: flex; align-items: center; height: 100%; padding: 0 16px; font-size: 14px; font-weight: 700; color: #222; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .3px; }
.ds-nav__list > li > a:hover, .ds-nav__list > li.current-menu-item > a { color: #FF5A00; border-bottom-color: #FF5A00; }
.ds-nav__list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid #e0e0e0; border-top: 2px solid #FF5A00; box-shadow: 0 4px 16px rgba(0,0,0,.1); border-radius: 0 0 6px 6px; z-index: 100; list-style: none; padding: 6px 0; margin: 0; }
.ds-nav__list > li:hover > .sub-menu { display: block; }
.ds-nav__list .sub-menu a { display: block; padding: 9px 16px; font-size: 13px; color: #333; text-decoration: none; }
.ds-nav__list .sub-menu a:hover { background: #fff3ea; color: #FF5A00; }

/* DARMOWA DOSTAWA — większy tekst */
.ds-nav__delivery {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 8px !important;
}
.ds-nav__delivery svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
.ds-nav__delivery strong { color: #FF5A00 !important; font-weight: 800 !important; font-size: 15px !important; }

/* Mobile drawer */
.ds-mobile-menu { display: none; position: fixed; inset: 0; z-index: 2000; }
.ds-mobile-menu.is-open { display: block; }
.ds-mobile-menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ds-mobile-menu__drawer { position: absolute; top: 0; left: 0; bottom: 0; width: 300px; max-width: 88vw; background: #fff; overflow-y: auto; animation: dsSlideIn .25s ease; display: flex; flex-direction: column; }
@keyframes dsSlideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.ds-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #FF5A00; color: #fff; }
.ds-mobile-menu__top-logo { font-size: 18px; font-weight: 800; }
.ds-mobile-menu__top button { background: rgba(255,255,255,.2); border: none; color: #fff; cursor: pointer; padding: 6px; display: flex; border-radius: 6px; }
.ds-mobile-nav { list-style: none; margin: 0; padding: 0; flex: 1; }
.ds-mobile-nav li a { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; font-size: 15px; font-weight: 600; color: #222; text-decoration: none; border-bottom: 1px solid #f5f5f5; font-family: 'Inter', sans-serif; }
.ds-mobile-nav li a:hover { background: #fff3ea; color: #FF5A00; }
.ds-mobile-nav .sub-menu { list-style: none; padding: 0; margin: 0; background: #fafafa; }
.ds-mobile-nav .sub-menu a { padding-left: 30px; font-weight: 400; font-size: 13px; }
.ds-mobile-menu__bottom { padding: 14px 18px; border-top: 1px solid #e5e5e5; background: #fafafa; }
.ds-mobile-menu__bottom a { font-size: 13px; color: #555; text-decoration: none; padding: 8px 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #f0f0f0; }
.ds-mobile-menu__bottom a:hover { color: #FF5A00; }

/* ============================================================
   FOOTER
   ============================================================ */
.ds-footer { background: #f5f5f5; color: #333; border-top: 1px solid #dedede; margin-top: 48px; font-family: 'Inter', sans-serif; font-size: 13px; }
.ds-footer__inner { max-width: 1920px; margin: 0 auto; padding: 0 24px; }
.ds-footer__top .ds-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 36px; padding-bottom: 36px; }
.ds-footer__logo-img { height: 40px; width: auto; margin-bottom: 12px; display: block; }
.ds-footer__logo-text { font-size: 22px; font-weight: 800; color: #FF5A00; display: block; margin-bottom: 12px; text-decoration: none; }
.ds-footer__tagline { font-size: 12px; line-height: 1.6; color: #666; margin-bottom: 14px; }
.ds-footer__contact { font-style: normal; font-size: 12px; line-height: 1.9; color: #444; }
.ds-footer__contact a { color: #333; text-decoration: none; }
.ds-footer__contact a:hover { color: #FF5A00; }
.ds-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.ds-footer__social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #ddd; color: #444; text-decoration: none; transition: background .15s, color .15s; }
.ds-footer__social-link:hover { background: #FF5A00; color: #fff; }
.ds-footer__col-title { font-size: 12px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #FF5A00; display: inline-block; }
.ds-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds-footer__links a { color: #555; text-decoration: none; font-size: 13px; }
.ds-footer__links a:hover { color: #FF5A00; }
.ds-footer__payments { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-footer__payment-badge { background: #fff; border: 1px solid #ccc; color: #333; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 3px; }
.ds-footer__trust { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ds-footer__trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; }
.ds-footer__bottom { background: #e8e8e8; border-top: 1px solid #ccc; }
.ds-footer__bottom .ds-footer__inner { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.ds-footer__copy { font-size: 12px; color: #666; }
.ds-footer__legal { display: flex; gap: 16px; }
.ds-footer__legal a { font-size: 12px; color: #666; text-decoration: none; }
.ds-footer__legal a:hover { color: #FF5A00; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
    .ds-header__logo-img { width: 260px !important; max-width: 260px !important; }
    .ds-header__action--phone span { font-size: 18px !important; }
}
@media (max-width: 1100px) {
    .ds-header__action--phone span { font-size: 15px !important; }
    .ds-header__logo-img { width: 200px !important; max-width: 200px !important; }
}
@media (max-width: 900px) { .ds-header__action--phone { display: none !important; } }
@media (max-width: 767px) {
    .ds-header__main .ds-header__inner { height: 60px !important; padding: 0 16px !important; gap: 10px !important; }
    .ds-header__logo-img { width: 160px !important; max-width: 160px !important; }
    .ds-header__search { display: none; } /* mobile search is in a separate row */
    .ds-header__action:not(.ds-cart-toggle) { display: none; }
    .ds-hamburger { display: flex !important; }
    .ds-header__nav { display: none; }
    .ds-footer__top .ds-footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
    .ds-footer__bottom .ds-footer__inner { flex-direction: column; height: auto; padding: 10px 24px; gap: 6px; text-align: center; }
}
@media (max-width: 480px) { .ds-footer__top .ds-footer__inner { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE SEARCH ROW — wyszukiwarka w headerze mobilnym
   ============================================================ */
@media (max-width: 767px) {
    .ds-header__main .ds-header__inner {
        flex-wrap: wrap !important;
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 0 !important;
        gap: 8px !important;
    }
    .ds-header__logo { flex: 1 1 auto; }
    .ds-header__actions { flex: 0 0 auto; }

    /* Search na drugiej linii */
    .ds-header__search {
        display: flex !important;
        order: 10 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        padding-bottom: 10px !important;
    }
    .ds-header.is-sticky .ds-header__main .ds-header__inner {
        height: auto !important;
    }
}

/* ============================================================
   MOBILE MENU — telefon + email na dole
   ============================================================ */
.ds-mobile-menu__bottom-contact {
    padding: 14px 18px;
    background: #fff3ea;
    border-top: 2px solid #FF5A00;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ds-mobile-menu__bottom-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}
.ds-mobile-menu__bottom-contact a:hover { color: #FF5A00; }
.ds-mobile-menu__bottom-contact svg { flex-shrink: 0; }

/* ============================================================
   MOBILE SUBMENU — toggle accordion
   ============================================================ */

/* Wrapper dla linku + przycisku toggle */
.ds-mobile-nav .menu-item-has-children {
    position: relative;
}

/* Link do pozycji z submenu — bez strzałki tekstowej */
.ds-mobile-nav .menu-item-has-children > a {
    padding-right: 52px !important; /* miejsce na przycisk */
}

/* Przycisk toggle chevron */
.ds-mobile-submenu-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 50px !important;
    width: 50px !important;
    background: none !important;
    border: none !important;
    border-left: 1px solid #f0f0f0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555 !important;
    transition: background .15s, color .15s !important;
    z-index: 1;
}
.ds-mobile-submenu-toggle:hover { background: #fff3ea !important; color: #FF5A00 !important; }
.ds-mobile-submenu-toggle svg { transition: transform .2s; pointer-events: none; }
.ds-mobile-submenu-toggle.is-open svg { transform: rotate(180deg); }
.ds-mobile-submenu-toggle.is-open { color: #FF5A00 !important; background: #fff3ea !important; }

/* Submenu — domyślnie ukryte, pokazuje JS */
.ds-mobile-nav .sub-menu {
    display: none;
    background: #fafafa !important;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.ds-mobile-nav .sub-menu li a {
    padding-left: 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #444 !important;
    border-bottom: 1px solid #f5f5f5 !important;
}
.ds-mobile-nav .sub-menu li:last-child a { border-bottom: none !important; }
.ds-mobile-nav .sub-menu li a:hover { background: #fff3ea !important; color: #FF5A00 !important; }

/* ── MOBILE MENU LINKS — pionowo, bez podkreśleń ── */
.ds-mobile-menu__links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #f0f0f0;
}
.ds-mobile-menu__links a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
    background: none !important;
    transition: background .1s !important;
}
.ds-mobile-menu__links a:hover {
    background: #f8f9fa !important;
    color: #FF5A00 !important;
}
.ds-mobile-menu__links a:last-child { border-bottom: none !important; }
.ds-mobile-menu__links svg { flex-shrink: 0; }

/* ── MINI CART — ukryj duplikaty przycisków WooCommerce ── */
.ds-mini-cart__body .woocommerce-mini-cart__buttons,
.ds-mini-cart__body .woocommerce-mini-cart__buttons.buttons { display: none !important; }

/* Styl listy produktów w mini koszyku */
.ds-mini-cart__body .woocommerce-mini-cart { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ds-mini-cart__body .mini_cart_item { display: flex !important; align-items: flex-start !important; gap: 10px !important; padding: 10px 0 !important; border-bottom: 1px solid #f0f0f0 !important; font-size: 13px !important; }
.ds-mini-cart__body .mini_cart_item:last-child { border-bottom: none !important; }
.ds-mini-cart__body .mini_cart_item a img { width: 56px !important; height: 56px !important; object-fit: contain !important; border: 1px solid #e5e5e5 !important; border-radius: 4px !important; flex-shrink: 0 !important; }
.ds-mini-cart__body .mini_cart_item a:not(.remove) { color: #111 !important; text-decoration: none !important; font-weight: 500 !important; font-size: 13px !important; display: flex !important; gap: 10px !important; align-items: flex-start !important; flex: 1 !important; }
.ds-mini-cart__body .mini_cart_item a.remove { color: #999 !important; text-decoration: none !important; font-size: 16px !important; line-height: 1 !important; margin-left: auto !important; flex-shrink: 0 !important; }
.ds-mini-cart__body .mini_cart_item a.remove:hover { color: #cc2200 !important; }
.ds-mini-cart__body .woocommerce-mini-cart__total { padding: 10px 0 4px !important; font-weight: 700 !important; font-size: 14px !important; border-top: 1px solid #e5e5e5 !important; display: flex !important; justify-content: space-between !important; }
.ds-mini-cart__body .variation { margin: 2px 0 0 !important; font-size: 11px !important; color: #767676 !important; }
.ds-mini-cart__body .quantity { font-size: 12px !important; color: #555 !important; display: block !important; margin-top: 4px !important; }
