/*
Theme Name: Porybieni Theme
Theme URI: https://porybieni.com.pl
Author: mlody
Description: Ultralekki, dedykowany motyw dla sklepu Porybieni, zbudowany bez uĹĽycia page builderĂłw w celu maksymalnej wydajnoĹ›ci.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: porybieni
*/

:root {
    --color-primary: #ffba00;
    --color-primary-hover: #e0a300;
    --color-bg-dark: #0a0a0a;
    --color-bg-light: #111111;
    --color-bg-lighter: #1a1a1a;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #222222;
    --color-error: #ff3333;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition-fast: 0.2s ease-in-out;

    --pb-yellow: #ffb800;
    --pb-black: #080808;
    --pb-black-soft: #101010;
    --pb-white: #ffffff;
    --pb-gray: #8f8f8f;
    --pb-border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    font-weight: normal;
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn, button, input[type="submit"] {
    display: inline-block;
    background-color: var(--color-primary);
    color: #000;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: center;
    transition: background-color var(--transition-fast);
}

.btn:hover, button:hover, input[type="submit"]:hover {
    background-color: var(--color-primary-hover);
    color: #000;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.porybieni-header {
    width: 100%;
    height: 92px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--pb-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 200ms ease, border-color 200ms ease;
}

.porybieni-header.is-scrolled {
    background: rgba(8, 8, 8, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.porybieni-header__inner {
    width: calc(100% - 64px);
    max-width: 1560px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
}

.site-logo,
.porybieni-header__brand,
.porybieni-header__logo,
.porybieni-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.porybieni-header__logo img {
    display: block;
    width: clamp(205px, 14vw, 230px);
    max-height: 54px;
    object-fit: contain;
}

.porybieni-header__nav {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.porybieni-main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.porybieni-main-menu a {
    position: relative;
    display: block;
    color: var(--pb-white);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 200ms ease;
}

.porybieni-main-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -13px;
    left: 0;
    height: 2px;
    background: var(--pb-yellow);
    box-shadow: 0 0 12px rgba(255, 184, 0, 0.25);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.porybieni-main-menu a:hover,
.porybieni-main-menu a:focus-visible,
.porybieni-main-menu .current-menu-item > a,
.porybieni-main-menu .current-menu-ancestor > a {
    color: var(--pb-yellow);
}

.porybieni-main-menu a:hover::after,
.porybieni-main-menu a:focus-visible::after,
.porybieni-main-menu .current-menu-item > a::after,
.porybieni-main-menu .current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.porybieni-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.porybieni-header__icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--pb-white);
    cursor: pointer;
    text-decoration: none;
    transition: color 200ms ease, transform 200ms ease;
}

.porybieni-header__icon:hover,
.porybieni-header__icon:focus-visible {
    background: transparent;
    color: var(--pb-yellow);
    transform: translateY(-1px);
}

.porybieni-header__icon svg {
    width: 24px;
    height: 24px;
}

.porybieni-header__divider {
    display: block;
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.22);
}

.porybieni-header__cart {
    height: 48px;
    padding: 0 13px 0 17px;
    border: 1px solid rgba(255, 184, 0, 0.7);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 184, 0, 0.025);
    color: var(--pb-white);
    text-decoration: none;
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.porybieni-header__cart:hover,
.porybieni-header__cart:focus-visible {
    border-color: var(--pb-yellow);
    background: rgba(255, 184, 0, 0.06);
    color: var(--pb-white);
    transform: translateY(-1px);
}

.porybieni-header__cart-icon,
.porybieni-header__cart-icon svg {
    display: block;
    width: 23px;
    height: 23px;
}

.porybieni-header__cart-label {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.porybieni-header__cart-count {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pb-yellow);
    color: var(--pb-black);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    font-family: var(--font-body);
}

.porybieni-header__hamburger,
.porybieni-mobile-menu__secondary {
    display: none;
}

.porybieni-header a:focus-visible,
.porybieni-header button:focus-visible {
    outline: 2px solid var(--pb-yellow);
    outline-offset: 4px;
}

.site-footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

@media (max-width: 1280px) and (min-width: 901px) {
    .porybieni-header__inner {
        width: calc(100% - 40px);
        gap: 24px;
    }

    .porybieni-header__logo img {
        width: 190px;
    }

    .porybieni-main-menu {
        gap: 24px;
    }

    .porybieni-main-menu a {
        font-size: 13px;
    }

    .porybieni-header__actions {
        gap: 12px;
    }
}

@media (max-width: 1080px) and (min-width: 901px) {
    .porybieni-header__inner {
        width: calc(100% - 32px);
        gap: 16px;
    }

    .porybieni-header__logo img {
        width: 170px;
    }

    .porybieni-main-menu {
        gap: 15px;
    }

    .porybieni-main-menu a {
        font-size: 12px;
    }

    .porybieni-header__actions {
        gap: 8px;
    }

    .porybieni-header__icon {
        width: 36px;
    }

    .porybieni-header__cart {
        padding: 0 11px 0 13px;
        gap: 7px;
    }

    .porybieni-header__cart-label {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .porybieni-header {
        height: 72px;
    }

    .porybieni-header__inner {
        width: calc(100% - 32px);
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .porybieni-header__brand {
        display: contents;
    }

    .porybieni-header__hamburger {
        width: 38px;
        height: 38px;
        padding: 8px 5px;
        border: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        justify-self: start;
        background: transparent;
        color: var(--pb-yellow);
        cursor: pointer;
    }

    .porybieni-header__hamburger:hover,
    .porybieni-header__hamburger:focus-visible {
        background: transparent;
        color: var(--pb-yellow);
    }

    .porybieni-header__hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
        transform-origin: center;
        transition: transform 200ms ease, opacity 200ms ease;
    }

    .porybieni-header__hamburger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .porybieni-header__hamburger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .porybieni-header__hamburger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .porybieni-header__logo {
        min-width: 0;
        justify-self: center;
    }

    .porybieni-header__logo img {
        width: clamp(135px, 38vw, 155px);
        max-height: 44px;
    }

    .porybieni-header__nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        z-index: 9998;
        height: calc(100dvh - 72px);
        padding: clamp(42px, 9vh, 80px) 24px 32px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        background: var(--pb-black);
        border-top: 1px solid var(--pb-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        pointer-events: none;
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    .porybieni-header__nav.toggled {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .porybieni-main-menu {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        white-space: normal;
    }

    .porybieni-main-menu a {
        width: 100%;
        padding: 12px 0;
        font-size: clamp(25px, 7vw, 30px);
        line-height: 1.16;
        font-weight: 900;
    }

    .porybieni-main-menu a::after {
        display: none;
    }

    .porybieni-mobile-menu__secondary {
        width: 100%;
        max-width: 760px;
        margin: 32px auto 0;
        padding-top: 26px;
        border-top: 1px solid var(--pb-border);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .porybieni-mobile-menu__secondary a {
        width: fit-content;
        color: var(--pb-white);
        font-size: 13px;
        line-height: 1.4;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .porybieni-mobile-menu__secondary a:hover,
    .porybieni-mobile-menu__secondary a:focus-visible {
        color: var(--pb-yellow);
    }

    .porybieni-header__actions {
        justify-self: end;
        gap: 2px;
    }

    .porybieni-header__divider {
        display: none;
    }

    .porybieni-header__icon {
        width: 34px;
        height: 40px;
    }

    .porybieni-header__icon svg {
        width: 21px;
        height: 21px;
    }

    .porybieni-header__cart {
        position: relative;
        width: 38px;
        height: 40px;
        padding: 0;
        border: 0;
        justify-content: center;
        gap: 0;
        background: transparent;
    }

    .porybieni-header__cart:hover,
    .porybieni-header__cart:focus-visible {
        border: 0;
        background: transparent;
        color: var(--pb-yellow);
    }

    .porybieni-header__cart-icon,
    .porybieni-header__cart-icon svg {
        width: 21px;
        height: 21px;
    }

    .porybieni-header__cart-label {
        display: none;
    }

    .porybieni-header__cart-count {
        position: absolute;
        top: -1px;
        right: -1px;
        width: 19px;
        height: 19px;
        min-width: 19px;
        flex-basis: 19px;
        font-size: 10px;
    }

    body.porybieni-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 390px) {
    .porybieni-header__inner {
        width: calc(100% - 24px);
        gap: 4px;
    }

    .porybieni-header__logo img {
        width: clamp(120px, 35vw, 135px);
    }

    .porybieni-header__actions {
        gap: 0;
    }

    .porybieni-header__icon {
        width: 31px;
    }

    .porybieni-header__cart {
        width: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .porybieni-header *,
    .porybieni-header *::before,
    .porybieni-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* NOWA STOPKA */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 0;
    padding: clamp(3.5rem, 6vw, 6rem) 0 0;
    border-top-color: rgba(255,186,0,0.28);
    background:
        radial-gradient(circle at 96% 18%, rgba(255,186,0,0.05), transparent 20rem),
        linear-gradient(180deg, #0b0c0c, #070808);
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.025;
    pointer-events: none;
    background-image: repeating-linear-gradient(120deg, transparent 0 25px, rgba(255,255,255,0.22) 26px, transparent 27px);
}
.site-footer > .container,
.site-info .container {
    width: min(92vw, 1480px);
    max-width: none;
    padding-inline: 0;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.9fr 1.55fr;
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: clamp(3rem, 5vw, 5rem);
}
.footer-brand .site-logo img {
    max-height: 50px;
    margin-bottom: 20px;
    margin-left: -12px;
    filter: brightness(0) invert(1);
}
.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    color: var(--color-text-main);
    font-size: 1.2rem;
}
.footer-socials a:hover {
    color: var(--color-primary);
}
.footer-menu h3, .footer-newsletter h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 20px;
}
.footer-menu ul {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-menu ul li {
    margin-bottom: 10px;
}
.footer-menu ul li a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.footer-menu ul li a:hover {
    color: var(--color-primary);
}
.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.footer-newsletter-form input[type="email"],
.footer-newsletter-form input[type="text"] {
    min-height: 48px;
    border-color: rgba(255,255,255,0.14);
    background: rgba(5,6,6,0.72);
}
.footer-newsletter-form button,
.footer-newsletter-form input[type="submit"] {
    min-height: 48px;
    border-radius: 3px;
}
.custom-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-newsletter-form input {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
}
.site-info {
    border-top: 1px solid rgba(255,186,0,0.18);
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer responsive layout. */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .site-info-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ====================================================
  STYLE DLA FLUENT FORMS (NEWSLETTER)
   ==================================================== */
.footer-newsletter-form .fluentform {
    display: block;
    width: 100%;
}
.footer-newsletter-form .fluentform form.frm-fluent-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-newsletter-form .fluentform .ff-t-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0 !important;
}
.footer-newsletter-form .fluentform .ff-t-cell {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
.footer-newsletter-form .fluentform .ff-el-group {
    margin-bottom: 0 !important;
    flex: 1;
}
.footer-newsletter-form .fluentform .ff-el-group input[type="text"],
.footer-newsletter-form .fluentform .ff-el-group input[type="email"] {
    width: 100% !important;
    background-color: var(--color-bg-dark) !important;
    color: #fff !important;
    border: 1px solid var(--color-border) !important;
    padding: 15px !important;
    height: 55px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}
.footer-newsletter-form .fluentform .ff-btn-submit {
    background-color: var(--color-primary) !important;
    color: #000 !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    font-family: var(--font-heading) !important;
    border: none !important;
    height: 55px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap;
    width: 100% !important;
}
.footer-newsletter-form .fluentform .ff-btn-submit:hover {
    filter: brightness(1.1);
}
.footer-newsletter-form .fluentform .ff-el-form-check {
    width: 100%;
    margin-top: 1rem;
}
.footer-newsletter-form .fluentform .ff-el-form-check label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--color-text-muted);
    font-weight: normal !important;
}
.footer-newsletter-form .fluentform .ff-el-form-check label a,
.fluentform .ff_t_c a {
    color: var(--color-text-main) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.footer-newsletter-form .fluentform .ff-el-form-check input[type="checkbox"] {
    margin-top: 3px;
}
.footer-newsletter-form .fluentform .ff-errors-in-stack {
    width: 100%;
}
.footer-newsletter-form .fluentform .fluentform-step {
    width: 100%;
}

/* Thank you message styling */
.footer-newsletter-form .fluentform .ff-message-success {
    background-color: var(--color-bg-light) !important;
    color: #fff !important;
    border: 1px solid var(--color-primary) !important;
    padding: 2rem !important;
    border-radius: var(--radius-md) !important;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-newsletter-form .fluentform .ff-t-container {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-newsletter-form .fluentform form.frm-fluent-form {
        flex-direction: column;
    }
    .footer-newsletter-form .fluentform .ff-el-group {
        width: 100%;
    }
    .footer-newsletter-form .fluentform .ff-btn-submit {
        width: 100%;
        margin-top: 0.5rem;
    }
}





/* ====================================================
   CUSTOM SIDE CART
   ==================================================== */
.porybieni-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid var(--color-border);
    transition: transform 0.2s;
}
.porybieni-floating-cart:hover {
    transform: scale(1.05);
}
.porybieni-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-primary);
    color: #000;
    font-size: 0.8rem;
    font-weight: 400;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.porybieni-sidecart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
body.porybieni-sidecart-open .porybieni-sidecart-overlay {
    opacity: 1;
    visibility: visible;
}
.porybieni-sidecart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #111;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    border-left: 1px solid var(--color-border);
}
@media (max-width: 480px) {
    .porybieni-sidecart { width: 100%; right: -100%; }
}
body.porybieni-sidecart-open .porybieni-sidecart {
    right: 0;
}
.porybieni-sidecart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}
.porybieni-sidecart-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.porybieni-sidecart-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}
.porybieni-sidecart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.porybieni-sidecart-items {
    list-style: none; margin: 0; padding: 0;
}
.porybieni-sidecart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.2s;
}
.porybieni-sidecart-item-image img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 4px;
}
.porybieni-sidecart-item-details {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.porybieni-sidecart-item-title {
    font-size: 0.9rem; margin: 0 0 5px; font-family: var(--font-body); font-weight: 600; text-transform: none;
}
.porybieni-sidecart-item-meta {
    display: flex; justify-content: space-between; align-items: center; color: var(--color-text-muted); font-size: 0.8rem; margin-bottom: 5px;
}
.porybieni-sidecart-remove {
    color: var(--color-text-muted); transition: color 0.2s;
}
.porybieni-sidecart-remove:hover { color: #fff; }
.porybieni-sidecart-item-price {
    font-weight: 900; text-align: right;
}
.porybieni-sidecart-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    background: #0a0a0a;
}
.porybieni-sidecart-totals {
    text-align: center; margin-bottom: 18px;
}
.porybieni-sidecart-total-line {
    font-size: 1.2rem; font-weight: 400;
}
.pb-free-shipping {
    width: 100%;
    margin: 14px 0 0;
    text-align: center;
}
.pb-free-shipping__message {
    margin-bottom: 9px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}
.pb-free-shipping__message strong {
    color: #ffb800;
    font-weight: 800;
}
.pb-free-shipping__track {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
}
.pb-free-shipping__progress {
    height: 100%;
    background: #ffb800;
    border-radius: inherit;
    transition: width .35s ease;
}
.pb-free-shipping__threshold {
    margin-top: 7px;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    line-height: 1.4;
}
.pb-free-shipping.is-complete .pb-free-shipping__message {
    color: #ffb800;
    font-weight: 800;
}
.porybieni-sidecart-actions {
    display: flex; flex-direction: column; gap: 10px;
}
.porybieni-btn-cart, .porybieni-btn-continue {
    width: 100%; display: block;
}
.porybieni-btn-checkout {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
}
.porybieni-empty-cart {
    text-align: center; color: var(--color-text-muted); margin-top: 50px;
}

body.wp-singular, body { padding-top: 0 !important; }
.woocommerce-breadcrumb { display: block; width: 100%; margin-top: 15px !important; margin-bottom: 20px !important; }

/* Global typography & spacing for Pages */
.page .entry-header {
    margin-top: 20px;
}
.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}
.entry-content p {
    margin-bottom: 1em;
}

/* Search Overlay */
.porybieni-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.porybieni-search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.porybieni-search-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}
.porybieni-search-overlay.active .porybieni-search-container {
    transform: translateY(0);
}
.porybieni-search-close {
    position: absolute;
    top: -40px;
    right: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.porybieni-search-close svg,
.porybieni-search-overlay .search-submit svg {
    display: block;
    width: 1em;
    height: 1em;
}
.porybieni-search-close:hover {
    color: var(--color-primary);
}
.porybieni-search-overlay .search-form {
    display: flex;
    border-bottom: 2px solid #555;
    position: relative;
    transition: border-color 0.3s ease;
}
.porybieni-search-overlay .search-form:focus-within {
    border-color: var(--color-primary);
}
.porybieni-search-overlay .search-field {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
}
.porybieni-search-overlay .search-field:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
.porybieni-search-overlay .search-submit {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
}

/* Poprawki bramek platnosci */
#payment .payment_box { border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
#payment ul.payment_methods li { border: none !important; }
.wc-stripe-elements-field, .StripeElement { border: 1px solid #333 !important; border-radius: 4px !important; padding: 10px !important; background: #fff !important; }
