/*
 * Piekarnia-Cukiernia Gaj — jedyny motyw strony, odwzorowany z projekt_1.html.
 * Sekcja 1: style przeniesione 1:1 z projekt_1.html.
 * Sekcja 2: uzupełnienia dla elementów dynamicznych (koszyk, modal, pozostałe podstrony),
 *           utrzymane w tej samej palecie barw i typografii.
 */

html {
    scroll-padding-top: 90px;
}

:root {
    --cream: #fdf6ee;
    --gold: #c9a96e;
    --dark-brown: #3e2723;
    --medium-brown: #6d4c41;
    --warm-beige: #f5e6d3;
    --accent: #b8860b;
    --text-dark: #2c1810;
    --text-medium: #5d4037;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    padding-top: 90px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark-brown);
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background-color: rgba(253, 246, 238, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--gold);
    padding: 0.2rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark-brown);
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-custom .navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-custom .navbar-brand span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--medium-brown);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.navbar-custom .nav-link {
    font-weight: 500;
    color: var(--text-medium) !important;
    padding: 0.6rem 1rem !important;
    margin: 0 0.15rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent) !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: 2px solid var(--gold);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.4);
}

.navbar-custom .navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar-custom .navbar-actions .action {
    background: none;
    border: 0;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    font-family: 'Poppins', sans-serif;
}

.navbar-custom .navbar-actions .action .icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 2px;
}

.navbar-custom .navbar-actions .action:hover {
    color: var(--accent);
}

.cart-count {
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    margin-left: 2px;
    padding: 0 3px;
}

/* ===== HERO CAROUSEL – żywe i kolorowe zdjęcia ===== */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    height: 550px;
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: saturate(1.3) contrast(1.05) brightness(1.05);
    transition: transform 0.3s ease;
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-carousel .carousel-caption {
    z-index: 2;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
}

.hero-carousel .carousel-caption h2 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-carousel .carousel-caption p {
    font-size: 1.2rem;
    color: #f0e6d8;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-carousel .btn-hero {
    background-color: var(--gold);
    color: var(--dark-brown);
    border: none;
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    display: inline-block;
}

.hero-carousel .btn-hero:hover {
    background-color: #b8955a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.5);
    color: white;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 2px solid white;
    opacity: 0.7;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--accent);
    width: 14px;
    height: 14px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(201, 169, 110, 0.8);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
}

.section-title .subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--medium-brown);
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-title .ornament {
    font-size: 1.8rem;
    color: var(--gold);
    display: block;
    margin-top: 0.5rem;
}

/* ===== PRODUCTS SECTION ===== */
.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .badge-custom {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--gold);
    color: var(--dark-brown);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.product-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.product-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
}

.product-card .category-tag {
    display: inline-block;
    background: #fff;
    color: var(--dark-brown);
    border: 1px solid var(--gold);
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.product-card .card-text {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-card .price {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 0.8rem;
}

.product-card .btn-add {
    background-color: var(--dark-brown);
    color: var(--gold);
    border: none;
    padding: 0.5rem 1.4rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.9rem;
    transition: all 0.3s ease;
}

.product-card .btn-add:hover {
    background-color: var(--gold);
    color: var(--dark-brown);
}

.category-filter-bar {
    text-align: center;
    margin: -1.5rem 0 2.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.category-filter-bar button {
    border: 1px solid var(--gold);
    background: none;
    color: var(--text-medium);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ===== BAKERY & CONFECTIONERY SECTIONS ===== */
.bakery-section {
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--cream) 100%);
    padding: 3rem 0;
}

.bakery-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bakery-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bakery-image:hover img {
    transform: scale(1.03);
}

.bakery-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.7), transparent);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
}

.bakery-image .image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.feature-list li i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* ===== HISTORY TIMELINE ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item .timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.2);
    width: 85%;
    position: relative;
}

.timeline-item .timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--cream);
    box-shadow: 0 0 0 3px var(--gold);
    z-index: 2;
}

.timeline-item .year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

/* ===== NEWS SECTION ===== */
.news-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .date-badge {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.news-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
 
    color: #f0e6d8;
}

.contact-section h2 {
    color: #fff;
}

.contact-section .section-title .subtitle {
    color: #d4c5b0;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 169, 110, 0.4);
}

.contact-info-card h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: #d4c5b0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info-card i {
    color: var(--gold);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.contact-form .form-control::placeholder {
    color: #a09080;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.3);
    color: #fff;
}

.contact-form .btn-submit {
    background-color: var(--gold);
    color: var(--dark-brown);
    border: none;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.contact-form .btn-submit:hover {
    background-color: #b8955a;
    transform: translateY(-2px);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c1810;
    color: #d4c5b0;
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--gold);
}

.footer h5 {
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer a {
    color: #d4c5b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--gold);
}

.footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer .footer-logo img {
    height: 80px;
    width: auto;
}

.footer .footer-logo span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #d4c5b0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.6rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer .social-links a:hover {
    background: var(--gold);
    color: var(--dark-brown);
    transform: translateY(-3px);
}

.footer .copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #8a7a6a;
}

/* ===== RESPONSIVE (projekt_1) ===== */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-custom .navbar-brand img {
        height: 60px;
    }
    .hero-carousel .carousel-item {
        height: 400px;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 2rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-item .timeline-dot {
        left: 20px;
        transform: translate(-50%, -50%);
    }
    .timeline-item .timeline-content {
        width: 100%;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: 320px;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 1.6rem;
    }
    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }
    .hero-carousel .btn-hero {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    .section-title h2 {
        font-size: 1.7rem;
    }
    .bakery-image img {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-item {
        height: 260px;
    }
    .hero-carousel .carousel-caption {
        bottom: 10%;
        padding: 1rem;
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 1.3rem;
    }
    .hero-carousel .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    .hero-carousel .btn-hero {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* =====================================================================
 * Uzupełnienia dla elementów dynamicznych apki (koszyk, modal zamówienia,
 * pozostałe podstrony: aktualności, kategorie, strony CMS), w tej samej
 * palecie i typografii co projekt_1.
 * ===================================================================== */

.wrap { max-width: 1400px; margin: auto; padding: 0 20px; }
.section { padding: 2rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h1, .section-head h2 { font-size: 2.2rem; margin: 0; }
.section-head p { color: var(--text-medium); margin-top: 0.4rem; }

.eyebrow {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    background-color: var(--gold);
    color: var(--dark-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn:hover { background-color: #b8955a; color: var(--dark-brown); transform: translateY(-2px); }
.btn.light { background: #fff; color: var(--dark-brown); border: 1px solid var(--gold); }
.btn.light:hover { background: var(--warm-beige); }
.btn.light.active { background: var(--gold); border-color: var(--gold); }

.category-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;  font-size: 0.85rem; }
.category-breadcrumb a { color: var(--accent); text-decoration: none; }
.category-breadcrumb a:hover { text-decoration: underline; }
.category-breadcrumb-sep { color: var(--text-medium); opacity: 0.6; }
.category-breadcrumb-current { color: var(--text-medium); font-weight: 600; }

.category-pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.category-pill-row-sub { padding-top: 1rem; border-top: 1px dashed var(--gold); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post-card, .post-card:hover { text-decoration: none; color: inherit; }
.post-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.06); transition: all 0.4s ease; display: block; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card .pc-body { padding: 1.5rem; }
.post-card time { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.post-card h3 { font-size: 1.2rem; margin: 0.6rem 0; }
.post-card p { color: var(--text-medium); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.post-title { font-size: 2.4rem; margin: 0.8rem 0; }
.post-meta { color: var(--gold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 1.8rem; }
.post-body { line-height: 1.8; color: var(--text-medium); white-space: pre-line; max-width: 760px; }

@media (max-width: 950px) {
    .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

/* Koszyk / modal zamówienia */
.drawer { position: fixed; inset: 0; z-index: 1050; background: rgba(44,24,16,0.55); opacity: 0; pointer-events: none; transition: 0.25s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { margin-left: auto; width: min(440px, 100%); height: 100%; background: var(--cream); padding: 1.6rem; overflow: auto; transform: translateX(100%); transition: 0.25s; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--gold); padding-bottom: 1rem; }
.drawer-head h2 { font-size: 1.5rem; }
.close { background: none; border: 0; font-size: 1.8rem; color: var(--text-medium); cursor: pointer; }
.cart-row { display: grid; grid-template-columns: 64px 1fr; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid rgba(201,169,110,0.3); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-row small { display: block; color: var(--text-medium); margin-top: 0.3rem; }
.qty { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.qty button { border: 1px solid var(--gold); background: #fff; border-radius: 6px; padding: 2px 9px; cursor: pointer; }
.qty .del { margin-left: auto; border: 0; color: #a33; background: none; cursor: pointer; }
.cart-footer { padding-top: 1.2rem; }
.cart-total { font-weight: 700; color: var(--accent); }
.empty { color: var(--text-medium); }

.modal { position: fixed; inset: 0; background: rgba(44,24,16,0.6); z-index: 1060; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-box { width: min(600px, 100%); max-height: 90vh; overflow: auto; background: var(--cream); padding: 1.8rem; border-radius: 16px; }
.modal-box h2 { font-size: 1.8rem; }
.modal-close { float: right; background: none; border: 0; font-size: 1.6rem; color: var(--text-medium); cursor: pointer; }

.form { display: grid; gap: 0.8rem; }
.form input, .form textarea, .form select { width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(109,76,65,0.3); background: #fff; border-radius: 10px; font-family: 'Poppins', sans-serif; }
.form textarea { min-height: 110px; }
.form button[type="submit"] { padding: 0.8rem; border-radius: 30px; background: var(--gold); color: var(--dark-brown); font-weight: 700; border: 0; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.form button[type="submit"]:hover { background: #b8955a; }

.toast { position: fixed; z-index: 1080; bottom: 25px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--dark-brown); color: #fff; padding: 0.9rem 1.4rem; border-radius: 25px; transition: 0.25s; font-size: 0.9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1090; background: var(--dark-brown); color: #fdf6ee; box-shadow: 0 -4px 18px rgba(0,0,0,0.2); transform: translateY(100%); transition: transform 0.35s ease; }
.cookie-consent.show { transform: translateY(0); }
.cookie-consent__inner { max-width: 1100px; margin: 0 auto; padding: 1.1rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.cookie-consent__text { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #f5e6d3; flex: 1 1 420px; }
.cookie-consent__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-consent__accept { background: var(--gold); color: var(--dark-brown); font-weight: 600; border: 0; padding: 0.4rem 1.2rem; border-radius: 25px; }
.cookie-consent__accept:hover { background: #b8955a; color: var(--dark-brown); }
.cookie-consent .btn-outline-light { border-radius: 25px; padding: 0.4rem 1.1rem; }
@media (max-width: 575.98px) {
    .cookie-consent__inner { padding: 1rem; }
    .cookie-consent__actions { width: 100%; justify-content: flex-end; }
}


.navbar-custom .navbar-brand span {
  font-size: 0.95rem;
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--medium-brown);
  letter-spacing: 2px;
  text-transform: uppercase;
  
}
/* ===== PODGLĄD PRODUKTU (modal po kliknięciu w kartę) ===== */
.product-card[role="button"] { cursor: pointer; }
.product-preview {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(44, 24, 16, 0.75);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.product-preview.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}
.product-preview__box {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(30px) scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-preview.open .product-preview__box { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .product-preview, .product-preview__box { transition: none; }
}
.product-preview__img {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: var(--cream);
}
.product-preview__name {
    font-family: 'Playfair Display', serif;
    color: var(--dark-brown);
    text-align: center;
    margin: 0;
    padding: 1.1rem 1rem 1.3rem;
}
.product-preview__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-brown);
    font-size: 1.6rem;
    line-height: 1;
    z-index: 1;
}
.product-preview__close:hover { background: var(--gold); }
