@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-desktop {
    display: none;
}

.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;
}

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

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

.shop-hero {
    text-align: center;
    padding: 3rem 0 2rem 0;
}

.shop-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-hero h1 {
    margin: 2rem 0 0.5rem 0;
    font-size: clamp(3rem, 18vw, 7rem);
    line-height: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.shop-subtitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-intro {
    max-width: 620px;
    margin: 1.25rem 0 0 0;
    line-height: 1.55;
    font-size: 1rem;
}

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

.shop-products {
    padding: 1rem 0 4rem 0;
}

.shop-product {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    padding: 2.5rem 0;
}

.shop-product:first-child {
    border-top: none;
}

.shop-product-image {
    width: 100%;
    height: auto;
    display: block;
}

.shop-product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shop-product-logo {
    width: clamp(180px, 33.75vw, 337.5px);
    height: auto;
    margin-left: -0.5rem;
    margin-top: 0.75rem;
}

.shop-product-description {
    margin: 0.5rem 0 1rem 1rem;
    line-height: 1.5;
    font-size: 1rem;
    text-align: left;
}

.shop-product-price {
    margin: 0 0 1rem 1rem;
    font-size: 1rem;
}

.quantity-control {
    display: grid;
    grid-template-columns: 42px 52px 42px;
    align-items: center;
    width: 136px;
    margin-left: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-sizing: content-box;
}

.quantity-control button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 1.4rem;
    line-height: 1;
}

.quantity-input {
    width: 52px;
    height: 42px;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(0, 0, 0, 0.35);
    background: transparent;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-button {
    margin-left: 1rem;
    background: #8f1d14;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.add-to-cart-button:hover {
    opacity: 0.85;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 420px);
    height: 100vh;
    background: #f2efeb;
    z-index: 2200;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-inner {
    height: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    padding-bottom: 1rem;
}

.cart-header h2 {
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.cart-close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.cart-items {
    overflow-y: auto;
    flex: 1;
    padding: 1rem 0;
}

.cart-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    padding: 1rem 0;
}

.cart-item-title {
    font-weight: 600;
    margin: 0 0 0.35rem 0;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-qty button,
.cart-remove-button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

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

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

.cart-summary {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    padding-top: 1rem;
}

.cart-summary p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.cart-summary .checkout-button,
.cart-summary .cart-finalize-button,
a.checkout-button.cart-finalize-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    background: #8f1d14;
    color: #fff;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.95rem 1rem;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
}

.cart-summary .checkout-button:visited,
.cart-summary .cart-finalize-button:visited,
a.checkout-button.cart-finalize-button:visited {
    color: #fff;
}

.cart-summary .checkout-button:hover,
.cart-summary .cart-finalize-button:hover,
a.checkout-button.cart-finalize-button:hover {
    opacity: 0.85;
}

.cart-summary .checkout-button.disabled,
.cart-summary .cart-finalize-button.disabled,
a.checkout-button.cart-finalize-button.disabled {
    background: #999;
    color: #fff;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.85;
    text-decoration: none;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2100;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 3000;
    max-width: calc(100vw - 40px);
    padding: 12px 20px;
    border-radius: 4px;
    background: #171717;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
    pointer-events: none;
}

.shop-delivery-note {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cart-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}

.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;
}

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

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

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

.shop-footer p {
    margin: 0;
}

@media (min-width: 768px) {
    .shop-hero {
        padding: 4.5rem 0 3rem 0;
    }

    .shop-products {
        padding-bottom: 6rem;
    }

    .shop-product {
        padding: 3rem 0;
    }
}

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

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

@media (min-width: 1280px) {
    header {
        height: 64px;
    }

    .shop-main {
        padding-top: 64px;
    }

    .header-desktop {
        position: relative;
        display: block;
        height: 64px;
        padding: 0 28px;
        box-sizing: border-box;
    }

    .desktop-brand-marks {
        position: absolute;
        top: 50%;
        left: 28px;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 26px;
    }

    .brand-mark {
        position: relative;
        display: block;
        width: 24px;
        height: 16px;
        border-bottom: 1.5px solid #000;
    }

    .brand-mark::before {
        content: '';
        position: absolute;
        left: 5px;
        width: 14px;
        height: 8px;
        border: 1.5px solid #000;
    }

    .brand-mark-up::before {
        bottom: 0;
        border-bottom: 0;
        border-radius: 14px 14px 0 0;
    }

    .brand-mark-circle::before {
        bottom: 0;
        height: 14px;
        border-radius: 50%;
    }

    .brand-mark-down::before {
        top: 0;
        border-top: 0;
        border-radius: 0 0 14px 14px;
    }

    .desktop-nav {
        position: absolute;
        top: 0;
        left: 18.5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 43%;
        height: 64px;
    }

    .desktop-nav a {
        color: #000;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.025em;
    }

    .desktop-nav a.active {
        text-decoration: underline;
        text-underline-offset: 0.35em;
    }

    .desktop-nav a:hover,
    .desktop-header-actions a:hover,
    .desktop-cart-button:hover {
        opacity: 0.55;
    }

    .desktop-logo-link {
        position: absolute;
        top: 0;
        left: 81.5%;
        z-index: 4;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 190px;
        height: 146px;
        background: #f2efeb;
    }

    .desktop-logo {
        width: 150px;
        height: auto;
    }

    .desktop-header-actions {
        position: absolute;
        top: 50%;
        left: 65%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .desktop-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-social-link img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .desktop-cart-button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #000;
        cursor: pointer;
    }

    .desktop-cart-button .cart-icon-svg {
        width: 25px;
        height: 25px;
    }

    .desktop-cart-button .cart-count {
        top: -1px;
        right: -2px;
    }

    .shop-hero {
        padding-top: 5.5rem;
    }
}

/* Oferta butelkowa z jedną stawką dostawy dla całego zamówienia. */
.shop-container {
    max-width: 1160px;
}

.wine-product {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    padding: 3rem 0;
}

.wine-product:first-child {
    border-top: none;
}

.wine-heading {
    display: grid;
    grid-template-columns: minmax(240px, 42%) 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.wine-copy {
    min-width: 0;
}

.wine-copy .shop-product-logo {
    display: block;
    width: min(340px, 100%);
    height: auto;
    margin: 0 0 0 -0.5rem;
}

.wine-copy p {
    line-height: 1.55;
}

.bottle-price {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.bottle-vat {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.72);
}

.purchase-panel {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.18);
}

.stock-availability {
    margin: 0 auto 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.purchase-panel button:disabled,
.purchase-panel input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.purchase-panel .quantity-control {
    margin: 0;
}

.purchase-panel .add-to-cart-button {
    width: auto;
    min-height: 44px;
    margin-left: 0;
}

.cart-summary p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.cart-summary .cart-grand-total {
    margin: 0.85rem 0 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 1.15rem;
}

.cart-summary .cart-vat-row {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.72);
}

@media (max-width: 680px) {
    .wine-heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wine-copy .shop-product-logo {
        width: min(280px, 90%);
    }

    .purchase-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-panel .add-to-cart-button {
        width: 100%;
    }
}
