/*
.home-categories
{
    display:none !important;
}
*/



#nav-main
{
    border-bottom:none;
}

#upper-hero
{
    height:185px;
}
#hero
{
    z-index: 1;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
    height: auto;
    background-image: url('https://nanika.pl/wp-content/themes/nanika-theme/assets/images/front-page/nanika-hero.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 100%;
}
#hero::before
{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to right, var(--color-bg) 20%, rgba(255,255,255,0) 80%);
}
#hero-container
{
    width:1250px;
    margin:50px 20px;
}
#hero-container span
{
    text-transform: uppercase;
    font-size: 12px;
    color: var(--color-acc);
    letter-spacing: 2px;
}
#hero-container h1
{
    text-transform: uppercase;
    font-size: 65px;
    padding: 20px 0px;
}
#hero-container p
{
    font-size: 18px;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.5;


}
#hero-container a
{
    background-color:var(--color-button);
    padding:13px 20px;
    color:white;
    margin: 30px 0px;
    display: inline-block;
    border-radius: 5px;
    font-size:15px;
    font-weight: 300;
}
@media (max-width:930px)
{
    #upper-hero
    {
        height:100px;
    }
    #hero
    {
        background-position-x: 70%;
    }
    #hero-container h1
    {
        font-size: 55px;
    }
}
@media (max-width:767px)
{
    #hero
    {
        background-position-x: 70%;
    }
    #hero::before
    {
        background:linear-gradient(to right, #f5f4f1bd 60%, rgb(255 255 255 / 53%) 100%);
    }
    #hero-container
    {
        padding: 0px 200px 0px 0px;
    }
    #hero-container h1
    {
        font-size: 45px;
    }
}
@media (max-width:600px)
{
    #hero-container
    {
        padding: 0px 200px 0px 0px;
    }
    #hero-container h1
    {
        font-size: 35px;
    }
}
@media (max-width:510px)
{
    #hero-container
    {
        padding: 0px 100px 0px 0px;
    }
}
@media (max-width:510px)
{
    #hero-container
    {
        padding: 0px 30px 0px 0px;
    }
}
#hero-tags
{
    width:100%;
    display: flex;
    justify-content: center;
    background-color: var(--color-bg2);
}
#hero-tags-container
{
    width:1250px;
    display:grid;
    gap:20px;
    margin: 0px 20px;
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1112px)
{
    #hero-tags-container
    {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 677px)
{
    #hero-tags-container
    {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 455px)
{
    #hero-tags-container
    {
        padding: 20px 0px;
    }
    #hero-tags-container .hero-tag
    {
        display:grid;
        margin: 10px 0px;
    }
    .hero-tag #span
    {
        width:100%;
    }
}
.hero-tag
{
    width:100%;
    display:flex;
    margin: 30px 0px;
    align-items: center;
    gap: 10px;
}
.hero-tag img
{
    width:20%;
    max-width:30px;
    object-fit:contain;
}
.hero-tag span
{
    width:80%;
    font-size:14px;
}
/* popular categories */
.home-categories
{
    margin:40px 20px;
    display: flex;
    justify-content: center;
}
.home-categories-container
{
    width:1250px;
}
.section-title
{
    font-size:24px;
    margin-bottom:10px;
}

.home-categories-grid
{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:10px;
}
.category-card
{
    position:relative;
    display:block;
    border-radius:5px;
    overflow:hidden;
    aspect-ratio:5 / 3.7;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-card:hover
{
    transform:translateY(-4px);
}
.category-card img
{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.category-card-content
{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:space-evenly;
    padding:20px;
    background: linear-gradient(to right, rgba(239, 236, 231, 0.67), rgba(239, 236, 231, 0.15) 60%, transparent);
}
.category-card h3
{
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}
.category-card span
{
    font-size:12px;
    font-weight:500;
}
@media (max-width:1200px)
{
    .home-categories-grid
    {
        grid-template-columns:repeat(4,1fr);
    }
}
@media (max-width:768px)
{
    .home-categories-grid
    {
        grid-template-columns:repeat(2,1fr);
    }
}

.home-editorial,.home-new,.home-philosophy,.home-journal
{
    display:flex;
    justify-content:center;
    padding:95px 20px;
}

.home-editorial
{

}

.home-editorial-grid
{
    display:grid;
    grid-template-columns:1.4fr 1.2fr;
    gap:75px;
    align-items:center;
}

.home-editorial-copy h2, .home-section-head h2, .home-journal h2
{
    font:400 clamp(30px,5vw,40px)/.98 var(--serif);
    margin:15px 0 10px;
}

.home-editorial-copy p
{
    max-width:480px;
    font-size:18px;
    line-height:1.5;
    margin-bottom:28px;
    font-weight:300;
}

.home-editorial-products
{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.home-editorial-products a div
{
    aspect-ratio:4/5;
    overflow:hidden;
    background:white;
    border-radius:5px;
}

.home-editorial-products img
{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .7s;
}

.home-editorial-products a:hover img
{
    transform:scale(1.035);
}

.home-editorial-products a>span
{
    display:block;
    font:400 17px var(--serif);
    color:var(--color-text);
    margin-top:10px;
}

.home-philosophy
{
    position: relative;
    overflow: hidden;
    background: var(--color-bg2);
}

/* Zdjęcie – prawa część sekcji */
.home-philosophy::before
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 65%;
    height: 100%;

    background-image: url('../images/front-page/nanika-about-us.jpg');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;

    z-index: 0;
}

/* Gradient */
.home-philosophy::after
{
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        var(--color-bg2) 0%,
        var(--color-bg2) 35%,
        #efece700 50%
    );

    z-index: 1;
    pointer-events: none;
}

/* Treść sekcji nad zdjęciem i gradientem */
.home-philosophy > *
{
    position: relative;
    z-index: 2;
}

.home-philosophy > .home-categories-container
{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-philosophy-int
{

}

.home-philosophy blockquote
{
    font:400 clamp(30px,6vw,40px)/.95 var(--serif);
    margin:24px auto 10px;
    max-width:900px;
}

.home-philosophy p
{
    font-size:18px;
    font-weight:300;
    line-height:1.5;
    margin-bottom:30px;
}

.home-section-head
{
    display:flex;
    align-items:end;
    justify-content:space-between;
    margin-bottom:28px;
}

.home-section-head a
{
    font-size:14px;
    text-transform:uppercase;
}

.home-new .products
{
    grid-template-columns:repeat(5,1fr);
}

.nanika-product-card
{
    background-color: var(--color-bg2);
    border: none;

}

.product-card-body
{
    padding:16px;
}

.product-card-price
{
    margin-bottom:0px;
}
.product-card-actions
{
    display:none;
}

.home-journal
{
    min-height:440px;
    align-items:center;
    background:linear-gradient(rgba(25,25,25,.35),rgba(25,25,25,.35)),url('../images/front-page/nanika-hero.png') center/cover no-repeat;
}

.home-journal-inner
{
    color:#fff;
    text-align:center;
}

.home-journal .nanika-eyebrow,.home-journal h2,.home-journal p
{
    color:#fff;
}

.home-journal p
{
    max-width:560px;
    margin:auto;
    line-height:1.7;
    font-size:18px;
}

@media(max-width:900px)
{
    #hero-container p, .home-editorial-copy p, .home-philosophy p, .home-journal p
    {
        font-size:16px;
    }
    .home-editorial-grid
    {
        grid-template-columns:1fr;
        gap:45px;
    }

    .home-editorial-grid > *:first-child
    {
        order: 2;
    }

    .home-editorial-grid > *:last-child
    {
        order: 1;
    }

    .home-new .products
    {
        grid-template-columns:repeat(2,1fr);
    }
    .home-philosophy > .home-categories-container
    {
        grid-template-columns: repeat(1, 1fr);
    }
    .home-philosophy::after
    {
        background: linear-gradient(to right, var(--color-bg2) 0%, var(--color-bg2) 35%, #efece700 100%);
    }

}

@media(max-width:650px)
{
    .home-editorial,.home-new,.home-philosophy,.home-journal
    {
        padding:65px 14px;
    }

    .home-editorial-products
    {
        gap:10px;
    }

    .home-section-head
    {
        align-items:flex-start;
    }

    .home-categories-grid
    {
        grid-template-columns:repeat(2,1fr);
    }

    .home-new .products
    {
        gap:22px 10px;
    }

}




/* Serduszka produktów na stronie głównej */
.home .product-card-favourite,
.home .nanika-wishlist-toggle.product-card-favourite
{
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.home-editorial-product
{
    min-width: 0;
}

.home-editorial-product__image
{
    position: relative;
}

.home-editorial-product__image > a
{
    display: block;
}

.home-editorial-product__wishlist
{
    top: 14px !important;
    right: 14px !important;
}

.home-editorial-product__title
{
    display: block;
    margin-top: 12px;
}

.home-editorial-product__image
{
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: white;
    border-radius: 5px;
}

.home-editorial-product__image a
{
    width: 100%;
    height: 100%;
}

.home-editorial-product__image img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s;
}

.home-editorial-product__image a:hover img
{
    transform: scale(1.035);
}

.home-editorial-product__title
{
    font: 400 17px var(--serif);
    color: var(--color-text);
}
