/* Reset */
.tv-custom-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Container */
.tv-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sister sites */
.tv-sister-sites {
    background-color: #f9fafa;
    border-bottom: 1px solid #e5e5e5;
    padding: 3px 0;
}

.tv-sister-links {
    display: flex;
    flex-wrap: wrap;
}

.tv-sister-links a {
    color: #2b3b49;
    font-size: 12px;
    text-decoration: none;
    padding: 2px 10px 2px 0;
    display: inline-block;
}

.tv-sister-links a.active {
    font-weight: 600;
}

.tv-sister-links a:hover {
    text-decoration: underline;
}

/* Main header */
.tv-main-header {
    background-color: #fff;
    padding: 15px 0;
    /*border-bottom: 1px solid #e5e5e5;*/
}

.tv-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo */
.tv-logo {
    flex: 0 0 230px;
    max-width: 230px;
}

.tv-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Search Bar */
.tv-search-bar {
    flex: 1;
    padding: 0 20px;
    max-width: 500px;
}

/* Header Right Section */
.tv-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

/* Phone */
.tv-phone {
    margin-right: 20px;
}

.tv-phone a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2b3b49;
}

.tv-phone-icon {
    width: 36px;
    height: 36px;
    background-color: #2b3b49;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.tv-phone-icon i {
    color: #fff;
    font-size: 15px;
}

.tv-phone-info {
    display: flex;
    flex-direction: column;
}

.tv-phone-number {
    font-weight: 600;
    font-size: 16px;
    color: #2b3b49;
}

.tv-phone-hours {
    font-size: 11px;
    color: #888;
}

/* User login */
.tv-user-login {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.tv-login-icon {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.tv-login-icon i {
    color: #2b3b49;
    font-size: 15px;
}

.tv-login-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.tv-login-title {
    color: #888;
}

.tv-login-links {
    display: flex;
}

.tv-login-link,
.tv-register-link,
.tv-account-link {
    color: #2b3b49;
    text-decoration: none;
    font-weight: 600;
}

.tv-login-link:hover,
.tv-register-link:hover,
.tv-account-link:hover {
    color: #3fb0bf;
}

/* Cart */
.tv-cart {
    position: relative;
}

.tv-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #2b3b49;
    text-decoration: none;
    font-size: 15px;
    position: relative;
}

.tv-cart-link:hover {
    background-color: #e5e5e5;
}

.tv-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #bb4340;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main navigation */
.tv-main-nav {
    /*background-color: #1a252f; /* Promijenjena boja */
    background-color: white;
    position: relative;
    border-bottom: 3px solid #1e90ff; /* Promijenjena boja donje granice */
}

.tv-navigation {
    position: relative;
    display: flex;
}

.tv-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
}

.tv-menu li {
    position: relative;
    margin-right:20px;
}

.tv-menu > li > a {
    color: #474747;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 15px;
    display: block;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tv-menu > li:first-child > a {
    padding-left: 0;
}

.tv-menu > li > a:hover {
    color: black;
    /*background-color: rgba(255, 255, 255, 0.1);*/
}

.tv-menu li.current-menu-item > a {
    color: #474747;
}

/* Custom FiboSearch styling */
/*.dgwt-wcas-search-wrapp {
    min-width: 100% !important;
    max-width: 100% !important;
}

.dgwt-wcas-sf-wrapp {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 0 !important;
    position: relative; 
}

.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    background-color: #fff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 4px !important;
    height: 40px !important;
    padding: 0 40px 0 15px !important;
    font-size: 14px !important;
}

.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder {
    color: #999 !important;
    opacity: 1;
}

.dgwt-wcas-ico-magnifier {
    fill: #999 !important;
    height: 16px !important;
    right: 10px !important; 
    top: 50% !important;
    transform: translateY(-50%) !important;
}
*/
/* Mobile toggle */
.tv-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    cursor: pointer;
    margin-left: 15px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-300%);
}

.tv-mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #474747;
    transition: all 0.3s ease;
}

/* Mobile nav */
.tv-mobile-nav {
    display: none;
    background-color: #1a252f; /* Promijenjena boja */
    padding: 15px 0;
}

.tv-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tv-mobile-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tv-mobile-menu li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.tv-mobile-menu li a {
    color: #f9fafa;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 0;
}


/* Subcategories section */
.tv-subcategories {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.tv-subcategories-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tv-subcategory-group {
    flex: 1;
    min-width: 200px;
    margin-right: 20px;
}

.tv-subcategory-group:last-child {
    margin-right: 0;
}

.tv-subcategory-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2b3b49;
    margin-bottom: 10px;
}

.tv-subcategory-group ul {
    list-style: none;
    padding: 0;
}

.tv-subcategory-group li {
    margin-bottom: 8px;
}

.tv-subcategory-group a {
    color: #2b3b49;
    text-decoration: none;
    font-size: 14px;
}

.tv-subcategory-group a:hover {
    color: #1e90ff;
}

/* Integration with Divi */
.et-db #et-boc .et-l .tv-custom-header {
    width: 100%;
}

.et-db #et-boc .et-l .tv-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

.et-db #et-boc .et-l .tv-menu,
.et-db #et-boc .et-l .tv-mobile-menu {
    list-style: none;
    padding: 0;
}

.et-db #et-boc .et-l .tv-menu li a{
    padding: inherit;
}
.tv-mobile-menu li a {
    padding: inherit;
}
/* Mobile nav */
.tv-mobile-nav {
    display: none;
    background-color: #1a252f;
    padding: 15px 0;
}

.tv-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tv-mobile-menu li {
    margin-bottom: 0; /* Uklonimo margin jer ćemo koristiti padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /*padding: 0;*/
}

.tv-mobile-menu li:last-child {
    border-bottom: none;
}

.tv-mobile-menu li a {
    color: #f9fafa;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 12px 15px; /* Veći padding za bolji izgled */
    transition: background-color 0.3s ease;
}

.tv-mobile-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Suptilni hover efekt */
}

/* Stilovi za stavke s podkategorijama */
.tv-mobile-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 40px; /* Prostor za ikonu */
}

.tv-mobile-menu .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #f9fafa;
    transition: transform 0.3s ease;
}

.tv-mobile-menu .menu-item-has-children.submenu-open > a::after {
    content: '-'; /* Promijeni u "-" kad je podkategorija otvorena */
    transform: translateY(-50%) rotate(0deg);
}

/* Podkategorije */
.tv-mobile-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 0 0 0 25px; /* Uvlačenje podkategorija */
    margin: 0;
    background-color: #2a3540; /* Malo svjetlija pozadina za podkategorije */
}

.tv-mobile-menu .sub-menu li {
    margin-bottom: 0;
    border-bottom: none; /* Bez donje granice za podkategorije */
    padding: 0;
}

.tv-mobile-menu .sub-menu li a {
    color: #d3d3d3; /* Svjetlija boja za podkategorije */
    font-size: 13px;
    padding: 10px 15px; /* Manji padding za podkategorije */
}

.tv-mobile-menu .sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tv-mobile-menu .menu-item-has-children.submenu-open > a {
    background-color: rgba(255, 255, 255, 0.1); /* Istakni aktivnu stavku */
    color: #1e90ff; /* Promijeni boju teksta aktivne stavke */
}