/**
 * phpStudio.net
 * Web Development & Digital Solutions
 *
 * Developed by: Goran Grbić
 * Certified PHP Developer | Full-Stack Web Developer
 *
 * https://phpstudio.net
 * https://artgrbic.net
 *
 * Copyright © 2026 artgGrbic/ phpStudio.net
 * All rights reserved.
 */

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/e1694c6cb47c173f-s.p.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
        U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/ee40bb094c99a29a-s.p.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
        U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --background: #fdeef4;
    --surface: #ffffff;
    --text: #4e5fa4;
    --muted: #4e5fa4;
    --primary: #e9609b;
    --header: #9495c5;
    --border: #e5cbdc;
    --focus: #4e5fa4;
    --container-width: 1440px;
    --gutter: clamp(16px, 4vw, 64px);
    --mobile-bar-height: 80px;
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--background);
    scroll-padding-top: 150px;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--text);
    text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

h1,
h2,
h3 {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 1rem;
    color: var(--primary);
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    font-weight: 800;
}

h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

p,
dd {
    overflow-wrap: anywhere;
}

.container,
.header-inner,
.footer-inner {
    width: min(
        calc(100% - var(--gutter) - var(--gutter)),
        var(--container-width)
    );
    margin-inline: auto;
}

.container {
    flex: 1;
    min-width: 0;
    margin-block: clamp(28px, 5vw, 64px);
}

.site-header {
    background: var(--header);
    color: var(--background);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 24px;
}

.site-header a {
    color: var(--background);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.35rem;
    font-weight: 900;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 120px;
    height: 64px;
    object-fit: contain;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 90;
}

.store-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 48px);
    margin-left: auto;
}

.store-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.store-navigation a:hover,
.store-navigation a[aria-current="page"] {
    text-decoration: underline;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-weight: 800;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.language-switch a:hover,
.language-switch a[aria-current="page"] {
    text-decoration: underline;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: var(--primary);
    color: var(--background);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
    box-shadow: 0 5px 16px rgb(78 95 164 / 16%);
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message-card {
    padding: clamp(20px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.message-card p {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.site-footer {
    margin-top: auto;
    background: var(--primary);
    color: var(--background);
}

.site-footer a {
    color: var(--background);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-block: 36px;
    font-size: 1rem;
    font-weight: 700;
}

.store-footer-inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px 48px;
}

.footer-logo {
    display: block;
    width: 140px;
    height: 80px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-credit {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgb(253 238 244 / 35%);
    text-align: center;
    font-size: 0.9rem;
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
    outline-color: var(--background);
}

.skip-link {
    position: fixed;
    top: -120px;
    left: 16px;
    z-index: 120;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
}

.skip-link:focus {
    top: 12px;
}

.mobile-bar,
.mobile-bar-space {
    display: none;
}

/* Blago smanjivanje zaglavlja gde pregledač podržava
   animacije vezane za skrol. Sticky radi i bez njih. */
@supports (animation-timeline: scroll()) {
    @media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
        .store-header .header-inner {
            animation: header-compact linear both;
            animation-timeline: scroll();
            animation-range: 0px 180px;
        }

        .store-header .brand-logo {
            animation: logo-compact linear both;
            animation-timeline: scroll();
            animation-range: 0px 180px;
        }
    }
}

@keyframes header-compact {
    from { padding-block: 24px; }
    to { padding-block: 10px; }
}

@keyframes logo-compact {
    from { width: 120px; height: 64px; }
    to { width: 100px; height: 54px; }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 170px;
        scroll-padding-bottom: calc(
            var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px) + 16px
        );
    }

    .header-inner {
        gap: 10px;
        padding-block: 12px;
    }

    .brand-logo {
        width: 100px;
        height: 54px;
    }

    .store-header .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .store-header .language-switch {
        grid-column: 2;
        grid-row: 1;
    }

    .store-navigation {
        grid-column: 1 / -1;
        justify-content: center;
        gap: 8px 24px;
        margin: 0;
        border-top: 1px solid rgb(253 238 244 / 30%);
    }

    .store-navigation a {
        font-size: 1rem;
    }

    .store-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
        gap: 4px 20px;
        text-align: center;
    }

    .mobile-bar-space {
        display: block;
        flex: 0 0 auto;
        height: calc(
            var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px)
        );
    }

    .mobile-bar {
        position: fixed;
        z-index: 100;
        inset-inline: 0;
        bottom: 0;
        display: flex;
        align-items: stretch;
        gap: 4px;
        height: calc(
            var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px)
        );
        padding: 7px max(8px, env(safe-area-inset-right, 0px))
            calc(7px + env(safe-area-inset-bottom, 0px))
            max(8px, env(safe-area-inset-left, 0px));
        background: var(--primary);
        box-shadow: 0 -4px 20px rgb(78 95 164 / 12%);
    }

    .mobile-bar a {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 3px 2px;
        border-radius: 10px;
        color: var(--background);
        text-decoration: none;
    }

    .mobile-bar a:hover,
    .mobile-bar a[aria-current="page"] {
        background: rgb(253 238 244 / 16%);
    }

    .mobile-bar a:focus-visible {
        outline-color: var(--background);
        outline-offset: -3px;
    }

    .mobile-bar-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
    }

    .mobile-bar-icon svg {
        display: block;
        flex-shrink: 0;
    }

    .mobile-bar-label {
        font-size: 0.75rem;
        line-height: 1.2;
        font-weight: 800;
        white-space: nowrap;
    }

    .mobile-bar-count {
        position: absolute;
        top: -4px;
        right: -12px;
        min-width: 19px;
        height: 19px;
        padding-inline: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--text);
        color: var(--background);
        font-size: 10px;
        line-height: 1;
        font-weight: 800;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
/* Dorada tipografije, zaglavlja i pozadina. */
:root {
    --panel-background: #e9eaf6;
}

h1 {
    font-family: "Nunito", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.message-card {
    background: var(--panel-background);
}

.store-header .brand-logo {
    width: 84px;
    height: 45px;
    animation: none;
}

.footer-logo {
    width: 98px;
    height: 56px;
}

.store-navigation a {
    font-size: 0.95rem;
    font-weight: 700;
}

.store-header .language-switch {
    font-size: 0.95rem;
}

.store-navigation a,
.store-navigation a:hover,
.store-navigation a[aria-current="page"],
.store-header .language-switch a,
.store-header .language-switch a:hover,
.store-header .language-switch a[aria-current="page"] {
    text-decoration: none;
}

.store-navigation a:hover,
.store-header .language-switch a:hover {
    opacity: 0.8;
}

.store-header .language-switch a[aria-current="page"] {
    font-weight: 900;
}

@media (max-width: 767px) {
    .store-header .brand-logo {
        width: 70px;
        height: 38px;
    }

    .store-navigation {
        gap: 6px 18px;
    }

    .store-navigation a,
    .store-header .language-switch {
        font-size: 0.875rem;
    }
}
/* Malo veći logo i tanji tekst u zaglavlju. */
.store-header .brand-logo {
    width: 96px;
    height: 51px;
}

.store-navigation a,
.store-header .language-switch,
.store-header .language-switch a[aria-current="page"] {
    font-weight: 600;
}

@media (max-width: 767px) {
    .store-header .brand-logo {
        width: 80px;
        height: 43px;
    }
}
.store-header .store-navigation a,
.store-header .language-switch a,
.site-footer .footer-links a,
.site-footer .footer-credit a {
    display: inline-flex;
    text-decoration: none !important;
    transition: transform 180ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .store-header .store-navigation a:hover,
    .store-header .language-switch a:hover,
    .site-footer .footer-links a:hover,
    .site-footer .footer-credit a:hover {
        transform: scale(1.06);
        opacity: 1;
    }
}
.header-account {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .store-header .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .store-header .store-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .store-header .language-switch {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
    }

    .store-header .header-account {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        font-size: 0.875rem;
    }
}
.header-cart {
    gap: 8px;
}

.header-cart svg {
    display: block;
    flex: 0 0 26px;
}
.header-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-right: 6px;
}

.header-cart-count {
    position: absolute;
    top: -9px;
    right: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 4px;
    border-radius: 999px;
    background: #e9609b;
    color: #fdeef4;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
/* Promotivni blok iznad podnožja. */
.shop-promo {
    background: #9495c5;
    color: #fdeef4;
}

.shop-promo-inner {
    width: min(calc(100% - 2rem), 1200px);
    margin-inline: auto;
    padding-block: clamp(32px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
}

.shop-promo-copy {
    min-width: 0;
}

.shop-promo-copy h2 {
    max-width: 18ch;
    margin: 0 0 18px;
    font-family: inherit;
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: #fdeef4;
    text-wrap: balance;
}

.shop-promo-copy p {
    max-width: 44ch;
    margin: 0 0 26px;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
    color: #fdeef4;
}

.shop-promo .shop-promo-button {
    background: #e9609b;
    border-color: #e9609b;
    color: #fdeef4;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease;
}

.shop-promo-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.shop-promo-art img {
    display: block;
    width: min(100%, 360px);
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .shop-promo .shop-promo-button:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 650px) {
    .shop-promo-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .shop-promo-copy h2,
    .shop-promo-copy p {
        margin-inline: auto;
    }

    .shop-promo-art img {
        width: min(70%, 240px);
        max-height: 190px;
    }
}
/* Potpis izrade sajta — desno i sitnije na računaru. */
@media (min-width: 769px) {
    .site-footer .footer-inner > span:last-child {
        margin-left: auto;
        text-align: right;
        font-size: 12px;
    }

    .site-footer .footer-inner > span:last-child a {
        font-size: inherit;
    }
}
@media (min-width: 769px) {
    .site-footer .footer-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .site-footer .footer-credit {
        margin-left: auto;
        text-align: right;
        font-size: 12px;
    }

    .site-footer .footer-credit a {
        font-size: inherit;
    }
}
/* Kategorije u hederu. */
.store-header .store-navigation {
    min-width: 0;
    flex-wrap: wrap;
}

.store-header .header-categories-desktop {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.store-header .header-categories-desktop a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fdeef4;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.store-header .header-categories-desktop a[aria-current="page"] {
    font-weight: 800;
}

.store-header .header-categories-mobile {
    display: none;
}

@media (max-width: 900px) {
    .store-header .header-categories-desktop {
        display: none;
    }

    .store-header .header-categories-mobile {
        display: block;
        position: relative;
        color: #fdeef4;
    }

    .store-header .header-categories-mobile summary {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 6px 10px;
        border: 1px solid rgba(253, 238, 244, 0.5);
        border-radius: 12px;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        list-style: none;
        cursor: pointer;
    }

    .store-header .header-categories-mobile summary::-webkit-details-marker {
        display: none;
    }

    .store-header .header-categories-mobile summary:focus-visible {
        outline: 3px solid #fdeef4;
        outline-offset: 3px;
    }

    .store-header .category-menu-arrow {
        margin-left: 4px;
    }

    .store-header .header-categories-mobile[open] .category-menu-arrow {
        transform: rotate(180deg);
    }

    .store-header .header-category-options {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 10;
        width: 210px;
        max-width: calc(100vw - 32px);
        max-height: 55vh;
        overflow-y: auto;
        padding: 8px;
        border: 1px solid #d4d7ed;
        border-radius: 16px;
        background: #e9eaf6;
        box-shadow: 0 12px 28px rgba(78, 95, 164, 0.18);
    }

    .store-header .header-category-options a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 10px;
        color: #4e5fa4;
        background: transparent;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
        text-decoration: none;
        transform: none;
    }

    .store-header .header-category-options a:hover,
    .store-header .header-category-options a[aria-current="page"] {
        color: #fdeef4;
        background: #4e5fa4;
        text-decoration: none;
        transform: none;
    }
}
@media (min-width: 901px) {
    .store-header .header-categories-desktop {
        display: contents;
    }

    .store-header .store-navigation {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
    }

    .store-header .store-navigation a {
        margin-inline: 0;
    }
}
