/* ================= RESET RESCARTA ================= */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f2f5f2, #e6efe6);
}

/* uklanjanje starih linija i tabela */
table, td, tr {
    border: none !important;
}

#rc-web-header,
.rc-container,
.rc-content,
.rc-nav-tab-content {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ================= HEADER ================= */

#rc-nav-tabs {
    border-bottom-color: #004d00;
    padding-bottom: 5px;
    border-top: solid 3px #004d00;
	border-bottom: solid 3px #004d00;
    padding-top: 0px;
    text-transform: uppercase;
}
#rc-nav-tabs li, #rc-nav-tabs li:hover {
    border: none;
    background: none;
}
#rc-nav-tabs li:hover a {
    color: #ad0a23;
}
#rc-left-header-area {
    text-align: center;
}
#rc-right-header-area {
    display: none;
}
.rc-nav-tab-content {
    border: none;
}
#rc-nav-tabs li#current a {
    color: #ad0a23;
}

/* WRAPPER */
.rc-menu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: #004d00;
    padding: 10px;
    border-radius: 12px;
}

/* MENI */
#rc-main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* LI */
#rc-main-menu li {
    list-style: none;
    margin: 5px;
}

/* LINK dugmad */
#rc-main-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    background: white;
    color: #004d00 !important;
    font-weight: 600;
    border: 2px solid #004d00;
    transition: 0.3s;
}
#rc-main-menu a {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* hover */
#rc-main-menu a:hover {
    background: #004d00;
    color: white !important;
    transform: translateY(-2px);
}

/* aktivno */
#rc-main-menu li#current a {
    background: #004d00;
    color: white !important;
}
/* ================= PRAVI DUGMAD MENI ================= */

#rc-main-menu {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* OVO JE KLJUČ */
#rc-main-menu li {
    display: inline-block !important;
    float: none !important;
    width: auto !important;
}

/* OVO UBIVA RESCARTA DEFAULT */
#rc-main-menu li a {
    display: inline-block !important;
    width: auto !important;
}

/* DUGMAD */
#rc-main-menu a {
    padding: 10px 18px;
    border-radius: 12px;
    background: white;
    color: #004d00 !important;
    border: 2px solid #004d00;
    font-weight: 600;
    transition: 0.3s;
}

/* HOVER */
#rc-main-menu a:hover {
    background: #004d00;
    color: white !important;
    transform: translateY(-2px);
}

/* AKTIVNO */
#rc-main-menu li#current a {
    background: #004d00;
    color: white !important;
}

/* ================= ZASTAVICE ================= */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
}
}
.rc-menu-wrapper {
    justify-content: space-between;
    padding: 0 20px;
}

.lang-switch img {
    width: 22px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.lang-switch img:hover {
    transform: scale(1.15);
}

/* ================= HEADER LOGO ================= */

#rc-left-header-area {
    text-align: center;
}

#rc-left-header-image {
    max-height: 120px;
}

#rc-right-header-area {
    display: none;
}

/* ================= KOLEKCIJE ================= */

.rc-main-wrapper {
    width: 100%;
    padding: 20px;
}

/* GRID */
.rc-browse-results {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
}

/* CARD */
.rc-browse-item {
    background: white !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* hover */
.rc-browse-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* NASLOV KOLEKCIJE */
.rc-browse-item-title {
    background: #004d00 !important;
    color: white !important;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
}

/* fallback ako klasa ne radi */
.rc-browse-item strong,
.rc-browse-item b {
    color: white !important;
    background: #004d00;
    padding: 5px;
    border-radius: 5px;
}

/* ================= SEARCH ================= */

input[type="text"] {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px;
}

input[type="text"]:focus {
    border-color: #004d00;
    box-shadow: 0 0 0 2px rgba(0,77,0,0.2);
}

/* ================= FOOTER ================= */

.rc-footer-custom {
    background: linear-gradient(90deg, #004d00, #006600);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.rc-footer-custom img {
    max-width: 120px;
    margin-bottom: 10px;
}

.rc-footer-custom p {
    margin: 0;
    font-size: 14px;
}

/* ================= UKLANJANJE STARIH TABOVA ================= */

#rc-nav-tabs ul {
    margin: 0;
    padding: 0;
    background: none !important;
}

#rc-nav-tabs li {
    background: none !important;
    border: none !important;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    /* meni vertikalno */
    #rc-main-menu {
        flex-direction: column;
        align-items: center;
    }

    #rc-main-menu a {
        width: 90%;
        text-align: center;
    }

    /* kolekcije */
    .rc-browse-results {
        grid-template-columns: 1fr;
    }

    /* logo */
    #rc-left-header-image {
        max-height: 60px;
    }

    /* zastavice */
    .lang-switch {
        top: 5px;
        left: 10px;
    }

    /* footer */
    .rc-footer-custom img {
        max-width: 90px;
    }
}
    .rc-menu-wrapper {
        flex-direction: column;
    }

    .lang-switch {
        margin-top: 10px;
    }
}