
body.admin-bar .ds-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    #wpadminbar {
        position: fixed !important;
        top: 0 !important;
    }
    body.admin-bar .ds-header {
        top: 46px;
        width: 100%;
    }
}

.ds-header {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 10000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.ds-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--ds-czarny);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ds-logo-svg {
    height: 20px;
    width: auto;
    display: block;
    aspect-ratio: 1500 / 319.88;
}

.ds-navigation-mobile { display: none; }

.menu-list-desktop {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-list-desktop a {
    text-decoration: none;
    color: var(--ds-grafit);
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.menu-list-desktop a:hover { color: var(--ds-niebieski-akcent); }

.ds-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ds-cart-toggle {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-grafit);
    transition: color 0.3s;
    box-shadow: none;
    appearance: none;
}

.ds-cart-toggle:hover,
.ds-cart-toggle.active {
    color: var(--ds-niebieski-akcent);
    background-color: transparent;
}

.ds-cart-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.ds-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--ds-niebieski-akcent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    opacity: 0;
    transition: opacity 0.2s;
}

.ds-cart-count.has-items { opacity: 1; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 25px;
    box-shadow: none;
    appearance: none;
}

.menu-toggle.active span { background: var(--ds-niebieski-akcent); }

.menu-toggle span {
    width: 25px;
    height: 4px;
    border-radius: 4px;
    background: var(--ds-grafit);
    transition: 0.3s;
    display: block;
}

.ds-cart-dropdown {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    box-sizing: border-box;
}

.ds-cart-dropdown.is-open {
    max-height: 70vh;
    opacity: 1;
    overflow-y: auto;
}

.ds-cart-dropdown-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 5%;
}

.ds-cart-loading {
    text-align: center;
    padding: 20px 0;
    color: var(--ds-grafit);
    font-size: 0.9rem;
}

.ds-cart-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--ds-grafit);
    font-size: 0.95rem;
}

.ds-cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ds-cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto 24px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: opacity 0.2s;
}

.ds-cart-item:last-child { border-bottom: none; }

.ds-cart-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ds-cart-item-info { min-width: 0; }

.ds-cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ds-czarny);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.ds-cart-item-qty-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.ds-cart-qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 28px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
    font-family: var(--ds-font-main);
    color: var(--ds-czarny);
    text-align: center;
    padding: 0 4px;
    user-select: none;
    background: #fff;
}

.ds-cart-qty-minus,
.ds-cart-qty-plus {
    height: 28px;
    width: 26px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.15s;
    flex-shrink: 0;
    color: var(--ds-grafit);
    padding: 0;
}

.ds-cart-qty-minus { border-radius: 5px 0 0 5px; }
.ds-cart-qty-plus  { border-radius: 0 5px 5px 0; }

.ds-cart-qty-minus:hover,
.ds-cart-qty-plus:hover,
.ds-cart-qty-minus:focus,
.ds-cart-qty-plus:focus { background: #fff; color: var(--ds-grafit); }

.ds-cart-qty-minus.is-pressed,
.ds-cart-qty-plus.is-pressed {
    background: var(--ds-niebieski-akcent);
    color: var(--ds-grafit);
    border-color: var(--ds-niebieski-akcent);
}

.ds-cart-item-prices {
    text-align: right;
    flex-shrink: 0;
}

.ds-cart-item-unit-price {
    font-size: 0.78rem;
    color: var(--ds-grafit);
    font-weight: 300;
    display: block;
    margin-bottom: 2px;
}

.ds-cart-item-line-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ds-czarny);
    display: block;
}

.ds-cart-item-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ds-grafit);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    opacity: 0.5;
}

.ds-cart-item-remove:hover {
    background: rgba(255, 0, 0, 0.08);
    color: #d00;
    opacity: 1;
}

.ds-cart-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 30px;
    margin-top: 4px;
}

.ds-cart-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--ds-grafit);
	text-align: center;
}

.ds-cart-total strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ds-czarny);
}

.ds-cart-actions {
    display: flex;
    gap: 10px;
}

.ds-cart-btn-secondary {
    flex: 1;
    text-align: center;
    padding: 13px 0;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--ds-font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 100px;
    border: 1.5px solid var(--ds-czarny);
    color: var(--ds-czarny);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.ds-cart-btn-secondary:hover {
    background: var(--ds-czarny);
    color: #fff;
}

.ds-cart-btn-primary {
    flex: 1;
    text-align: center;
    padding: 13px 0;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--ds-font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 100px;
    border: 1.5px solid var(--ds-czarny);
    color: #fff;
    background: var(--ds-czarny);
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.ds-cart-btn-primary:hover {
    background: var(--ds-grafit);
    border-color: var(--ds-grafit);
    color: #fff;
}

@media (max-width: 768px) {
    .header-flex { padding: 0 10px; }
    .ds-navigation-desktop { display: none; }
    .ds-navigation-mobile { display: block; }
    .menu-toggle { display: flex !important; }

    .menu-list-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.5s ease-in-out, opacity 0.4s ease;
        list-style: none;
        margin: 0;
    }

    .menu-list-mobile.is-open {
        max-height: 500px;
        opacity: 1;
        padding: 10px 0;
    }

    .menu-list-mobile li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .menu-list-mobile li:last-child { border-bottom: none; }

    .menu-list-mobile a {
        display: block;
        padding: 15px 0;
        text-decoration: none;
        color: var(--ds-grafit);
        font-weight: 400;
        text-transform: uppercase;
    }
}

.ds-cart-dropdown .woocommerce-Price-amount,
.ds-cart-dropdown .amount,
.ds-cart-dropdown bdi {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.ds-cart-footer .ds-free-shipping-bar {
    margin-bottom: 14px;
    padding: 12px 16px;
    background: rgba(246, 251, 252, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
}

.ds-cart-footer .ds-free-shipping-msg {
    font-size: 0.82rem;
    color: var(--ds-grafit);
    margin: 0 0 8px;
    text-align: center;
}

.ds-cart-footer .ds-free-shipping-msg strong {
    color: var(--ds-czarny);
    font-weight: 700;
}

.ds-cart-footer .ds-free-shipping-reached .ds-free-shipping-msg {
    color: var(--ds-niebieski-akcent);
    font-weight: 600;
}

.ds-cart-footer .ds-progress-track {
    width: 100%;
    height: 5px;
    background: var(--ds-grafit);
    border-radius: 100px;
    overflow: hidden;
}

.ds-cart-footer .ds-progress-fill {
    height: 100%;
    background: var(--ds-niebieski-akcent);
    border-radius: 100px;
    transition: width 0.4s ease;
}