
:root {
    --mma-blue: #25237B;
    --mma-blue-dark: #19184F;
    --mma-yellow: #FFF100;
    --mma-text: #18181B;
    --mma-muted: #68686F;
    --mma-bg: #F7F7F5;
    --mma-line: #E7E7E3;
    --mma-white: #FFFFFF;
}

.mma-home-actions,
.mma-actions-page {
    font-family: Inter, Arial, sans-serif;
    color: var(--mma-text);
}

.mma-front-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.mma-front-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--mma-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mma-home-actions {
    position: relative;
    padding: 76px 0 82px;
    background: #F7F7F5;
    border-top: 1px solid #EEEEEA;
    border-bottom: 1px solid #E9E9E4;
}

.mma-home-actions__head,
.mma-action-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.mma-home-actions__head h2,
.mma-action-section__head h2,
.mma-actions-hero h1,
.mma-leaflet-card h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    color: var(--mma-text);
    font-weight: 800;
    letter-spacing: -.035em;
}

.mma-home-actions__head h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.mma-home-actions__head p,
.mma-action-section__head p {
    margin: 9px 0 0;
    color: var(--mma-muted);
    font-size: 14px;
}

.mma-home-actions__nav,
.mma-actions-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mma-home-actions__nav a,
.mma-actions-tabs a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #D9D9D4;
    border-radius: 999px;
    background: #fff;
    color: var(--mma-blue-dark);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.mma-home-actions__nav a:hover,
.mma-actions-tabs a:hover {
    transform: translateY(-1px);
    border-color: var(--mma-blue);
}

.mma-home-actions__nav .mma-home-actions__leaflet,
.mma-actions-tabs .is-leaflet {
    border-color: var(--mma-yellow);
    background: var(--mma-yellow);
}

.mma-product-grid {
    display: grid;
    gap: 18px;
}

.mma-product-grid--home,
.mma-product-grid--page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mma-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mma-line);
    border-radius: 20px;
    background: var(--mma-white);
    box-shadow: 0 10px 28px rgba(25, 24, 79, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.mma-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(25, 24, 79, .12);
}

.mma-product-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 20px;
    background: #FAFAF8;
}

.mma-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.mma-product-card__fallback {
    display: flex;
    width: 72%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border: 1px dashed #D2D2CC;
    border-radius: 18px;
    color: #A0A09A;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.mma-product-card__discount {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    min-width: 54px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--mma-yellow);
    color: var(--mma-blue-dark);
    font-size: 14px;
    font-weight: 900;
}

.mma-product-card__content {
    padding: 17px 18px 20px;
}

.mma-product-card__type {
    margin-bottom: 7px;
    color: var(--mma-blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mma-product-card__name {
    min-height: 48px;
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    color: var(--mma-text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.42;
}

.mma-product-card__unit {
    margin-top: 6px;
    color: var(--mma-muted);
    font-size: 11px;
}

.mma-product-card__prices {
    display: flex;
    min-height: 60px;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 16px;
}

.mma-product-card__old {
    margin-bottom: 2px;
    color: #8E8E91;
    font-size: 12px;
    text-decoration: line-through;
}

.mma-product-card__price {
    color: var(--mma-blue);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1;
    letter-spacing: -.045em;
}

.mma-product-card__price small {
    font-size: 11px;
    letter-spacing: 0;
}

.mma-home-actions__footer {
    margin-top: 28px;
    text-align: center;
}

.mma-front-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--mma-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.mma-actions-hero {
    padding: 76px 0 44px;
    background: linear-gradient(180deg, #FBFBF9 0%, #F5F5F1 100%);
}

.mma-actions-hero h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.mma-actions-hero p {
    margin: 12px 0 26px;
    color: var(--mma-muted);
    font-size: 16px;
}

.mma-action-section {
    padding: 64px 0 76px;
    scroll-margin-top: 80px;
}

.mma-action-section--alternate {
    background: var(--mma-bg);
}

.mma-action-section__head h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.mma-front-empty {
    padding: 26px;
    border: 1px dashed #D5D5CF;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    color: var(--mma-muted);
    text-align: center;
}

.mma-leaflet-section {
    padding: 70px 0;
    background: var(--mma-blue-dark);
    scroll-margin-top: 80px;
}

.mma-leaflet-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.mma-leaflet-card .mma-front-kicker {
    color: var(--mma-yellow);
}

.mma-leaflet-card h2 {
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
}

.mma-leaflet-card p {
    margin: 15px auto 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.65;
}

/* Classic */
.mma-skin-classic {
    --mma-card-accent: var(--mma-blue);
}

/* Seasonal shares one structure; only accents change automatically by action start date. */
.mma-skin-seasonal {
    border-color: color-mix(in srgb, var(--mma-season) 30%, #E7E7E3);
}

.mma-skin-seasonal .mma-product-card__type,
.mma-skin-seasonal .mma-product-card__price {
    color: var(--mma-season);
}

.mma-skin-seasonal .mma-product-card__media {
    background: color-mix(in srgb, var(--mma-season) 7%, #FAFAF8);
}

.mma-season-spring { --mma-season: #487C58; }
.mma-season-summer { --mma-season: #C68416; }
.mma-season-autumn { --mma-season: #9A4E2D; }
.mma-season-winter { --mma-season: #3B658B; }

/* Special */
.mma-skin-special {
    border-color: #E3D29A;
    box-shadow: 0 12px 32px rgba(126, 92, 21, .11);
}

.mma-skin-special::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #B58A2A, #FFF1A1, #B58A2A);
}

.mma-skin-special .mma-product-card__type,
.mma-skin-special .mma-product-card__price {
    color: #8A6417;
}

.mma-skin-special .mma-product-card__media {
    background: #FFFCF3;
}

@media (max-width: 1024px) {
    .mma-product-grid--home,
    .mma-product-grid--page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mma-home-actions__head,
    .mma-action-section__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .mma-front-container {
        width: min(100% - 24px, 1180px);
    }

    .mma-home-actions {
        padding: 52px 0;
    }

    .mma-home-actions__nav,
    .mma-actions-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mma-home-actions__nav a,
    .mma-actions-tabs a {
        min-height: 38px;
        padding: 0 7px;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
    }

    .mma-product-grid--home,
    .mma-product-grid--page {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mma-product-card {
        border-radius: 14px;
    }

    .mma-product-card__media {
        padding: 10px;
    }

    .mma-product-card__content {
        padding: 11px 11px 14px;
    }

    .mma-product-card__type {
        font-size: 8px;
    }

    .mma-product-card__name {
        min-height: 50px;
        font-size: 12px;
        line-height: 1.35;
    }

    .mma-product-card__unit {
        font-size: 9px;
    }

    .mma-product-card__prices {
        min-height: 53px;
        margin-top: 10px;
    }

    .mma-product-card__old {
        font-size: 10px;
    }

    .mma-product-card__price {
        font-size: 23px;
    }

    .mma-product-card__price small {
        font-size: 9px;
    }

    .mma-product-card__discount {
        top: 8px;
        right: 8px;
        min-width: 44px;
        min-height: 27px;
        padding: 0 7px;
        font-size: 11px;
    }

    .mma-action-section {
        padding: 48px 0 58px;
    }

    .mma-actions-hero {
        padding: 54px 0 34px;
    }
}


/* Market Most Akcije 0.5.1 */
.mma-home-actions::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: min(1180px, calc(100% - 36px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(37,35,123,.18), transparent);
}

.mma-upcoming-note {
    display: inline-flex;
    margin: 10px 0 2px !important;
    padding: 7px 11px;
    border-radius: 999px;
    background: #FFF9C9;
    color: #5C5500 !important;
    font-size: 12px !important;
    font-weight: 750;
}

.mma-front-empty--weekend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mma-front-empty--weekend strong {
    color: var(--mma-text);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 16px;
}

.mma-front-empty--weekend span {
    font-size: 13px;
    line-height: 1.55;
}

.mma-weekend-prep-notice .button {
    margin-left: 8px;
}


/* Market Most Akcije 0.5.2 - Weekend skin */
.mma-skin-weekend {
    border-color: rgba(37, 35, 123, .24);
    box-shadow: 0 14px 34px rgba(25, 24, 79, .13);
}

.mma-skin-weekend::before {
    content: "VIKEND";
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--mma-blue-dark);
    color: var(--mma-yellow);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .1em;
}

.mma-skin-weekend .mma-product-card__media {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,241,0,.18), transparent 38%),
        #FAFAF8;
}

.mma-skin-weekend .mma-product-card__type,
.mma-skin-weekend .mma-product-card__price {
    color: var(--mma-blue-dark);
}

.mma-skin-weekend .mma-product-card__discount {
    background: var(--mma-yellow);
    box-shadow: 0 5px 14px rgba(255, 241, 0, .25);
}

@media (max-width: 640px) {
    .mma-skin-weekend::before {
        top: 8px;
        left: 8px;
        min-height: 22px;
        padding: 0 7px;
        font-size: 8px;
    }
}


/* Market Most Akcije 0.6.0 - Rapsodija empty state helper */
.most-rapsodija-empty-catalog {
    grid-column: 1 / -1;
    padding: 40px;
    border: 1px dashed #e8e0d2;
    border-radius: 16px;
    text-align: center;
}


/* Market Most Akcije 0.6.2 - Rapsodija seeded catalog helpers */
.most-cake-card-price.is-unavailable { opacity: .62; font-size: 13px; }
.most-cake-add:disabled, .most-cake-qty button:disabled { cursor: not-allowed !important; opacity: .45; }


/* Market Most Akcije 0.6.3 - Rapsodija order flow helpers */
.most-rapsodija-order-info {
    display: block;
    margin: -10px 0 22px;
    padding: 14px 15px;
    border: 1px solid rgba(185, 138, 54, .28);
    border-radius: 10px;
    background: rgba(185, 138, 54, .07);
}
.most-rapsodija-order-info strong {
    display: block;
    margin: 0 0 5px;
    color: #8E6521;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}
.most-rapsodija-order-info span {
    display: block;
    margin: 0;
    color: #6E6B67;
    font-size: 11px;
    line-height: 1.55;
}
.most-modal-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #E8E0D2;
}
.most-modal-order-item > div { min-width: 0; }
.most-modal-order-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}
.most-modal-order-item small {
    display: block;
    color: #6E6B67;
    font-size: 10px;
    line-height: 1.4;
}
.most-modal-order-item > span {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.most-modal-order-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 4px;
}
.most-modal-order-total span {
    color: #6E6B67;
    font-size: 11px;
    font-weight: 650;
}
.most-modal-order-total strong {
    color: #8E6521;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}
.most-rapsodija-wpforms .most-rapsodija-native-picker {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 47px !important;
    margin: 0 !important;
    padding: 0 42px 0 13px !important;
    border: 1px solid #E8E0D2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #18181B !important;
    cursor: pointer !important;
    color-scheme: light;
}
.most-rapsodija-wpforms .most-rapsodija-native-picker::-webkit-calendar-picker-indicator {
    display: block !important;
    cursor: pointer !important;
    opacity: .72 !important;
}
.most-rapsodija-wpforms .most-rapsodija-has-proxy-picker .wpforms-field-row {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
@media (max-width: 620px) {
    .most-rapsodija-wpforms .most-rapsodija-native-picker { font-size: 16px !important; }
    .most-modal-order-item { gap: 12px; }
    .most-modal-order-total strong { font-size: 24px; }
}

/* =========================================================
   Market Most Akcije 0.6.8 - Liflet / poster frontend
   IMAGE ONLY
========================================================= */

.mma-leaflet-section {
    padding: 82px 0 96px;
    background: #f7f7f5;
}

.mma-leaflet-section__head {
    max-width: 720px;
    margin-bottom: 30px;
}

.mma-leaflet-section__head h2 {
    margin: 7px 0 10px;

    color: #18181b;

    font-family:
        "Plus Jakarta Sans",
        Inter,
        sans-serif;

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.05;
    letter-spacing: -.04em;
}

.mma-leaflet-section__head p {
    margin: 0;

    color: #68686f;

    font-size: 15px;
    line-height: 1.7;
}

.mma-leaflet-materials {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 28px;

    align-items: start;
}

.mma-leaflet-materials.has-one {
    max-width: 780px;
    margin: 0 auto;
}

.mma-leaflet-materials.has-two {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.mma-leaflet-material {
    overflow: hidden;

    border: 1px solid rgba(37, 35, 123, .12);
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 18px 48px
        rgba(25, 24, 79, .07);
}

.mma-leaflet-material__head {
    padding: 19px 22px 16px;

    border-bottom: 1px solid #ececec;
}

.mma-leaflet-material__head > span {
    display: inline-block;

    margin-bottom: 6px;

    color: #25237b;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.mma-leaflet-material__head h3 {
    margin: 0;

    color: #18181b;

    font-family:
        "Plus Jakarta Sans",
        Inter,
        sans-serif;

    font-size: 21px;

    line-height: 1.2;
}

.mma-leaflet-material__media {
    display: block;

    width: 100%;

    background: #fff;

    text-decoration: none;
}

.mma-leaflet-material__media img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto;

    object-fit: contain;

    background: #fff;
}

/* Placeholder ostaje kada nema aktivne slike. */
.mma-leaflet-placeholder {
    display: grid;

    grid-template-columns:
        minmax(250px, .7fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 50px;

    padding: 42px;

    border: 1px solid rgba(37, 35, 123, .12);
    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 18px 48px
        rgba(25, 24, 79, .06);
}

.mma-leaflet-placeholder__paper {
    position: relative;

    display: flex;

    min-height: 380px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    overflow: hidden;

    padding: 34px;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255, 241, 0, .72),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #25237b,
            #19184f
        );

    color: #fff;

    box-shadow:
        0 24px 50px
        rgba(25, 24, 79, .22);

    transform: rotate(-2deg);
}

.mma-leaflet-placeholder__paper::after {
    content: "";

    position: absolute;

    right: -28px;
    bottom: -28px;

    width: 145px;
    height: 145px;

    border: 22px solid rgba(255, 241, 0, .18);

    border-radius: 50%;
}

.mma-leaflet-placeholder__paper span {
    margin-bottom: 28px;

    color: #fff100;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .16em;
}

.mma-leaflet-placeholder__paper strong {
    font-family:
        "Plus Jakarta Sans",
        Inter,
        sans-serif;

    font-size: 44px;

    line-height: .95;

    text-align: center;
}

.mma-leaflet-placeholder__paper i {
    margin-top: 32px;

    padding: 8px 13px;

    border-radius: 999px;

    background: #fff100;

    color: #19184f;

    font-size: 10px;
    font-style: normal;
    font-weight: 900;

    letter-spacing: .1em;
}

.mma-leaflet-placeholder__copy h3 {
    margin: 8px 0 12px;

    color: #18181b;

    font-family:
        "Plus Jakarta Sans",
        Inter,
        sans-serif;

    font-size: clamp(28px, 3vw, 42px);

    line-height: 1.08;
    letter-spacing: -.035em;
}

.mma-leaflet-placeholder__copy p {
    max-width: 520px;

    margin: 0;

    color: #68686f;

    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 900px) {

    .mma-leaflet-materials.has-two {
        grid-template-columns: 1fr;
    }

    .mma-leaflet-materials.has-two
    .mma-leaflet-material {
        max-width: 780px;
        width: 100%;

        margin: 0 auto;
    }

    .mma-leaflet-placeholder {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .mma-leaflet-placeholder__paper {
        max-width: 440px;
        width: 100%;

        margin: 0 auto;
    }

}

@media (max-width: 640px) {

    .mma-leaflet-section {
        padding: 58px 0 68px;
    }

    .mma-leaflet-material__head {
        padding: 17px 16px 14px;
    }

    .mma-leaflet-material__head h3 {
        font-size: 18px;
    }

    .mma-leaflet-placeholder {
        padding: 22px;

        border-radius: 18px;
    }

    .mma-leaflet-placeholder__paper {
        min-height: 310px;
    }

    .mma-leaflet-placeholder__paper strong {
        font-size: 36px;
    }

}


/* 0.6.9 - mesečna ponuda bez vidljivog tipa i naziva materijala */
.mma-leaflet-material__media {
    border-radius: 20px;
    overflow: hidden;
}

.mma-leaflet-material__media img {
    border-radius: 20px;
}
