﻿/* ===================================
   STRYSZOW PIEKARNIA STYLES
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans:ital,wght@0,200..900;1,200..900&display=swap');/* Reset & Base Styles */
@font-face {
    font-family: Veracruz; /* set name */
    src: url('veracruz.otf'); /* url of the font */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Veracruz', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Zalando Sans', sans-serif;

}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

    .navbar.scrolled {
        padding: 5px 40px;
        
    }
    .navbar.scrolled img {
        width: 120px;
    }

.nav-logo {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: lowercase;
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

    .nav-links li {
        position: relative;
    }

    .nav-links > li > a {
        color: #333;
        text-decoration: none;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: color 0.3s;
        position: relative;
        padding: 10px 0;
        display: block;
    }

        .nav-links > li > a::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #b8a186;
            transition: width 0.3s;
        }

        .nav-links > li > a:hover {
            color: #b8a186;
        }

            .nav-links > li > a:hover::after {
                width: 100%;
            }

/* Dropdown Menu */


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    border-radius: 8px;
    padding: 15px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

    .dropdown-menu a:hover {
        background: #f5f5f5;
        color: #b8a186;
        border-left-color: #b8a186;
        padding-left: 30px;
    }

/* Social Icons in Nav */
.nav-social {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}
.menu-social {
    display: flex;
    justify-content: center;
    padding: 8px;
    border: 2px solid #b8a186;
    border-radius: 100%;
    cursor: pointer;
}
    .menu-social:hover {
        background: #b8a186;
    }
    

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .hamburger span {
        width: 25px;
        height: 2px;
        background: #333;
        transition: all 0.3s;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* ===================================
   HERO SECTION (Index page)
   =================================== */

.hero {
    height: 100vh;
    margin-top: 70px;
    background: url('https://images.unsplash.com/photo-1509440159596-0249088772ff?w=1600') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    font-size: 14px;
    text-transform: lowercase;
}


.hero h1 {
    font-size: 6.5rem;
    letter-spacing: 10px;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpParagraph 0.5s forwards;
    animation-delay: 2s; /* po animacji liter */
}

@keyframes fadeUpParagraph {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.logo img {
    transform: scale(0) rotateY(0deg);
    animation: logo-appear 1.5s forwards;
    transform-origin: center;
    animation-delay: 2s;
}

@keyframes logo-appear {
    0% {
        transform: scale(0) rotateY(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotateY(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotateY(360deg);
        opacity: 1;
    }
}

/* Animacja liter tekstu */
.animated-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards;
}

.animated-text span.space {
    display: inline-block; /* zachowanie spacji */
    width: 0.5em; /* szerokość spacji */
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PAGE HEADER (Products page)
   =================================== */

.page-header {
    margin-top: 70px;
    padding: 80px 20px 60px;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: white;
    background-color: rgba(0,0,0,.5);
    background-blend-mode: multiply;
}

    .page-header h1 {
        font-size: 3rem;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 6px;
        margin-bottom: 20px;
    }

    .page-header p {
        font-size: 1.2rem;
        font-weight: 300;
        max-width: 600px;
        margin: 0 auto;
    }

.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

    .breadcrumb a {
        color: white;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: border-color 0.3s;
    }

        .breadcrumb a:hover {
            border-bottom-color: white;
        }

/* ===================================
   TAGLINE SECTION
   =================================== */
.animated-paragraph span {
    display: inline; /* inline zamiast inline-block */
    opacity: 0;
    transform: translateY(1em);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .animated-paragraph span.visible {
        opacity: 1;
        transform: translateY(0);
    }

.tagline {
    background: #b5d4d2;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

    .tagline .star {
        font-size: 2rem;
        margin: 30px 0;
    }

    .tagline p {
        font-size: 2.5rem;
        font-weight: 300;
        max-width: 1000px;
        margin: 0 auto;
        line-height: 1.8;
    }

/* ===================================
   PASTRY SECTION
   =================================== */

.pastry-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.pastry-content {
    background: #b8a186;
    padding: 80px 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .pastry-content .star {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .pastry-content h2 {
        font-size: 2rem;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 4px;
        margin-bottom: 30px;
    }

    .pastry-content p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .pastry-content .tagline-small {
        font-style: italic;
        margin-top: 20px;
    }

.pastry-image {
    background: url('https://images.unsplash.com/photo-1549931319-a545dcf3bc73?w=800') center/cover;
}

/* ===================================
   NEWS SECTION
   =================================== */

.news-section {
    background: #b5d4d2;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

    .news-section h2 {
        font-size: 2rem;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 4px;
        margin-bottom: 60px;
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 30px;
}

    .news-card h3 {
        font-size: 1.3rem;
        font-weight: 300;
        margin-bottom: 20px;
    }

    .news-card .star {
        font-size: 1.5rem;
        margin: 20px 0;
    }

    .news-card p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

/* ===================================
   PRODUCTS SECTION (Index page)
   =================================== */
.products-section {
    background: #f5e6d3;
    padding: 80px 20px;
    text-align: center;
}

    .products-section h2 {
        font-size: 2.5rem;
        font-weight: 300;
        color: #b8a186;
        margin-bottom: 60px;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    position: relative;
    height: 400px;
    border-radius: 20px; /* bardziej prostokątny kształt */
    overflow: hidden;
    transition: transform 0.5s ease;
    cursor: pointer;
}

    .product-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease; /* dla efektu zoom */
    }

/* Overlay wstępnie ukryty */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

/* Efekt po najechaniu */
.product-card:hover img {
    transform: scale(1.1); /* delikatne powiększenie tła */
}

.product-card:hover .product-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Styl tekstu */
.product-overlay h3 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.product-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
}
/* ===================================
   CATEGORY FILTER (Products page)
   =================================== */

.category-filter {
    background: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #b8a186;
    color: #b8a186;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

    .category-tab:hover,
    .category-tab.active {
        background: #b8a186;
        color: white;
    }

/* ===================================
   PRODUCTS GALLERY (Products page)
   =================================== */

.products-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #b8a186;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.3rem;
    color: #b8a186;
    font-weight: 400;
    margin-top: 15px;
}

.product-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

    .product-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

/* ===================================
   LIGHTBOX MODAL
   =================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .lightbox.active {
        display: flex;
    }

.lightbox-content {
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #f5f5f5;
}

.lightbox-info {
    padding: 30px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

    .lightbox-close:hover {
        background: #f0f0f0;
    }

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

.info-section {
    background: #b5d4d2;
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

    .info-section h2 {
        font-size: 2.5rem;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 4px;
        margin-bottom: 40px;
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-item {
    padding: 20px;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.8;
}

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

.footer {
    background: #3a3a3a;
    color: white;
    padding: 60px 20px;
    position: relative;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: url('https://images.unsplash.com/photo-1509440159596-0249088772ff?w=1600') center/cover;
        opacity: 0.4;
    }

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a {
    color: white;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

    .social-icons a {
        width: 40px;
        height: 40px;
        border: 1px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

        .social-icons a:hover {
            background: rgba(255, 255, 255, 0.2);
        }

/* Simple footer version for products page */
.footer-simple {
    background: #3a3a3a;
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

    .footer-simple p {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .footer-simple a {
        color: white;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: border-color 0.3s;
    }

        .footer-simple a:hover {
            border-bottom-color: white;
        }

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width: 1024px) {
    .navbar {
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        padding: 30px 20px;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        align-items: stretch;
    }

        .nav-links.active {
            left: 0;
        }

        .nav-links > li {
            border-bottom: 1px solid #eee;
        }

            .nav-links > li > a {
                font-size: 1rem;
                padding: 15px 20px;
            }

    .has-dropdown > a::before {
        float: right;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        background: #f9f9f9;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.active .dropdown-menu {
        max-height: 600px;
    }

    .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        font-size: 0.9rem;
    }

        .dropdown-menu a:hover {
            padding-left: 45px;
        }

    .nav-social {
        border-left: none;
        border-top: 1px solid #ddd;
        margin-left: 0;
        padding-left: 0;
        padding-top: 20px;
        margin-top: 20px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .page-header p {
        font-size: 1rem;
    }

    .pastry-section {
        grid-template-columns: 1fr;
    }

    .pastry-content {
        padding: 60px 30px;
    }

    .tagline p {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .info-section h2 {
        font-size: 2rem;
    }
}