/* Pile Mamino – custom additions on top of the theme */
:root {
    --subtitle-font: "Dynalight", cursive;
}
/* the script font is unreadable in all caps at 16px */
.sub-title {
    text-transform: none;
    font-size: 24px;
}

/* Sticky header: smooth slide-down instead of the theme's squash animation */
.sticky-wrapper {
    transition: none;
}
.sticky-wrapper.sticky {
    z-index: 99;
    animation: pmStickyIn 0.35s ease-out;
}
@keyframes pmStickyIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Anchor targets clear the sticky header */
#poruci,
#menu,
#about-sec {
    scroll-margin-top: 90px;
}

/* Promo bar (20% pickup discount) */
.pm-promo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    padding: 8px 16px;
    background: var(--theme-color);
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}
.pm-promo-bar a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pm-promo-bar a:hover {
    color: var(--theme-color4);
}

/* Order section */
.pm-order {
    background: var(--smoke-color);
}
.pm-order-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.pm-order-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(7, 47, 37, 0.08);
    text-align: center;
    color: var(--title-color);
    transition: transform 0.25s, box-shadow 0.25s;
}
.pm-order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(7, 47, 37, 0.16);
    color: var(--title-color);
}
.pm-order-card img,
.pm-order-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}
.pm-order-icon {
    display: grid;
    place-items: center;
    background: var(--theme-color);
    color: #fff;
    font-size: 26px;
}
.pm-order-name {
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}
.pm-order-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color);
}
.pm-order-call {
    background: var(--black-color2);
    color: #fff;
}
.pm-order-call:hover {
    color: #fff;
}
.pm-order-call .pm-order-cta {
    color: var(--theme-color4);
}

/* Menu */
.pm-menu {
    background: var(--smoke-color);
}
.pm-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.pm-menu-tabs button {
    padding: 9px 18px;
    border: 2px solid var(--black-color2);
    border-radius: 999px;
    background: transparent;
    color: var(--black-color2);
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s;
}
.pm-menu-tabs button:hover,
.pm-menu-tabs button.active {
    background: var(--black-color2);
    color: #fff;
}
.pm-menu:not(.pm-tabs-ready) .pm-menu-tabs {
    display: none;
}
.pm-menu-panels {
    display: grid;
    gap: 24px;
}
.pm-menu-cat {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 36px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(7, 47, 37, 0.08);
}
.pm-cat-title {
    margin-bottom: 16px;
    font-size: 34px;
    color: var(--black-color2);
}
.pm-cat-title small {
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--body-color);
    margin-left: 6px;
}
.pm-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pm-items li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--th-border-color);
}
.pm-items li:last-child {
    border-bottom: 0;
}
.pm-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.pm-item-head h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--title-color);
}
.pm-hot {
    font-size: 15px;
    letter-spacing: -2px;
}
.pm-price {
    flex-shrink: 0;
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-color);
    white-space: nowrap;
}
.pm-price small {
    font-size: 0.7em;
    font-weight: 600;
}
/* Size options (gramaža -> cena) */
.pm-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}
.pm-items .pm-sizes li {
    display: inline-flex;
    align-items: stretch;
    padding: 0;
    border: 1px solid var(--th-border-color);
    border-radius: 999px;
    overflow: hidden;
    line-height: 1.2;
}
.pm-size {
    padding: 6px 10px;
    background: var(--smoke-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--black-color2);
}
.pm-size-price {
    padding: 6px 12px 6px 10px;
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-color);
}
.pm-items p {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--body-color);
}
.pm-menu-note {
    margin: 24px 0 0;
    text-align: center;
    font-size: 15px;
}
.pm-menu-note a {
    margin-left: 6px;
    font-weight: 600;
    color: var(--theme-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Floating call button (mobile/tablet only) */
.pm-call-fab {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 95;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--theme-color2);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pm-call-fab:hover,
.pm-call-fab:focus {
    color: #fff;
    background: var(--black-color2);
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--theme-color3);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .pm-order-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 991px) {
    .pm-call-fab {
        display: inline-flex;
    }
    /* keep the copyright line clear of the floating call button */
    .copyright-wrap {
        padding-bottom: 90px;
    }
}
@media (max-width: 767px) {
    .pm-order-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pm-order-call {
        grid-column: 1 / -1;
    }
    .pm-order-card {
        padding: 20px 10px;
    }
    .pm-order-name {
        font-size: 20px;
    }
    /* hero titles: keep a right gutter so long titles aren't clipped */
    .hero-style10 {
        padding-right: 36px;
    }
    .hero-style10 .hero-title {
        font-size: 38px;
    }
    .hero-style10 .hero-text {
        width: 100%;
    }
    /* the back-to-top button sits over the price column on phones */
    .scroll-top {
        display: none;
    }
    /* all categories visible at once instead of a hidden side-scroll */
    .pm-menu-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    .pm-menu-tabs button {
        padding: 8px 14px;
        font-size: 16px;
    }
    .pm-menu-cat {
        padding: 22px 18px;
        border-radius: 16px;
    }
    .pm-cat-title {
        font-size: 28px;
    }
    .pm-item-head {
        flex-wrap: wrap;
        gap: 2px 12px;
    }
    .pm-item-head h4,
    .pm-price {
        font-size: 19px;
    }
    /* sizes as full-width rows: gramaža left, price right */
    .pm-sizes {
        flex-direction: column;
        gap: 6px;
    }
    .pm-items .pm-sizes li {
        justify-content: space-between;
        border-radius: 10px;
    }
    .pm-size {
        flex: 1;
    }
}
