/* ===========================================
   CSS Variables - Globalne kolory i ustawienia
   =========================================== */
:root {
    --primary-color: #233362;
    --primary-hover: #1a254b;
    --secondary-color: #007bff;
    --accent-color: #ffc107;
    --text-color: #333333;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-duration: 0.3s;
    --radius: 8px;
}

/* ===========================================
   Reset and Base Styles
   =========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================================
   Global Containers
   =========================================== */
.container,
.container-fluid {
    padding: 0 15px;
}

/* ===========================================
   Navbar Styles (Desktop)
   =========================================== */
.navbar {
    background-color: #ffffff;
    padding-top: 14px;
    border-bottom: none !important;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: #333333;
    font-size: 1em;
    padding: 15px 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-toggler {
    border: none;
}

.navbar-nav .dropdown-menu {
    background-color: #ffffff;
    border: none !important;
    box-shadow: none !important;
}

.navbar-nav .dropdown-item {
    color: #333333;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

/* ===========================================
   Heading & Section Styles
   =========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    color: #222222;
    margin-bottom: 20px;
}

h2,
h3,
h4 {
    font-size: 1.4rem;
    font-weight: 500;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 0 !important;
}

.section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

.section.bg-light {
    background-color: #ffffff;
}

.section.text-center {
    text-align: center;
}

/* ===========================================
   Card & Gallery Styles
   =========================================== */
.card {
    background-color: #ffffff;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.photo-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.photo-tile:hover {
    transform: scale(1.03);
}

.photo-tile img {
    width: 100%;
    display: block;
    border-radius: 0 !important;
}

/* Nakładka na zdjęcia */
.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-tile:hover .caption-overlay {
    opacity: 1;
}

/* ===========================================
   Button Styles
   =========================================== */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    border: none !important;
    border-radius: 0 !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.btn-primary,
.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #007bff !important;
    border: 1px solid #007bff !important;
}

.btn-outline-primary:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
}

/* ===========================================
   Footer Styles
   =========================================== */
.footer {
    background-color: #ffffff;
    color: #333333;
    padding: 20px 0;
    text-align: center;
    border-top: none !important;
}

.footer a {
    color: #007bff !important;
    text-decoration: none;
}

.footer a:hover {
    color: #0056b3 !important;
}

/* ===========================================
   Scroll to Top Button
   =========================================== */
.scroll-to-top {
    background-color: #007bff !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: #ffffff !important;
    text-align: center;
    transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #0056b3 !important;
}

/* ===========================================
   Form Styles
   =========================================== */
.form-group label {
    font-weight: bold;
    color: #333333 !important;
}

.form-control {
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #333333 !important;
    padding: 10px;
    border-radius: 0 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5) !important;
}

/* ===========================================
   Table Styles for DataTables
   =========================================== */
table {
    width: 100% !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    border-collapse: collapse !important;
}

th,
td {
    padding: 8px !important;
    border: none !important;
}

th {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-weight: bold !important;
}

tr:hover {
    background-color: #f1f1f1 !important;
}

/* ===========================================
   Responsive Adjustments (Desktop-specific)
   =========================================== */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        color: #666666 !important;
    }
}

@media (max-width: 768px) {

    .card,
    .photo-tile {
        height: auto !important;
    }
}

/* ===========================================
   Additional Animations & Custom Classes
   =========================================== */
.animate__animated.animate__fadeIn,
.animate__animated.animate__fadeInUp {
    animation-duration: 1s !important;
}

.biz-title {
    font-family: 'Calibri', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Icon color classes */
.icon-primary {
    color: #007bff !important;
}

.icon-success {
    color: #28a745 !important;
}

.icon-warning {
    color: #ffc107 !important;
}

.icon-danger {
    color: #dc3545 !important;
}

/* Animations for Cart Count */
.cart-count {
    animation: cartBounce 1s infinite alternate;
}

@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

/* ===========================================
   Menu Hover Effects
   =========================================== */
.menu-hover {
    transition: color 0.3s ease-in-out;
}

.menu-hover:hover {
    color: rgb(155, 9, 9) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ===========================================
   Nav Tabs (zakładki)
   =========================================== */
.nav-tabs .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 0;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: #fff !important;
    border-color: #007bff;
}

.nav-tabs .nav-link:not(.active) {
    color: #007bff;
}

.tab-content {
    border: 1px solid #007bff;
    border-top: none;
    padding: 15px;
    background-color: #fff;
}

/* ===========================================
   Map Container & Provider (if used)
   =========================================== */
#map {
    height: calc(100vh - 420px);
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
}

#mapProviderContainer {
    margin-bottom: 15px;
}
        

        .flash-messages {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1050;
            width: 90%;
            max-width: 350px;
            pointer-events: none;
            /* Zapobiega blokowaniu kliknięć na tle */
        }
    
        .flash-messages .alert {
            pointer-events: all;
            /* Pozwala na interakcję z komunikatem */
            margin-bottom: 10px;
            border-radius: var(--radius);
            animation: slideInFromTopRight 0.5s ease-out;
        }
    
        /* Kluczowa animacja - wysuwanie z górnego prawego rogu */
        @keyframes slideInFromTopRight {
            0% {
                opacity: 0;
                transform: translate(50px, -50px);
            }
    
            100% {
                opacity: 1;
                transform: translate(0, 0);
            }
        }
    
        /* Opcjonalnie: Automatyczne ukrywanie flash messages po 5 sekundach */
        @media (max-width: 768px) {
            .flash-messages .alert {
                animation: slideInFromTopRight 0.5s ease-out, fadeOut 0.5s ease-out 4.5s forwards;
            }
        }
    
        @keyframes fadeOut {
            from {
                opacity: 1;
            }
    
            to {
                opacity: 0;
                transform: translate(0, -20px);
            }
        }



.photo-card {
    position: relative;
     overflow: hidden;
   }
            
 .photo-card .overlay {
   transition: opacity 0.3s ease-in-out;
  opacity: 0;
   }
            
.photo-card:hover .overlay {
 opacity: 1;
                        }





                                                  /* Ogólne style modala */
                                                  .modal-content {
                                                      border: none;
                                                      border-radius: 10px;
                                                      overflow: hidden;
                                                  }
                        
                                                  /* Kontener produktu */
                                                  .product-container {
                                                      max-width: 800px;
                                                      margin: 0 auto;
                                                      background: #fff;
                                                      padding: 20px;
                                                      border-radius: 10px;
                                                  
                                                      position: relative;
                                                  }
                        
                                                  /* Karuzela głównych zdjęć */
                                                  .product-carousel .carousel-item {
                                                      text-align: center;
                                                  }
                        
                                                  .product-carousel img {
                                                      width: 100%;
                                                      max-height: 60vh;
                                                      object-fit: contain;
                                                      border-radius: 8px;
                                                  }
                        
                                                  /* Niestandardowe przyciski nawigacyjne z miniaturkami */
                                                  .custom-prev,
                                                  .custom-next {
                                                      position: absolute;
                                                      top: 50%;
                                                      width: 70px;
                                                      height: 70px;
                                                      margin-top: -35px;
                                                      background-size: cover;
                                                      background-position: center;
                                                      border: 2px solid #fff;
                                                      border-radius: 50%;
                                                      cursor: pointer;
                                                      z-index: 10;
                                                      opacity: 0.9;
                                                  }
                        
                                                  .custom-prev {
                                                      left: -80px;
                                                  }
                        
                                                  .custom-next {
                                                      right: -80px;
                                                  }
                        
                                                  /* Informacje o produkcie */
                                                  .product-info h2 {
                                                      font-size: 2rem;
                                                      margin-bottom: 10px;
                                                  }
                        
                                                  .product-info p {
                                                      font-size: 1rem;
                                                  }
                        
                                                  /* Sekcja metadanych */
                                                  .metadata-section {
                                                      margin-top: 20px;
                                                      background: #f9f9f9;
                                                      padding: 15px;
                                                      border-radius: 5px;
                                                      border: 1px solid #ddd;
                                                  }
                        
                                                  .metadata-section h5 {
                                                      font-size: 1.2rem;
                                                      color: #084e03;
                                                      margin-bottom: 10px;
                                                  }
                        
                                                  .metadata-section ul {
                                                      list-style: none;
                                                      padding-left: 0;
                                                  }
                        
                                                  .metadata-section ul li {
                                                      padding: 5px 0;
                                                      border-bottom: 1px dotted #ccc;
                                                  }
                        
                                                  .metadata-section ul li:last-child {
                                                      border-bottom: none;
                                                  }
                        
                                                  /* Przycisk akcji */
                                                  .action-buttons a,
                                                  .action-buttons button {
                                                      margin: 5px;
                                                  }
                        
                                                  /* Sekcja polubień */
                                                  .like-section {
                                                      text-align: center;
                                                      margin-top: 20px;
                                                  }
                        
                                                  .like-section h4 {
                                                      font-size: 1.5rem;
                                                  }
                        
                                                  .like-section p {
                                                      margin-bottom: 10px;
                                                  }
                        
                                                  /* Oceny - gwiazdki */
                                                  .star-rating label {
                                                      font-size: 2rem;
                                                      color: #ddd;
                                                      cursor: pointer;
                                                      transition: color 0.2s;
                                                  }
                        
                                                  /* Komentarze */
                                                  .comments-section .list-group-item {
                                                      display: flex;
                                                      align-items: flex-start;
                                                  }
                        
                                                  .comments-section img {
                                                      width: 50px;
                                                      height: 50px;
                                                      object-fit: cover;
                                                      border-radius: 50%;
                                                      margin-right: 15px;
                                                  }
                        
                                                  .comments-section .list-group-item p {
                                                      margin: 0;
                                                  }


