/* === MENU === */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eee !important;
}

.navbar .navbar-brand img {
    max-width: 65px;
}

.navbar-nav .nav-item .nav-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #000;
}

.navbar-toggler {
    border-color: #ddd;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath stroke='rgba(0,0,0,0.55)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar .badge {
    font-size: 0.8rem;
    font-weight: bold;
}
/* Styl podkreślenia aktywnego linku */
.navbar-nav .nav-item .nav-link.active {
    border-bottom: 2px solid #ED68BC; /* Kolor podkreślenia */
    color: #ED68BC !important;
}


/* === MEGA MENU === */
.mega-menu-custom {
    background-color: #ffffff;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.mega-menu-custom.show {
    display: flex !important;
}

.mega-menu-custom .container {
    max-width: 1600px;
    width: 100%;
}

.mega-menu-custom .row {
    justify-content: space-around;
    gap: 20px;
}

.mega-menu-custom .col-md-2 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mega-menu-custom img {
    max-width: 80px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.mega-menu-custom img:hover {
    transform: scale(1.1);
}

.mega-menu-custom a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 16px;
    font-weight: 500;
}

.mega-menu-custom a:hover {
    color: #000;
}

.mega-menu-custom .fw-semibold {
    margin-top: 5px;
    font-weight: 600;
}

/* Animacja rozwijania menu */
.mega-menu-custom.d-none {
    display: none !important;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mega-menu-custom.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}



/*style do ikonek w menu */

.search-bar {
    display: none;
    position: absolute;
    top: 70px;
    right: 30px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-bar.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-bar input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
}

.search-bar button {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 999px;
}

/* Ukryj drugi rząd ikon na desktopie */
@media (min-width: 992px) {
  .navbar .d-lg-none {
    display: none !important;
  }
}
