@font-face {
    font-family: 'Jost';
    src: url('/fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Jost';
    src: url('/fonts/Jost-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    background: #f2efeb;
    color: #000;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #f2efeb;
    z-index: 1000;
}

.header-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

.header-mobile .logo {
    width: 80px;
    z-index: 2;
}

.header-cart-link,
.header-cart-button {
    position: absolute;
    left: 20px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
}

.cart-icon-svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: none;
    stroke: #000;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    visibility: visible;
}

.cart-icon-svg path,
.cart-icon-svg circle {
    fill: none;
    stroke: #000;
    opacity: 1;
    visibility: visible;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #8f1d14;
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    font-weight: 600;
}

.header-mobile .hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
}

.header-mobile .hamburger span {
    display: block;
    width: 45px;
    height: 2px;
    background: #000;
    margin: 6px 0;
    border-radius: 2px;
}

.checkout-main {
    padding-top: 80px;
}

.checkout-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
}

.checkout-content {
    padding: 2.5rem 0 4rem 0;
}

.checkout-top-link {
    margin-bottom: 1rem;
}

.checkout-back-link,
.checkout-secondary-link {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    font-size: 0.95rem;
    font-weight: 600;
}

.order-summary-section,
.checkout-form-section {
    padding: 2.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.order-summary-section h2,
.checkout-form-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: clamp(1.25rem, 5vw, 2rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.checkout-form-section h3 {
    margin: 1.5rem 0 1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.checkout-cart-item-name {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.checkout-cart-item-meta {
    margin: 0;
    font-size: 0.9rem;
}

.checkout-cart-item-price {
    white-space: nowrap;
    font-weight: 600;
}

.checkout-cart-empty {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.checkout-cart-empty.active {
    display: block;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    font-size: 1.2rem;
}

.checkout-total-row.checkout-vat-row {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.72);
}

.checkout-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    padding: 0.75rem;
    box-sizing: border-box;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-country {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.checkout-country span,
.checkout-country small {
    font-size: 0.85rem;
}

.checkout-country strong {
    font-size: 1rem;
}

.checkout-form input:required,
.checkout-form textarea:required {
    border-color: rgba(0, 0, 0, 0.5);
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.75rem !important;
    line-height: 1.45;
}

.checkbox-label input {
    width: auto;
    min-width: 16px;
    margin-top: 0.25rem;
}

.required-checkbox {
    font-weight: 400;
}

.required-marker {
    color: #b3261e;
    font-weight: 600;
}

.checkbox-label a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.invoice-fields {
    display: none;
    margin-top: 1rem;
}

.invoice-fields.active {
    display: block;
}

.checkout-submit-area {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    padding-top: 2rem;
}

.checkout-submit-button {
    width: 100%;
    background: #8f1d14;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 1.25rem;
}

.checkout-submit-button:hover {
    opacity: 0.85;
}

.checkout-submit-button.disabled {
    background: #999;
    pointer-events: none;
}

.checkout-message {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    line-height: 1.55;
}

.checkout-message.active {
    display: block;
}

.checkout-message.error {
    border-color: #8f1d14;
    color: #8f1d14;
}

.checkout-message.success {
    border-color: rgba(0, 0, 0, 0.25);
    color: #000;
}

.mobile-full-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: #f2efeb;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-full-menu.active {
    transform: translateX(0);
}

.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    gap: 10px;
}

.pl-container,
.eng-container {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.lang-switch .pl,
.lang-switch .eng {
    cursor: pointer;
    color: #888;
    font-weight: 400;
    transition: color 0.2s, font-weight 0.2s;
}

.lang-switch .pl.selected,
.lang-switch .eng.selected {
    color: #000;
    font-weight: 600;
}

.lang-switch .divider {
    display: inline-block;
    width: 1px;
    height: 36px;
    background: #000;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
}

.menu-buttons .menu-item {
    display: flex;
    flex-direction: column;
}

.menu-buttons a {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    padding: 24px 0;
}

.menu-buttons hr {
    width: 100%;
    border: none;
    border-top: 0.5px solid #999;
    margin: 0;
}

.contact-info {
    text-align: center;
    font-size: 16px;
}

.pawel {
    font-size: 1.1em;
    font-weight: 600;
}

.rotary-phone {
    font-size: 0.95em;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px #000;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-2px);
}

.phone-number {
    font-weight: 600;
    margin-left: 10px;
}

.menu-bottom-image {
    display: flex;
    justify-content: center;
}

.menu-bottom-image img {
    width: auto;
    height: auto;
    transform: scale(0.85);
    transform-origin: center;
}

.checkout-footer {
    background: #f2efeb;
    text-align: center;
    font-size: 11px;
    padding: 2rem 1rem 1rem 1rem;
}

.checkout-footer-links {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkout-footer a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    font-size: 0.85rem;
}

.checkout-footer p {
    margin: 0;
}

@media (min-width: 768px) {
    .checkout-content {
        padding: 4rem 0 6rem 0;
    }

    .order-summary-section,
    .checkout-form-section {
        padding: 3rem 0;
    }

    .checkout-submit-button {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .header-mobile {
        display: none;
    }

    .mobile-full-menu {
        display: none;
    }
}
