:root {
    --blue: #173f91;
    --blue-dark: #113470;
    --paper: #f8f4ec;
    --paper-light: #fdfbf7;
    --stone: #d8c8b2;
    --text: #173b7d;
    --line: rgba(23,63,145,.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;

    color: var(--text);
    background: var(--paper-light);

    font-family:
        Baskerville,
        "Iowan Old Style",
        "Palatino Linotype",
        Georgia,
        serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: 86px;

    background:
        linear-gradient(
            90deg,
            #f6f1e9 0%,
            #fbf9f5 55%,
            #f7f2e9 100%
        );

    box-shadow:
        0 8px 25px rgba(28,42,67,.035);
}

.header-inner {
    position: relative;

    max-width: 1500px;
    height: 86px;

    margin: 0 auto;
    padding: 0 32px;

    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 25px;
}


/* pravi originalni logo */

.brand {
    position: relative;
    z-index: 110;

    height: 86px;

    display: flex;
    align-items: flex-start;
}

.brand img {
    width: 102px;
    height: 102px;

    display: block;

    object-fit: contain;

    transform: translateY(0);

    filter:
        drop-shadow(0 9px 15px rgba(25,45,90,.09));
}


/* MENU */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

.main-nav a {
    padding: 10px 19px;

    border: 1px solid rgba(23,63,145,.11);
    border-radius: 999px;

    background: rgba(255,255,255,.38);

    font-size: 16px;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.main-nav a:hover {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);

    transform: translateY(-1px);
}


/* header icons */

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-button {
    position: relative;

    width: 45px;
    height: 45px;

    padding: 10px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--blue);

    cursor: pointer;

    transition: background .18s ease;
}

.icon-button:hover {
    background: rgba(23,63,145,.06);
}

.icon-button svg,
.product-cart svg,
.info-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-button span {
    position: absolute;

    right: 0;
    top: 0;

    width: 19px;
    height: 19px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #fff;
    background: var(--blue);

    font: 11px Arial,sans-serif;
}


/* ======================================================
   HERO
   knjige nema
   ====================================================== */

.hero {
    position: relative;

    height: 535px;

    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(
            90deg,
            #efe7da 0%,
            #f7f3eb 39%,
            #e8f0f3 100%
        );
}


/*
   lijevi kamen.
   Koristimo samo mali rub postojeće slike book-hero,
   jako povećan, pa knjiga ostaje izvan vidljivog kadra.
*/

.hero-stone {
    position: absolute;

    z-index: 1;

    left: 0;
    top: 0;
    bottom: 0;

    width: 37%;

    background-image:
        linear-gradient(
            90deg,
            rgba(248,244,237,.02),
            rgba(248,244,237,0)
        ),
        url("../img/book-hero.jpg");

    background-size:
        auto,
        270% auto;

    background-position:
        center,
        left bottom;

    background-repeat: no-repeat;

    filter:
        saturate(.88)
        contrast(.98);

    -webkit-mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            #000 55%,
            rgba(0,0,0,.86) 72%,
            rgba(0,0,0,.32) 91%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            #000 55%,
            rgba(0,0,0,.86) 72%,
            rgba(0,0,0,.32) 91%,
            transparent 100%
        );
}


/* prava korisnikova slika Trogira */

.hero-trogir {
    position: absolute;

    z-index: 1;

    top: 0;
    right: 0;
    bottom: 0;

    width: 62%;

    overflow: hidden;

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,0,0,.10) 7%,
            rgba(0,0,0,.42) 18%,
            rgba(0,0,0,.76) 29%,
            #000 41%,
            #000 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,0,0,.10) 7%,
            rgba(0,0,0,.42) 18%,
            rgba(0,0,0,.76) 29%,
            #000 41%,
            #000 100%
        );
}

.hero-trogir img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    /* tvoja fotografija: zadržavamo kulu i Čipiko */
    object-position: 52% center;

    filter:
        saturate(.94)
        contrast(1.01)
        brightness(1.03);
}


/* lokalna svijetla zona samo iza teksta */

.hero::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 5%;
    left: 27%;

    width: 51%;
    height: 90%;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 42% 48%,
            rgba(250,248,244,.97) 0%,
            rgba(250,248,244,.94) 32%,
            rgba(250,248,244,.72) 52%,
            rgba(250,248,244,.30) 69%,
            transparent 86%
        );
}


/* mekani prelaz u proizvode */

.hero::after {
    content: "";

    position: absolute;

    z-index: 3;

    left: 0;
    right: 0;
    bottom: 0;

    height: 85px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(249,246,240,.24) 46%,
            rgba(249,246,240,.92) 100%
        );

    pointer-events: none;
}


/* tekst */

.hero-content {
    position: relative;

    z-index: 5;

    width: 50%;
    height: 535px;

    margin-left: 32%;

    padding: 52px 20px 50px 38px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--blue);

    font-family: Arial,sans-serif;
    font-size: 12px;
    font-weight: 500;

    letter-spacing: .27em;
}

.eyebrow i {
    display: inline-block;

    width: 3px;
    height: 3px;

    margin: 0 9px 3px;

    border-radius: 50%;

    background: currentColor;
}

.hero h1 {
    max-width: 720px;

    margin: 0 0 22px;

    color: var(--blue);

    font-size: clamp(46px, 3.55vw, 64px);
    font-weight: 400;

    line-height: .99;
    letter-spacing: -.022em;

    text-transform: uppercase;
}

.hero-content p {
    max-width: 480px;

    margin: 0;

    font-size: 21px;
    line-height: 1.42;
}


/* ======================================================
   PRODUCTS
   ====================================================== */

.products-section {
    position: relative;

    z-index: 10;

    margin-top: -19px;

    padding:
        39px
        max(32px, calc((100% - 1440px) / 2))
        44px;

    border-radius: 30px 30px 0 0;

    background:
        linear-gradient(
            180deg,
            #fcfaf6 0%,
            #faf7f2 100%
        );

    box-shadow:
        0 -15px 38px rgba(245,240,231,.55);
}


.section-heading {
    margin-bottom: 23px;

    display: flex;
    align-items: flex-end;

    gap: 24px;
}

.section-heading h2 {
    margin: 0;

    font-size: 43px;
    font-weight: 400;

    letter-spacing: -.02em;
}

.section-heading a {
    margin-bottom: 4px;

    white-space: nowrap;

    font-size: 15px;
}

.section-heading a span {
    display: inline-block;
    margin-left: 6px;

    transition: transform .18s ease;
}

.section-heading a:hover span {
    transform: translateX(4px);
}

.heading-line {
    flex: 1;

    height: 1px;
    margin-bottom: 10px;

    background:
        linear-gradient(
            90deg,
            rgba(23,63,145,.20),
            rgba(23,63,145,.02)
        );
}


.shop-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 350px;

    gap: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    gap: 18px;
}


/* cards */

.product-card {
    overflow: hidden;

    border: 1px solid rgba(23,63,145,.07);
    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 13px 34px rgba(29,43,69,.06);

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.product-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 42px rgba(29,43,69,.10);
}

.product-image {
    height: 235px;

    overflow: hidden;

    background: #eee8de;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* majice - samo originalna slika; nema blendanja */

.shirt-image {
    background-image:
        url("../img/majice.jpg");

    background-repeat: no-repeat;

    background-size: 200% auto;

    background-color: #eee8df;
}

.shirt-blue {
    background-position: left center;
}

.shirt-cream {
    background-position: right center;
}


/* footer kartice */

.product-footer {
    min-height: 94px;

    padding: 14px 15px 14px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.product-footer h3 {
    margin: 0 0 7px;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.23;
}

.price {
    font-size: 22px;
}

.product-note {
    font: 13px Arial,sans-serif;
}

.product-cart {
    flex: 0 0 auto;

    width: 50px;
    height: 50px;

    padding: 12px;

    border: 1px solid rgba(23,63,145,.65);
    border-radius: 11px;

    background: #fff;
    color: var(--blue);

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease;
}

.product-cart:hover {
    color: #fff;
    background: var(--blue);
}


/* ======================================================
   INFO
   ====================================================== */

.shop-info {
    overflow: hidden;

    border: 1px solid rgba(23,63,145,.07);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f4ed
        );

    box-shadow:
        0 13px 34px rgba(29,43,69,.05);
}

.info-row {
    padding: 24px 22px;

    display: grid;
    grid-template-columns: 52px 1fr;

    gap: 16px;
}

.info-row + .info-row {
    border-top: 1px solid rgba(23,63,145,.08);
}

.info-icon {
    width: 43px;
    height: 43px;

    color: var(--blue);
}

.info-row h3 {
    margin: 0 0 8px;

    font-size: 21px;
    font-weight: 400;
}

.info-row p {
    margin: 3px 0;

    font: 14px/1.4 Arial,sans-serif;
}


/* ======================================================
   VALUES
   ====================================================== */

.values {
    padding:
        28px
        max(32px,calc((100% - 1350px)/2));

    display: grid;
    grid-template-columns: repeat(3,1fr);

    background:
        linear-gradient(
            135deg,
            #ece5da,
            #f7f2ea 50%,
            #ece5d9
        );
}

.values > div {
    padding: 4px 42px;
}

.values > div + div {
    border-left: 1px solid rgba(23,63,145,.13);
}

.values span {
    float: left;

    margin: 4px 22px 20px 0;

    color: rgba(23,63,145,.35);

    font-size: 13px;
    letter-spacing: .12em;
}

.values h3 {
    margin: 0 0 4px;

    font-size: 22px;
    font-weight: 400;
}

.values p {
    margin: 0;

    font: 14px Arial,sans-serif;
}


/* ======================================================
   FOOTER
   ====================================================== */

footer {
    background:
        linear-gradient(
            180deg,
            #f8f5ef,
            #f0ebe2
        );
}

.footer-inner {
    max-width: 1500px;

    margin: 0 auto;
    padding: 30px 32px 34px;

    text-align: center;
}

.footer-links {
    margin-bottom: 17px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 13px 25px;
}

.footer-inner p {
    margin: 0;

    font: 13px Arial,sans-serif;
}


/* ======================================================
   TABLET
   ====================================================== */

@media (max-width: 1100px) {

    .main-nav {
        display: none;
    }

    .header-inner {
        grid-template-columns: 110px 1fr;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .hero-stone {
        width: 42%;
    }

    .hero-trogir {
        width: 64%;
    }

    .hero-content {
        width: 58%;
        margin-left: 27%;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }
}


/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 720px) {

    .site-header,
    .header-inner {
        height: 72px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .brand {
        height: 72px;
    }

    .brand img {
        width: 80px;
        height: 80px;
    }

    .account-button {
        display: none;
    }


    .hero {
        height: auto;
        min-height: 0;

        padding-top: 250px;

        background: #f8f4ed;
    }

    .hero-stone {
        display: none;
    }

    .hero-trogir {
        top: 0;

        width: 100%;
        height: 270px;

        -webkit-mask-image:
            linear-gradient(
                180deg,
                #000,
                #000 68%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                180deg,
                #000,
                #000 68%,
                transparent 100%
            );
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-content {
        width: 100%;
        height: auto;

        margin: 0;

        padding: 30px 21px 42px;

        background:
            linear-gradient(
                180deg,
                rgba(248,244,237,.72),
                #f8f4ed 30%
            );
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }


    .products-section {
        margin-top: -12px;

        padding:
            31px
            17px
            34px;

        border-radius: 21px 21px 0 0;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .heading-line {
        display: none;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 300px;
    }

    .values {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .values > div {
        padding: 18px 6px;
    }

    .values > div + div {
        border-left: 0;
        border-top: 1px solid rgba(23,63,145,.13);
    }
}

/* ======================================================
   HERO FINAL - jedna gotova pozadinska fotografija
   ====================================================== */

.hero {
    position: relative;
    height: 535px;
    min-height: 535px;
    overflow: hidden;

    background-image: url("../img/hero-trogir.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* više ne koristimo zasebni kamen ni zasebnu Trogir sliku */
.hero-stone,
.hero-trogir {
    display: none !important;
}

/* uklanjamo stare maske i magle */
.hero::before,
.hero::after {
    display: none !important;
}

/* tekst sjeda u svijetli dio gotove fotografije */
.hero-content {
    position: relative;
    z-index: 5;

    width: 47%;
    height: 535px;

    margin-left: 27%;
    padding: 50px 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: transparent;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 22px;

    color: var(--blue);

    font-size: clamp(46px, 3.55vw, 64px);
    font-weight: 400;
    line-height: .99;
    letter-spacing: -.022em;
    text-transform: uppercase;
}

.hero-content p {
    max-width: 490px;
    margin: 0;

    font-size: 21px;
    line-height: 1.42;
}

/* proizvodi lagano ulaze u fotografiju */
.products-section {
    margin-top: -18px;
    border-radius: 30px 30px 0 0;
}

@media (max-width: 1100px) {
    .hero-content {
        width: 58%;
        margin-left: 22%;
    }
}

@media (max-width: 720px) {
    .hero {
        height: 520px;
        min-height: 520px;

        background-position: 62% center;
    }

    .hero-content {
        width: 100%;
        height: 520px;

        margin: 0;
        padding: 235px 21px 34px;

        justify-content: flex-end;

        background:
            linear-gradient(
                180deg,
                transparent 20%,
                rgba(248,244,237,.82) 57%,
                rgba(248,244,237,.97) 100%
            );
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }
}


/* =========================================================
   4 PROIZVODA + DISKRETNE INFORMACIJE
   ========================================================= */

.products-grid-four {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

/* više nema starog desnog info-panela */
.shop-layout,
.shop-info {
    display: none !important;
}


/* četvrti proizvod dok ne dobijemo originalnu fotografiju */

.product-coming-soon {
    display: grid;
    place-items: center;

    background:
        linear-gradient(
            145deg,
            #eee7dc,
            #faf7f1
        );
}

.product-coming-soon > div {
    text-align: center;
}

.product-coming-soon span {
    display: block;

    margin-bottom: 12px;

    color: rgba(23,63,145,.28);

    font-size: 48px;
    letter-spacing: .04em;
}

.product-coming-soon small {
    color: rgba(23,63,145,.58);

    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* jedna elegantna linija ispod proizvoda */

.shop-summary {
    margin-top: 24px;
    padding: 17px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px 15px;

    border-top: 1px solid rgba(23,63,145,.08);
    border-bottom: 1px solid rgba(23,63,145,.08);

    color: #173f91;

    font-family: Arial, sans-serif;
    font-size: 13px;
}

.shop-summary i {
    width: 3px;
    height: 3px;

    display: block;

    border-radius: 50%;

    background: rgba(23,63,145,.45);
}

.shop-summary strong {
    font-weight: 600;
}

.shop-summary a {
    margin-left: 10px;

    font-family:
        Baskerville,
        Georgia,
        serif;

    font-size: 15px;

    transition: opacity .18s ease;
}

.shop-summary a:hover {
    opacity: .60;
}


/* tablet */

@media (max-width: 1050px) {

    .products-grid-four {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

}


/* mobitel */

@media (max-width: 620px) {

    .products-grid-four {
        grid-template-columns: 1fr !important;
    }

    .shop-summary {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;

        padding-left: 5px;
        padding-right: 5px;

        border-bottom: 0;
    }

    .shop-summary i {
        display: none;
    }

    .shop-summary a {
        margin: 5px 0 0;
    }

}

